All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Please help... classical problem
@ 2004-07-12  8:27 Furin Ongko
  0 siblings, 0 replies; only message in thread
From: Furin Ongko @ 2004-07-12  8:27 UTC (permalink / raw)
  To: lartc


Hello all.. i'm a newbie in LARTC... 
And I reallize that my problem is a clasical problem
in this LARTC milist.....
So if anyone dont mind.. please help me with this...

Situation :

LAN           -->         Gateway        <-- Internet
10.0.0.0/8  --> eth0                 eth1<--
20.0.0.0/8

Linux Box:
RedHat 8.0
/sbin/tc size is +- 700 kb



#NAT to all computer to access the internet
              iptables -t nat -A POSTROUTING -s
10.0.0.0/8 -j MASQUERADE


# partly copy from :
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm

tc qdisc add dev eth0 root handle 1: htb default 12

tc class add dev eth0 parent 1: classid 1:1 htb rate
100kbps  
tc class add dev eth0 parent 1:1 classid 1:10 htb rate
30kbps 
tc class add dev eth0 parent 1:1 classid 1:11 htb rate
10kbps
tc class add dev eth0 parent 1:1 classid 1:12 htb rate
60kbps

# i want to filter all ftp activity to get a slower
bandwidth
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip dport 20 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip sport 20 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip dport 21 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip sport 21 0xffff
flowid 1:10

# i read in docum.org that source and destinantion
should be write in hexa
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip dport 14 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip sport 14 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip dport 15 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1
u32 match ip src 10.0.0.0/8 match ip sport 15 0xffff
flowid 1:10


I have try this script... and the result is that the
script is not doing like what i like to do. FTP is
running in default bandwidth, 60kbps, not 30 kbps.
Is anyone can help me ? what wrong with this
configuration ? 




		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 
_______________________________________________
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:[~2004-07-12  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-12  8:27 [LARTC] Please help... classical problem Furin Ongko

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.