pypwnat icon indicating copy to clipboard operation
pypwnat copied to clipboard

有个问题

Open saintthor opened this issue 8 years ago • 0 comments

当两个节点都知道对方的外网 IP 之后,互发 udp,但只能发到对方的 NAT 的某个端口,而不能控制自己的 NAT 用哪个端口发出,这两个端口是怎么对上的?

例如: A 用约定的 port 2222 向 NAT_B 的 port 3333 发 udp,可是这个包是从 NAT_A 的 port 4444 发出的。同时 B 向 NAT_A 的 port 2222 发 udp(它不知道 NAT_A 把 A 的 2222 映射到 4444,无法穿透 NAT_A。同理 A 发的包也无法穿透 NAT_B。

saintthor avatar Dec 03 '17 15:12 saintthor