Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Port forwarding, multiple IP
April 24, 2004, 8:12 am
rate this thread
home but have had some problems with the -b option.
I have a server with multiple RIP addresses & services already running
The map server is bound to 10.0.0.4.
What I want though is to tunnel my work map connection into my server
and bind it to 10.0.0.5 and have it accessible on the local lan.
I have tried the following command line:
ssh -b 10.0.0.5 -L 143:imapserver:143 -fgN username@server
But it still tries to bind to all interfaces, this results in a error
that it cannot bind to that address.
Am I doing this correctly or is my understanding of the -b option incorrect?
It also works fine when I shutdown the locally running map server.
Is there a way for this to work or will I need to use a different local
port and some iptables trickery.
- Richard E. Silverman
April 24, 2004, 4:15 pm
Re: Port forwarding, multiple IP
You did not say what SSH software you're using; I will assume the current
OpenSSH. The -b option affects the source socket of the SSH connection;
it has nothing to do with how the listening sockets for -L are bound.
There are only two options: all addresses (-g on) or loopback only (-g
The ssh.com client has the option you're looking for:
ssh -L address:port:address:port ...
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum