bugzilla-daemon at bugzilla.mindrot.org
2010-Jun-22 13:35 UTC
[Bug 1787] New: -g flag has issues with ipv6 (Address already in use)
https://bugzilla.mindrot.org/show_bug.cgi?id=1787
Summary: -g flag has issues with ipv6 (Address already in use)
Product: Portable OpenSSH
Version: 5.3p1
Platform: amd64
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P2
Component: ssh
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: hnassrat at gmail.com
Using the -g flag, gives an error, e.g.:
hnassrat at HNASSRAT-LNX1 ~> ssh -vgL 9000:localhost:9000 hatem at nassrat
[...]
debug1: Local connections to *:9000 forwarded to remote address
localhost:9000
debug1: Local forwarding listening on 0.0.0.0 port 9000.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on :: port 9000.
bind: Address already in use
I am not sure if this issue is specific to linux and thus a bug in
linux network config, but when it bound to 0.0.0.0 it listens to all
interfaces then trying to listen to the ipv6 interface causes it to say
bind address already in use. In this case (OpenSSH_5.3p1
Debian-3ubuntu3, OpenSSL 0.9.8k 25 Mar 2009) the error is useless,
however with a machine running OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5
01 Jul 2008 it binds to ipv6 first.
In any case the workaround I used, thanks to ssh being awesome and
having cool features, is to use the command as follows:
hnassrat at HNASSRAT-LNX1 ~> ssh -4gL 9000:localhost:9000 hatem at nassrat
This maybe another side-effect, but although I specified only listen on
ipv4, i would think it will probably listen on all interfaces (thats
probably not an ssh bug though).
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jun-22 20:18 UTC
[Bug 1787] -g flag has issues with ipv6 (Address already in use)
https://bugzilla.mindrot.org/show_bug.cgi?id=1787 --- Comment #1 from Damien Miller <djm at mindrot.org> --- Created attachment 1883 --> https://bugzilla.mindrot.org/attachment.cgi?id=1883 v6only.diff Please try this patch. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Oct-12 03:27 UTC
[Bug 1787] -g flag has issues with ipv6 (Address already in use)
https://bugzilla.mindrot.org/show_bug.cgi?id=1787
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
--- Comment #2 from Damien Miller <djm at mindrot.org> 2010-10-12 14:27:56
EST ---
ping - have you had a chance to try the patch I supplied?
--
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.