[ previous ] [ next ] [ threads ]
 
 From:  Peter Allgeyer <allgeyer at web dot de>
 To:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  OpenVPN: facility=LOG_DAEMON ?
 Date:  Tue, 30 Aug 2005 20:21:34 +0200
Hi,

some of you guys must have come over it yet: openvpn is looging with
facility daemon.notice. This has the bad sideeffect that all log entries
are logged twice :( We could patch syslog.conf for that, but anyway: It
would be much better if we log everything from openvpn into its own
facility so that it can be sorted out later. Moreover, if we give it its
own facility we are able to have an own log tab on the loggin page (as
we have for pptp_vpn).

So Peter or Manuel: Is it possible to compile openvpn with this patch?

--- openvpn-2.0/error.c.old     2005-04-11 05:43:56.000000000 +0200
+++ openvpn-2.0/error.c 2005-08-30 20:17:36.000000000 +0200
@@ -50,7 +50,7 @@
 
 #if SYSLOG_CAPABILITY
 #ifndef LOG_OPENVPN
-#define LOG_OPENVPN LOG_DAEMON
+#define LOG_OPENVPN LOG_LOCAL6
 #endif
 #endif

Thanks and best regards,
PIT


---------------------------------------------------------------------------
 copyleft(c) by |           Just go ahead and write your own multitasking
 Peter Allgeyer |   _-_     multiuser os! Worked for me all the times.
                | 0(o_o)0   -- Linus Torvalds
---------------oOO--(_)--OOo-----------------------------------------------