Re: tc filter - based on iptables - MAC - MARK not working - altough marking on ip src, dst address works

Linux Advanced Routing and Traffic Control

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

 



Daniel Dafoe wrote:
I really don't get it :

Recompiled my kernel dozen times now is
2.6.11-gentoo-r5 but still packets are marked by
iptables but not shaped by tc. It only works when I
mark packets on source/destination ip

As soon as I comment last two lines and uncomment the
first one shaping is gone ....

So you may need to match on MAC dst rather than src or did you try with just -s 192.168.0.22 alone?


Andy.



iptables -t mangle -A FORWARD -m mac --mac-source 00-0d-87-60-61-37 -j MARK --set-mark 0x2

#iptables -t mangle -A PREROUTING -s 192.168.0.22 -j
MARK --set-mark 0x2
#iptables -t mangle -A PREROUTING -d 192.168.0.22 -j
MARK --set-mark 0x2
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux