tc add filter match src ip and mark

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all,
to shappe my P2P traffic per user i've mark P2P in my iptable mangle
posrouting as :

iptables  -t mangle  -A POSTROUTING     -m layer7 --l7proto  edonkey
-j MARK --set-mark 47
iptables  -t mangle  -A POSTROUTING     -m layer7 --l7proto  fasttrack
 -j MARK --set-mark 48
iptables  -t mangle  -A POSTROUTING     -m layer7 --l7proto  freenet
-j MARK --set-mark 49

I have 2 users 10.10.2.3/32 and 10.10.2.5/32

how should define filter to classify traffic according to src ip and mark.

i've tried
 tc filter  add  dev  eth0  parent  1:  protocol ip  u32 match ip src
10.10.2.3/32   flowid  1:12

But in this definition there is no match for the mark.

regards.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux