2020-02-26 01:14:32 +01:00
|
|
|
[Unit]
|
|
|
|
Description=iptables
|
|
|
|
Before=network-pre.target
|
|
|
|
Wants=network-pre.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2020-05-24 12:24:00 +02:00
|
|
|
ExecStart=iptables-restore -c /etc/default.rules
|
|
|
|
ExecStop=iptables-save -c -f /etc/default.rules ; iptables-restore /etc/empty.rules
|
2020-02-26 01:14:32 +01:00
|
|
|
RemainAfterExit=yes
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|