Commit b83d260
feat(firewalld): configuration to open unprivileged ports by default (#719)
This PR configures firewalld to open unprivileged ports (1024-65535) by
default, matching Fedora Workstation's approach. This enables desktop
applications like LocalSend to work out of the box without requiring
manual firewall configuration.
## Changes Made
**Firewall Zone Configuration:**
- Added `FedoraWorkstation.xml` zone definition that allows TCP/UDP
ports 1024-65535
- Includes essential services: dhcpv6-client, ssh, samba-client
- Blocks privileged ports (1-1023) except for explicitly allowed
services
**System Configuration:**
- Set `FedoraWorkstation` as the default firewall zone in
`firewalld.conf`
- Added explicit firewalld package installation to ensure availability
- Enabled firewalld service to start automatically on boot
## Security Model
This maintains a secure-by-default approach while enabling desktop
functionality:
- ✅ All unprivileged ports (1024+) open for incoming connections
- ✅ Essential services (SSH, DHCP, Samba client) allowed
- ❌ Privileged ports (1-1023) blocked except for allowed services
- ❌ No changes to outgoing connection restrictions
## Benefits
Applications that will work out of the box:
- **LocalSend** - Cross-platform file sharing
- **Development servers** - Running on ports 8080, 3000, etc.
- **P2P applications** - Using dynamic high port ranges
- **Local media servers** - Network streaming applications
This brings Bluefin LTS in line with Fedora Workstation's user-friendly
firewall policy while maintaining the same security boundaries.
Fixes #715.
> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `cdn01.quay.io`
> - Triggering command: `podman build --build-arg MAJOR_VERSION=stream10
--build-arg IMAGE_NAME=bluefin --build-arg IMAGE_VENDOR=ublue-os
--build-arg ENABLE_DX=0 --build-arg ENABLE_GDX=0 --build-arg
ENABLE_HWE=0 --build-arg SHA_HEAD_SHORT=a708a00 --pull=newer --tag
bluefin:lts .` (dns block)
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this
repository's [Copilot coding agent
settings](https://github.com/ublue-os/bluefin-lts/settings/copilot/coding_agent)
(admins only)
>
> </details>
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: hanthor <[email protected]>
Co-authored-by: James Reilly <[email protected]>1 parent 4dc863a commit b83d260
File tree
4 files changed
+90
-0
lines changed- build_scripts
- system_files
- etc/firewalld
- usr/lib/firewalld/zones
4 files changed
+90
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments