Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 12:40:33 -0300
From:      Alexandre Bensi {'aledon'} <aledon@fugspbr.org>
To:        Lista freebsd-isp <freebsd-isp@freebsd.org>
Subject:   Re: IPFW
Message-ID:  <3D2DA6F1.7E1DE3C4@fugspbr.org>
References:  <Pine.BSF.4.44.0207111112020.33582-100000@thunder.xecu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I am using this:

/sbin/ipfw add 4000 count tcp from any to any 25

In this option treatment doesn't exist.

--

# UPLOAD - 256Kbytes
/sbin/ipfw add 4500 pipe 3 all from YOUR_CLASS.0/24 to any via xl0
/sbin/ipfw pipe 3 config bw 2048Kbit/s

# DOWNLOAD - 512Kbytes
/sbin/ipfw add 5500 pipe 5 all from any to YOUR_CLASS.0/24 via xl1
/sbin/ipfw pipe 5 config bw 4096Kbit/s

then yes.

Andy Dills wrote:
> 
> 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

--
Atenciosamente,
Alexandre Bensi {'aledon'}
System/Network Administrator
--
Icq Uin at WORK | HOME: 118731900 | 129462580
E-Mail: echo alexandre dep ufscar br | sed 's/ /@/;s/ /./g'
--
This mail send through Unix FreeBSD 4.5 STABLE - Amavis VScan

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?3D2DA6F1.7E1DE3C4>