Remote ssh connection... how to pass through NAT

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
mrpaulo
Posts: 16
Joined: 2007/06/10 14:18:50

Remote ssh connection... how to pass through NAT

Post by mrpaulo » 2008/10/17 18:47:00

Hi guys !

I have one server running Centos 4 (minimal installation) on client location. This server, needs to be often checked for file system (logs, etc) and some services such as smb, httpd, ftp.. etc. My question is...

1 - how can I connect into this server if it is behind a NAT ?
2 - Do I need any other application in order to help me out with this ?

They have such ADSL modem running there.

Server IP: 10.0.12.1
IP: 200.210.x.x (no randon)
Firewalled: Yes. (I am able to open TCP ports there)

Thanks

:-)

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Remote ssh connection... how to pass through NAT

Post by gerald_clark » 2008/10/17 19:01:57

You need to forward the SSH port to your machine.
You connect to your public internet address.
The connection is forwarded to your private address.

mrpaulo
Posts: 16
Joined: 2007/06/10 14:18:50

Re: Remote ssh connection... how to pass through NAT

Post by mrpaulo » 2008/10/19 22:57:42

Thanks man !!!

Could you explain me how do I do this ?

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Remote ssh connection... how to pass through NAT

Post by toracat » 2008/10/20 00:18:53

You (or they) need to access the ADSL modem's configuration. Many of them allow this through a browser. Then try finding the "port forwarding" section in the menu. Edit the setup to allow inward traffic to port 22 and forward it to the server's IP. Some modems let you assign the forwarding port to something different. For example, you can open port 30000 and forward it to port 22 of the server. This would be good from the security point of view. Of course, you can change the default port 22 on the server to something else for that matter.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Remote ssh connection... how to pass through NAT

Post by gerald_clark » 2008/10/20 13:50:56

Some modems call them 'pin holes'.

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Remote ssh connection... how to pass through NAT

Post by toracat » 2008/10/20 15:39:47

Yet some other modems call them "virtual server" ...

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Remote ssh connection... how to pass through NAT

Post by AlanBartlett » 2008/10/20 15:59:28

Having relatively recently gone through a similar sort of process, I'll say that your starting point [i]must[/i] be a copy of the correct documentation for the router/modem. Other than that, a clear head and, before you start, a saved copy of the router/modem's configuration is all that should be necessary.

Post Reply

Return to “CentOS 4 - Server Support”