2014-11-01 11:33:56 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Restore ip6tables firewall rules
|
|
|
|
# if both are queued for some reason, don't store before restoring :)
|
|
|
|
Before=ip6tables-store.service
|
|
|
|
# sounds reasonable to have firewall up before any of the services go up
|
2019-07-18 19:03:04 +02:00
|
|
|
Before=network-pre.target
|
|
|
|
Wants=network-pre.target
|
2014-11-01 11:33:56 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2019-07-18 19:03:04 +02:00
|
|
|
ExecStart=/sbin/ip6tables-restore -w -- /var/lib/ip6tables/rules-save
|
2014-11-01 11:33:56 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=basic.target
|