mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2026-02-22 01:18:07 +01:00
1.8 KiB
1.8 KiB
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 don’t 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=ssh --permanent
sudo firewall-cmd --add-service=mosh --permanent
sudo firewall-cmd --add-service=ntp --permanent
sudo firewall-cmd --add-service=syncthing --permanent- I trust Chrony (ntp) to not allow it to be used from outside of LAN
as
firewalldis apparently not designed with limiting source addresses in mind. syncthingis the client, not to be confused withsyncthing-guiorsyncthing-relay.
Ports
sudo firewall-cmd --permanent --add-port=9001/udp
sudo firewall-cmd --permanent --add-port=6771/udp9001/udpis Yggdrasil automatic peering, although link-local and unlikely to be recognised by predefined rules.6771/udpis Bittorrent Local Peer Discovery