Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-16-2006, 03:16 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Smile Pass the contents of firewall log to another file

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.
Old 03-16-2006, 03:50 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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...)
Old 03-16-2006, 03:50 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Contents of File abdul_zu Linux - Software 3 12-04-2005 02:12 PM
Traffic still going pass Firewall extremebfn Linux - Networking 1 10-04-2004 01:43 AM
How to track who's helping intruder pass through firewall pingu Linux - Security 8 08-10-2004 07:47 AM
SuSE 9.0 firewall log file? johnny1959 Linux - Newbie 2 03-09-2004 01:56 AM
Delete contents of the file, but not file? mikeshn Linux - General 9 05-28-2003 06:47 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration