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
  • My home connection is part of a large NAT, outside my control.
  • Inside my home, my router has a NAT, under my control.
  • I control a public facing Linux VPS with one IP address, outside my home network.

Ideally, what I'd like to do is set something up so that I connect my home computer to my VPS, and after that port X on my VPS leads to port Y on my home computer, for the purposes of running a game server of a game that does not run under Linux. Is this possible?

share|improve this question
up vote 2 down vote accepted

That would only be possible with some proxy software, and a VPN or SSH tunnel. I think you would find the latency and overhead just about impossible to deal with.

Basically, you would SSH to your VPS server in its datacenter, then tell it to forward packets to a certain port through the SSH link to your machine there.

share|improve this answer
Is there a guide on how to do this anywhere? – Macha Jan 23 '11 at 21:06
Unix.SE provided the answer:… – Macha Mar 29 '11 at 17:26

If all traffic to your one IP address comes to your router, it may be possible to direct certain ports to the game server; it really depends on what port forwarding options your router gives you.

If you can get into the router's settings, look for 'port forwarding', 'virtual server' or 'application' configuration options. Better still, tell us the make and model of your router and someone will no doubt be able to advise.

Edited after new comment from op:

You say you control the VPS, so it gets all the traffic sent to your 1 IP address, right? You could use iptables to port forward stuff to a server on your home LAN: Also do a Web search for vps port forward

share|improve this answer
The IP address and the VPS are off in Linode's data centre. I don't have access to its router, so any forwarding needs to be done on the VPS itself. – Macha Dec 28 '10 at 21:23
Here's the problem. External hosts can not access my home LAN directly. Neither can the VPS. I was hoping for something more like the SSH solution suggested by Brian. – Macha Jan 23 '11 at 21:06

You must log in to answer this question.

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