LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to write two iptables ulog streams into separate files? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-write-two-iptables-ulog-streams-into-separate-files-906267/)

adept 10-03-2011 07:06 PM

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


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