From mboxrd@z Thu Jan 1 00:00:00 1970 From: mdew Date: Mon, 17 Jun 2002 15:30:58 +0000 Subject: Re: [LARTC] Better filtering to a class MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-89jW/pl7Lporn4kJvnAs" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-89jW/pl7Lporn4kJvnAs Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2002-06-17 at 22:31, Alex Bennee wrote: > Adi Nugroho said: > > Dear all, > > > > I want to make a filter for all IRC-Dalnet traffic, so I want to put > > all traffic for port 6660, 6661, 6662, 6663, 6664, 6665, 6666, 6667, > > 6668, 6669, 7000, 7001, 7002, and 8000 to a class. So, I create a TC > > script as below. > > > > I'm sure, it is not effective, and we can write it in simpler. > > I need help, how to make my script below are simpler. > > The simpler, the better. >=20 > One approach would be to use iptables/ipchains to mark your packets and t= hen > select the tc class based on the fw mark. There some examples posted in t= he > archives of this list or you could look as my firewall script (on my site= ) > for an example. /sbin/tc qdisc add dev ppp0 root handle 1: htb default 60 # add a rate limiting class underneath - this ensure we don't send # packets to the dsl modem faster than its going to send them /sbin/tc class add dev ppp0 parent 1: classid 1:1 htb rate 250kbps ceil 260kbps burst 6k #sub classes for each traffic type /sbin/tc class add dev ppp0 parent 1:1 classid 1:10 htb prio 1 rate 250kbps burst 6k /sbin/tc class add dev ppp0 parent 1:1 classid 1:20 htb prio 2 rate 250kbps burst 6k /sbin/tc class add dev ppp0 parent 1:1 classid 1:30 htb prio 3 rate 250kbps burst 6k /sbin/tc class add dev ppp0 parent 1:1 classid 1:40 htb prio 4 rate 250kbps burst 6k /sbin/tc class add dev ppp0 parent 1:1 classid 1:50 htb prio 5 rate 250kbps burst 6k /sbin/tc class add dev ppp0 parent 1:1 classid 1:60 htb prio 6 rate 250kbps burst 6k anychance showing me an alternative to htb (and does the exactly the samething using cbq..) ? unless its possible to use a stock 2.4.18 without the htb-patch...since hdd space isnt an option. --=20 ph33r! Linux mdew 2.4.19-pre10-xfs-aa2 #10 Mon Jun 17 11:06:06 NZST 2002 i686 unknown GPG Key: http://mdew.orcon.net.nz/gpg --=-89jW/pl7Lporn4kJvnAs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9DgCyH5J/xul0J+4RArhBAJ0bAF1v0ap5GjFKBU5cY+VH421jBwCeLN13 Q6ZXVt0dAzjTFx0PcRFl0B8= =LRr5 -----END PGP SIGNATURE----- --=-89jW/pl7Lporn4kJvnAs-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/