All of lore.kernel.org
 help / color / mirror / Atom feed
* mysql-iptables
@ 2003-10-30  1:14 George Vieira
  0 siblings, 0 replies; only message in thread
From: George Vieira @ 2003-10-30  1:14 UTC (permalink / raw)
  To: Netfilter Mailling List (E-mail)

For those of you who were/are interested in the script I'm working called mysql-iptables. I have released a GPL version on Source Forge http://sourceforge.net/projects/mysql-iptables/.

This script gathers any chain you specify and stores the rules into a MySQL database of the same chain name. It increments the byte count so you can generate graphs in MRTG/RRDtool or whatever you like using retrieval commands like you do with iptables itself.. eg.

mysql-iptables -t MRTG -s 192.168.0.1 -p tcp --sport 80

this will return the total byte value for this rule.

a crontab updates the database like so:

*/5 * * * * root mysql-iptables --updatedb
*/5 * * * * root mysql-iptables -t HOSTS --updatedb

Any more questions please forward them to the forums... (once I get the rest up and running ;))


Thanks,
____________________________________________
George Vieira


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-30  1:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30  1:14 mysql-iptables George Vieira

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.