summaryrefslogtreecommitdiff
path: root/packages/net-firewall/iptables/files/systemd/iptables.service
blob: 42dc21043eb1417ae1835e9c33fd1ba77c117c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright 2011 Vasiliy G Tolstov <v.tolstov@selfip.ru>
# Distributed under the terms of the GNU General Public License v2

[Unit]
Description=iptables
Before=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/iptables-restore -c /var/lib/iptables/rules-save
ExecStart=/sbin/ip6tables-restore -c /var/lib/ip6tables/rules-save
ExecStop=/sbin/iptables-save -c > /var/lib/iptables/rules-save
ExecStop=/sbin/ip6tables-save -c > /var/lib/ip6tables/rules-save

[Install]
WantedBy=multi-user.target