14.17.32
Port Forwarding from Remote Computer to Multiple IPs
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@server.com -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@server.com -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?
Views: 8393 | Added by: Siegh_Wahrhreit | Rating: 0.0/0
Total comments: 0
Name *:
Email *:
Code *:
close