Linux Netfilter discussions
 help / color / mirror / Atom feed
* Logging
@ 2005-08-11 15:49 Svenne Krap
  2005-08-11 20:54 ` Logging Chris Brenton
  2005-08-12  6:24 ` Logging Grant Taylor
  0 siblings, 2 replies; 21+ messages in thread
From: Svenne Krap @ 2005-08-11 15:49 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

Hi.

I am currently working on a not so simple firewall setup on a modern 
machine (Xeon, Gigs of memory, SCSI subsystem).

As part of it, I would like to know various "event" statistics.Questions 
I would like to answer is "How many hits on port 1433 have i got, and 
how is that distributed amongst the machines". Think pivot table data.

Is there some way to get netfilter to collect rule hits (like with no -j 
clause) for a each port/ip-address individually within a range ?
Other than creating thousands of lines of rules and add them to my 
"firewall-startup" script (which is currently slightly less than 80 rules).

I have thought of just logging all traffic and running it through a 
userspace program via syslog-ng, but frankly I worry about performance 
(the firewall should be able to filter at least the 100Mbps connection, 
it currently sits on) under flooding.

Your thoughs are apprieciated :)

Svenne


^ permalink raw reply	[flat|nested] 21+ messages in thread
* logging
@ 2004-04-25 15:32 IT Clown
  2004-04-25 15:45 ` logging Antony Stone
  0 siblings, 1 reply; 21+ messages in thread
From: IT Clown @ 2004-04-25 15:32 UTC (permalink / raw)
  To: netfilter

Hi All
                                                            
                                                            
   
Does any one know what the local0 - local7 ( locally
defined levels ) would log in syslog. I know that when i
use the following:
daemon.*
local2.*
                                                            
                                                            
   
i log ppp. What do the rest log ( local0 - local7 )?
                                                            
                                                            
   
Regards
______________________________________________________________
Herbalife Independent Distributor http://www.healthiest.co.za


^ permalink raw reply	[flat|nested] 21+ messages in thread
* logging
@ 2004-04-12  3:13 ip tables
  0 siblings, 0 replies; 21+ messages in thread
From: ip tables @ 2004-04-12  3:13 UTC (permalink / raw)
  To: ip tables

hello all,

I need to get a hint on how to log traffic on a
firewall using iptables. I have setup some rules but i
don't know how to log certain things such as port scan
attempts or other break-in attempts. Do i need to have
an IDS for it?

Thanks

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html


^ permalink raw reply	[flat|nested] 21+ messages in thread
* logging
@ 2004-04-01  5:38 IT Clown
  2004-04-06 10:26 ` logging D. Prima Prayudi
  0 siblings, 1 reply; 21+ messages in thread
From: IT Clown @ 2004-04-01  5:38 UTC (permalink / raw)
  To: netfilter

Hi

Thanks i googled abit and found something else but its
logging to terminal and to a log file how do i get rid of
the terminal logging? Apparently you have to remove
anything like: /dev/console, "root" or '8' in syslog.conf
and there is nothing like that in it.I added the following
to syslog.conf:

kern.* /var/log/iptables

Regards
__________________________________________________________________________
http://www.webmail.co.za/dialup Webmail ISP - Cool Connection, Cool Price


^ permalink raw reply	[flat|nested] 21+ messages in thread
* logging
@ 2004-03-31  9:18 IT Clown
  2004-03-31  9:59 ` logging Mark Page
  0 siblings, 1 reply; 21+ messages in thread
From: IT Clown @ 2004-03-31  9:18 UTC (permalink / raw)
  To: netfilter

Hi

How do you log your iptables activity to a file because all
the activity is being displayed in my terminal while im
busy working.I would like to log it to
/var/log/iptables.
 Do i need to configure syslog.conf? how would i need to
configure it?

Regards
__________________________________________________________________________
http://www.webmail.co.za/dialup Webmail ISP - Cool Connection, Cool Price


^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: Logging
@ 2004-03-15 15:56 Hurley, Michael
  0 siblings, 0 replies; 21+ messages in thread
From: Hurley, Michael @ 2004-03-15 15:56 UTC (permalink / raw)
  To: netfilter

Try something like this:

set logging to, for example,
iptables -A FORWARD -j LOG --log-level 7 --log-prefix "FORWARD: "

Then in /etc/syslog.conf:
kern.7	-/var/log/firewall



-----Original Message-----
From: Mario Udina [mailto:m.udina@libero.it]
Sent: Monday, March 15, 2004 10:51 AM
To: netfilter@lists.netfilter.org
Subject: Logging


Hello!

I have done some googling however did not manage to find out if there
is a way to define a file where iptables writes its logs.

As I read in the man the file where the logs are written is the kernel
log i.e. /var/log/messages

is there a way to send this output to another file in order to keep the
logs clean?

regards,
	Mario Udina
-- 
i would like to die as my gradfather did, quietly in his sleep
and not in panic and disbelief as the passengers of his bus.


^ permalink raw reply	[flat|nested] 21+ messages in thread
* Logging
@ 2004-03-15 15:51 Mario Udina
  2004-03-15 16:07 ` Logging Frederic de Villamil
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Mario Udina @ 2004-03-15 15:51 UTC (permalink / raw)
  To: netfilter

