Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

虚拟机透明代理的 NAT 问题 #100

Open
test-black opened this issue Jul 22, 2021 · 0 comments
Open

虚拟机透明代理的 NAT 问题 #100

test-black opened this issue Jul 22, 2021 · 0 comments

Comments

@test-black
Copy link

test-black commented Jul 22, 2021

VPS:
阿里云轻量服务器,已经打上 Fullcone 补丁
snipaste_20210722_212017
#配置 SNAT 部分改为
iptables -t nat -A POSTROUTING -s 10.222.0.0/16 ! -d 10.222.0.0/16 -j FULLCONENAT

虚拟机:
有线桥接模式,已根据 Wiki 配置好,能互相 ping 通
#配置 SNAT 部分改为
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o tun100 -j FULLCONENAT

存在问题:
Nintendo Switch 将网关设置成虚拟机 IP 后,网络测试结果为VPS IP,但 NAT 类型没有提升到 A。
snipaste_20210722_212227

ss + iptables tproxy 方案无 NAT 问题,想尝试一下 VPN 方案。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant