LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-04-2004, 07:55 PM   #1
Yohhan
LQ Newbie
 
Registered: Dec 2002
Posts: 28

Rep: Reputation: 15
iptables and logging


When you log a packet in iptables, where is it put? For example:

iptables -A INPUT -s x.x.x.x/24 -j LOG --log-prefix "blocked"

Where does the log get put? Is it in /var/log/messages? Because I can' t seem to find any of my log messages.
 
Old 05-04-2004, 10:09 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Try moving the logging rule farther up in the firewall. Another rule ahead of it might be grabbing the packets before they get to your log rule. A good test would be to just do:

iptables -I INPUT -p icmp -j LOG

then just ping the box a few times. You should see messages appear in /var/log/messages. If not, take a look at /etc/syslog.conf and see where any kernel or .warning messages are being sent.
 
Old 05-04-2004, 11:55 PM   #3
Yohhan
LQ Newbie
 
Registered: Dec 2002
Posts: 28

Original Poster
Rep: Reputation: 15
Okay I'm seeing them now. Thanks!
 
  


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
IPTABLES - Logging metallica1973 Linux - Security 10 10-27-2005 05:17 PM
iptables logging laotalax Linux - Networking 1 10-25-2005 09:55 AM
Iptables and logging bennethos Linux - Security 1 10-18-2004 12:40 AM
Logging for IPTABLES logo Linux - Networking 4 10-11-2004 09:23 AM
Iptables logging Mogwa_ Linux - Security 2 08-01-2004 02:54 PM

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

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