v2ray透明代理后加一个路由器 电脑连上路由器就不能上网了 直连透明代理网关正常 #3113
Unanswered
liuhailong101
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我用openwrt 启动v2ray透明代理 电脑直连openwrt软路由可以正常上网 但是 后面接一个路由器 我电脑再连接路由器就不能正常上网了 有谁知道怎么配置吗 :以下是我的iptables配置
ip rule add fwmark 1 table 100
ip route add local 0.0.0.0/0 dev lo table 100
iptables -t mangle -N XRAY
iptables -t mangle -A XRAY ! -s 192.168.6.0/24 -j RETURN
iptables -t mangle -A XRAY -p tcp -j TPROXY --on-port 12345 --tproxy-mark 1
iptables -t mangle -A XRAY -p udp -j TPROXY --on-port 12345 --tproxy-mark 1
iptables -t mangle -A PREROUTING -j XRAY
Beta Was this translation helpful? Give feedback.
All reactions