Bug 462070 - New firewall rule dialog is poorly formatted and too limiting
Summary: New firewall rule dialog is poorly formatted and too limiting
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_firewall (show other bugs)
Version: 5.24.6
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-20 17:07 UTC by Lastique
Modified: 2022-11-30 14:14 UTC (History)
5 users (show)

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


Attachments
The screenshot shows the New Firewall Rule dialog. (43.59 KB, image/png)
2022-11-20 17:07 UTC, Lastique
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lastique 2022-11-20 17:07:16 UTC
Created attachment 153907 [details]
The screenshot shows the New Firewall Rule dialog.

SUMMARY

In System Settings -> Firewall tab, the dialog that opens by pressing the Add Rule... button is not very usable. The two fields for source and destination addresses are too narrow and are not able to display a full IPv4 address, let alone IPv6. They also don't allow to enter a network mask. The port fields are also too narrow to fit port numbers beyond two digits and do not allow entering service names (e.g. ssh, http).

See the attached screenshot.

STEPS TO REPRODUCE

1. Open System Settings -> Firewall tab. Enable the firewall, if not enabled already.
2. Press Add Rule... button in the lower right.
3. Try entering a network mask 192.168.10.0/24 in the Source field.
4. Try entering a service name in the Destination port field, e.g. http.

OBSERVED RESULT

The address doesn't fit in the field. Pressing / does nothing, the field does not allow this character. The port fields do not accept non-numeric characters.

EXPECTED RESULT

The Source and Destination fields should be properly sized, at least to be able to show a full IPv4 address such as 255.255.255.255/32. The port fields next to addresses should also be wider to be able to fit all port numbers (i.e 65535).

The address fields should allow to enter an address mask in the address/width notation.

The port fields should allow service names.

SOFTWARE/OS VERSIONS

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-53-lowlatency (64-bit)
Graphics Platform: X11
Processors: 16 × 12th Gen Intel® Core™ i7-12700K
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
Comment 1 Nate Graham 2022-11-29 22:50:02 UTC
It was improved substantially in Plasma 5.26.
Comment 2 Lastique 2022-11-29 23:14:56 UTC
(In reply to Nate Graham from comment #1)
> It was improved substantially in Plasma 5.26.

Does it support subnet masks and service names?
Comment 3 Nate Graham 2022-11-30 04:12:31 UTC
Service names, yes. Address/width notation, I don't know. If upon upgrading to Plasma 5.36, you discover that it still doesn't, please file a new bug report for it. In general we need a separate bug report for each individual issue or feature request. Thanks!
Comment 4 Paul Worrall 2022-11-30 12:20:19 UTC
Address/width notation is coming in 5.27
Comment 5 Lastique 2022-11-30 14:14:21 UTC
Ok, thank you.