FIREWALLD.POLICY-(5)
β¨ 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 tofirewalld.policy-set-gateway(5)for the full story. π β¨
β SEE ALSO β
go read these too, they're all part of the firewalld cinematic universe:
firewall-applet(1)firewalld(1)firewall-cmd(1)firewall-config(1)firewalld.conf(5)firewalld.direct(5)firewalld.dbus(5)firewalld.icmptype(5)firewall-offline-cmd(1)firewalld.richlanguage(5)firewalld.service(5)firewalld.zone(5)firewalld.zones(5)firewalld.policy(5)firewalld.policies(5)firewalld.ipset(5)firewalld.helper(5)
π 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
- arch rolling: firewalld 2.5.2-1 Β· GPL-2.0-or-later
- nixpkgs unstable: firewalld 2.5.2
- ubuntu stonking: firewalld 2.5.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms