LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-24-2013, 08:06 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
Old 12-25-2013, 03:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by ReaperX7 View Post
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.
 
Old 12-26-2013, 02:09 AM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
Old 08-14-2014, 04:07 AM   #4
oblo
Member
 
Registered: May 2014
Location: Rome, Italy
Distribution: LFS 7.6
Posts: 55

Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	SDC15223.jpg
Views:	23
Size:	86.5 KB
ID:	16121  
 
  


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
IPTables reducing ping times DBabo Linux - Networking 1 02-28-2013 02:16 AM
Iptables script feedback fotoguy Linux - Security 1 09-22-2005 02:11 AM
Bad Packet Chain (iptables) Feedback / Suggestions win32sux Linux - Security 1 09-17-2005 07:32 AM
Syslog and iptables, output going to console diverge LinuxQuestions.org Member Success Stories 1 12-29-2003 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration