[Bug 1000] LocalForward, RemoteForward directives failed with bind_address

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Mar 15 22:31:49 EST 2005


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

           Summary: LocalForward,RemoteForward directives failed with
                    bind_address
           Product: Portable OpenSSH
           Version: 4.0p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: tryponraj at gmail.com


It seams there is a problem in "LocalForward,RemoteForward directives with 
bind_address". 

ssh expects the argument and source details as follows.
-o "LocalForward      port      [bind_address:]host:hostport ".

But in the coding bindaddress and port are interchanged in the assignment the 
file readconf.c
 
1111                  fwd->listen_host = xstrdup(cleanhostname(fwdarg[0]));
1112                  fwd->listen_port = a2port(fwdarg[1]);

Sample run : 
ssh -N -vvv -o "LocalForward 2000 172.16.1.182:172.16.1.165:22" localhost

 
Where 
fwdarg[0]= 2000
fwdarg[1]= 172.16.1.182
fwdarg[2]= 172.16.1.165
fwdarg[3]= 22.



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




More information about the openssh-bugs mailing list