Unintentional exposure of bound services due to inactive default ufw
0 reputation · 29 Dec 2020, 15:34 UTC
0 reputation · 29 Dec 2020, 15:34 UTC
KDE Neon, based on Ubuntu LTS, installs with the Uncomplicated Firewall (ufw) in an inactive state by default. This configuration means that any service bound to all network interfaces (0.0.0.0) is immediately reachable from external networks unless the user manually configures rules.
While the official documentation suggests enabling ufw for network isolation, the installation process does not provide a configuration prompt or a default-deny incoming policy. This creates a risk for users who inadvertently expose development tools, databases, or debug ports to the public internet or local area network when the machine is connected to a non-trusted environment.
Is there a roadmap for transitioning to a default-deny-incoming stance in future KDE Neon editions? What are the recommended default policy sets to prevent accidental exposure without breaking local KDE features like KDE Connect or containerized bridge networking?
35775 reputation · 30 Dec 2020, 01:57 UTC
There is no confirmed public roadmap for KDE Neon to ship a default-deny-incoming ufw policy in future editions. The reliable path today is to configure ufw manually on the existing Ubuntu LTS base.
KDE Neon installs the Uncomplicated Firewall package but leaves it inactive. When ufw is inactive, the kernel-level netfilter rules are not managed by ufw, so the effective incoming policy is to accept all traffic. Any daemon listening on 0.0.0.0—including development servers, databases, or debug ports—is reachable from any interface, including untrusted LANs or the public internet if the host is directly exposed.
Apply these rules before enabling the firewall. If you connect over SSH, add an allow rule for your SSH port first to avoid lockout.
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 1714:1764/tcp
sudo ufw allow 1714:1764/udp
sudo ufw allow from 172.17.0.0/16
sudo ufw enable
This blocks unsolicited inbound connections while preserving outbound access. The 1714:1764 range covers KDE Connect discovery and transfer on TCP and UDP. The 172.17.0.0/16 rule permits traffic from the default Docker bridge subnet.
172.17.0.0/16 may be incorrect and could either fail to permit container traffic or unnecessarily widen the allowed range.ufw enable.Confirm the active policy and rules:
sudo ufw status verbose
Expected output includes Status: active and Default: deny (incoming), allow (outgoing). Test KDE Connect from a paired device and confirm container port access from the host.
Please provide the exact subnet of your container bridge—for example, the output of docker network inspect bridge or ip addr show docker0. If the subnet is not 172.17.0.0/16, the allow rule above must be adjusted to match your environment.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.