Bug 483661 - Port number is shown as 0 in list of rules with firewalld backend
Summary: Port number is shown as 0 in list of rules with firewalld backend
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_firewall (show other bugs)
Version: 6.0.2
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-15 13:00 UTC by Jarno van der Kolk
Modified: 2024-03-15 13:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarno van der Kolk 2024-03-15 13:00:23 UTC
SUMMARY
When using the firewall screen in the system settings with the firewalld backend, the list of rules are shown with from and to fields. The allowed services are correctly identified, but the port is listed as (0/TCP)

STEPS TO REPRODUCE
1. Allow a service with firewalld, for example kdeconnect
2. Open the system settings and then go to firewall

OBSERVED RESULT
The service is listed as from 0.0.0.0 kdeconnect (0/TCP) to 0.0.0.0 kdeconnect (0/TCP)

EXPECTED RESULT
No port should be shown or a list of ports since firewalld services can contain multiple ports. For example, kdeconnect is 1714-1764/tcp and 1714-1764/udp

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.02
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
The list of ports in a service is obtainable through:
firewall-cmd --permanent --service kdeconnect --get-ports

I'm not sure what the best course is here. If it should show all of the ports in the service, I imagine the text field can become pretty long. Not showing the ports and just listing the service would be cleaner I guess.