IPTables logging going to console not the log file
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.