https://bugs.kde.org/show_bug.cgi?id=509189

            Bug ID: 509189
           Summary: KDEConnect does not work with firewall even though
                    correct ports are unblocked
    Classification: Applications
           Product: kdeconnect
      Version First 25.08.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: common
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

***
If you're not sure this is actually a bug, instead post about it at
https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

Hello, ever since upgrading to kdeconnect 25.08.0-2 on Arch Linux, I have been
having a weird issue with my firewall. I have unblocked the correct ports
1714-1764 as documented on the wiki; that is, I have added the kdeconnect
service to my home zone on both of my devices and made sure that the zone is
active. Port 5353 is also unblocked for mdns.

Looking at the traffic in wireshark, I am seeing kdeconnect send mdns packets
from port 5353 to seemingly random ports. These packets get filtered and the
devices fail to recognize each other. I can make it work by unblocking ports in
the 40000-50000 range, but it seems to be a bit unreliable. Everything works
perfectly if I turn off the firewall on at least one device.

STEPS TO REPRODUCE

1. sudo firewall-cmd --permanent --zone=public --add-service=kdeconnect && sudo
firewall-cmd --reload on both machines.
2. Restart both machines, launch KDEConnect. 

OBSERVED RESULT

The devices fail to see each other. On one machine, run sudo systemctl stop
firewalld. KDEConnect now works. Packets going to ports in the 40000-50000
range are blocked in wireshark.

EXPECTED RESULT

KDEConnect should work with the kdeconnect service added as per the wiki:
https://userbase.kde.org/KDEConnect#Troubleshooting

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to