Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Avoid adding fw filter using mark
@ 2002-09-20  9:30 Sumit Pandya
  2002-09-20 17:39 ` Stef Coene
  0 siblings, 1 reply; 2+ messages in thread
From: Sumit Pandya @ 2002-09-20  9:30 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Avoid adding fw filter using mark
  2002-09-20  9:30 [LARTC] Avoid adding fw filter using mark Sumit Pandya
@ 2002-09-20 17:39 ` Stef Coene
  0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2002-09-20 17:39 UTC (permalink / raw)
  To: lartc

On Friday 20 September 2002 11:18, Sumit Pandya wrote:
> 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?
If it works, yes ;)

Stef

-- 

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-20 17:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-20  9:30 [LARTC] Avoid adding fw filter using mark Sumit Pandya
2002-09-20 17:39 ` Stef Coene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox