citadel/meta-citadel/recipes-citadel/bbappends/iptables/iptables.service

20 lines
448 B
SYSTEMD
Raw Normal View History

2020-11-29 18:35:52 -05:00
[Unit]
Description=IPv4 Packet Filtering Framework
Before=network-pre.target
Wants=network-pre.target
[Service]
Type=oneshot
ExecStart=@SBINDIR@/iptables-restore -w -- @RULESDIR@/iptables.rules
ExecReload=@SBINDIR@/iptables-restore -w -- @RULESDIR@/iptables.rules
ExecStopPost=-/sbin/iptables -P INPUT ACCEPT
ExecStopPost=-/sbin/iptables -P OUTPUT ACCEPT
ExecStopPost=/sbin/iptables -F
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target