Re: Simple LAN IP accounting
- From: Chuck Swiger <cswiger@xxxxxxx>
- Date: Sun, 18 Jun 2006 10:21:18 -0400
Roger T. Harvey wrote:
$IPFW pipe 1 config mask src-ip 0xffffffff buckets 512
$IPFW pipe 2 config mask dst-ip 0xffffffff buckets 512
$IPFW add 32001 pipe 1 src-ip 192.168.110.0/24 bridged
$IPFW add 32002 pipe 2 dst-ip 192.168.110.0/24 bridged
Now that's all well and good, and I saw the output as well.
However, im not running bridged. or does that make a difference in this
instance?
It means you should create pipe rules which match the traffic you want to count, rather than using the "bridged" keyword (which would match none of your traffic).
Something like "in via fxp0" and "out via fxp0" might be right, assuming for the sake of example that you had an Intel "Fast EEPro" card which was the interface on the subnet whose traffic you want to count.
Also, is there any scripts, etc to format the pipe info into a nice readable
format (pref html)
Doesn't need graphs, etc. Just Daily and Monthly totals would be nice.
(I am running MySQL so it can store the data)
This kind of thing tends to be fairly idiosyncratic, and you'll probably have to modify or write something for your specific case...perhaps others have more useful sample scripts to contribute.
--
-Chuck
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- References:
- Simple LAN IP accounting
- From: Roger T. Harvey
- Simple LAN IP accounting
- Prev by Date: Simple LAN IP accounting
- Next by Date: Re: Simple LAN IP accounting
- Previous by thread: Simple LAN IP accounting
- Next by thread: Re: Simple LAN IP accounting
- Index(es):
Relevant Pages
|
|