12 lines
240 B
SYSTEMD
12 lines
240 B
SYSTEMD
|
[Unit]
|
||
|
Description=Store iptables firewall rules
|
||
|
Before=shutdown.target
|
||
|
DefaultDependencies=No
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=/bin/sh -c "/sbin/iptables-save --counters > /var/lib/iptables/rules-save"
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=shutdown.target
|