From owner-freebsd-isp Tue Mar 28 5:39:37 2000 Delivered-To: freebsd-isp@freebsd.org Received: from d016.gold.gellivare.se (comnix.com [195.196.65.16]) by hub.freebsd.org (Postfix) with SMTP id 9B88437BF1D for ; Tue, 28 Mar 2000 05:39:26 -0800 (PST) (envelope-from john@veidit.net) Received: (qmail 22892 invoked from network); 28 Mar 2000 13:39:20 -0000 Received: from unknown (HELO veidit.net) (193.44.56.36) by comnix.com with SMTP; 28 Mar 2000 13:39:20 -0000 Message-ID: <38E0B632.62C7CD1E@veidit.net> Date: Tue, 28 Mar 2000 15:40:02 +0200 From: John Angelmo X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: sv, en MIME-Version: 1.0 To: Luigi Rizzo Cc: FreeBSD ISP Subject: Re: PPP Bandwidth management References: <200003271259.OAA24068@info.iet.unipi.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi again Lets say that I have 1024Kbit/s to share to my users lets say 3 users with a garanteed bandwidth of 300Kbit/s down and 100Kbit/s upstream. When a person doesen't use the bandwidth I shuld beable to use it so the pipe is removed temporarily and re established when the user is back online. How can I fix that? /John Luigi Rizzo wrote: > > > Hmm well the problem is that I have my server that has the pppoe server > > stuff and the natd to my card connected to the net. ipfw just uses flush > > and divert.. do you have any good info? > > very quickly (sorry am in a hurry!) you have to set > net.inet.ip.fw.one_pass=0 so you can have packets go multiple times > through ipfw, then something like > > ipfw add 100 pipe 1 ip from any to any uid some-user > ipfw add 200 divert ip from any to any [this is the old divert rule ] > ipfw allow ip from any to any > > ipfw pipe 1 config bw 300Kbit/s > > when a pkt matches rule 100, it gets shaped into pipe 1, on exit > goes to rule 200 which passes the pkt to natd, and then goes into > the next rule after natd (possibly...). > > hope you get the idea. a bit of experimentation will be necessary. > > cheers > luigi > -----------------------------------+------------------------------------- > Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) > Mobile +39-347-0373137 > -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message