summarylogtreecommitdiffstats
path: root/ip6tables.service
diff options
context:
space:
mode:
authoredward-p2019-03-26 11:46:58 +0800
committeredward-p2019-03-26 11:46:58 +0800
commit25558cc7a0de03c3ec46242039418621705ec90d (patch)
tree702f00453a9e6504ed8ae3c339d9064be7748e34 /ip6tables.service
downloadaur-25558cc7a0de03c3ec46242039418621705ec90d.tar.gz
initial commit
Diffstat (limited to 'ip6tables.service')
-rw-r--r--ip6tables.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/ip6tables.service b/ip6tables.service
new file mode 100644
index 00000000000..9dca615825a
--- /dev/null
+++ b/ip6tables.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=IPv6 Packet Filtering Framework
+Before=network-pre.target
+Wants=network-pre.target
+After=iptables.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ip6tables-restore /etc/iptables/ip6tables.rules
+ExecReload=/usr/bin/ip6tables-restore /etc/iptables/ip6tables.rules
+ExecStop=/usr/lib/systemd/scripts/iptables-flush 6
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target