Go to file
2023-10-25 23:51:08 +07:00
example Parse success, python ctypes struct to library connected 2023-10-25 23:51:08 +07:00
src Parse success, python ctypes struct to library connected 2023-10-25 23:51:08 +07:00
.gitignore Update makefile 2023-10-24 18:09:29 +07:00
Makefile Parse success, python ctypes struct to library connected 2023-10-25 23:51:08 +07:00
Readme.md Parse success, python ctypes struct to library connected 2023-10-25 23:51:08 +07:00
wrapper.py Parse success, python ctypes struct to library connected 2023-10-25 23:51:08 +07:00

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