Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 12:00:20 +0100
From:      "Max" <max@ecotech.com.lr>
To:        <freebsd-isp@freebsd.org>
Subject:   IPFW
Message-ID:  <001d01c22800$fc3073a0$04ef10ac@wireless>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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   



Max

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How do I get IPFW (bandwidth limiting function) to 
work with logging for later analysis, like determining bandwidth usage per 
ip?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>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...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;${fwcmd} add queue 1 ip from&nbsp;[MY IP 
BLOCK]&nbsp;to any<BR>&nbsp;${fwcmd} pipe 10 config bw 
256kbit/s<BR>&nbsp;${fwcmd} queue 1 config pipe 1 weight 30 mask src-ip 
0x000000ff&nbsp;&nbsp; <BR></DIV></FONT>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2>Max</FONT></DIV></BODY></HTML>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001d01c22800$fc3073a0$04ef10ac>