Line 0
Link Here
|
|
|
1 |
[Unit] |
2 |
Description=Restore nftables firewall rules |
3 |
# if both are queued for some reason, don't store before restoring :) |
4 |
Before=nftables-store.service |
5 |
# sounds reasonable to have firewall up before any of the services go up |
6 |
Before=network.target |
7 |
Conflicts=shutdown.target |
8 |
|
9 |
[Service] |
10 |
Type=oneshot |
11 |
ExecStart=/usr/libexec/nftables/nftables.sh load /var/lib/nftables/rules-save |
12 |
|
13 |
[Install] |
14 |
WantedBy=basic.target |