mikaela.github.io/n/firewalld.md

1.4 KiB
Raw Blame History

Quick note on firewalld usage

This is practically /ufw, but fore Firewalld which Fedora comes with. The blog post also predates me having a /n directory here.

After done, run sudo firewall-cmd --reload

Zones

firewalld zones are privilege of NetworkManager users, this tends to be a systemd-networkd household. Then again I dont believe in absolutely trusted zones.

Zone would be specified by --zone=home in the commands. The other zone I could imagine using is public.

Services

sudo firewall-cmd --add-service=mosh --permanent

Ports

# TODO: Don't do this, this is a ppor example.
# firewalld surely recognises 631 as a service of some name,
# and as noted before, --zone won't work on my systems.
sudo firewall-cmd --zone=home --permanent --add-port=631/tcp
  • 631/tcp is used by cups.