-
通过公网ip访问服务器上的端口时,返回客户端的流量,总是会被tun捕获,导致无法正常访问。 有没有什么方法可以,标记这部分流量不走tun呢? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
有没有可能设置为,从外网请求过来,返回时不通过tun,只有从本机发起的请求才通过tun |
Beta Was this translation helpful? Give feedback.
-
iptables -t mangle -A PREROUTING -i ens33 -j MARK --set-mark 400 echo "200 tun_table" | sudo tee -a /etc/iproute2/rt_tables sudo ip rule add table tun_table 我尝试这样设置,但是外部连接的syn,ack,还是被tun所捕获,导致握手失败。。 |
Beta Was this translation helpful? Give feedback.
-
关闭 docker 的iptables后上述配置生效了 |
Beta Was this translation helpful? Give feedback.
关闭 docker 的iptables后上述配置生效了