Skip to contentSkip to conversation

blackhole class

LARTC Jay Wineinger 2 participants 2 messages Sep 20, 2003

lore
Share & tools
lore
#0 lore raw

Hi,
Im using a linux bridge to do traffic shaping for my school. Recently
the decided they want to drop all p2p traffic possible (no opinions needed on this). Anyway, I have the layer 7 filtering installed so i can try and classify a lot of the p2p traffic. What I am wondering is what is the best way to use the traffic control stuff to drop traffic? Should I just use a qdisc/class with a rate of 0 or is there some way to specify the traffic should be dropped?

thanks,
Jay

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Jay,

[ Note for posterity: The term "blackhole" is used as a route type in
the linux routing tables [1], and, as far as I know is not a term in traffic control. This is about dropping traffic using traffic control mechanisms. ]

: Im using a linux bridge to do traffic shaping for my school. Recently : the decided they want to drop all p2p traffic possible

[ snip ]

: What I am wondering is what is the best way to use the traffic control : stuff to drop traffic? Should I just use a qdisc/class with a rate of : 0 or is there some way to specify the traffic should be dropped?

You can simply attach a policer to the filter which identifies the traffic and use a drop action. Add the following to the filter which identifies the traffic you wish to drop. Now, the filter will select all packets based on your classifier, and the policer will drop all traffic so matched.

police rate 1bps burst 1 action drop/drop

Best of luck,

-Martin

Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/