Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.