Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jakgibb/parse-iptables-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published