ubnt-router-shadowsocks
ubnt-router-shadowsocks copied to clipboard
回国规则
如果想用这个回国 是不是改动这些就可以了?
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
将逻辑顺序颠倒下,应该是 match set 到 chnlist 的走你的 proxy 并且放在顺序的前面,非 chnlist 的 return 掉。
谢谢回复 应该是这样修改吗
` # 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`