paulbsd-salt/states/old/iptables/iptables.service.j2

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