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 · 1 comment
Open

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

test-black opened this issue Jul 22, 2021 · 1 comment

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 方案。

@wangyu-
Copy link
Owner

wangyu- commented Jun 13, 2024

tinyfecVPN只是提供个虚拟的link,本身不会影响nat

nat类型是b,理论上用其他vpn也不会有区别。 而且vpn加不加udp2raw也不会有区别。

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

2 participants