From c6c1ee9147727689da2dcae12ae7533afd865ad8 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 4 Jan 2014 21:20:25 +0100 Subject: [PATCH] Add iptables systemd units --- systemd/ip6tables.service | 14 ++++++++++++++ systemd/iptables.service | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 systemd/ip6tables.service create mode 100644 systemd/iptables.service diff --git a/systemd/ip6tables.service b/systemd/ip6tables.service new file mode 100644 index 0000000..4c16a4e --- /dev/null +++ b/systemd/ip6tables.service @@ -0,0 +1,14 @@ +[Unit] +Description=ip6tables +Before=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/conf.d/ip6tables +ExecStart=/sbin/ip6tables-restore ${SAVE_RESTORE_OPTIONS} ${IP6TABLES_SAVE} +ExecStop=/sbin/ip6tables-save ${SAVE_RESTORE_OPTIONS} ${IP6TABLES_SAVE} + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/iptables.service b/systemd/iptables.service new file mode 100644 index 0000000..46f08ff --- /dev/null +++ b/systemd/iptables.service @@ -0,0 +1,13 @@ +[Unit] +Description=iptables +Before=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/conf.d/iptables +ExecStart=/sbin/iptables-restore ${SAVE_RESTORE_OPTIONS} ${IPTABLES_SAVE} +ExecStop=/sbin/iptables-save ${SAVE_RESTORE_OPTIONS} ${IPTABLES_SAVE} + +[Install] +WantedBy=multi-user.target -- 2.39.5