]> git.ipfire.org Git - thirdparty/nftables.git/commit
tools: add a systemd unit for static rulesets
authorJan Engelhardt <jengelh@inai.de>
Thu, 17 Apr 2025 14:48:33 +0000 (16:48 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 20 Aug 2025 12:52:31 +0000 (14:52 +0200)
commitc4b17cf8305108f91d8e63880317a59e8e806c80
treea8414b1c623bd14264c0d8d5a0151826da1c6440
parentf8701ae760c9d188dec3cda92efa61a9c32ac823
tools: add a systemd unit for static rulesets

There is a customer request (bugreport) for wanting to trivially load a ruleset
from a well-known location on boot, forwarded to me by M. Gerstner. A systemd
service unit is hereby added to provide that functionality. This is based on
various distributions attempting to do same, for example,

https://src.fedoraproject.org/rpms/nftables/tree/rawhide
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/nftables/nftables.initd
https://gitlab.archlinux.org/archlinux/packaging/packages/nftables
Acked-by: Eric Garver <eric@garver.life>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
INSTALL
Makefile.am
configure.ac
files/nftables/main.nft [new file with mode: 0644]
tools/nftables.service.8 [new file with mode: 0644]
tools/nftables.service.in [new file with mode: 0644]