gobby only listens for ipv6 connections

Bug #313393 reported by marmuta on 2009-01-03
2
Affects Status Importance Assigned to Milestone
gobby (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: gobby

Ubuntu Jaunty Alpha2
linux-image 2.6.28.4.4
gobby 0.4.8-1

With ipv6 enabled Gobby listens only on the unspecified ip6 address ::.
It becomes inaccessible over ip4 and there appears to be no way to manually change the interface it binds to.

This is similar to vinos bug #196675.

TEST CASE:
$ gobby
press button "Create Session"
$ sudo netstat -taupn | grep gobby
tcp6 0 0 :::6522 :::* LISTEN 6561/gobby

I expected it to be accessible for both ip6 and ip4 or allow to specify the listening address manually.
Instead it forceas ip6 access only.

Armin Burgmeier (arbu) wrote :

I just fixed this upstream: http://git.0x539.de/?p=net6.git;a=commit;h=04ede417257b3201b68b683d13a69e07f8401eb8

Until this hits Ubuntu, you can probably set /proc/sys/net/ipv6/bindv6only to 0 to get IPv4 connectivity. (This seems to be the default on my machine, by the way, which is why I didn't notice this bug myself).

marmuta (marmuta) wrote :

Wow, that was lightning fast, thank you for the fix!

The workaround looked promising but bindv6only=0 is the default here too.
Changing it made no difference for gobby/vino:

# sysctl net.ipv6.bindv6only=0
net.ipv6.bindv6only = 0
# sysctl net.ipv6.bindv6only=1
net.ipv6.bindv6only = 1
root@dingsdale:~# gobby&
[1] 11902
# netstat -taupn | grep gobby
tcp6 0 0 :::6522 :::* LISTEN 11902/gobby
# sysctl net.ipv6.bindv6only=0
net.ipv6.bindv6only = 0
[1]+ Done gobby
# gobby&
[1] 12134
# netstat -taupn | grep gobby
tcp6 0 0 :::6522 :::* LISTEN 12134/gobby

Armin Burgmeier (arbu) wrote :

Have you tried connecting with IPv4 nevertheless? I also see only the IPv6 listening socket in netstat, but can connect on both IPv4 and IPv6.

marmuta (marmuta) wrote :

You are right, it does work!

# nmap localhost -p6522 | grep open
6522/tcp open unknown

Man, I was blindly trusting netstat/lsof, guess I've learned something today.

Thanks for fixing it anyway, it might save someone from the same confusion.

Philipp Kern (pkern) wrote :

Will be fixed soonish in Jaunty.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gobby - 0.4.9-1

---------------
gobby (0.4.9-1) unstable; urgency=low

  * New upstream release
  * Add a build-dependency on intltool which is now used to translate
    the desktop file.
  * Tighten the build-dependency on net6 to get newer templates.
    (LP: #313393)

 -- Philipp Kern <email address hidden> Mon, 12 Jan 2009 11:50:12 +0000

Changed in gobby:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers