paulbsd-salt/states/iptables/iptables.service.j2
2020-07-10 00:58:55 +02:00

14 lines
339 B
Django/Jinja

[Unit]
Description=Iptables firewall rules
Documentation=man:iptables(8)
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c "/sbin/iptables-service start"
ExecReload=/bin/bash -c "/sbin/iptables-service restart"
ExecStop=/bin/bash -c "/sbin/iptables-service stop"
StandardOutput=syslog
[Install]
WantedBy=multi-user.target