Date: Mon, 7 Aug 2000 17:30:14 +0200 From: "Dave Wilson" <davew@sai.co.za> To: <freebsd-questions@FreeBSD.ORG> Subject: IP header precedence bit set to a value to discriminate between local and international traffic to limit bandwidth ? Message-ID: <00ed01c00084$624d9ab0$112821c4@sai.co.za>
next in thread | raw e-mail | index | archive | help
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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ed01c00084$624d9ab0$112821c4>