Date: Thu, 11 Jul 2002 11:21:11 -0400 (EDT) From: Andy Dills <andy@xecu.net> To: Max <max@ecotech.com.lr> Cc: freebsd-isp@freebsd.org Subject: Re: IPFW Message-ID: <Pine.BSF.4.44.0207111112020.33582-100000@thunder.xecu.net> In-Reply-To: <001d01c22800$fc3073a0$04ef10ac@wireless>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 10 Jul 2002, Max wrote: > Hi, > > How do I get IPFW (bandwidth limiting function) to work with logging for > later analysis, like determining bandwidth usage per ip? > > For example, I put an entire ip block in a 256K queue and I want to > check what each member of that block used... Hope the idea is > communicated... > > ${fwcmd} add queue 1 ip from [MY IP BLOCK] to any > ${fwcmd} pipe 10 config bw 256kbit/s > ${fwcmd} queue 1 config pipe 1 weight 30 mask src-ip 0x000000ff To get accounting stats with ipfw, you'd need to add two rules for each IP, prior to the queue, such as: ${fwcmd} add allow ip from any to [IP] count ${fwcmd} add allow ip from [IP] to any count Then, the byte count corresponding with the first rule accounts for how much ingress bandwidth is used, and the byte count for the second rule accounts for how much egress bandwidth is used. Remember to check your stats daily! Store and reset daily, lest you lose important billing data. Andy xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Andy Dills 301-682-9972 Xecunet, LLC www.xecu.net xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Dialup * Webhosting * E-Commerce * High-Speed Access To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.44.0207111112020.33582-100000>