summarylogtreecommitdiffstats
path: root/arptables.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 /arptables.service
downloadaur-25558cc7a0de03c3ec46242039418621705ec90d.tar.gz
initial commit
Diffstat (limited to 'arptables.service')
-rw-r--r--arptables.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/arptables.service b/arptables.service
new file mode 100644
index 00000000000..0e78e81d048
--- /dev/null
+++ b/arptables.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=ARP table
+Before=network-pre.target
+Wants=network-pre.target
+
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -c 'arptables-restore < /etc/arptables.conf'
+ExecReload=/bin/sh -c 'arptables-restore < /etc/arptables.conf'
+ExecStop=/bin/sh -c 'arptables-restore < /dev/null'
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target