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

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

Re-Bans known IPs.
      TODO: implement "failures" and "failtime"

Definition at line 113 of file firewall.py.

00113                             :
            """ Re-Bans known IPs.
                  TODO: implement "failures" and "failtime"
            """
            for ip in self.banList:
                  aInfo = {"ip": ip,
                               "bantime":self.banList[ip]}
                  logSys.warn("%s: ReBan "%self.section + ip)
                  # next piece is similar to the on in addBanIp
                  # so might be one more function will not hurt
                  self.runCheck(debug)
                  executeCmd(self.banIP(aInfo), debug)
      
      def inBanList(self, ip):


Generated by  Doxygen 1.6.0   Back to index