[fpc-pascal] IPTables log parser?

Reinier Olislagers reinierolislagers at gmail.com
Thu Jan 19 11:48:31 CET 2012


On 19-1-2012 11:10, Mark Morgan Lloyd wrote:
> Reinier Olislagers wrote:
>> Hi list,
>>
>> I noticed ik has started a project to manipulate Linux iptables firewall
>> rules... which got me thinking.
>>
>> Is there any FreePascal/Delphi code lying around to parse IPtables log
>> output (e.g. in the /var/log/messages syslog file), e.g. into CSV format?
> 
> Not when I last looked, but that wasn't recent. I presume you're aware
> of logging via ulogd, which at least helps split things out a bit.

Thanks, both of you!

Yep, I'm aware of ulogd; however I prefer not installing stuff/tweaking
things on my router if I don't have to.

Didn't know about libnetfilter_log; I might indeed have a look at
libnetfilter_log to see if I can incorporate that into my FPC program.
If I do, I'll get back to you, Ido.

The alternative would be to parse the syslog output which I was thinking
about. Though it's not very pretty, the advantage of that is that I can
forward my router's syslog to another (database,... whatever) host and
run the extraction there...

Thanks,
Reinier



More information about the fpc-pascal mailing list