From 24d36c80a6ce4eef0131dbf22862fb9fbc997478 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 5 Oct 2014 15:12:44 +0200 Subject: [PATCH] p2pblock: fix flush rules if all p2p's are allowed. --- config/firewall/rules.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } } -- 2.39.5