[ILUG] external SSH to a system behind a NAT router
bigbro at skynet.ie
Fri Mar 6 18:34:06 GMT 2009
Darragh Bailey wrote:
> I recently (last night) finally got my wireless setup at home laid out
> exactly as I wanted. I won't say configured since it turned out that I
> So the only solution I can think of working in this case, is to reserve
> ip's based on mac address and setup port forwarding based on those ip's.
> Any alternative ideas? or is this pretty much the only way it can work?
> Aside from making sure that sshd on the desktop is securely setup I
> should then be done, correct?
Assuming you don't have IPv6 already (though if you had, you presumably
wouldn't be writing this mail :) ) get yourself some IPv6. You can grab
a tunnel from sixxs.net for your computer, configure it (takes all of
perhaps 10 minutes) and now you can communicate with your computer
wherever it is - behind NAT notwithstanding.
I use it to make sure my laptop has the same IPv6 address whether it's
connected at home, at work, over a 3G modem or via a wireless hotspot -
if I'm online, you can ping6/ssh/scp/rsync/whatever to
mylaptop.example.com (made up dns name) and you'll get my laptop.
Hope that helps.
More information about the ILUG