Bonjour protocol doesn't work as expected when firewall is enabled

Bug #298314 reported by komputes
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
empathy (Ubuntu)
Invalid
Undecided
Unassigned
pidgin (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: pidgin

The following are local_xmpp/bonjour issues that happen when a firewall is enabled:

-file transfer not working
-not being able to message
-not being able to see peers even when connected

komputes (komputes)
description: updated
Revision history for this message
Jeff Fortin Tam (kiddo) wrote : Re: Regressions in the Bonjour protocol on Pidgin 2.5.2 (Intrepid Ibex)

I'm seeing this bug as well. Restarting pidgin on both computers was not enough, I had to disable and re-enable the bonjour account on both computers for it to work, too. Wonder if it has anything to do with the hostname.

Changed in pidgin:
status: New → Confirmed
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for reporting this to Ubuntu. As intrepid is now EOL, is this occurring with Jaunty or later?

Changed in pidgin (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
komputes (komputes) wrote :

Hi Micah, this protocols seems to have many issue if you have a firewall (ufw) enabled. If enabled on both sides, the person can be seen but no messages can be sent. Turning off the firewall on one client allows messages to go through (slow/delayed) but files are canceled automatically the second they are sent (in pidgin) and remains at 0% - waiting for remote participant (in empathy).

When firewall is disabled, protocol seems to work as expected.

Changed in pidgin (Ubuntu):
status: Incomplete → Confirmed
summary: - Regressions in the Bonjour protocol on Pidgin 2.5.2 (Intrepid Ibex)
+ Bonjour protocol doesn't work as expected when firewall is enabled
description: updated
Revision history for this message
Andrew Ivanov (aa.ivanov) wrote :
Download full text (3.4 KiB)

I saw this behavior with empathy (2.32.1) on Ubuntu 10.10 attempting to send files to empathy 2.30.3 on Ubuntu 10.04 over link-local XMPP.

The 10.04 has no firewall, the 10.10 has ufw with 5298 open (both TCP and UDP). Messaging between the two computers is OK.
To the best that can find on the net XMPP file transfers have port 8010/TCP assigned to them (https://secure.wikimedia.org/wikipedia/en/wiki/List_of_TCP_and_UDP_port_numbers , http://stackoverflow.com/questions/3452161/which-ports-does-xmpp-uses). So just in case I did open 8010/tcp on the 10.10 machine before attempting the trasfer. Nada... Nothing! After some timeout both sides canceled the transfers and blamed the other side for the failure.

Disabling the ufw firewall however did get my files through. So I captured the traffic in wireshark and it turned out that in each of my three tests my 10.10 machine was using a different port. In chronological order:
* 54737
* 40467
* 42298

I don't think I can master such a ufw rule to let empathy/telepathy send files through any port number picked up at random. So unless it's designed to require no firewalls (as it is designed to support no otr messaging), I think it either has to use the assigned port, or (better) it should allow this to be configured in some humanly way, or it should take care for opening and closing the port its dices have picked up for the transfer.

Please advise if further any details are needed. The details on the versions of related packages follow.
For the 10.10 machine:
andrew@sat11:~$ dpkg -l | grep telepathy
ii libfolks-telepathy0 0.1.17-0ubuntu2
ii libtelepathy-farsight0 0.0.14-2
ii libtelepathy-glib0 0.12.0-0ubuntu1
ii libtelepathy-logger1 0.1.5-1ubuntu1
ii python-telepathy 0.15.17-1
ii telepathy-butterfly 0.5.14-1
ii telepathy-gabble 0.10.0-1
ii telepathy-haze 0.4.0-1ubuntu0.1
ii telepathy-idle 0.1.6-1
ii telepathy-logger 0.1.5-1ubuntu1
ii telepathy-mission-control-5 1:5.6.0-1
ii telepathy-salut 0.3.12-1
ii telepathy-sofiasip 0.6.3-1
andrew@sat11:~$ dpkg -l | grep empathy
ii empathy 2.32.1-0ubuntu1
ii empathy-common 2.32.1-0ubuntu1
ii nautilus-sendto-empathy 2.32.1-0ubuntu1

For the 10.04 system:
ivanov@ivanovi:~/Плот$ dpkg -l | grep telepathy
ii libtelepathy-farsight0 0.0.13-1
ii libtelepathy-glib0 0.10.1-1ubuntu2
ii python-telepathy 0.15.17-1
ii telepathy-butterfly 0.5.11-0ubuntu1
ii telepathy-gabble 0.8.12-0ubuntu1
ii telepathy-haze 0.3.4-1
ii telepathy-idle 0.1.6-1
ii telepathy-mission-control-5 5.3.2-3
ii telepathy-salut 0.3.11-1
ii telepathy-sofiasip 0.6.2-1ubuntu1
ivanov@ivanovi:~/Плот$ dpkg -l | grep empathy
ii e...

Read more...

Revision history for this message
Bilal Shahid (s9iper1) wrote :

thank you for taking time in filing the bug to make ubutnu better.
which version of ubuntu and empathy ? are you using ?

Changed in empathy (Ubuntu):
status: New → Incomplete
Changed in empathy (Ubuntu):
status: Incomplete → Invalid
Changed in pidgin (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.