vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.51k stars 3.18k forks source link

如何设置某些内网 cidr 也走代理 #2361

Closed tedli closed 2 years ago

tedli commented 2 years ago

有一套公有云环境,跳板机暴露有 socks5,想配一个 clash proxy 然后定义 rules 指定环境里的 ip cidr 走这个 socks5 proxy。这样我在家里就能直连那套环境里内网地址了。

但是路由器上看 openclash 生成的 iptables 规则,match set 内网,就直接直连了,都没往 7892 上转。

直接 curl --socks5 用 clash 暴露的 7891 代理一下,就通,说明我给 clash 的配置是没问题的。

问题就在于我访问的地址是内网地址,iptables 没给往 7892 上转。

请问现在 openclash 是否有这个能力,让某些内网 ip 段也走进转发?

tedli commented 2 years ago

自己顶一下:zany_face:

https://github.com/vernesong/OpenClash/blob/8e1de66a78d44b702518e8a8ed90535d5bbfe78e/luci-app-openclash/root/etc/init.d/openclash#L1115-L1124

看起来是这里创建 ipset 固定写死了。安装释放到 /etc/init.d/openclash 后,应该可以自己手动改。我先自己改一下试试。

希望以后这里可以配置。:grin:

fangfang333 commented 2 years ago

同问,我也遇到一样的问题,我是想异地组网,用clash for windows开了虚拟网卡可以正常组网,但是openclash不行。 查了一下,发现目标IP是内网IP,根本没经过clash内核,我试着添加了一条防火墙规则, iptables -t nat -A OUTPUT -d 10.10.10.111 -j DNAT --to-destination 10.10.10.4:7892 结果发现无效,不知道应该怎么修改。

tedli commented 2 years ago

同问,我也遇到一样的问题,我是想异地组网,用clash for windows开了虚拟网卡可以正常组网,但是openclash不行。 查了一下,发现目标IP是内网IP,根本没经过clash内核,我试着添加了一条防火墙规则, iptables -t nat -A OUTPUT -d 10.10.10.111 -j DNAT --to-destination 10.10.10.4:7892 结果发现无效,不知道应该怎么修改。

我上面补充那条备注,修改那里管用。我现在就是生效了的。就是不“优雅”而已。

我想走代理的几个网段是:

- IP-CIDR,192.168.0.136/32,XXXX,no-resolve
- IP-CIDR,172.31.0.0/16,XXXX,no-resolve
- IP-CIDR,10.96.0.0/12,XXXX,no-resolve
- IP-CIDR,172.22.150.0/24,XXXX,no-resolve
- IP-CIDR,172.22.50.0/24,XXXX,no-resolve
- IP-CIDR,172.22.96.0/24,XXXX,no-resolve

就只能手动,把原来大掩码的 cidr,拆成小掩码的,然后把我想走代理的几个网段,去掉。

# 比如只有 192.168.0.136 一个地址想走代理,结果需要把 192.168.0.0/16 全展开
for i in $(seq 1 254); do echo "ipset add localnetwork 192.168.$i.0/24"; done
for i in $(seq 1 254); do echo "ipset add localnetwork 192.168.0.$i/32"; done
# 然后把 192.168.0.0/24 跟 192.168.0.136/32 给去掉

还有一个我踩的,就是这种不能用 meta 内核开 sniff,用的话,80 的就不通,没深究为啥:sob:。不用 meta 的话,现在还挺正常的。

