From 0ca32f15794cea03e99928ae086e76f23f05b61c Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Wed, 11 Jan 2017 11:28:28 +0100 Subject: [PATCH] Auto restart minifirewall if present --- bkctld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bkctld b/bkctld index 653e3f2..6b987a0 100755 --- a/bkctld +++ b/bkctld @@ -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 }