summarylogtreecommitdiffstats
path: root/iptables.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 /iptables.service
downloadaur-25558cc7a0de03c3ec46242039418621705ec90d.tar.gz
initial commit
Diffstat (limited to 'iptables.service')
-rw-r--r--iptables.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/iptables.service b/iptables.service
new file mode 100644
index 000000000000..8a7a142d3a32
--- /dev/null
+++ b/iptables.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=IPv4 Packet Filtering Framework
+Before=network-pre.target
+Wants=network-pre.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/iptables-restore /etc/iptables/iptables.rules
+ExecReload=/usr/bin/iptables-restore /etc/iptables/iptables.rules
+ExecStop=/usr/lib/systemd/scripts/iptables-flush
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target