LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SSH port forwarding (https://www.linuxquestions.org/questions/linux-networking-3/ssh-port-forwarding-22099/)

tarballedtux 05-29-2002 01:59 PM

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

Syncrm 05-29-2002 03:29 PM

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. :-)

tarballedtux 05-29-2002 07:16 PM

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.


All times are GMT -5. The time now is 11:49 AM.