All of lore.kernel.org
 help / color / mirror / Atom feed
* logging
@ 2004-03-31  9:18 IT Clown
  2004-03-31  9:59 ` logging Mark Page
  0 siblings, 1 reply; 47+ 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] 47+ messages in thread
* Logging
@ 2020-03-15 13:16 J.R. Oldroyd
  2020-03-16 11:25 ` Logging Arti Zirk
  2020-03-16 19:30 ` Logging Jason A. Donenfeld
  0 siblings, 2 replies; 47+ messages in thread
From: J.R. Oldroyd @ 2020-03-15 13:16 UTC (permalink / raw)
  To: wireguard

Hi all,

New here.  Apologies if I am re-hashing something discussed before.
I did read back a few months of this list and didn't see any relevant
discussion.

Unlike many here who are providing anonymous VPN services and who
don't want logging at all, I am helping set up Wireguard in a corporate
VPN environment.  The logging requirements here are very different.

Specifically, there is a need for permanent logs.  And, the logs should
ideally include:

	- when a client connects
	- when a client disconnects
	- ideally also how much data was transferred in and out
	  during a session

So this is precisely the opposite logging requirement from those
who are managing anonymous VPNs.  That's understood, and my proposed
changes maintain current default no-logging behavior for those that
need no logging.

I have made replacements [1] for device/logger.go that allow syslog
to be used for logging if available.

There are two files, both are needed.  There are OS-dependent
compilation directives so that the syslog version is not used on
Windows or Plan9, which do not have syslog.

In both, the behavior is exactly the same as now by default.  If no
other config is used, logging is still at info level to stdout as is
current practice.  I.e., you can drop these in and nothing will change
for current users, even on systems that support syslog.

To use the new syslog logging, environment variables must be set.
Logging level and logging destination are controlled by the existing
variable LOG_LEVEL and the new WG_LOG_DEST and WG_LOG_FACILITY:

	LOG_LEVEL	"debug", "info", "error", "silent"
				(default is still "info")

	WG_LOG_DEST	"stdout", "syslog"
				(default is "stdout")

	WG_LOG_FACILITY
			any syslog facility, e.g., "daemon", "local0",
			"local1", etc (also "log_", prefix OK and
			either lower- or upper-case)
				(default is "daemon")

Note that when using syslog, your syslog.conf needs to be configured
to send messages from your chosen facility.level to somewhere useful.

Also, it's worth saying that wireguard-go's logging includes some
UTF-8 characters.  Certain OSs' syslogd don't handle 8-bit data
very well.  E.g., FreeBSD.  A patch for FreeBSD's syslogd is at [2].

Since this is backwards compatible, it would be great to see this
logger.go and logger_syslog.go replace the current logger.go.

I have also been playing with some patches to add the session start and
end log messages.  I realize that this is a stateless protocol and that
the idea of a session isn't really there.  While my current placement of
these session log messages in receive.go and in timers.go is close, it
isn't perfect.  Right now I am logging "session start" in the initial
handshake code and "session end" in the handshake timeout code.  Neither
are perfect but, as I said, close.  I need to look more at the peer
state information that is currently maintained in order to see if
there's a better place to put these log messages.  I realize also that
these session log messages must not be logged for those who don't want
any logging.  These session log patches are NOT part of the current
proposed logger.go changes.  If anyone wants to see these, I'll send
them along separately.

	-jr

[1] optional syslog logging for wireguard-go
    http://opal.com/jr/wireguard/logger.go
    http://opal.com/jr/wireguard/logger_syslog.go
	(both files are needed)

[2] Patch for FreeBSD's syslogd to support UTF-8 chars in messages
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244226

^ permalink raw reply	[flat|nested] 47+ messages in thread
* Logging
@ 2011-04-17 23:30 Zenon Panoussis
  2011-04-18  0:53 ` Logging Colin McCabe
  0 siblings, 1 reply; 47+ messages in thread
From: Zenon Panoussis @ 2011-04-17 23:30 UTC (permalink / raw)
  To: ceph-devel


Question: what's the "do not log at all" syntax in ceph.conf? I tried
putting everything on "debug xyz = 0", but ceph (osd in this case) is
still logging plenty. According to this, I think it shouldn't:

# grep debug /etc/ceph/ceph.conf
	; logging, for debugging monitor crashes, in order of
	debug ms = 0
	debug mon = 0
	debug paxos = 0
	debug auth = 0
	; mds logging to debug issues.
	debug ms = 0
	debug mds = 0
	debug mds balancer = 0
	debug mds log = 0
	debug mds_migrator = 0
	debug monc = 0
	; osd logging to debug osd issues, in order of likelihood of being
	debug ms = 0
	debug osd = 0
	debug filestore = 0
	debug journal = 0

Log example:

