LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2001, 09:01 AM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Unhappy


Since I just upgraded to 2.4.4, I set iptables as my new firewall (using MonMotha's IPTables firewall). I used to use PMFirewall for ipchains. When that was running, it extensively logged EVERYTHING that happened. I was able to tell exactly who was trying to connect and which packets were being dropped. Now nothing is reported at all. Does anyone know how to turn on logging with iptables?

Andy
 
Old 05-11-2001, 10:52 PM   #2
billsabub
Member
 
Registered: Feb 2001
Posts: 109

Rep: Reputation: 15
bfloeagle,

Good question! It's something I've needed to work out myself.

You must have the "log" module of iptables included in your kernel.

An iptable entry would look something like this:

iptables -t nat -A PREROUTING -i eth0 \ -d 1.1.1.1 -j LOG --log-level warning --log-prefix "BAD "

Where " -j LOG " would log any instance that meets the criteria of that rule.

The --log-level and --log-prefix are explained here:
http://netfilter.filewatcher.org/unr...inuxdoc-7.html

Plus, a great section on very specific logs is found here:
http://www.cs.princeton.edu/~jns/security/iptables/

Scroll down (or do a search for log) until you find the appropriate header.


HTH
 
  


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 doublejoon Linux - Security 8 01-09-2006 04:20 AM
IPTABLES - Logging metallica1973 Linux - Security 10 10-27-2005 05:17 PM
iptables logging laotalax Linux - Networking 1 10-25-2005 09:55 AM
Logging for IPTABLES logo Linux - Networking 4 10-11-2004 09:23 AM
Iptables logging asterisk Linux - Networking 2 09-04-2004 12:16 AM

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

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