Closed Yolkis closed 6 years ago
Do you mean this?
# define a proxy named "B"
[proxy "B"]
url = socks5://127.0.0.1:1080
# use this proxy as default
default = yes
# set to a proxy for domaines that don't match any pattern
# DEFAULT VALUE: ""
final = B
@FlowerWrong 他的意思是除了 internal-ip 规则的IP全部都走代理,按之前issues查的貌似只能依赖dns-mode进行转发流量,对于直连非dns的方式就只能用route来针对性添加?
是的,也没有其他方式。因为流量到不了tun设备。可以看下udp_relay_via_socks5 mode,就是需要依靠route table工作。scheme = IP-CIDR
是dns解析过后拿结果才去匹配,其他schema也是,我预留了route配置项,这里可以配置少量路由表。
可能是这个没有说明文档,所以配置不那么容易理解,配置我是直接拿kone
作者的。其实和surge
应该差不多。
@FlowerWrong 是否可以参考一下badvpn,通过默认路由并将全部流量导入到虚拟网卡的做法来实现(仅测试过windows)
@MittWillson 现在支持的。udp_relay_via_socks5 mode,具体脚本可以参考ip2socks darwin_setup_utun.sh
@FlowerWrong windows 应该怎么做 我按badvpn的做法导过去以后没有正常将流量代理出去
😭 这个我没试过,目前没windows电脑。
How to make move all traffic through tun2socks without internal-ip?