summarylogtreecommitdiffstats
path: root/arptables.service
diff options
context:
space:
mode:
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 000000000000..0e78e81d048e
--- /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