I would like to be able to forward ports from remote computers to
different IP addresses on my ssh server.
For example,
I forward port 443 like so:
ssh user@xxxxxxxxxx -R 443:127.0.0.1:44300
and the server listens on:
tcp4 0 0 127.0.0.1.46312 *.*
LISTEN
tcp6 0 0 ::1.46312 *.*
LISTEN
If I turn gateway ports on, and forward like so:
ssh user@xxxxxxxxxx -R 443:server.com:44300
then netstat -an shows:
cp4 0 0 *.46312 *.* LISTEN
tcp6 0 0 *.46312 *.* LISTEN
I have multiple IP addresses on my server, and I'd like sshd to
listen like this:
cp4 0 0 10.0.0.1.46312 *.* LISTEN
tcp6 0 0 10.0.0.2.46312
*.* LISTEN
In other words, I'd like to have two ranges of ports, completely
separated (doubling the number of available ports for forwarding) on
two separate IPs.
Is this possible with OpenSSH?
If so, how does one configure it?