aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2015-04-22 00:37:17 +0100
committerStuart Shelton <stuart@shelton.me>2015-04-22 00:37:17 +0100
commit25f26e00099f5475672dddb6658926265276a7a7 (patch)
tree47eb04d1041553d49ae5f6b0bbb1a886d238f806 /net-firewall/iptables-nftables/files/systemd/ip6tables-store.service
parentMove app-admin/eselect-php to app-eselect/eselect-php, add app-eselect/eselec... (diff)
downloadsrcshelton-25f26e00099f5475672dddb6658926265276a7a7.tar.gz
srcshelton-25f26e00099f5475672dddb6658926265276a7a7.tar.bz2
srcshelton-25f26e00099f5475672dddb6658926265276a7a7.zip
Move net-firewall/iptables-nftables-9999 to net-firewall/iptables-nftables-1.4.21-r1, add net-firewall/iptables-9999
Diffstat (limited to 'net-firewall/iptables-nftables/files/systemd/ip6tables-store.service')
-rw-r--r--net-firewall/iptables-nftables/files/systemd/ip6tables-store.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-firewall/iptables-nftables/files/systemd/ip6tables-store.service b/net-firewall/iptables-nftables/files/systemd/ip6tables-store.service
new file mode 100644
index 00000000..99753783
--- /dev/null
+++ b/net-firewall/iptables-nftables/files/systemd/ip6tables-store.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Store ip6tables firewall rules
+Before=shutdown.target
+DefaultDependencies=No
+
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -c "/sbin/ip6tables-save --counters > /var/lib/ip6tables/rules-save"
+
+[Install]
+WantedBy=shutdown.target