LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Pass the contents of firewall log to another file (https://www.linuxquestions.org/questions/linux-networking-3/pass-the-contents-of-firewall-log-to-another-file-425305/)

arubala1 03-16-2006 03:16 AM

Pass the contents of firewall log to another file
 
Hi,
I am working on firewall. I want to pass the logs created by the
firewall (/var/log/messages) to a new file (/var/log/iptpipe).
how do i do it? I work on red hat linux 9. The firewall i am using is firestarter 0.9.3.
Even if the solution is for the firewall lokkit, it is fine.
Regards
Aruna.

Simon Bridge 03-16-2006 03:50 AM

OK, so what is wrong with:

cat /var/log/messages > /var/log/iptpipe

??

Or, are you asking how to get firestarter to pass a log message to a different named file? (Note, you can get iptables to send logs to diferent files for different events...)

jschiwal 03-16-2006 03:50 AM

Look at your syslog.conf or syslog_ng.conf file. You can either change where the firewall (iptables) logs are written to or have them also written to another log.


All times are GMT -5. The time now is 06:48 AM.