https://bugzilla.mindrot.org/show_bug.cgi?id=1804

--- Comment #5 from Damien Miller <d...@mindrot.org>  ---
from sshd_config(5):

>   GatewayPorts
>           Specifies whether remote hosts are allowed to connect to ports
>           forwarded for the client.  By default, sshd(8) binds remote port
>           forwardings to the loopback address.  This prevents other remote
>           hosts from connecting to forwarded ports.  GatewayPorts can be
>           used to specify that sshd should allow remote port forwardings to
>           bind to non-loopback addresses, thus allowing other hosts to
>           connect.  The argument may be ``no'' to force remote port
>           forwardings to be available to the local host only, ``yes'' to
>           force remote port forwardings to bind to the wildcard address, or
>           ``clientspecified'' to allow the client to select the address to
>           which the forwarding is bound.  The default is ``no''.

Have you tried setting GatewayPorts=clientspecified? It does exactly
what you are asking for.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to