diff --git a/firewall/ipfw.py b/firewall/ipfw.py index 4e3e8f57..79fe7c66 100644 --- a/firewall/ipfw.py +++ b/firewall/ipfw.py @@ -52,8 +52,8 @@ class Ipfw(Firewall): def banIP(self, ip): """ Returns query to ban IP. """ - self.crtRuleNbr = self.crtRuleNbr + 1 query = "ipfw -q add "+`self.crtRuleNbr`+" deny ip from "+ip+" to any" + self.crtRuleNbr = self.crtRuleNbr + 1 return query def unBanIP(self, ip):