Fix packet/connection marking when using halfduplex option This fixes an bug where...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 20 May 2009 21:12:09 +0000 (21:12 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 20 May 2009 21:12:09 +0000 (21:12 +0000)
SVN-Revision: 15947

package/qos-scripts/files/usr/lib/qos/generate.sh

index 94c01d46196a304182262f03bf4c54befba18b51..4ee29ca1e01efd5a9f73d9734a1a73202fe3301e 100755 (executable)
@@ -401,11 +401,11 @@ start_cg() {
                append up "iptables -t mangle -A OUTPUT -o $device -j ${cg}" "$N"
                append up "iptables -t mangle -A FORWARD -o $device -j ${cg}" "$N"
                [ -z "$dl" ] || {
+                       append down "iptables -t mangle -A POSTROUTING -o $device -j ${cg}" "$N"
                        [ -z "$halfduplex" ] || {
                                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 POSTROUTING -o $device -j ${cg}" "$N"
                        append down "iptables -t mangle -A PREROUTING -i $device -j IMQ --todev $imqdev" "$N"
                }
        done