From: Robert Felber Date: Mon, 15 Mar 2004 12:20:00 +0000 Subject: [LARTC] ingress QoS Message-Id: <20040315122000.GA28318@fpsvr1z150.dartsd66.local> MIME-Version: 1 Content-Type: multipart/mixed; boundary="zhXaljGHf11kAtnf" List-Id: To: lartc@vger.kernel.org --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello guys, Setup: iptables 1.2.9 (patch-o-matic not used) linux 2.4.25 (gentoo vanilla, everything needed compiled in) eth1 -> pppoe (ppp0) eth0 Goal: Fair queuing of incomming traffic Story: since I've failed to use IMQ with iptables 1.2.9 and linux 2.4.25, I've tried to attach a HTB qdisc to eth0 with a root of 100mbit and classes with rates of 100mbit and DSL downlink speed (768 kbit). The downlink class I divided into important traffic (700 kbit) and=20 bulk (68 kbit) - both got HTB qdiscs. The router packets with source 10.0.0.1 end up in the 100mbit queue, but I have to set this rule to prio 1 otherwise the bulk rule (src 0.0.0.0/0) will take place. Everything is working fine so far. Since I wanted to speed up browsing while having other downloads, packets with sport 80 are queued in the important queue. Also I wanted to be very smart and use a transparent squid. But then I thought twice and realized, that packets with sport 80 end up in squid (except it was a direct connection), thus the packets are queued= =20 different. Question is now: do I also have to add qdiscs to device lo, or how can I queue the router's incomming traffic for routers's local processes. If I have to add qdiscs for lo, what would be the bandwidth? And, would that be clever in general? If someone is interessted in the script, drop a note. Thanks in advance, Rob =20 --=20 | Robert Felber (System-Administrator) Tel: +49 (0) 89 / 453 12-86 | | Autohaus Erich Kuttendreier Fax: +49 (0) 89 / 453 12-80 | | Drosselweg 21 PGP: 896CF30B | | 81827 Muenchen | | | | PGP-Fingerprint: CF36 AA93 9716 63E8 962F 15CC A80E 1A79 BF77 25EA | --zhXaljGHf11kAtnf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAVZ9vCn+wd4ls8wsRAkrQAJ0fsfU0SWejeX6auQo4nxBBFnYGdwCfcWuj T83M8eaQU5FI7iHRF55LQRY= =vA7K -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/