1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Packet Filtering Framework Before=network-pre.target Wants=network-pre.target [Service] Type=oneshot ExecStart=@SBINDIR@/iptables-restore /etc/iptables/iptables.rules ExecReload=@SBINDIR@/iptables-restore /etc/iptables/iptables.rules RemainAfterExit=yes [Install] WantedBy=multi-user.target