All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] u32 filter --80 port
@ 2003-11-24 12:24 Joel
  0 siblings, 0 replies; only message in thread
From: Joel @ 2003-11-24 12:24 UTC (permalink / raw)
  To: lartc

Dear all,

I have problem in using u32 filter. I dont know wheather it is tc 
configuration problem or u32 filter problem. kindly tell me where i have 
done the mistake. My script is as folllow.
--------------------------------------------------------------------------------------------------------------------------------------------------------
#!/bin/sh

TC=` which tc`

### Delete qdisc
$TC qdisc del dev eth4 root
echo " Stopping Bandwidth Restriction OK"

### Root qdisc
$TC qdisc add dev eth4 root handle 1: htb default 13

### Restrict the groups
$TC class add dev eth4 parent 1: classid 1:1 htb rate 255kbit ceil 260kbit

### webtraf
$TC class add dev eth4 parent 1:1 classid 1:10 htb rate 132kbit ceil 132kbit
$TC filter add dev eth4 protocol ip parent 1:0 prio 1 u32 match ip dst 
10.0.0.0/8 match ip dport 80 0xffff flowid 1:10
$TC filter add dev eth4 protocol ip parent 1:0 prio 1 u32 match ip dst 
192.168.100.0/29 match ip dport 80 0xffff flowid 1:10

### tcptraf
$TC class add dev eth4 parent 1:1 classid 1:11 htb rate 64kbit ceil 64kbit
$TC filter add dev eth4 protocol ip parent 1:0 prio 1 u32 match ip dst 
10.0.0.0/8 flowid 1:11
$TC filter add dev eth4 protocol ip parent 1:0 prio 1 u32 match ip dst 
192.168.100.0/29 flowid 1:11


### special
$TC class add dev eth4 parent 1:1 classid 1:12 htb rate 64kbit ceil 64kbit
$TC filter add dev eth4 protocol ip parent 1:0 prio 1 u32 match ip dst 
10.255.0.17 flowid 1:12
$TC filter add dev eth4 protocol ip parent 1:0 prio 1 u32 match ip dst 
10.1.1.8/29 flowid 1:12

###
$TC class add dev eth4 parent 1:11 classid 1:13 htb rate 20kbit ceil 64kbit

echo " Starting Bandwidth Restriction...Done"
-----------------------------------------------------------------------------------------------------------------------------------------------------
Now Traffic is not flowing in webtraf classid 1:10
All other classes are having traffic in them.

if you have any clue that can help then plz mail me.

Thanks,
Joel


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-24 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 12:24 [LARTC] u32 filter --80 port Joel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.