From owner-freebsd-questions@FreeBSD.ORG Tue Feb 3 14:44:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6310116A4CE for ; Tue, 3 Feb 2004 14:44:11 -0800 (PST) Received: from mail.valuehost.co.uk (mail.valuehost.co.uk [62.25.99.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 426EF43D31 for ; Tue, 3 Feb 2004 14:44:07 -0800 (PST) (envelope-from bjorn@eikeland.info) Received: (qmail 56954 invoked by uid 89); 3 Feb 2004 22:43:52 +0000 Received: from unknown (HELO beer.eikeland.info) (bjorn@eikeland.info@80.202.106.8) by mail.valuehost.co.uk with SMTP; 3 Feb 2004 22:43:52 +0000 To: "freebsd-questions@freebsd.org" References: <40201C10.6070405@coocoo.za.net> Message-ID: From: Bjorn Eikeland Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Tue, 03 Feb 2004 23:44:11 +0100 In-Reply-To: User-Agent: Opera7.23/FreeBSD M2 build 518 Subject: Re: [5.2.1-RC, IPFW] Traffic Shaping X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 22:44:11 -0000 Ok, so miss read the question a bit... (Was thinking the bridge was the mail server too - used to my own hardware shortage :) But still, I think you'll get it working by swapping 'me' with the ip of your mail server. Can also use subnet to allow your own net unlimited access. > There isnt much you can really do as to shape incomming traffic, however > you can limit how fast you accept the incomming data. (At least this is > what im used to from my little experience with linux.) > > I tried* the following rule, and in theroy it sounds up to the job: > ipfw add pipe 1 tcp from not me to me smtp > > *)when I say tried I really mean ipfw didnt complain, but no traffic > actually saw it. > > Obviously you can replace 'me' with your actual ip and 'smtp' with 25, > but > I find its easier to read english. > > Feel free to try that though :) > >> Hi all, >> >> I am using FreeBSD 5.2.1-RC + IPFW2 + DUMMYNET to do traffic shaping. >> This works well for my setup. >> I have the following configuration: >> The machine has 2 NIC's, xl0, dc0. The kernel is configured to do >> bridging. The bridged >> packets is passed to IPFW (net.link.ether.bridge.ipfw=1). >> >> I shape traffic this way: >> The bridge is setup between a router and an internal mail server. >> I am limiting bandwith using the following rules: >> pipe 1 config bw 16KBytes/s >> pipe 2 config bw 12KBytes/s >> >> and then: >> >> add pipe 1 tcp from any to any 25 (limit incoming traffic towards smtp) >> add pipe 2 tcp from any 110 to any (limit outgoing traffic from pop3) >> >> Yesterday, while browsing through Absolute BSD by Michael Lucas I read >> an interesting part: >> You cannot shape incoming traffic the way that I do at the moment. >> >> Now, my question: >> How can I limit the incoming traffic towards my smtp server properly? >> >> Any advice would be apreciated. >> >> Thank you, >> Regards >> Jaco van Tonder > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >