LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-19-2014, 09:52 AM   #16
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33

Quote:
Originally Posted by slacker_ View Post
Is there a way to just have them dump the logs into a file instead of messing up my dmesg?
Yes. Look at here.
 
Old 01-21-2014, 11:24 AM   #17
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by saman007uk View Post
Yes. Look at here.
That blog post you linked to mentioned something that I'm not sure how to do:

Quote:
So, for each logging rule in your firewall script, add --log-prefix "iptables: ".
And it goes on to give an example with a firewall builder called firehol. I'm not using any firewall builder, so how do I add that "--log-prefix "iptables: " to my firewall script?
 
Old 01-22-2014, 08:22 AM   #18
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
You need to improvise on that blog post. Your iptables rules already have the prefix "Inbound", so you don't need to add another prefix.

Run the following as root, and you are good:
Code:
apt-get update
apt-get install rsyslog
echo ":msg, startswith, \"Inbound: \" -/var/log/iptables.log" > /etc/rsyslog.d/iptables.conf
echo "& ~" > /etc/rsyslog.d/iptables.conf
service rsyslog restart
This will put all those log entries in /var/log/iptables.log. You might want to make a log rotation, as described at the end of that article.
 
Old 01-22-2014, 03:02 PM   #19
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by saman007uk View Post
You need to improvise on that blog post. Your iptables rules already have the prefix "Inbound", so you don't need to add another prefix.

Run the following as root, and you are good:
Code:
apt-get update
apt-get install rsyslog
echo ":msg, startswith, \"Inbound: \" -/var/log/iptables.log" > /etc/rsyslog.d/iptables.conf
echo "& ~" > /etc/rsyslog.d/iptables.conf
service rsyslog restart
This will put all those log entries in /var/log/iptables.log. You might want to make a log rotation, as described at the end of that article.
Oh. Brilliant. apparently I already had rsyslog installed. So after doing that, I'm still getting the "Inbound" thing coming up in dmesg. Now what...?
 
Old 06-07-2014, 07:04 PM   #20
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Just in case anyone was subscribed to this thread, I figured I'd update everyone on the status of the issue:

Source was iptables, but resolution was never found. I worked on it for quite a while before I gave up. One of the things I tried that I thought would work for sure was resetting everything related to iptables back to defaults, but even that didn't restore normal output of demsg.

I have since reinstalled debian wheezy (now 7.5) so the issue has, in a way, been taken care of, but not solved..

Last edited by slacker_; 06-07-2014 at 07:05 PM.
 
  


Reply

Tags
debian, dmesg



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
Odd dmesg output voyciz Linux - Software 3 12-05-2009 10:08 AM
dmesg shows /dev/hdg error v00d00101 Fedora 5 02-01-2007 12:25 PM
RHE 4 AS with 4 CPUs - shows 8 loaded in dmesg enzo250gto Red Hat 1 04-02-2006 09:54 PM
iptables logs still shows up in dmesg BlueKnight Linux - Networking 10 09-09-2004 04:23 AM
Odd audio problem...can anyone explain this? ksoma Linux - Hardware 14 01-02-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:31 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