2025-02-27 12:01:17 +01:00
|
|
|
[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
|
2025-03-03 14:42:04 +01:00
|
|
|
Conflicts=firewalld.service
|
2025-02-27 12:01:17 +01:00
|
|
|
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
|