Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relay/Send through NAT in Python

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? :)

like image 613
wishi Avatar asked Nov 01 '10 10:11

wishi


1 Answers

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
like image 185
ssokolow Avatar answered Sep 30 '22 12:09

ssokolow