summaryrefslogtreecommitdiff
path: root/net-firewall/nftables/files/systemd/nftables-restore.service
blob: 4b68b0a5b09ee4aee601cf9d03cf0a658fe1cb7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Store and restore nftables firewall rules
ConditionPathExists=/var/lib/nftables/rules-save
Before=network-pre.target
Wants=network-pre.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/libexec/nftables/nftables.sh load /var/lib/nftables/rules-save
ExecStop=/usr/libexec/nftables/nftables.sh store /var/lib/nftables/rules-save

[Install]
WantedBy=basic.target