Logo Search packages:      
Sourcecode: fail2ban version File versions  Download package

def firewall::firewall::Firewall::flushBanList (   self,
  debug 
)

Flushes the ban list and of course the firewall rules.
      Called when fail2ban exits.

Definition at line 152 of file firewall.py.

00152                                    :
            """ Flushes the ban list and of course the firewall rules.
                  Called when fail2ban exits.
            """
            banListTemp = self.banList.copy()
            for element in banListTemp.iteritems():
                  aInfo = {"ip": element[0],
                               "bantime": element[1],
                               "unbantime": time.time()}
                  try:
                        self.delBanIP(aInfo, debug)
                  except ExternalError:
                        # we must let it fail here in the loop, or we don't
                        # flush properly
                        pass
                  
      def banIP(self, aInfo):


Generated by  Doxygen 1.6.0   Back to index