And of course there are tools to analyze the log and react to certain conditions. If you use fail2ban
http://www.fail2ban.org/wi
you can configure it to add specific IP rules if you notice that someone is trying something against your machine. You can configure the threshold and the REGEX's to search in the log.
You can also configure it to send e-mails to you with information of what's it's detecting.
Very useful!
Main Topics
Browse All Topics





by: KeremEPosted on 2009-08-23 at 05:45:33ID: 25162413
Hi,
iptables does its own logging. If you add:
-j LOG --log-prefix "Informative Message: "
at the end of your comments they will be logged. BTW you need to enable syslog to record kern.debug to a file so that you get all messages.
If you want to create alerts from iptables logs you can add confitions to your rules such as if youu get more than more than number of connections at the said port and you can replace "Informative Message" as ALERT or something like that nad then you can send these to another server from a cron job etc.
So I don't think you need extras piece of software for that .
Cheers,
K.