Remote port forwarding with gateway option
From: Steve Jibson (steve_at_jibson.com)
Date: 05/14/04
- Next message: zantar_at_verizon.net: "Re: Disabling Encryption and just using Port Forwarding? Can that be done?"
- Previous message: Peter Brown: "Re: Could not load program /usr/local/sbin/sshd"
- Next in thread: Kyler Laird: "Re: Remote port forwarding with gateway option"
- Reply: Kyler Laird: "Re: Remote port forwarding with gateway option"
- Reply: Darren Tucker: "Re: Remote port forwarding with gateway option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 14 May 2004 11:36:20 -0700
If I use
"ssh -L80:localhost:80 bob.remote.com"
It will forward connections to my computer on port 80 to
bob.remote.com (also port 80). Now when it binds the listening
socket, it only binds to 127.0.0.1. This means that other computers
can't connect to my computer on port 80 have their connections
forwarded to bob.remote.com.
SSH allows you to change this with the "-g" argument. By specifying
the "-g", ssh binds to all local addresses (not just 127.0.0.1).
Okay, now we get to my question:
If I use
"ssh -R80:localhost:80 bob.remote.com"
Any connections made to port 80 on bob.remote.com are forwarded back
to my computer. Once again, however, it only binds to the loopback
interface on the remote machine. What this means is frank.remote.com
cannot connect to bob.remote.com on port 80 and have his connection
forwarded to my computer.
The "-g" option seems to have no effect on remote port forwarding. Is
there a way I can get remote port forwarding to make the remote
machine "gateway" connections back to my machine?
- Next message: zantar_at_verizon.net: "Re: Disabling Encryption and just using Port Forwarding? Can that be done?"
- Previous message: Peter Brown: "Re: Could not load program /usr/local/sbin/sshd"
- Next in thread: Kyler Laird: "Re: Remote port forwarding with gateway option"
- Reply: Kyler Laird: "Re: Remote port forwarding with gateway option"
- Reply: Darren Tucker: "Re: Remote port forwarding with gateway option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|