[firewall] les machines du G ont l'adresse mac de dyson
darcs-hash:20091119014757-61eff-a1639fb9a73867605e583388cab48a7c958266e2.gz
This commit is contained in:
parent
1b03d6517b
commit
f49f2546a8
2 changed files with 6 additions and 1 deletions
|
@ -35,7 +35,7 @@ from ldap_crans import AssociationCrans, Machine, MachineWifi, BorneWifi
|
|||
from affich_tools import *
|
||||
from commands import getstatusoutput
|
||||
from iptools import AddrInNet, NetSubnets, IpSubnet
|
||||
from config import NETs, mac_komaz, mac_wifi, mac_titanic, conf_fw, p2p, vlans, debit_max_radin
|
||||
from config import NETs, mac_komaz, mac_wifi, mac_titanic, mac_g, conf_fw, p2p, vlans, debit_max_radin
|
||||
syslog.openlog('firewall')
|
||||
|
||||
debug = 1
|
||||
|
@ -256,6 +256,10 @@ class firewall_crans :
|
|||
# Machine wifi, c'est la mac de Nectaris
|
||||
iptables("-t nat %s TEST_MAC-IP -s "%(insert)+\
|
||||
"%s -m mac --mac-source %s -j RETURN"%(ip, mac_wifi))
|
||||
elif ip.startswith('138.231.151.'):
|
||||
# Machine du G, c'est la mac de dyson
|
||||
iptables("-t nat %s TEST_MAC-IP -s "%(insert)+\
|
||||
"%s -m mac --mac-source %s -j RETURN"%(ip, mac_g))
|
||||
elif machine.nom() == "ovh.adm.crans.org":
|
||||
# Pour ovh, on met les MACs de komaz et de titanic
|
||||
# qui font proxy ARP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue