LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Reducing iptables feedback in console? (https://www.linuxquestions.org/questions/linux-from-scratch-13/reducing-iptables-feedback-in-console-4175489082/)

ReaperX7 12-24-2013 08:06 PM

Reducing iptables feedback in console?
 
Are there any good ways to reduce or redirect the kernel iptables output logs from the console to a log file? I want to try and trim down the kernel output somewhat.

druuna 12-25-2013 03:40 AM

Quote:

Originally Posted by ReaperX7 (Post 5086592)
Are there any good ways to reduce or redirect the kernel iptables output logs from the console to a log file? I want to try and trim down the kernel output somewhat.

I'm not entirely sure what you are after (is this iptables specific or are you talking about other kernel messages as well). I'm going to assume you talk about the messages that occasionally appear in the console.

These are generated by klogd. The default log level of console messages can be adjusted to overcome this (see klogd manual page, the -c option).

Using -c 3 will be a safe setting, this way you are only informed of kernel errors (or worse).

Add this option to the start_daemon /sbin/klogd line in the /etc/rc.d/init.d/sysklogd script.

ReaperX7 12-26-2013 02:09 AM

It's iptables specific. I have got it routed temporarily to port 10000 for webmin. So far my console isn't cluttered with iptables feedback, so that's good for now.

oblo 08-14-2014 04:07 AM

1 Attachment(s)
I'm not sure this is the same problem but i solved by changing the last iptables line:

# Log everything else. What's Windows' latest exploitable vulnerability?
# iptables -A INPUT -j LOG --log-prefix "FIREWALL:INPUT "

# End $rc_base/rc.iptables


All times are GMT -5. The time now is 01:20 PM.