Renommage des interfaces
darcs-hash:20060403205237-72cb0-8580f7fc7530d6c02c8f44f9e57c2a3f04e23cec.gz
This commit is contained in:
parent
9045a9e87d
commit
214ee15b50
1 changed files with 4 additions and 4 deletions
|
@ -409,8 +409,8 @@ class firewall_komaz(firewall_crans) :
|
|||
"""
|
||||
|
||||
# interfaces physiques
|
||||
eth_ext = "eth2"
|
||||
eth_int = "eth0"
|
||||
eth_ext = "ens"
|
||||
eth_int = "crans"
|
||||
|
||||
# Ports ouverts
|
||||
ports_default = { 'tcp_EXT_VERS_CRANS' : [ '22' ],
|
||||
|
@ -899,9 +899,9 @@ class firewall_sila(firewall_rouge):
|
|||
def nat_table(self):
|
||||
firewall_rouge.nat_table(self)
|
||||
# Pour le proxy transparent
|
||||
iptables("-t nat -I PREROUTING -i eth0.2 -m mark --mark 2 -j ACCEPT")
|
||||
iptables("-t nat -I PREROUTING -i crans.2 -m mark --mark 2 -j ACCEPT")
|
||||
iptables("-t mangle -F PREROUTING")
|
||||
iptables("-t mangle -i eth0.2 -A PREROUTING -p tcp --destination-port 3128 " +
|
||||
iptables("-t mangle -i crans.2 -A PREROUTING -p tcp --destination-port 3128 " +
|
||||
"--destination 138.231.144.10 " +
|
||||
"-m mac --mac-source %s -j MARK --set-mark 2" % mac_komaz)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue