FIREWALLD.POLICY-(5)

πŸ“¦
version 2.5.2 Β· 5 versions
, in arch rolling, nixpkgs unstable, ubuntu stonking

✨ FIREWALLD.POLICY-SETS ✨ (that's the firewalld.policy-sets(5) page, bestie πŸ’–)

okay so welcome to the policy sets page of the firewalld manual β€” this is the one that tells you what policy sets even ARE and how to turn one on. sit down, get comfy 🫢


πŸ’… NAME πŸ’…

firewalld.policy-sets β€” Policy Sets. yes that's it. that's the name. iconic.


🌸 DESCRIPTION 🌸

πŸŽ€ What Are Policy Sets? πŸŽ€

okay so picture this: a policy set is literally just a collection of policies that's meant to be your starter config for a specific use case. the manpage's own example is a home router 🏠 but like, any use case. it's the easy-peasy on-ramp: you get something that works out of the box, and then you fine tune it for your environment, your vibes, your setup. every single policy set has its own dedicated man page explaining what its whole deal is, so go read that one too.

⚠️ here's the thing that gets people: ALL policy sets that ship with firewalld are administratively disabled by default. like, all of them. so using one is a two-step dance: (1) add your interfaces to zones, and (2) remove the disable. that's it. no cap.

πŸ¦‹ Enabling a Policy Set πŸ¦‹

here's a complete example using the gateway policy set. in this scenario: eth0 is your LAN interface and eth1 is the uplink to the internet. so:

# firewall-cmd --permanent --zone internal eth0
# firewall-cmd --permanent --zone external eth1
# firewall-cmd --permanent --policy-set gateway --remove-disable
# firewall-cmd --reload

look at that. four lines. slay πŸ’… and yes, --reload at the end, don't skip her, she's the one who actually makes it real.

πŸ‘‘ Enabling Multiple Policy Sets πŸ‘‘

good news bestie: policy sets are guaranteed to interoperate. so you can absolutely enable more than one at the same time. they play nice together. no fighting. no drama. 🌈

πŸ’€ Existing Policy Sets πŸ’€

  • gateway β€” gives you basic functionality for a gateway, like a home router. head to firewalld.policy-set-gateway(5) for the full story. 🏠✨

⭐ SEE ALSO ⭐

go read these too, they're all part of the firewalld cinematic universe:


πŸ“ NOTES πŸ“

  • firewalld home page: http://firewalld.org β€” go touch grass... er, go touch the website 🧚

🫢 AUTHORS 🫢

the developers who made this happen, giving main character energy:

  • Thomas Woerner <twoerner@redhat.com> β€” Developer
  • Jiri Popelka <jpopelka@redhat.com> β€” Developer
  • Eric Garver <eric@garver.life> β€” Developer

and that's the page!! firewalld 2.5.2, the FIREWALLD.POLICY-(5) manual β€” thanks for reading, bestie, go enable a policy set responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from