LOG_FLOOD done.
darcs-hash:20041107182135-1d643-3bb32819d89382f8519d86e5631683243770e07a.gz
This commit is contained in:
parent
5e8e7cf42f
commit
ba25221ed1
1 changed files with 8 additions and 1 deletions
|
@ -290,7 +290,14 @@ class firewall:
|
||||||
|
|
||||||
|
|
||||||
def __test_flood(machine):
|
def __test_flood(machine):
|
||||||
iptables("-t nat -A PREROUTING -j LOG_FLOOD")
|
ip=machine.ip()
|
||||||
|
mac=machine.mac()
|
||||||
|
if machine.ipsec():
|
||||||
|
iptables("-t nat -A PREROUTING -s "+\
|
||||||
|
"%s -m mac --mac-source %s -j LOG_FLOOD"%(ip,self.mac_wifi))
|
||||||
|
else:
|
||||||
|
iptables("-t nat -A PREROUTING -s "+\
|
||||||
|
"%s -m mac --mac-source %s -j LOG_FLOOD"%(ip,mac))
|
||||||
|
|
||||||
def del_entree(self,ip):
|
def del_entree(self,ip):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue