p2p-nat 是一个 p2p代理,提供了nat的功能,也提供了防火墙的功能,一个最简的p2p代理必须具有 锥形nat对udp通信支持的功能,并允许应用程序利用udp打洞技术建立强健的p2p连接。
loopback translation
when a host in the private domain of a nat device attempts to connect with another host behind the same nat device using the public address of the host, the nat device performs the equivalent of a "twice-nat" translation on the packet as follows. the originating host's private endpoint is translated into its assigned public endpoint, and the target host's public endpoint is translated into its private endpoint, before the packet is forwarded to the target host. we refer the above translation performed by a nat device as "loopback translation".
回环转换