From: Arne Fitzenreiter Date: Sun, 5 Oct 2014 13:12:44 +0000 (+0200) Subject: p2pblock: fix flush rules if all p2p's are allowed. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24d36c80a6ce4eef0131dbf22862fb9fbc997478;p=people%2Fms%2Fipfire-2.x.git p2pblock: fix flush rules if all p2p's are allowed. --- diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index 20f97bef0e..75a9357f64 100755 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -564,8 +564,8 @@ sub p2pblock { } close(FILE); + run("$IPTABLES -F P2PBLOCK"); if (@protocols) { - run("$IPTABLES -F P2PBLOCK"); run("$IPTABLES -A P2PBLOCK -m ipp2p @protocols -j DROP"); } }