SHA256
1
0
forked from pool/nftables
nftables/nftables.service
Matthias Gerstner c434951062
nftables service improvements
- place example config file into /usr/share/doc/packages/nftables
- remove duplicate AssertPathExists file from service
- add conflicts towards firewalld service to avoid having both active at
  the same time
2025-03-03 14:42:04 +01:00

23 lines
582 B
Desktop File

[Unit]
Description=nftables static rule set
Documentation=file:/usr/share/doc/packages/nftables/README.SUSE
Wants=network-pre.target
Before=network-pre.target shutdown.target
Conflicts=shutdown.target
Conflicts=firewalld.service
DefaultDependencies=no
AssertPathExists=/etc/nftables/rules/main.nft
[Service]
Type=oneshot
RemainAfterExit=yes
StandardInput=null
ProtectSystem=full
ProtectHome=true
ExecStart=/usr/sbin/nft -f /etc/nftables/rules/main.nft
ExecReload=/usr/sbin/nft -f /etc/nftables/rules/main.nft
ExecStop=/usr/sbin/nft flush ruleset
[Install]
WantedBy=sysinit.target