Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I make a VPN connection to a server (say myvpn.com; assume this server is not behind any router/firewall) via a TUN device and open a port (say 5555), will someone else be able to connect to me via myvpn.com:5555? If not, is there a tunneling software that does exactly this in a transparent manner? i.e. run any TCP/UDP-based server instance behind a router without NAT using another remote server.

share|improve this question
up vote 1 down vote accepted

I'm not sure I understood the idea correctly, but if you want clients connecting to myvpn.com:5555 actually get connected to your host, you can try SSH port forwarding (-L option):

-L 5555:myvpn.com:5555
share|improve this answer
1  
The proper argument seems to be ssh -R x.x.x.x:3000:localhost:3000 your.remote.machine. Thanks anyways. (bbrinck.com/post/2318562750/…) – JosephH Nov 27 '12 at 10:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .