Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-31-2003, 12:02 PM   #1
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Rep: Reputation: 30
IPTables logging going to console not the log file

Using a startup script found at The problem is that the log messages for the firewall are all going to the console and not the messages file. Where should I start looking to find out what is going on?
Old 03-31-2003, 12:04 PM   #2
Senior Member
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
I would look at the default start-up script and figure out where it handles logging, and change the script to match the default logging settings.
Old 04-01-2003, 01:20 AM   #3
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Have a look at /etc/syslog.conf

# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
kern.=info /var/log/info
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none;kern.!=info /var/log/messages

Mine logs to /var/log/info

Comment out the /dev/console line as above
Add a line for /var/log/info
Change the line for /var/log/messages to include kern.!=info as above
Change your iptables script -j LOG rules eg
iptables -A INPUT -p tcp --dport 10000 -j LOG --log-prefix "Webmin " --log-level 6
to make sure messagaes are logged at level 6 = info.

Restart syslog, 'service syslog restart'


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
Log all of a shell script's I/O to the console and a file trevelluk Programming 8 04-18-2005 01:40 PM
I'd like my cake & eat it too please! Log to both console and file ericcarlson Linux - Software 1 03-01-2005 03:07 AM
Changing IPtables log file fluff Linux - Networking 0 09-03-2003 04:37 AM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM
iptables log file Anjo Linux - General 2 02-07-2003 03:21 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 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
Open Source Consulting | Domain Registration