[adsl-qos] Rules order.

Jesper S. Jensen elector2k4 at elector.dk
Thu Jul 1 18:19:52 PDT 2004


Does it matter what order the rules are added in?

If I for example changes the order of example 1, to example 2, would 
that do the same, or does the order actually mean anything?

--- Example 1 ---
iptables -t mangle -A MYSHAPER-OUT -p tcp --sport 0:1024 -j MARK 
--set-mark 23
iptables -t mangle -A MYSHAPER-OUT -p tcp --dport 0:1024 -j MARK 
--set-mark 23
iptables -t mangle -A MYSHAPER-OUT -p tcp --dport ssh -j MARK --set-mark 22
iptables -t mangle -A MYSHAPER-OUT -p tcp --sport ssh -j MARK --set-mark 22



--- Example 2 ---
iptables -t mangle -A MYSHAPER-OUT -p tcp --dport ssh -j MARK --set-mark 22
iptables -t mangle -A MYSHAPER-OUT -p tcp --sport ssh -j MARK --set-mark 22
iptables -t mangle -A MYSHAPER-OUT -p tcp --sport 0:1024 -j MARK 
--set-mark 23
iptables -t mangle -A MYSHAPER-OUT -p tcp --dport 0:1024 -j MARK 
--set-mark 23






More information about the adsl-qos mailing list