Hi,

Have you already read about ulog and the ulog daemon.  It's possible to log to any file or even to sql.
And you can write your own extensions for it.

Greetz


Amit Kumar Gupta wrote:
Hi List,

I am having a problem abt IPtables Logging.
The LOG target logs the messages to a particular file say /var/log/messages depending on the entries in syslog.conf. Now my problem is, i want to log messages in some other special file. Or i can say, a process is running which will receive all the LOg messages and will store it. I was thinking abt the sol for this. I went thro the code of iptables Logging in extensions folder. There are files like libipt_LOG.c where we are having print statements. So is it fine if those statements gets replaced with the api i will provide for logging in some special file. If it is, Then i think i have to write the patch for it.( And i think this patch is for iptables in usr mode only). 

If it is not okay, Then i think i have to provide a new target which will do these things. But in that case, i don't know how i can do this.

Plz give ur suggestions in both the cases.

Thanks & Regards.
Amit.
  

**************************Disclaimer************************************************** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ****************************************************************************************