mirror of https://github.com/hak5/openwrt-owl.git
Fix packet/connection marking when using halfduplex option This fixes an bug where QoS is not applied to packets passing through POSTROUTING chain when using halfduplex option. Since QoS is done on IMQ device, packets should be marked before sending to the IMQ. Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
SVN-Revision: 15947owl
parent
e2d1632d1e
commit
f46691236b
|
@ -401,11 +401,11 @@ start_cg() {
|
||||||
append up "iptables -t mangle -A OUTPUT -o $device -j ${cg}" "$N"
|
append up "iptables -t mangle -A OUTPUT -o $device -j ${cg}" "$N"
|
||||||
append up "iptables -t mangle -A FORWARD -o $device -j ${cg}" "$N"
|
append up "iptables -t mangle -A FORWARD -o $device -j ${cg}" "$N"
|
||||||
[ -z "$dl" ] || {
|
[ -z "$dl" ] || {
|
||||||
|
append down "iptables -t mangle -A POSTROUTING -o $device -j ${cg}" "$N"
|
||||||
[ -z "$halfduplex" ] || {
|
[ -z "$halfduplex" ] || {
|
||||||
append down "iptables -t mangle -A POSTROUTING -o $device -j IMQ --todev $imqdev" "$N"
|
append down "iptables -t mangle -A POSTROUTING -o $device -j IMQ --todev $imqdev" "$N"
|
||||||
}
|
}
|
||||||
append down "iptables -t mangle -A PREROUTING -i $device -j ${cg}" "$N"
|
append down "iptables -t mangle -A PREROUTING -i $device -j ${cg}" "$N"
|
||||||
append down "iptables -t mangle -A POSTROUTING -o $device -j ${cg}" "$N"
|
|
||||||
append down "iptables -t mangle -A PREROUTING -i $device -j IMQ --todev $imqdev" "$N"
|
append down "iptables -t mangle -A PREROUTING -i $device -j IMQ --todev $imqdev" "$N"
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue