I would like to create a port forward to direct a port from one box to another. But, I want others on my network to be able to use the tunnel on my box. SSH is currently binding the port forward to localhost. How can I fix this using CentOS 4 (openssh 3.9)
Here is the the tunnel that currently works (but only on localhost)
Code:
ssh -f -q -N -L80:remotewebserver:80 user@remote
In BSD I can place a bind host in addition to the bind port
-L
localIP:80:remotewebserver:80
I looked at the man page and saw that there is a bind address flag '-b' but I cannot get that to work.
(Yes, I am doing this as root)
ssh -f -q -N -b localip -L80:remotewebserver:80 user@remote
(still only binds to localhost).