oej / parse-iptables-log

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse-iptables-log

Very quick fix to prettifying iptables logs.
Outputting them in a more friendly way and giving a short summary on the top IP/port hits.

Edited example: Edited Example

Expects your log daemon to send blocked and allowed requests to different log files.
Example with rsyslog:

:msg, contains, "iptblock" -/var/log/iptables/iptables.blocked.log
:msg, contains, "iptallow" -/var/log/iptables/iptables.allowed.log
& ~

#Usage Pipe the logs to parse-iptlog.py, or adjust the view-ipt-log.sh script with the log locations and execute it which will pipe it to the Python script for you.

About

License:Do What The F*ck You Want To Public License


Languages

Language:Python 77.0%Language:Shell 23.0%