From owner-freebsd-isp Mon Aug 7 11:51:40 2000 Delivered-To: freebsd-isp@freebsd.org Received: from cache.sai.co.za (mail.sai.co.za [196.33.40.1]) by hub.freebsd.org (Postfix) with ESMTP id A4B8B37B6B0 for ; Mon, 7 Aug 2000 11:51:25 -0700 (PDT) (envelope-from davew@sai.co.za) Received: from fdisk (fdisk.pmburg.co.za [196.33.40.17]) by cache.sai.co.za (8.9.3/8.9.3) with SMTP id UAA03548 for ; Mon, 7 Aug 2000 20:51:24 +0200 (SAST) (envelope-from davew@sai.co.za) Message-ID: <015d01c000a2$1ad236a0$112821c4@sai.co.za> From: "Dave Wilson" To: Subject: IP header precedence bit set to a value to discriminate between local and international traffic to limit bandwidth ? Date: Mon, 7 Aug 2000 21:02:59 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi guys, howzit going ? I've been assigned the task of limiting our leased-line clients on the amount of local and international traffic which they are allowed to use. At the moment I'm using FreeBSD's built in traffic shaper using ipfw to allow a certain amount of bandwidth from our clients to our country's local IP's. Here is an example for one client: ipfw add pipe 1 ip from 1.1.1.0/28 to 196.0.0.0/8 ipfw pipe 1 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 2 ip from 1.1.1.0/28 to 152.0.0.0/8 ipfw pipe 2 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 3 ip from 1.1.1.0/28 to 206.0.0.0/8 ipfw pipe 3 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 4 ip from 1.1.1.0/28 to 216.0.0.0/8 ipfw pipe 4 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 5 ip from 196.0.0.0/8 to 1.1.1.0/28 ipfw pipe 5 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 6 ip from 152.0.0.0/8 to 1.1.1.0/28 ipfw pipe 6 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 7 ip from 206.0.0.0/8 to 1.1.1.0/28 ipfw pipe 7 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 8 ip from 216.0.0.0/8 to 1.1.1.0/28 ipfw pipe 8 config delay 0ms bw 128Kbit/s queue 10 ipfw add pipe 9 ip from 1.1.1.0/28 to any ipfw pipe 9 config delay 0ms bw 32Kbit/s queue 10 ipfw add pipe 10 ip from any to 1.1.1.0/28 ipfw pipe 10 config delay 0ms bw 32Kbit/s queue 10 196.0.0.0, 152.0.0.0, 206.0.0.0, 216.0.0.0 being some of our country's IP's i.e.. local IP's. My question is: Does anyone have a better way of limiting local and international bandwidth ? Our bandwidth provider has now started setting the precedence bit in all IP headers from international regions to a value, therefore if we had some software to do traffic shaping by looking at the precedence bit then we could limit international bandwidth for our clients accordingly......Does anyone know what software will do this for us ? Thanks ;-) Regards Dave Wilson The S.A. Internet (033) 3456777 0825496159 http://www.sai.co.za "Who is General Failure and why is he reading my hard drive ?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message