diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 5e0c894a..78631203 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -523,7 +523,7 @@ class firewall_komaz(firewall_crans) : iptables("-t mangle -A PREROUTING -p tcp -j CONNMARK --restore-mark") iptables("-t mangle -A PREROUTING -p tcp -m mark ! --mark 0x0 " + "-j ACCEPT") - iptables("-t mangle -A PREROUTING -p tcp -m ipp2p --ipp2p -j MARK " + + iptables("-t mangle -A PREROUTING -p tcp -m ipp2p --bit -j MARK " + "--set-mark %s" % conf_fw.mark['bittorrent']) iptables("-t mangle -A PREROUTING -p tcp -m mark " + "--mark %s -j CONNMARK --save-mark" % conf_fw.mark['bittorrent'])