LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2003, 12:02 PM   #1
arobinson74
Member
 
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 http://www.sns.ias.edu/~jns/security...up_script.html. 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
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

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
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

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

SNIP
# 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
/SNIP

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'
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:42 AM.

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