[Bug 413] New: Port forwarding: [localhost:]localport:remotehost:remoteport

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Oct 11 17:59:31 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=413

           Summary: Port forwarding:
                    [localhost:]localport:remotehost:remoteport
           Product: Portable OpenSSH
           Version: older versions
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: ssh
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: rafal.mantiuk at bellstream.pl


At the moment ssh port forwarding can open socket for listenning only on a 
localhost or all interfaces (-g option). In case of multi-IP servers it would 
we useful if there was a way to specify exactly what interfaces/IPs ssh 
forwarding should bind to. The command line could be like:

ssh -L [localhost:]localport:remotehost:remoteport login at host

where [] - indicates optional parameter. localhost is the interface to be used 
for openning a socket (i.e. <localhost> should be passed as a 'node' parameter 
to getaddrinfo() in channel.c:channel_setup_fwd_listener). The other parameters 
are the same as in the current ssh implementation.

For example:
ssh -N -L 192.168.0.2:139:somehost:139
could be used to forward Samba packets only on the interface 192.168.0.2. 
Another interface on the same server - e.g. 192.168.0.1 - could be used to host 
local samba server.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list