Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-03-2005, 10:07 AM
|
#1
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Rep:
|
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?
|
|
|
10-03-2005, 10:11 AM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
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
|
|
|
10-03-2005, 10:13 AM
|
#3
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Original Poster
Rep:
|
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.
|
|
|
10-03-2005, 11:37 AM
|
#4
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
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
|
|
|
10-04-2005, 01:33 AM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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 04:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|