admin cloud-section (root) initial commit
c29b888 8 years ago
1 contributor
10 lines | 0.312kb
[Unit]
Description=Manage firewall stop/start
#After=fail2ban.service

[Service]
ExecStart=/usr/bin/awk '!/^\s*(#.*|$)/{print $0; system("/sbin/iptables " $0)}' /root/iptables.rules
ExecStop=/usr/bin/awk '!/^\s*(#.*|$)/{system("/sbin/iptables " $0)}' /root/iptables.norules

[Install]
WantedBy=multi-user.target