/dev/null
07-24-2004, 10:09 PM
I have a remote email server that we'd like to ssh tunnel to. We want all
110 and 25 traffic to go across secured.
We have a local linux box with a LAN IP of 192.168.1.1, the remote email
server is also linux. I'd like to have our mail clients set up to access
192.168.1.1 which would then securely forward the traffic to the external
mail server like this:
internal box -> 192.168.1.1:7025 -> mail.server.com:25
I thought this command would do it (on the 192.168.1.1 box):
ssh -f -N -L7025:192.168.1.1:25 mail.server.com
but when I do a `netstat -nl` I see that ssh is binding to 127.0.0.1:7025.
No matter what I put in as the second parameter for -L I can't get it to
listen to any other ip than localhost.
What gives? Shouldn't this work? Or will I have to netcat 192.168.1.1:7025
to localhost:7025?
Thanks!
110 and 25 traffic to go across secured.
We have a local linux box with a LAN IP of 192.168.1.1, the remote email
server is also linux. I'd like to have our mail clients set up to access
192.168.1.1 which would then securely forward the traffic to the external
mail server like this:
internal box -> 192.168.1.1:7025 -> mail.server.com:25
I thought this command would do it (on the 192.168.1.1 box):
ssh -f -N -L7025:192.168.1.1:25 mail.server.com
but when I do a `netstat -nl` I see that ssh is binding to 127.0.0.1:7025.
No matter what I put in as the second parameter for -L I can't get it to
listen to any other ip than localhost.
What gives? Shouldn't this work? Or will I have to netcat 192.168.1.1:7025
to localhost:7025?
Thanks!