Les machines des nounous ne sont plus privilegiees (cf reunion nounou)
darcs-hash:20071011215726-c992d-bc94fc355e70f8b3f2f642748d92551cc96cb8fe.gz
This commit is contained in:
parent
82720270ff
commit
8b0d70987f
1 changed files with 11 additions and 12 deletions
|
@ -843,19 +843,18 @@ class firewall_komaz(firewall_crans) :
|
|||
def admin_vlan(self) :
|
||||
""" Reconstruit la chaîne ADMIN_VLAN """
|
||||
iptables("-F ADMIN_VLAN")
|
||||
nounou_machines = []
|
||||
for adherent in db.search('droits=Nounou')['adherent'] :
|
||||
for machine in adherent.machines() :
|
||||
nounou_machines.append(machine.ip())
|
||||
|
||||
#nounou_machines = []
|
||||
#for adherent in db.search('droits=Nounou')['adherent'] :
|
||||
# for machine in adherent.machines() :
|
||||
# nounou_machines.append(machine.ip())
|
||||
iptables("-A ADMIN_VLAN -j REJECT")
|
||||
self.anim = anim('\tChaîne ADMIN_VLAN', len(nounou_machines))
|
||||
for machine in nounou_machines :
|
||||
self.anim.cycle()
|
||||
iptables("-I ADMIN_VLAN -p tcp -s %s --dport ssh -j ACCEPT" % machine)
|
||||
iptables("-I ADMIN_VLAN -p tcp -s %s --dport https -j ACCEPT" % machine)
|
||||
self.anim.reinit()
|
||||
print OK
|
||||
#self.anim = anim('\tChaîne ADMIN_VLAN', len(nounou_machines))
|
||||
#for machine in nounou_machines :
|
||||
# self.anim.cycle()
|
||||
# iptables("-I ADMIN_VLAN -p tcp -s %s --dport ssh -j ACCEPT" % machine)
|
||||
# iptables("-I ADMIN_VLAN -p tcp -s %s --dport https -j ACCEPT" % machine)
|
||||
#self.anim.reinit()
|
||||
#print OK
|
||||
|
||||
def __serveurs_vers_ext(self,machine):
|
||||
ip=machine.ip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue