LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-29-2002, 01:59 PM   #1
tarballedtux
Member
 
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?

--tarballedtux
 
Old 05-29-2002, 03:29 PM   #2
Syncrm
Member
 
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 192.168.1.0:22

hope this helps. :-)
 
Old 05-29-2002, 07:16 PM   #3
tarballedtux
Member
 
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.
 
  


Reply


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 01:26 AM
SSH Port forwarding WRSpithead Linux - Networking 1 04-18-2005 04:09 AM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 09:11 AM
Ssh port forwarding? J_Szucs Linux - Networking 1 10-29-2003 04:42 AM
Help with Port Forwarding for SSH mi6 Linux - Networking 6 07-29-2003 12:46 PM


All times are GMT -5. The time now is 07:33 PM.

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