LinuxQuestions.org

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

linuxLuser 07-14-2005 09:53 PM

SSH port forwarding through a firewall
 
Howdy all!

Basically I want to get through a firewall that is blocking the IRC port (6667) so that I can use IRC. I'm on an internal network and I have somebody with a static IP on the outside of the network who has given me a loggin on his computer.

My idea is simply to forward all the 6667 port traffic on my internal PC (call it 'intern') to some not-so-blocked port like 1080 through the firewall to the external PC (call it 'extern'). Then I need extern to take the 1080 traffic coming from intern and simply forward it to port 6667.

I've been trying different things with SSH and all but I don't think I understand it well enough. Is there anybody that could just help me get started with this? I feel kind of stupid for asking but I think I should just ask and let some network guru out there show his stuff.

Thanks in advance.

-- the dudemaN DavE

Matir 07-14-2005 11:29 PM

If you can get into ssh on his machine, just do this:
Code:

ssh -L6667:irc.server.of.your.choice:6667 username@hishost


All times are GMT -5. The time now is 01:30 PM.