ubnt-router-shadowsocks icon indicating copy to clipboard operation
ubnt-router-shadowsocks copied to clipboard

回国规则

Open thudneraan opened this issue 6 years ago • 2 comments

如果想用这个回国 是不是改动这些就可以了? iptables -t nat -A $CHAIN_NAME -p tcp -j REDIRECT --to-ports 1080 iptables -t nat -A $CHAIN_NAME -p tcp -m set --match-set chnlist dst -j RETURN iptables -t mangle -A $CHAIN_NAME -p udp -j TPROXY --on-port 1080 --tproxy-mark 0x01/0x01 iptables -t mangle -A $CHAIN_NAME -p udp -m set --match-set chnlist dst -j RETURN

thudneraan avatar Jun 04 '19 19:06 thudneraan

将逻辑顺序颠倒下,应该是 match set 到 chnlist 的走你的 proxy 并且放在顺序的前面,非 chnlist 的 return 掉。

m2nx avatar Jun 05 '19 05:06 m2nx

谢谢回复 应该是这样修改吗

` # TCP ipset match iptables -t nat -A $CHAIN_NAME -p tcp -m set --match-set chnlist dst -j REDIRECT --to-ports 1080 # TCP redirect iptables -t nat -A $CHAIN_NAME -p tcp -j RETURN

# UDP ipset match
iptables -t mangle -A $CHAIN_NAME -p udp -m set --match-set chnlist dst -j TPROXY --on-port 1080 --tproxy-mark 0x01/0x01
iptables -t mangle -A $CHAIN_NAME -p udp -j RETURN`

thudneraan avatar Jun 06 '19 17:06 thudneraan