ipset create localnetwork hash:net
ipset add localnetwork 0.0.0.0/8
ipset add localnetwork 127.0.0.0/8
ipset add localnetwork 169.254.0.0/16
ipset add localnetwork 224.0.0.0/4
ipset add localnetwork 240.0.0.0/4
ipset add localnetwork 100.64.0.0/10
ipset add localnetwork 172.16.0.0/16
ipset add localnetwork 172.17.0.0/16
ipset add localnetwork 172.18.0.0/16
ipset add localnetwork 172.19.0.0/16
ipset add localnetwork 172.20.0.0/16
ipset add localnetwork 172.21.0.0/16
ipset add localnetwork 172.23.0.0/16
ipset add localnetwork 172.24.0.0/16
ipset add localnetwork 172.25.0.0/16
ipset add localnetwork 172.26.0.0/16
ipset add localnetwork 172.27.0.0/16
ipset add localnetwork 172.28.0.0/16
ipset add localnetwork 172.29.0.0/16
ipset add localnetwork 172.30.0.0/16
ipset add localnetwork 172.22.0.0/24
ipset add localnetwork 172.22.1.0/24
ipset add localnetwork 172.22.2.0/24
ipset add localnetwork 172.22.3.0/24
ipset add localnetwork 172.22.4.0/24
ipset add localnetwork 172.22.5.0/24
ipset add localnetwork 172.22.6.0/24
ipset add localnetwork 172.22.7.0/24
ipset add localnetwork 172.22.8.0/24
ipset add localnetwork 172.22.9.0/24
ipset add localnetwork 172.22.10.0/24
ipset add localnetwork 172.22.11.0/24
ipset add localnetwork 172.22.12.0/24
ipset add localnetwork 172.22.13.0/24
ipset add localnetwork 172.22.14.0/24
ipset add localnetwork 172.22.15.0/24
ipset add localnetwork 172.22.16.0/24
ipset add localnetwork 172.22.17.0/24
ipset add localnetwork 172.22.18.0/24
ipset add localnetwork 172.22.19.0/24
ipset add localnetwork 172.22.20.0/24
ipset add localnetwork 172.22.21.0/24
ipset add localnetwork 172.22.22.0/24
ipset add localnetwork 172.22.23.0/24
ipset add localnetwork 172.22.24.0/24
ipset add localnetwork 172.22.25.0/24
ipset add localnetwork 172.22.26.0/24
ipset add localnetwork 172.22.27.0/24
ipset add localnetwork 172.22.28.0/24
ipset add localnetwork 172.22.29.0/24
ipset add localnetwork 172.22.30.0/24
ipset add localnetwork 172.22.31.0/24
ipset add localnetwork 172.22.32.0/24
ipset add localnetwork 172.22.33.0/24
ipset add localnetwork 172.22.34.0/24
ipset add localnetwork 172.22.35.0/24
ipset add localnetwork 172.22.36.0/24
ipset add localnetwork 172.22.37.0/24
ipset add localnetwork 172.22.38.0/24
ipset add localnetwork 172.22.39.0/24
ipset add localnetwork 172.22.40.0/24
ipset add localnetwork 172.22.41.0/24
ipset add localnetwork 172.22.42.0/24
ipset add localnetwork 172.22.43.0/24
ipset add localnetwork 172.22.44.0/24
ipset add localnetwork 172.22.45.0/24
ipset add localnetwork 172.22.46.0/24
ipset add localnetwork 172.22.47.0/24
ipset add localnetwork 172.22.48.0/24
ipset add localnetwork 172.22.49.0/24
ipset add localnetwork 172.22.51.0/24
ipset add localnetwork 172.22.52.0/24
ipset add localnetwork 172.22.53.0/24
ipset add localnetwork 172.22.54.0/24
ipset add localnetwork 172.22.55.0/24
ipset add localnetwork 172.22.56.0/24
ipset add localnetwork 172.22.57.0/24
ipset add localnetwork 172.22.58.0/24
ipset add localnetwork 172.22.59.0/24
ipset add localnetwork 172.22.60.0/24
ipset add localnetwork 172.22.61.0/24
ipset add localnetwork 172.22.62.0/24
ipset add localnetwork 172.22.63.0/24
ipset add localnetwork 172.22.64.0/24
ipset add localnetwork 172.22.65.0/24
ipset add localnetwork 172.22.66.0/24
ipset add localnetwork 172.22.67.0/24
ipset add localnetwork 172.22.68.0/24
ipset add localnetwork 172.22.69.0/24
ipset add localnetwork 172.22.70.0/24
ipset add localnetwork 172.22.71.0/24
ipset add localnetwork 172.22.72.0/24
ipset add localnetwork 172.22.73.0/24
ipset add localnetwork 172.22.74.0/24
ipset add localnetwork 172.22.75.0/24
ipset add localnetwork 172.22.76.0/24
ipset add localnetwork 172.22.77.0/24
ipset add localnetwork 172.22.78.0/24
ipset add localnetwork 172.22.79.0/24
ipset add localnetwork 172.22.80.0/24
ipset add localnetwork 172.22.81.0/24
ipset add localnetwork 172.22.82.0/24
ipset add localnetwork 172.22.83.0/24
ipset add localnetwork 172.22.84.0/24
ipset add localnetwork 172.22.85.0/24
ipset add localnetwork 172.22.86.0/24
ipset add localnetwork 172.22.87.0/24
ipset add localnetwork 172.22.88.0/24
ipset add localnetwork 172.22.89.0/24
ipset add localnetwork 172.22.90.0/24
ipset add localnetwork 172.22.91.0/24
ipset add localnetwork 172.22.92.0/24
ipset add localnetwork 172.22.93.0/24
ipset add localnetwork 172.22.94.0/24
ipset add localnetwork 172.22.95.0/24
ipset add localnetwork 172.22.97.0/24
ipset add localnetwork 172.22.98.0/24
ipset add localnetwork 172.22.99.0/24
ipset add localnetwork 172.22.100.0/24
ipset add localnetwork 172.22.101.0/24
ipset add localnetwork 172.22.102.0/24
ipset add localnetwork 172.22.103.0/24
ipset add localnetwork 172.22.104.0/24
ipset add localnetwork 172.22.105.0/24
ipset add localnetwork 172.22.106.0/24
ipset add localnetwork 172.22.107.0/24
ipset add localnetwork 172.22.108.0/24
ipset add localnetwork 172.22.109.0/24
ipset add localnetwork 172.22.110.0/24
ipset add localnetwork 172.22.111.0/24
ipset add localnetwork 172.22.112.0/24
ipset add localnetwork 172.22.113.0/24
ipset add localnetwork 172.22.114.0/24
ipset add localnetwork 172.22.115.0/24
ipset add localnetwork 172.22.116.0/24
ipset add localnetwork 172.22.117.0/24
ipset add localnetwork 172.22.118.0/24
ipset add localnetwork 172.22.119.0/24
ipset add localnetwork 172.22.120.0/24
ipset add localnetwork 172.22.121.0/24
ipset add localnetwork 172.22.122.0/24
ipset add localnetwork 172.22.123.0/24
ipset add localnetwork 172.22.124.0/24
ipset add localnetwork 172.22.125.0/24
ipset add localnetwork 172.22.126.0/24
ipset add localnetwork 172.22.127.0/24
ipset add localnetwork 172.22.128.0/24
ipset add localnetwork 172.22.129.0/24
ipset add localnetwork 172.22.130.0/24
ipset add localnetwork 172.22.131.0/24
ipset add localnetwork 172.22.132.0/24
ipset add localnetwork 172.22.133.0/24
ipset add localnetwork 172.22.134.0/24
ipset add localnetwork 172.22.135.0/24
ipset add localnetwork 172.22.136.0/24
ipset add localnetwork 172.22.137.0/24
ipset add localnetwork 172.22.138.0/24
ipset add localnetwork 172.22.139.0/24
ipset add localnetwork 172.22.140.0/24
ipset add localnetwork 172.22.141.0/24
ipset add localnetwork 172.22.142.0/24
ipset add localnetwork 172.22.143.0/24
ipset add localnetwork 172.22.144.0/24
ipset add localnetwork 172.22.145.0/24
ipset add localnetwork 172.22.146.0/24
ipset add localnetwork 172.22.147.0/24
ipset add localnetwork 172.22.148.0/24
ipset add localnetwork 172.22.149.0/24
ipset add localnetwork 172.22.151.0/24
ipset add localnetwork 172.22.152.0/24
ipset add localnetwork 172.22.153.0/24
ipset add localnetwork 172.22.154.0/24
ipset add localnetwork 172.22.155.0/24
ipset add localnetwork 172.22.156.0/24
ipset add localnetwork 172.22.157.0/24
ipset add localnetwork 172.22.158.0/24
ipset add localnetwork 172.22.159.0/24
ipset add localnetwork 172.22.160.0/24
ipset add localnetwork 172.22.161.0/24
ipset add localnetwork 172.22.162.0/24
ipset add localnetwork 172.22.163.0/24
ipset add localnetwork 172.22.164.0/24
ipset add localnetwork 172.22.165.0/24
ipset add localnetwork 172.22.166.0/24
ipset add localnetwork 172.22.167.0/24
ipset add localnetwork 172.22.168.0/24
ipset add localnetwork 172.22.169.0/24
ipset add localnetwork 172.22.170.0/24
ipset add localnetwork 172.22.171.0/24
ipset add localnetwork 172.22.172.0/24
ipset add localnetwork 172.22.173.0/24
ipset add localnetwork 172.22.174.0/24
ipset add localnetwork 172.22.175.0/24
ipset add localnetwork 172.22.176.0/24
ipset add localnetwork 172.22.177.0/24
ipset add localnetwork 172.22.178.0/24
ipset add localnetwork 172.22.179.0/24
ipset add localnetwork 172.22.180.0/24
ipset add localnetwork 172.22.181.0/24
ipset add localnetwork 172.22.182.0/24
ipset add localnetwork 172.22.183.0/24
ipset add localnetwork 172.22.184.0/24
ipset add localnetwork 172.22.185.0/24
ipset add localnetwork 172.22.186.0/24
ipset add localnetwork 172.22.187.0/24
ipset add localnetwork 172.22.188.0/24
ipset add localnetwork 172.22.189.0/24
ipset add localnetwork 172.22.190.0/24
ipset add localnetwork 172.22.191.0/24
ipset add localnetwork 172.22.192.0/24
ipset add localnetwork 172.22.193.0/24
ipset add localnetwork 172.22.194.0/24
ipset add localnetwork 172.22.195.0/24
ipset add localnetwork 172.22.196.0/24
ipset add localnetwork 172.22.197.0/24
ipset add localnetwork 172.22.198.0/24
ipset add localnetwork 172.22.199.0/24
ipset add localnetwork 172.22.200.0/24
ipset add localnetwork 172.22.201.0/24
ipset add localnetwork 172.22.202.0/24
ipset add localnetwork 172.22.203.0/24
ipset add localnetwork 172.22.204.0/24
ipset add localnetwork 172.22.205.0/24
ipset add localnetwork 172.22.206.0/24
ipset add localnetwork 172.22.207.0/24
ipset add localnetwork 172.22.208.0/24
ipset add localnetwork 172.22.209.0/24
ipset add localnetwork 172.22.210.0/24
ipset add localnetwork 172.22.211.0/24
ipset add localnetwork 172.22.212.0/24
ipset add localnetwork 172.22.213.0/24
ipset add localnetwork 172.22.214.0/24
ipset add localnetwork 172.22.215.0/24
ipset add localnetwork 172.22.216.0/24
ipset add localnetwork 172.22.217.0/24
ipset add localnetwork 172.22.218.0/24
ipset add localnetwork 172.22.219.0/24
ipset add localnetwork 172.22.220.0/24
ipset add localnetwork 172.22.221.0/24
ipset add localnetwork 172.22.222.0/24
ipset add localnetwork 172.22.223.0/24
ipset add localnetwork 172.22.224.0/24
ipset add localnetwork 172.22.225.0/24
ipset add localnetwork 172.22.226.0/24
ipset add localnetwork 172.22.227.0/24
ipset add localnetwork 172.22.228.0/24
ipset add localnetwork 172.22.229.0/24
ipset add localnetwork 172.22.230.0/24
ipset add localnetwork 172.22.231.0/24
ipset add localnetwork 172.22.232.0/24
ipset add localnetwork 172.22.233.0/24
ipset add localnetwork 172.22.234.0/24
ipset add localnetwork 172.22.235.0/24
ipset add localnetwork 172.22.236.0/24
ipset add localnetwork 172.22.237.0/24
ipset add localnetwork 172.22.238.0/24
ipset add localnetwork 172.22.239.0/24
ipset add localnetwork 172.22.240.0/24
ipset add localnetwork 172.22.241.0/24
ipset add localnetwork 172.22.242.0/24
ipset add localnetwork 172.22.243.0/24
ipset add localnetwork 172.22.244.0/24
ipset add localnetwork 172.22.245.0/24
ipset add localnetwork 172.22.246.0/24
ipset add localnetwork 172.22.247.0/24
ipset add localnetwork 172.22.248.0/24
ipset add localnetwork 172.22.249.0/24
ipset add localnetwork 172.22.250.0/24
ipset add localnetwork 172.22.251.0/24
ipset add localnetwork 172.22.252.0/24
ipset add localnetwork 172.22.253.0/24
ipset add localnetwork 172.22.254.0/24
ipset add localnetwork 10.0.0.0/11
ipset add localnetwork 10.32.0.0/11
ipset add localnetwork 10.64.0.0/11
ipset add localnetwork 10.128.0.0/11
ipset add localnetwork 10.32.0.0/11
ipset add localnetwork 10.192.0.0/11
ipset add localnetwork 10.160.0.0/11
ipset add localnetwork 10.224.0.0/11
ipset add localnetwork 192.168.1.0/24
ipset add localnetwork 192.168.2.0/24
ipset add localnetwork 192.168.3.0/24
ipset add localnetwork 192.168.4.0/24
ipset add localnetwork 192.168.5.0/24
ipset add localnetwork 192.168.6.0/24
ipset add localnetwork 192.168.7.0/24
ipset add localnetwork 192.168.8.0/24
ipset add localnetwork 192.168.9.0/24
ipset add localnetwork 192.168.10.0/24
ipset add localnetwork 192.168.11.0/24
ipset add localnetwork 192.168.12.0/24
ipset add localnetwork 192.168.13.0/24
ipset add localnetwork 192.168.14.0/24
ipset add localnetwork 192.168.15.0/24
ipset add localnetwork 192.168.16.0/24
ipset add localnetwork 192.168.17.0/24
ipset add localnetwork 192.168.18.0/24
ipset add localnetwork 192.168.19.0/24
ipset add localnetwork 192.168.20.0/24
ipset add localnetwork 192.168.21.0/24
ipset add localnetwork 192.168.22.0/24
ipset add localnetwork 192.168.23.0/24
ipset add localnetwork 192.168.24.0/24
ipset add localnetwork 192.168.25.0/24
ipset add localnetwork 192.168.26.0/24
ipset add localnetwork 192.168.27.0/24
ipset add localnetwork 192.168.28.0/24
ipset add localnetwork 192.168.29.0/24
ipset add localnetwork 192.168.30.0/24
ipset add localnetwork 192.168.31.0/24
ipset add localnetwork 192.168.32.0/24
ipset add localnetwork 192.168.33.0/24
ipset add localnetwork 192.168.34.0/24
ipset add localnetwork 192.168.35.0/24
ipset add localnetwork 192.168.36.0/24
ipset add localnetwork 192.168.37.0/24
ipset add localnetwork 192.168.38.0/24
ipset add localnetwork 192.168.39.0/24
ipset add localnetwork 192.168.40.0/24
ipset add localnetwork 192.168.41.0/24
ipset add localnetwork 192.168.42.0/24
ipset add localnetwork 192.168.43.0/24
ipset add localnetwork 192.168.44.0/24
ipset add localnetwork 192.168.45.0/24
ipset add localnetwork 192.168.46.0/24
ipset add localnetwork 192.168.47.0/24
ipset add localnetwork 192.168.48.0/24
ipset add localnetwork 192.168.49.0/24
ipset add localnetwork 192.168.50.0/24
ipset add localnetwork 192.168.51.0/24
ipset add localnetwork 192.168.52.0/24
ipset add localnetwork 192.168.53.0/24
ipset add localnetwork 192.168.54.0/24
ipset add localnetwork 192.168.55.0/24
ipset add localnetwork 192.168.56.0/24
ipset add localnetwork 192.168.57.0/24
ipset add localnetwork 192.168.58.0/24
ipset add localnetwork 192.168.59.0/24
ipset add localnetwork 192.168.60.0/24
ipset add localnetwork 192.168.61.0/24
ipset add localnetwork 192.168.62.0/24
ipset add localnetwork 192.168.63.0/24
ipset add localnetwork 192.168.64.0/24
ipset add localnetwork 192.168.65.0/24
ipset add localnetwork 192.168.66.0/24
ipset add localnetwork 192.168.67.0/24
ipset add localnetwork 192.168.68.0/24
ipset add localnetwork 192.168.69.0/24
ipset add localnetwork 192.168.70.0/24
ipset add localnetwork 192.168.71.0/24
ipset add localnetwork 192.168.72.0/24
ipset add localnetwork 192.168.73.0/24
ipset add localnetwork 192.168.74.0/24
ipset add localnetwork 192.168.75.0/24
ipset add localnetwork 192.168.76.0/24
ipset add localnetwork 192.168.77.0/24
ipset add localnetwork 192.168.78.0/24
ipset add localnetwork 192.168.79.0/24
ipset add localnetwork 192.168.80.0/24
ipset add localnetwork 192.168.81.0/24
ipset add localnetwork 192.168.82.0/24
ipset add localnetwork 192.168.83.0/24
ipset add localnetwork 192.168.84.0/24
ipset add localnetwork 192.168.85.0/24
ipset add localnetwork 192.168.86.0/24
ipset add localnetwork 192.168.87.0/24
ipset add localnetwork 192.168.88.0/24
ipset add localnetwork 192.168.89.0/24
ipset add localnetwork 192.168.90.0/24
ipset add localnetwork 192.168.91.0/24
ipset add localnetwork 192.168.92.0/24
ipset add localnetwork 192.168.93.0/24
ipset add localnetwork 192.168.94.0/24
ipset add localnetwork 192.168.95.0/24
ipset add localnetwork 192.168.96.0/24
ipset add localnetwork 192.168.97.0/24
ipset add localnetwork 192.168.98.0/24
ipset add localnetwork 192.168.99.0/24
ipset add localnetwork 192.168.100.0/24
ipset add localnetwork 192.168.101.0/24
ipset add localnetwork 192.168.102.0/24
ipset add localnetwork 192.168.103.0/24
ipset add localnetwork 192.168.104.0/24
ipset add localnetwork 192.168.105.0/24
ipset add localnetwork 192.168.106.0/24
ipset add localnetwork 192.168.107.0/24
ipset add localnetwork 192.168.108.0/24
ipset add localnetwork 192.168.109.0/24
ipset add localnetwork 192.168.110.0/24
ipset add localnetwork 192.168.111.0/24
ipset add localnetwork 192.168.112.0/24
ipset add localnetwork 192.168.113.0/24
ipset add localnetwork 192.168.114.0/24
ipset add localnetwork 192.168.115.0/24
ipset add localnetwork 192.168.116.0/24
ipset add localnetwork 192.168.117.0/24
ipset add localnetwork 192.168.118.0/24
ipset add localnetwork 192.168.119.0/24
ipset add localnetwork 192.168.120.0/24
ipset add localnetwork 192.168.121.0/24
ipset add localnetwork 192.168.122.0/24
ipset add localnetwork 192.168.123.0/24
ipset add localnetwork 192.168.124.0/24
ipset add localnetwork 192.168.125.0/24
ipset add localnetwork 192.168.126.0/24
ipset add localnetwork 192.168.127.0/24
ipset add localnetwork 192.168.128.0/24
ipset add localnetwork 192.168.129.0/24
ipset add localnetwork 192.168.130.0/24
ipset add localnetwork 192.168.131.0/24
ipset add localnetwork 192.168.132.0/24
ipset add localnetwork 192.168.133.0/24
ipset add localnetwork 192.168.134.0/24
ipset add localnetwork 192.168.135.0/24
ipset add localnetwork 192.168.136.0/24
ipset add localnetwork 192.168.137.0/24
ipset add localnetwork 192.168.138.0/24
ipset add localnetwork 192.168.139.0/24
ipset add localnetwork 192.168.140.0/24
ipset add localnetwork 192.168.141.0/24
ipset add localnetwork 192.168.142.0/24
ipset add localnetwork 192.168.143.0/24
ipset add localnetwork 192.168.144.0/24
ipset add localnetwork 192.168.145.0/24
ipset add localnetwork 192.168.146.0/24
ipset add localnetwork 192.168.147.0/24
ipset add localnetwork 192.168.148.0/24
ipset add localnetwork 192.168.149.0/24
ipset add localnetwork 192.168.150.0/24
ipset add localnetwork 192.168.151.0/24
ipset add localnetwork 192.168.152.0/24
ipset add localnetwork 192.168.153.0/24
ipset add localnetwork 192.168.154.0/24
ipset add localnetwork 192.168.155.0/24
ipset add localnetwork 192.168.156.0/24
ipset add localnetwork 192.168.157.0/24
ipset add localnetwork 192.168.158.0/24
ipset add localnetwork 192.168.159.0/24
ipset add localnetwork 192.168.160.0/24
ipset add localnetwork 192.168.161.0/24
ipset add localnetwork 192.168.162.0/24
ipset add localnetwork 192.168.163.0/24
ipset add localnetwork 192.168.164.0/24
ipset add localnetwork 192.168.165.0/24
ipset add localnetwork 192.168.166.0/24
ipset add localnetwork 192.168.167.0/24
ipset add localnetwork 192.168.168.0/24
ipset add localnetwork 192.168.169.0/24
ipset add localnetwork 192.168.170.0/24
ipset add localnetwork 192.168.171.0/24
ipset add localnetwork 192.168.172.0/24
ipset add localnetwork 192.168.173.0/24
ipset add localnetwork 192.168.174.0/24
ipset add localnetwork 192.168.175.0/24
ipset add localnetwork 192.168.176.0/24
ipset add localnetwork 192.168.177.0/24
ipset add localnetwork 192.168.178.0/24
ipset add localnetwork 192.168.179.0/24
ipset add localnetwork 192.168.180.0/24
ipset add localnetwork 192.168.181.0/24
ipset add localnetwork 192.168.182.0/24
ipset add localnetwork 192.168.183.0/24
ipset add localnetwork 192.168.184.0/24
ipset add localnetwork 192.168.185.0/24
ipset add localnetwork 192.168.186.0/24
ipset add localnetwork 192.168.187.0/24
ipset add localnetwork 192.168.188.0/24
ipset add localnetwork 192.168.189.0/24
ipset add localnetwork 192.168.190.0/24
ipset add localnetwork 192.168.191.0/24
ipset add localnetwork 192.168.192.0/24
ipset add localnetwork 192.168.193.0/24
ipset add localnetwork 192.168.194.0/24
ipset add localnetwork 192.168.195.0/24
ipset add localnetwork 192.168.196.0/24
ipset add localnetwork 192.168.197.0/24
ipset add localnetwork 192.168.198.0/24
ipset add localnetwork 192.168.199.0/24
ipset add localnetwork 192.168.200.0/24
ipset add localnetwork 192.168.201.0/24
ipset add localnetwork 192.168.202.0/24
ipset add localnetwork 192.168.203.0/24
ipset add localnetwork 192.168.204.0/24
ipset add localnetwork 192.168.205.0/24
ipset add localnetwork 192.168.206.0/24
ipset add localnetwork 192.168.207.0/24
ipset add localnetwork 192.168.208.0/24
ipset add localnetwork 192.168.209.0/24
ipset add localnetwork 192.168.210.0/24
ipset add localnetwork 192.168.211.0/24
ipset add localnetwork 192.168.212.0/24
ipset add localnetwork 192.168.213.0/24
ipset add localnetwork 192.168.214.0/24
ipset add localnetwork 192.168.215.0/24
ipset add localnetwork 192.168.216.0/24
ipset add localnetwork 192.168.217.0/24
ipset add localnetwork 192.168.218.0/24
ipset add localnetwork 192.168.219.0/24
ipset add localnetwork 192.168.220.0/24
ipset add localnetwork 192.168.221.0/24
ipset add localnetwork 192.168.222.0/24
ipset add localnetwork 192.168.223.0/24
ipset add localnetwork 192.168.224.0/24
ipset add localnetwork 192.168.225.0/24
ipset add localnetwork 192.168.226.0/24
ipset add localnetwork 192.168.227.0/24
ipset add localnetwork 192.168.228.0/24
ipset add localnetwork 192.168.229.0/24
ipset add localnetwork 192.168.230.0/24
ipset add localnetwork 192.168.231.0/24
ipset add localnetwork 192.168.232.0/24
ipset add localnetwork 192.168.233.0/24
ipset add localnetwork 192.168.234.0/24
ipset add localnetwork 192.168.235.0/24
ipset add localnetwork 192.168.236.0/24
ipset add localnetwork 192.168.237.0/24
ipset add localnetwork 192.168.238.0/24
ipset add localnetwork 192.168.239.0/24
ipset add localnetwork 192.168.240.0/24
ipset add localnetwork 192.168.241.0/24
ipset add localnetwork 192.168.242.0/24
ipset add localnetwork 192.168.243.0/24
ipset add localnetwork 192.168.244.0/24
ipset add localnetwork 192.168.245.0/24
ipset add localnetwork 192.168.246.0/24
ipset add localnetwork 192.168.247.0/24
ipset add localnetwork 192.168.248.0/24
ipset add localnetwork 192.168.249.0/24
ipset add localnetwork 192.168.250.0/24
ipset add localnetwork 192.168.251.0/24
ipset add localnetwork 192.168.252.0/24
ipset add localnetwork 192.168.253.0/24
ipset add localnetwork 192.168.254.0/24
ipset add localnetwork 192.168.0.1/32
ipset add localnetwork 192.168.0.2/32
ipset add localnetwork 192.168.0.3/32
ipset add localnetwork 192.168.0.4/32
ipset add localnetwork 192.168.0.5/32
ipset add localnetwork 192.168.0.6/32
ipset add localnetwork 192.168.0.7/32
ipset add localnetwork 192.168.0.8/32
ipset add localnetwork 192.168.0.9/32
ipset add localnetwork 192.168.0.10/32
ipset add localnetwork 192.168.0.11/32
ipset add localnetwork 192.168.0.12/32
ipset add localnetwork 192.168.0.13/32
ipset add localnetwork 192.168.0.14/32
ipset add localnetwork 192.168.0.15/32
ipset add localnetwork 192.168.0.16/32
ipset add localnetwork 192.168.0.17/32
ipset add localnetwork 192.168.0.18/32
ipset add localnetwork 192.168.0.19/32
ipset add localnetwork 192.168.0.20/32
ipset add localnetwork 192.168.0.21/32
ipset add localnetwork 192.168.0.22/32
ipset add localnetwork 192.168.0.23/32
ipset add localnetwork 192.168.0.24/32
ipset add localnetwork 192.168.0.25/32
ipset add localnetwork 192.168.0.26/32
ipset add localnetwork 192.168.0.27/32
ipset add localnetwork 192.168.0.28/32
ipset add localnetwork 192.168.0.29/32
ipset add localnetwork 192.168.0.30/32
ipset add localnetwork 192.168.0.31/32
ipset add localnetwork 192.168.0.32/32
ipset add localnetwork 192.168.0.33/32
ipset add localnetwork 192.168.0.34/32
ipset add localnetwork 192.168.0.35/32
ipset add localnetwork 192.168.0.36/32
ipset add localnetwork 192.168.0.37/32
ipset add localnetwork 192.168.0.38/32
ipset add localnetwork 192.168.0.39/32
ipset add localnetwork 192.168.0.40/32
ipset add localnetwork 192.168.0.41/32
ipset add localnetwork 192.168.0.42/32
ipset add localnetwork 192.168.0.43/32
ipset add localnetwork 192.168.0.44/32
ipset add localnetwork 192.168.0.45/32
ipset add localnetwork 192.168.0.46/32
ipset add localnetwork 192.168.0.47/32
ipset add localnetwork 192.168.0.48/32
ipset add localnetwork 192.168.0.49/32
ipset add localnetwork 192.168.0.50/32
ipset add localnetwork 192.168.0.51/32
ipset add localnetwork 192.168.0.52/32
ipset add localnetwork 192.168.0.53/32
ipset add localnetwork 192.168.0.54/32
ipset add localnetwork 192.168.0.55/32
ipset add localnetwork 192.168.0.56/32
ipset add localnetwork 192.168.0.57/32
ipset add localnetwork 192.168.0.58/32
ipset add localnetwork 192.168.0.59/32
ipset add localnetwork 192.168.0.60/32
ipset add localnetwork 192.168.0.61/32
ipset add localnetwork 192.168.0.62/32
ipset add localnetwork 192.168.0.63/32
ipset add localnetwork 192.168.0.64/32
ipset add localnetwork 192.168.0.65/32
ipset add localnetwork 192.168.0.66/32
ipset add localnetwork 192.168.0.67/32
ipset add localnetwork 192.168.0.68/32
ipset add localnetwork 192.168.0.69/32
ipset add localnetwork 192.168.0.70/32
ipset add localnetwork 192.168.0.71/32
ipset add localnetwork 192.168.0.72/32
ipset add localnetwork 192.168.0.73/32
ipset add localnetwork 192.168.0.74/32
ipset add localnetwork 192.168.0.75/32
ipset add localnetwork 192.168.0.76/32
ipset add localnetwork 192.168.0.77/32
ipset add localnetwork 192.168.0.78/32
ipset add localnetwork 192.168.0.79/32
ipset add localnetwork 192.168.0.80/32
ipset add localnetwork 192.168.0.81/32
ipset add localnetwork 192.168.0.82/32
ipset add localnetwork 192.168.0.83/32
ipset add localnetwork 192.168.0.84/32
ipset add localnetwork 192.168.0.85/32
ipset add localnetwork 192.168.0.86/32
ipset add localnetwork 192.168.0.87/32
ipset add localnetwork 192.168.0.88/32
ipset add localnetwork 192.168.0.89/32
ipset add localnetwork 192.168.0.90/32
ipset add localnetwork 192.168.0.91/32
ipset add localnetwork 192.168.0.92/32
ipset add localnetwork 192.168.0.93/32
ipset add localnetwork 192.168.0.94/32
ipset add localnetwork 192.168.0.95/32
ipset add localnetwork 192.168.0.96/32
ipset add localnetwork 192.168.0.97/32
ipset add localnetwork 192.168.0.98/32
ipset add localnetwork 192.168.0.99/32
ipset add localnetwork 192.168.0.100/32
ipset add localnetwork 192.168.0.101/32
ipset add localnetwork 192.168.0.102/32
ipset add localnetwork 192.168.0.103/32
ipset add localnetwork 192.168.0.104/32
ipset add localnetwork 192.168.0.105/32
ipset add localnetwork 192.168.0.106/32
ipset add localnetwork 192.168.0.107/32
ipset add localnetwork 192.168.0.108/32
ipset add localnetwork 192.168.0.109/32
ipset add localnetwork 192.168.0.110/32
ipset add localnetwork 192.168.0.111/32
ipset add localnetwork 192.168.0.112/32
ipset add localnetwork 192.168.0.113/32
ipset add localnetwork 192.168.0.114/32
ipset add localnetwork 192.168.0.115/32
ipset add localnetwork 192.168.0.116/32
ipset add localnetwork 192.168.0.117/32
ipset add localnetwork 192.168.0.118/32
ipset add localnetwork 192.168.0.119/32
ipset add localnetwork 192.168.0.120/32
ipset add localnetwork 192.168.0.121/32
ipset add localnetwork 192.168.0.122/32
ipset add localnetwork 192.168.0.123/32
ipset add localnetwork 192.168.0.124/32
ipset add localnetwork 192.168.0.125/32
ipset add localnetwork 192.168.0.126/32
ipset add localnetwork 192.168.0.127/32
ipset add localnetwork 192.168.0.128/32
ipset add localnetwork 192.168.0.129/32
ipset add localnetwork 192.168.0.130/32
ipset add localnetwork 192.168.0.131/32
ipset add localnetwork 192.168.0.132/32
ipset add localnetwork 192.168.0.133/32
ipset add localnetwork 192.168.0.134/32
ipset add localnetwork 192.168.0.135/32
ipset add localnetwork 192.168.0.137/32
ipset add localnetwork 192.168.0.138/32
ipset add localnetwork 192.168.0.139/32
ipset add localnetwork 192.168.0.140/32
ipset add localnetwork 192.168.0.141/32
ipset add localnetwork 192.168.0.142/32
ipset add localnetwork 192.168.0.143/32
ipset add localnetwork 192.168.0.144/32
ipset add localnetwork 192.168.0.145/32
ipset add localnetwork 192.168.0.146/32
ipset add localnetwork 192.168.0.147/32
ipset add localnetwork 192.168.0.148/32
ipset add localnetwork 192.168.0.149/32
ipset add localnetwork 192.168.0.150/32
ipset add localnetwork 192.168.0.151/32
ipset add localnetwork 192.168.0.152/32
ipset add localnetwork 192.168.0.153/32
ipset add localnetwork 192.168.0.154/32
ipset add localnetwork 192.168.0.155/32
ipset add localnetwork 192.168.0.156/32
ipset add localnetwork 192.168.0.157/32
ipset add localnetwork 192.168.0.158/32
ipset add localnetwork 192.168.0.159/32
ipset add localnetwork 192.168.0.160/32
ipset add localnetwork 192.168.0.161/32
ipset add localnetwork 192.168.0.162/32
ipset add localnetwork 192.168.0.163/32
ipset add localnetwork 192.168.0.164/32
ipset add localnetwork 192.168.0.165/32
ipset add localnetwork 192.168.0.166/32
ipset add localnetwork 192.168.0.167/32
ipset add localnetwork 192.168.0.168/32
ipset add localnetwork 192.168.0.169/32
ipset add localnetwork 192.168.0.170/32
ipset add localnetwork 192.168.0.171/32
ipset add localnetwork 192.168.0.172/32
ipset add localnetwork 192.168.0.173/32
ipset add localnetwork 192.168.0.174/32
ipset add localnetwork 192.168.0.175/32
ipset add localnetwork 192.168.0.176/32
ipset add localnetwork 192.168.0.177/32
ipset add localnetwork 192.168.0.178/32
ipset add localnetwork 192.168.0.179/32
ipset add localnetwork 192.168.0.180/32
ipset add localnetwork 192.168.0.181/32
ipset add localnetwork 192.168.0.182/32
ipset add localnetwork 192.168.0.183/32
ipset add localnetwork 192.168.0.184/32
ipset add localnetwork 192.168.0.185/32
ipset add localnetwork 192.168.0.186/32
ipset add localnetwork 192.168.0.187/32
ipset add localnetwork 192.168.0.188/32
ipset add localnetwork 192.168.0.189/32
ipset add localnetwork 192.168.0.190/32
ipset add localnetwork 192.168.0.191/32
ipset add localnetwork 192.168.0.192/32
ipset add localnetwork 192.168.0.193/32
ipset add localnetwork 192.168.0.194/32
ipset add localnetwork 192.168.0.195/32
ipset add localnetwork 192.168.0.196/32
ipset add localnetwork 192.168.0.197/32
ipset add localnetwork 192.168.0.198/32
ipset add localnetwork 192.168.0.199/32
ipset add localnetwork 192.168.0.200/32
ipset add localnetwork 192.168.0.201/32
ipset add localnetwork 192.168.0.202/32
ipset add localnetwork 192.168.0.203/32
ipset add localnetwork 192.168.0.204/32
ipset add localnetwork 192.168.0.205/32
ipset add localnetwork 192.168.0.206/32
ipset add localnetwork 192.168.0.207/32
ipset add localnetwork 192.168.0.208/32
ipset add localnetwork 192.168.0.209/32
ipset add localnetwork 192.168.0.210/32
ipset add localnetwork 192.168.0.211/32
ipset add localnetwork 192.168.0.212/32
ipset add localnetwork 192.168.0.213/32
ipset add localnetwork 192.168.0.214/32
ipset add localnetwork 192.168.0.215/32
ipset add localnetwork 192.168.0.216/32
ipset add localnetwork 192.168.0.217/32
ipset add localnetwork 192.168.0.218/32
ipset add localnetwork 192.168.0.219/32
ipset add localnetwork 192.168.0.220/32
ipset add localnetwork 192.168.0.221/32
ipset add localnetwork 192.168.0.222/32
ipset add localnetwork 192.168.0.223/32
ipset add localnetwork 192.168.0.224/32
ipset add localnetwork 192.168.0.225/32
ipset add localnetwork 192.168.0.226/32
ipset add localnetwork 192.168.0.227/32
ipset add localnetwork 192.168.0.228/32
ipset add localnetwork 192.168.0.229/32
ipset add localnetwork 192.168.0.230/32
ipset add localnetwork 192.168.0.231/32
ipset add localnetwork 192.168.0.232/32
ipset add localnetwork 192.168.0.233/32
ipset add localnetwork 192.168.0.234/32
ipset add localnetwork 192.168.0.235/32
ipset add localnetwork 192.168.0.236/32
ipset add localnetwork 192.168.0.237/32
ipset add localnetwork 192.168.0.238/32
ipset add localnetwork 192.168.0.239/32
ipset add localnetwork 192.168.0.240/32
ipset add localnetwork 192.168.0.241/32
ipset add localnetwork 192.168.0.242/32
ipset add localnetwork 192.168.0.243/32
ipset add localnetwork 192.168.0.244/32
ipset add localnetwork 192.168.0.245/32
ipset add localnetwork 192.168.0.246/32
ipset add localnetwork 192.168.0.247/32
ipset add localnetwork 192.168.0.248/32
ipset add localnetwork 192.168.0.249/32
ipset add localnetwork 192.168.0.250/32
ipset add localnetwork 192.168.0.251/32
ipset add localnetwork 192.168.0.252/32
ipset add localnetwork 192.168.0.253/32
ipset add localnetwork 192.168.0.254/32
fangfang333 commented 2 years ago

20220514205551 还是没生效,规则是对的,在win上没问题,手机端也没问题,我直接改成10.0.0.0/32,这个不包含10.10.10.111了吧...

fangfang333 commented 2 years ago

用的redir-host模式,fake-ip也试过,全局代理也试过,协议是vmess-GRPC,没启用meta内核,no-resolve也加上去了,反复折腾都快一个月了...

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

lzm04521 commented 3 months ago

这个好像是内核的问题... 我本机tun模式将流量转向内网的虚拟机,也不行