SSH to a box behind NAT
I want to be able to SSH to my linux boxes at home from anywhere. Problem is, my PCs are behind a NAT router. How do I achieve this?
|
When you mention nat router is it a one of those cable/dsl routers from the store or is it a linux machine you built as a firewall?
Brian1 |
WOW. 4 minute response time! :)
It is a WRT54G Linksys Wireless Router. I am guessing its One to One, though I am not too familiar with the concept. |
Never configured one of those but when you enter the configuration settings through your web browser there should be an option to port forward and external port. What it amounts to is you will use your external wan port ip to connect to from the outside. When you have say port 22 forward to and internal machine then it will directly to that machine. It is best to have all lan machines set as static IP's.
Hope this helps Brian |
Connecting to the router using a cable (not wireless), you can configure it through the web browser. The IP of the router is 192.168.1.1 by default (the same as the gateway address).
There will be a username/password dialog. The default is no username and "admin" as the password. From the web interface, you can forward port 22 to the ip address of the computer you want assigned to this port. |
All times are GMT -5. The time now is 05:25 AM. |