2011-04-18 01:28:56.787046 7f7976fd8700 osd0 5 pg[1.3d( v 5'186 (5'184,5'186] n=1 ec=2 les=5 3/3/2) [0,1] r=0 mlcod 5'184 active+clean]  sending commit on repgather(0x7f794827fb70 applying 5'186 rep_tid=49196 wfack=0 wfdisk= op=osd_op(mds0.1:27067 200.00000058 [write 3241176~1615] 1.fbbd) v2) 0x7f794811b630

Z



^ permalink raw reply	[flat|nested] 47+ messages in thread
* 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; 47+ 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] 47+ messages in thread
* logging
@ 2004-04-25 15:32 IT Clown
  2004-04-25 15:45 ` logging Antony Stone
  0 siblings, 1 reply; 47+ 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] 47+ messages in thread
* logging
@ 2004-04-12  3:13 ip tables
  0 siblings, 0 replies; 47+ 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] 47+ messages in thread
* logging
@ 2004-04-01  5:38 IT Clown
  2004-04-06 10:26 ` logging D. Prima Prayudi
  0 siblings, 1 reply; 47+ 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] 47+ messages in thread
* RE: Logging
@ 2004-03-15 15:56 Hurley, Michael
  0 siblings, 0 replies; 47+ 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] 47+ 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; 47+ 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] 47+ messages in thread
* logging
@ 2003-12-29 22:43 John T. Williams
  2003-12-30  2:39 ` logging caszonyi
  2003-12-30  2:44 ` logging Ray Olszewski
  0 siblings, 2 replies; 47+ messages in thread
From: John T. Williams @ 2003-12-29 22:43 UTC (permalink / raw)
  To: linux

I was wondering if there is a good method for logging all attempts to
connect to a port on my computer.  Basically, I was looking for
something that logged the port and ip and the destination port of
attempted connections.

I'm running Mandrake 9.1




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 47+ messages in thread
* logging
@ 2003-03-24 14:02 Philippe Dhont   (Sea-ro)
  0 siblings, 0 replies; 47+ 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] 47+ 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; 47+ 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] 47+ messages in thread
[parent not found: <20021021210421.79305.qmail@web40702.mail.yahoo.com>]
* Logging
@ 2002-04-10  5:46 Chris Rose
  2002-04-10  6:08 ` Logging Richard Adams
  0 siblings, 1 reply; 47+ messages in thread
From: Chris Rose @ 2002-04-10  5:46 UTC (permalink / raw)
  To: linux-newbie

Can anyone on the list suggest some tools for log reading?  i'm trying to 
audit my ftp server (proftpd) and i have no idea how to configure its 
logging, nor how best to view what it puts out.  i have Webmin, but the 
logging interface in there is pretty unclear to someone who's got nothing 
to start from, knowledge-wise.


Chris Rose
==========
1952 - 2001 = 42


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 47+ messages in thread

end of thread, other threads:[~2020-03-18 10:43 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-31  9:18 logging IT Clown
2004-03-31  9:59 ` logging Mark Page
  -- strict thread matches above, loose matches on Subject: below --
2020-03-15 13:16 Logging J.R. Oldroyd
2020-03-16 11:25 ` Logging Arti Zirk
2020-03-16 19:30 ` Logging Jason A. Donenfeld
2020-03-17  7:37   ` Logging J.R. Oldroyd
2020-03-17 18:12     ` Logging Luis Ressel
2020-03-18  8:14       ` Logging J.R. Oldroyd
2020-03-18 10:43         ` Logging Luis Ressel
2011-04-17 23:30 Logging Zenon Panoussis
2011-04-18  0:53 ` Logging Colin McCabe
2011-04-18 10:13   ` Logging Zenon Panoussis
2011-04-18 17:16     ` Logging Colin McCabe
2011-04-18 18:17       ` Logging Zenon Panoussis
2011-04-18 18:41         ` Logging Colin McCabe
2011-04-18 20:56           ` Logging Zenon Panoussis
2011-04-18 22:25             ` Logging Colin McCabe
2011-04-19  0:10               ` Logging Zenon Panoussis
2011-04-19  5:02                 ` Logging Sage Weil
2011-04-19 11:19                   ` Logging Zenon Panoussis
2011-04-19 16:27                     ` Logging Sage Weil
2005-08-11 15:49 Logging Svenne Krap
2005-08-11 20:54 ` Logging Chris Brenton
2005-08-12  6:24 ` Logging Grant Taylor
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-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-12-29 22:43 logging John T. Williams
2003-12-30  2:39 ` logging caszonyi
2003-12-30  2:44 ` logging Ray Olszewski
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
2002-04-10  5:46 Logging Chris Rose
2002-04-10  6:08 ` Logging Richard Adams
2002-04-10  6:36   ` Logging Chris Rose
2002-04-10 18:23     ` Logging Richard Adams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.