Hello!

I have done some googling however did not manage to find out if there
is a way to define a file where iptables writes its logs.

As I read in the man the file where the logs are written is the kernel
log i.e. /var/log/messages

is there a way to send this output to another file in order to keep the
logs clean?

regards,
	Mario Udina
-- 
i would like to die as my gradfather did, quietly in his sleep
and not in panic and disbelief as the passengers of his bus.


^ permalink raw reply	[flat|nested] 21+ messages in thread
* logging
@ 2003-03-24 14:02 Philippe Dhont   (Sea-ro)
  0 siblings, 0 replies; 21+ messages in thread
From: Philippe Dhont   (Sea-ro) @ 2003-03-24 14:02 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

hi all,

i use fwbuilder to configure a firewall script
This seems to work but all my logging comes into my command prompt and in my
/var/log/messages
Now, i only want them in my /var/log/messages and NOT on my screen (very
annoying)
what do i have to do for that ?

regards,

Philippe Dhont 



^ permalink raw reply	[flat|nested] 21+ messages in thread
* Logging
@ 2003-01-14 18:23 Subba Rao
  2003-01-16 19:20 ` Logging Athan
  2003-01-17  4:26 ` Logging Dharmendra.T
  0 siblings, 2 replies; 21+ messages in thread
From: Subba Rao @ 2003-01-14 18:23 UTC (permalink / raw)
  To: Netfilter/Iptables Users

Hi

I have the following rules to allow traffic on SMTP port.

--------------------
iptables -A INPUT -i $EXTERNAL_IF -p tcp --destination-port 25 -j LOG \
                --log-level 4 --log-prefix "Incoming Mail Traffic "
iptables -A INPUT -i $EXTERNAL_IF -p tcp --destination-port 25 -j ACCEPT
--------------------

The default policy is on the INPUT chain is to drop the packets.  How do I capture
what is being dropped?

My goal is to log the inbound traffic and my syslog has the following
configuration:

--------------------
*.=info;*.=notice;mail.none                     /usr/adm/messages
*.=alert                                        /usr/adm/messages
*.=crit                                         /usr/adm/debug
mail.*                                          /var/log/mail-log
kern.*                                          /var/log/messages
user.*                                          /var/log/messages
syslog.*                                        /var/log/messages
auth.*                                          /var/log/messages
authpriv.*                                      /var/log/messages
--------------------

Is this configuration sufficient to capture the inbound connections?

-- 

Subba Rao
subba9@cablespeed.com


^ permalink raw reply	[flat|nested] 21+ messages in thread
[parent not found: <20021021210421.79305.qmail@web40702.mail.yahoo.com>]

end of thread, other threads:[~2005-08-12  6:24 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-11 15:49 Logging Svenne Krap
2005-08-11 20:54 ` Logging Chris Brenton
2005-08-12  6:24 ` Logging Grant Taylor
  -- strict thread matches above, loose matches on Subject: below --
2004-04-25 15:32 logging IT Clown
2004-04-25 15:45 ` logging Antony Stone
2004-04-12  3:13 logging ip tables
2004-04-01  5:38 logging IT Clown
2004-04-06 10:26 ` logging D. Prima Prayudi
2004-03-31  9:18 logging IT Clown
2004-03-31  9:59 ` logging Mark Page
2004-03-15 15:56 Logging Hurley, Michael
2004-03-15 15:51 Logging Mario Udina
2004-03-15 16:07 ` Logging Frederic de Villamil
2004-03-15 16:08 ` Logging Antony Stone
2004-03-15 16:25 ` Logging Frank Gruellich
2004-03-15 16:36 ` Logging forum
2003-03-24 14:02 logging Philippe Dhont   (Sea-ro)
2003-01-14 18:23 Logging Subba Rao
2003-01-16 19:20 ` Logging Athan
2003-01-17  4:26 ` Logging Dharmendra.T
     [not found] <20021021210421.79305.qmail@web40702.mail.yahoo.com>
2002-10-21 21:39 ` Logging Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox