开发者

Relay/Send through NAT in Python

开发者 https://www.devze.com 2023-01-23 11:45 出处:网络
I\'m looking for a solution to exchange data (protocols build on TCP) between NAT separated endpoints - more or less directly.

I'm looking for a solution to exchange data (protocols build on TCP) between NAT separated endpoints - more or less directly.

  • I can setup a relay service for example -开发者_如何学运维 which is what I have in mind. However I want to route traffic without losing too much performance.
  • or I can build a VPN with a central VPN server

Are there optimised libraries in Python to allow me forwarding and building a relay server - for example. Or is there something more elegant that doesn't even require a node in the middle? :)


I'm not sure about Python implementations, but you may want to look at Samy Kamkar's example implementations of mechanisms for relay-free NAT traversal when both endpoints are NATed. (and the papers he references)

  • pwnat
  • chownat
  • NAT Pinning
0

精彩评论

暂无评论...
验证码 换一张
取 消