LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-03-2011, 07:06 PM   #1
adept
LQ Newbie
 
Registered: Sep 2011
Location: Poland
Distribution: Fedora
Posts: 6

Rep: Reputation: Disabled
How to write two iptables ulog streams into separate files?


Hello

Could you explain how to separate iptables ulog information into two log files? For example: I want to write logging informations from eth1 and eth2 into .../ulogeth1.log and .../ulogeth2.log files respectively. I can set up adequate iptables configuration by adding following commands:
iptables ... -i eth1 ... -j ULOG ulog_nlgroup 1 ...
iptables ... -i eth2 ... -j ULOG ulog_nlgroup 2 ...
But how to intercept both kernel ulog streams? Standard ulogd service (Fedora Linux) permits to run only one ulogd instance. /etc/ulogd.conf file contains one nlgroup parameter and one file name for write packets to. Must I start second ulogd instance by calling ulogd -c ... with separate ulogd configuration file? How it's usually achieved?

thanks

adept
 
  


Reply


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
Encoding separate audio channels to separate files omnio Linux - Software 0 06-01-2007 07:46 AM
Looking for a tool to auto crop and separate images in to separate files.. mlsfit Linux - Software 2 08-06-2006 03:13 PM
ULOG iptables Mysql gabsik Linux - Software 0 07-15-2006 09:24 AM
General gateway logging (and iptables ULOG) ? michaelsanford Linux - Networking 16 05-18-2005 08:27 PM
Sendmail: How do I config to write separate file for every email 360 Linux - Software 4 03-31-2003 08:52 PM


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

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