大佬,在 openwrt 上需要如何配置规则,我用 tcpdump 抓包发现请求能正常到 openwrt , 但是并没有转发到 tun 网卡,我添加了 Port Forward 规则了
这个是 server 端配置
phantun_server --local 10035 --remote 127.0.0.1:10025 --tun phantun
这个是客户端配置
phantun_client --tun phantun --local 127.0.0.1:10025 --remote 220.165.207.49:10035
这个是我 tcpdump 抓包的结果, 222.172.135.80 是我客户端的 ip, 220.165.207.49 是服务端 ip
14:37:29.184269 pppoe-wan In IP 222.172.135.80.17744 > 220.165.207.49.10035: Flags [S], seq 0, win 65535, options [nop,wscale 14,mss 1200], length 0
14:37:29.184479 pppoe-wan Out IP 220.165.207.49.10035 > 222.172.135.80.17744: Flags [R.], seq 0, ack 1, win 0, length 0
14:37:34.637316 pppoe-wan In IP 222.172.135.80.17790 > 220.165.207.49.10035: Flags [S], seq 0, win 65535, options [nop,wscale 14,mss 1200], length 0
14:37:34.637527 pppoe-wan Out IP 220.165.207.49.10035 > 222.172.135.80.17790: Flags [R.], seq 0, ack 1, win 0, length 0