From: kinto <mlist@email.it>
To: lartc@vger.kernel.org
Subject: [LARTC] Need some help
Date: Sat, 14 May 2005 00:57:20 +0000 [thread overview]
Message-ID: <200505140257.20352.mlist@email.it> (raw)
Hi all, I have read the larc howto and I need to apply a traffic shaper
with this configuration:
router / two interface etho and eth1
lan
lan is on eth1 and on eth0 I've the dsl connection (1.2 Mbit / 256 kbit)
I need to limit the bandwith towards lan and I've thought at HTB and
tcng. I write the script belove. I want limit the p2p and ftp (ssh and
irc) connection at 15 kBps (128 kbps) and the other type of traffic at
32 kBps (256kbps). Is the script right?
Moreover I want understand better how htb work: I can shape the traffic
router->lan but I can't shape traffic lan->router, is it right? In this
way I can limit the bandwidht towards lan, but I have the bandwith
towards router always full.
Thanks
P.S.: sorry for my very bad english :)
############# script #########
/*
*Simply tcng traffic control file.
*/
#define INTERFACE eth1
dev INTERFACE {
egress {
class( <$p2p> )
if tcp_sport = 4662
if udp_sport = 4672
if udp_sport = 4666
if tcp_sport = 6882
if tcp_sport = 6346
class ( <$ftp> )
if tcp_sport = 21
if tcp_sport = 22 || ip_tos_delay = 1
if tcp_sport = 6667 || tcp_dport = 7000;
class ( <$def> )
if 1 ;
htb () {
class ( rate 256kbps, ceil 256kbps ) {
$p2p = class ( rate 56kbps, ceil 128kbps ) { sfq; } ;
$ftp = class ( rate 56kbps, ceil 128kbps ) { sfq; } ;
$def = class ( rate 256kbps, ceil 256kbps ) { sfq; } ;
}
}
}
}
##############################
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Digitalpix: Il metodo più comodo, veloce e conveniente
* per stampare le tue foto digitali migliori.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid\x1523&d\x14-5
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next reply other threads:[~2005-05-14 0:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-14 0:57 kinto [this message]
2005-05-14 2:20 ` [LARTC] Need some help Karol Lassak
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=200505140257.20352.mlist@email.it \
--to=mlist@email.it \
--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.