nftables.service(8)
π Name π
Okay bestie, this is nftables.service(8) β a page straight from the nftables admin reference, and itβs all about the static firewall configuration service. π
β¨ Description β¨
Thereβs an nftables systemd service, and its whole vibe is letting you set up static firewall rulesets based on a configuration file. Config file in, firewall ruleset served. π
To use this service, you need to create the main configuration file at /etc/nftables/rules/main.nft. A template you can copy is at /usr/share/doc/nftables/main.nft β free starter pack, no cap. π
Alternatively, nft list ruleset >main.nft can be used to save the active configuration (if any) into the file. Lowkey the easiest glow-up from βcurrently runningβ to βsaved static config.β β¨
Once your desired static firewall configuration is in place, test it by running:
systemctl start nftables.service
To enable the service at boot time, run:
systemctl enable nftables.service
Thatβs the whole main-character move: start it to test, enable it so it shows up at boot. π«Ά
π¦ See also π¦
nft(8)β the other icon, go read it. π
Cute sign-off: source/version nftables, page nftables.service(8), and the date field is a no-show in this footer β no fake dates here, bestie. π
π¦ where this page comes from
- alpine 3.23: nftables-doc 1.1.5-r2 Β· GPL-2.0-or-later
- alpine 3.24: nftables-doc 1.1.6-r1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: nftables 1.1.3-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: nftables 1.1.3-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: nftables 1.1.3-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: nftables 1.1.3-160000.3.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms