Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


Search this Thread
Old 05-29-2002, 02:59 PM   #1
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
SSH port forwarding

I want to get to a linux box that is behind my linux firewall, but I can't address the internal machine directly. I know it's possible to use SSH to port forward. I want the connection from the external machine to linux firewall to be encrypted, after that it doesn't need to be encrypted. I was wondering what command could do this?

Old 05-29-2002, 04:29 PM   #2
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
well, i don't know if this is what you're looking for. but i have a linux firewall running iptables, which simply forwards port 22 to whichever box i specify. the command looks something like this:

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 22 -j DNAT --to

hope this helps. :-)
Old 05-29-2002, 08:16 PM   #3
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
Thats all well and good but unfortunately I do not run iptables. (I find ipchains hard enough as it is.) Mostly because I don't feel like updating. Thanks for your reply though.

Can anyone help me accomplish my goal using SSH.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Port Forwarding wwnexc Linux - Networking 4 09-29-2005 02:26 AM
SSH Port forwarding WRSpithead Linux - Networking 1 04-18-2005 05:09 AM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 10:11 AM
Ssh port forwarding? J_Szucs Linux - Networking 1 10-29-2003 05:42 AM
Help with Port Forwarding for SSH mi6 Linux - Networking 6 07-29-2003 01:46 PM

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration