summaryrefslogtreecommitdiff
path: root/net-firewall/nftables/files/systemd/nftables-load.service
blob: 149ccac2f5f0520ccc0c569a9ffdf98506d617a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Load nftables firewall rules
# if both are queued for some reason, don't store before restoring :)
Before=nftables-store.service
# sounds reasonable to have firewall up before any of the services go up
Before=network-pre.target
Wants=network-pre.target

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

[Install]
WantedBy=basic.target