]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
p2pblock: fix flush rules if all p2p's are allowed.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 5 Oct 2014 13:12:44 +0000 (15:12 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 5 Oct 2014 13:12:44 +0000 (15:12 +0200)
config/firewall/rules.pl

index 20f97bef0e8d32a8a827cb6b7da474db8c7b7600..75a9357f64bc6047a47f81ad56f9c9e46301489f 100755 (executable)
@@ -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");
        }
 }