bugzilla-daemon at bugzilla.mindrot.org
2016-Jun-20 13:40 UTC
[Bug 2592] New: -R bind_address not working, always bind 0.0.0.0
https://bugzilla.mindrot.org/show_bug.cgi?id=2592 Bug ID: 2592 Summary: -R bind_address not working, always bind 0.0.0.0 Product: Portable OpenSSH Version: 7.2p1 Hardware: amd64 OS: Linux Status: NEW Severity: normal Priority: P5 Component: sshd Assignee: unassigned-bugs at mindrot.org Reporter: fffilimonov at yandex.ru Hello! At server running sshd with 'GatewayPorts yes'. There is many active network interfaces: eth0 Link encap:Ethernet lo Link encap:Local Loopback tun0 Link encap:UNSPEC tun1 Link encap:UNSPEC tun2 Link encap:UNSPEC IP address at eth0 is 10.10.10.10. After connection: ./ssh 10.10.10.10 -p444 -R10.10.10.10:8081:127.0.0.1:80 I see at netstat: #netstat -nlpt | grep 8081 tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 8729/sshd tcp 0 0 :::8081 :::* LISTEN 8729/sshd #ps axuf | grep sshd root 8728 0.1 0.5 28004 2680 pts/0 S+ 16:37 0:00 \_ ./ssh 10.10.10.10 -p444 -R10.10.10.10:8081:127.0.0.1:80 root 7899 0.0 0.1 27932 972 ? Ss 14:57 0:00 /root/openssh-portable/sshd -f sshd_config root 8729 0.0 0.5 30492 2724 ? Ss 16:37 0:00 \_ sshd: root at pts/1 root 8749 0.0 0.1 103316 804 pts/1 S+ 16:37 0:00 \_ grep ssh How can I bind port at specified address while requesting remote port forwarding? -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2016-Jun-20 14:05 UTC
[Bug 2592] -R bind_address not working, always bind 0.0.0.0
https://bugzilla.mindrot.org/show_bug.cgi?id=2592 vf <fffilimonov at yandex.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #1 from vf <fffilimonov at yandex.ru> --- GatewayPorts Specifies whether remote hosts are allowed to connect to ports forwarded for the client. By default, sshd(8) binds remote port for- wardings 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?. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2018-Apr-06 02:26 UTC
[Bug 2592] -R bind_address not working, always bind 0.0.0.0
https://bugzilla.mindrot.org/show_bug.cgi?id=2592 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Damien Miller <djm at mindrot.org> --- Close all resolved bugs after release of OpenSSH 7.7. -- You are receiving this mail because: You are watching the assignee of the bug.
Possibly Parallel Threads
- bind_address ignored? as in "ssh -R [bind_address]:12491:127.0.0.1:500"
- [Bug 1077] Descriptions for "ssh -D" and DynamicForward should mention they can specify "bind_address" optionally
- [PATCH] ssh.1: Clarify remote bind_address usage
- [Bug 2324] New: remote port forward w/ empty bind_address via multiplexed connection: doc violation
- [PATCH] Allow binding to a local port (OpenSSH 5.2)