# -*- coding: utf-8; mode: python -*- info["owner"] = "root" info["group"] = "root" info["mode"] = 0644 include("ip") import random random.seed(admip()) header("Régénération du pare-feu") min=random.randint(0,59) @# Regénération des règles MAC-IP du firewall out("%s 1 * * * root /usr/scripts/gestion/gen_confs/firewall4/firewall4.py test_mac_ip > /dev/null" % (min,)) @# Régénération des blacklists du firewall out("%s 2 * * * root /usr/scripts/gestion/gen_confs/firewall4/firewall4.py blacklists > /dev/null" % (min,)) if has("odlyd"): @# Base pour redonner un accès temporairement aux non réadhérents @30 * * * * root /sbin/ipset flush CONFIRMATION