Re: [LARTC] HTB Question...

Linux Advanced Routing and Traffic Control

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

 



I deleted some parts of your previous mail.

> tc filter add dev eth1 parent 1:1 protocol ip handle 10 fw classid 1:10
> iptables -A FORWARD -i eth0 -t mangle -s 192.168.193.10 -j MARK --set-

> Chain FORWARD (policy ACCEPT 109K packets, 79M bytes)
>  pkts bytes target     prot opt in     out     source
> destination
>     6   507 MARK       all  --  eth0   *       192.168.193.10
> 0.0.0.0/0          MARK set 0xa
Marking is in hex.  So you have to check the filters.  If you execute
tc -s -d fiter show dev eth0
you should see your filter statemens and the handle should also be in hex.  If 
it's not, you can change your commands so you specify the handle in hex :

tc filter add dev eth1 parent 1:1 protocol ip handle 0x10 fw classid 1:10

Stef

-- 

stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net



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