Re: tc ingress + iptables mark problem

Linux Advanced Routing and Traffic Control

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

 



Salatiel Filho wrote:
> Hi guys , i am starting to "play" with qos in linux. Well , i am
> trying to setup an ingress filter but i do not know why it is not
> working.
>
> tc add qdisc dev eth0 ingress
> tc filter add dev eth0  parent ffff: protocol ip prio 1 handle 1 fw
> police rate 160kbit burst 256kbit drop flowid :1
>
> After that :
>
> iptables -A PREROUTING -t mangle --sport 80 -j MARK --set-mark 1
>
> So , i think this should make all traffic from port 80 be filtered by
> tc , does it ?
>
> But it is not working  , i keep downloading at full speed from port 80.
>
> Any help ?
>
I think becasue the MARK-ing is done after the ingress. Better use u32
on ingress.
_______________________________________________
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