Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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?




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

All times are GMT -5. The time now is 06:29 PM.

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