diff --git a/radius_auth.py b/radius_auth.py index de2d91f8..60dd44db 100644 --- a/radius_auth.py +++ b/radius_auth.py @@ -53,6 +53,10 @@ def do_auth(mac): if 'bloq' in m[0].blacklist_actif(): return (-1, "Bloquage total des services pour cette machine", "") + # les gens qui doivent être isolés + if 'virus' in m[0].blacklist_actif() or 'ipv6_ra' in m[0].blacklist_actif() : + return (0, "Bad boy", "isolement") + # L'adherent ne paie pas, on le met sur le vlan radin if ((not isinstance(proprio, Club) and not proprio.adherentPayant()) or \ ('Nounou' in proprio.droits() and AddrInNet(m[0].ip(),'10.42.0.0/16'))):