From: Furin Ongko <princenux79@yahoo.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Please help... classical problem
Date: Mon, 12 Jul 2004 08:27:03 +0000 [thread overview]
Message-ID: <20040712082703.6818.qmail@web52404.mail.yahoo.com> (raw)
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/
reply other threads:[~2004-07-12 8:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040712082703.6818.qmail@web52404.mail.yahoo.com \
--to=princenux79@yahoo.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.