Bruno Cochofel wrote at Monday, October 03, 2005 11:14 AM
I found a weblogger that comes with support for susefirewall but I can't seem to get this right...
Can someone help me on this?
Iptables logs can be found at: http://www.gege.org/iptables/
I had never heard of this before but immediately tried it out ;-) ... It was
a littly bit hard to get it rununing, but now it works, with slightly
amended scripts for feeding the log entries into the database. What you need
ast first is to install session support and DBI for mysql for Perl.
Furthermore the init script provided with the package does not work, first
try to start the script from a console without any options and it will print
all entries to the console as well as insert it into the database.
Script "feed_db.pl" has to be changed as follows to get the correct entries
into the correct database columns:
############################################################################
####
################# C O N F I G S E C T I O N
#############
############################################################################
####
my $dsn = 'DBI:mysql:iptables:srv-mdh-001.mh-infoman.loc';
my $db_user_name = 'iptables_admin';
my $db_password = '********';
# Password here ^^^^^^^^
my $log_file = '/var/log/firewall';
^^^^^^^^^^^^^^^^^^
my $pid_file = "/var/run/iptablelog.pid";
[...]
while (