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

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jan 29 13:18:09 EST 2005


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





------- Additional Comments From djm at mindrot.org  2005-01-29 13:18 -------
(From update of attachment 784)
>Index: ssh.c
>===================================================================
>RCS file: /cvs/src/usr.bin/ssh/ssh.c,v
>retrieving revision 1.230
>diff -u -p -r1.230 ssh.c
>--- ssh.c	7 Nov 2004 17:57:30 -0000	1.230
>+++ ssh.c	24 Jan 2005 06:15:41 -0000

...

>@@ -845,14 +866,19 @@ ssh_init_forwarding(void)
> 
> 	/* Initiate remote TCP/IP port forwardings. */
> 	for (i = 0; i < options.num_remote_forwards; i++) {
>-		debug("Connections to remote port %d forwarded to local address %.200s:%d",
>-		    options.remote_forwards[i].port,
>-		    options.remote_forwards[i].host,
>-		    options.remote_forwards[i].host_port);
>+		listen_host = options.remote_forwards[i].listen_host;
>+		if (listen_host && listen_host[0] == '\0' && !options.gateway_ports)
>+			listen_host = NULL;

This check looks bogus: it is trying to apply the client's gateway_ports
setting to remote forward sent to the server. I think it should be removed,
right?




------- 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