Auto restart minifirewall if present

This commit is contained in:
Victor LABORIE 2017-01-11 11:28:28 +01:00
parent 0498a2fc32
commit 0ca32f1579

3
bkctld
View file

@ -159,6 +159,9 @@ set_firewall() {
for ip in $(get_ip $jail); do
echo "/sbin/iptables -A INPUT -p tcp --sport 1024: --dport $port -s $ip -j ACCEPT #$jail" >> $FIREWALL_RULES
done
if [ -f /etc/init.d/minifirewall ]; then
/etc/init.d/minifirewall restart
fi
fi
}