summarylogtreecommitdiffstats
path: root/iptables.service
blob: 8a7a142d3a32cd94f30eda660ead8c426905959f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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