Iptables Log parser

How To

Build

mkdir lib
#Compile the library
make parse_lib.so

Execute

 ./wrapper.py

Structure

wrapper.py

Reads, iptables.log and calls the lib/parser_lib.so. Feed the parser library with lines from iptables log.

lib/parser_lib.so

Process the sed like operation on the line by line feeded by wrapper.py.

Current parsed values are :

  • Source IP
  • Destination IP
  • Packet Length
  • Interface IN
  • Interface OUT
  • Protocol
Description
No description provided
Readme 13 MiB
Languages
C 50.8%
Python 48.5%
Makefile 0.7%