summaryrefslogtreecommitdiff
blob: 9d568d78b309ee217def960603fb3f4f4c6e2dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Restore iptables firewall rules
# if both are queued for some reason, don't store before restoring :)
Before=iptables-store.service
# sounds reasonable to have firewall up before any of the services go up
Before=network.target
Conflicts=shutdown.target

[Service]
Type=oneshot
ExecStart=/sbin/iptables-restore /var/lib/iptables/rules-save

[Install]
WantedBy=basic.target