Avoid adding fw filter using mark

Linux Advanced Routing and Traffic Control

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

 



Hi Devik,

> I'm happy that HTB gained so much popularity ;) Only
> one hint for you - you can completely avoid all these
> tc filter add .... fw ...
> You can use only one
> tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 1 fw

	When I add above rule I get an error message "RTNETLINK answers: Invalid
argument"
but I can see above filter inserted with command:
	# /sbin/tc -s -d -r filter show dev ppp0
	output: filter parent 1: protocol ip pref 1 fw
	Even if that message comming My all rules and policy works fine :-) Can I
neglect error message occurs at time of adding filter?

> and set classid directly in iptables like:
> iptables -t mangle -A to-dsl -p tcp --dport 80 -j MARK --set-mark 0x10010
> iptables -t mangle -A to-dsl -p tcp --sport 24 -j MARK --set-mark 0x10020
>
> and so on ..
> devik
>
>
> On 17 Apr 2002, alex wrote:
>
> >     /sbin/iptables -t mangle -A to-dsl -p tcp --dport 22   -j MARK
> > --set-mark 1
> >
>
> > And handle 11:111 ?

> would become --set-mark 0x00110111...
> or 0x110111  Last 4 digits (16bits) is class, firct 16bit is qdisc.

-- Sumit

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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