diff options
Diffstat (limited to 'net-firewall/iptables/files/systemd/iptables-store.service')
-rw-r--r-- | net-firewall/iptables/files/systemd/iptables-store.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-firewall/iptables/files/systemd/iptables-store.service b/net-firewall/iptables/files/systemd/iptables-store.service new file mode 100644 index 0000000..aa16e75 --- /dev/null +++ b/net-firewall/iptables/files/systemd/iptables-store.service @@ -0,0 +1,11 @@ +[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 |