On sauvegarde la sortie d'iptables des fins de debug.
darcs-hash:20060614142909-68412-63483bcba76e5e8231e9c2c60049a33a11f73d4c.gz
This commit is contained in:
parent
eabc381699
commit
bcb5cb89d8
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ class firewall_komaz(firewall_crans) :
|
||||||
iptables_option = '-D'
|
iptables_option = '-D'
|
||||||
tc_option = 'del'
|
tc_option = 'del'
|
||||||
subnet = IpSubnet(ip, conf_fw.mask[len(conf_fw.mask)-1])
|
subnet = IpSubnet(ip, conf_fw.mask[len(conf_fw.mask)-1])
|
||||||
regles = iptables("-t mangle -L SUBNET-%s -n | grep %s" % (subnet, ip)).split('\n')
|
regles = iptables("-t mangle -L SUBNET-%s -n | tee `tempfile`-firewall`date -u +%y%m%d%H%M%S` | grep %s" % (subnet, ip)).split('\n')
|
||||||
# On sélectionne la première qui doit contenir ce que l'on veut
|
# On sélectionne la première qui doit contenir ce que l'on veut
|
||||||
regle = regles[0].split()
|
regle = regles[0].split()
|
||||||
mark = regle[7]
|
mark = regle[7]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue