Revision: 7939
          http://sourceforge.net/p/ipcop/svn/7939
Author:   owes
Date:     2015-03-14 14:52:12 +0000 (Sat, 14 Mar 2015)
Log Message:
-----------
Add connection time to openvpn disconnect log entry

Modified Paths:
--------------
    ipcop/trunk/src/scripts/openvpn.sh
    ipcop/trunk/updates/2.2.0/ROOTFILES.i486-2.2.0

Modified: ipcop/trunk/src/scripts/openvpn.sh
===================================================================
--- ipcop/trunk/src/scripts/openvpn.sh  2015-03-14 14:50:18 UTC (rev 7938)
+++ ipcop/trunk/src/scripts/openvpn.sh  2015-03-14 14:52:12 UTC (rev 7939)
@@ -5,7 +5,7 @@
 #
 # IPCop is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 #
 # IPCop is distributed in the hope that it will be useful,
@@ -14,10 +14,9 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with IPCop; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+# along with IPCop.  If not, see <http://www.gnu.org/licenses/>.
 #
-# Copyright (C) 2009-2010, the IPCop team.
+# Copyright (C) 2009-2015, the IPCop team.
 #
 # $Id$
 #
@@ -28,7 +27,7 @@
         /usr/bin/logger -t openvpn "CONNECT $common_name 
$ifconfig_pool_remote_ip $trusted_ip"
         ;;
     client-disconnect)
-        /usr/bin/logger -t openvpn "DISCONNECT $common_name 
$ifconfig_pool_remote_ip $trusted_ip $bytes_received $bytes_sent"
+        /usr/bin/logger -t openvpn "DISCONNECT $common_name 
$ifconfig_pool_remote_ip $trusted_ip rx=$bytes_received tx=$bytes_sent 
connect=$time_duration"
         ;;
     *)
         /usr/bin/logger -t openvpn "openvpn.sh unexpected script type: 
$script_type"

Modified: ipcop/trunk/updates/2.2.0/ROOTFILES.i486-2.2.0
===================================================================
--- ipcop/trunk/updates/2.2.0/ROOTFILES.i486-2.2.0      2015-03-14 14:50:18 UTC 
(rev 7938)
+++ ipcop/trunk/updates/2.2.0/ROOTFILES.i486-2.2.0      2015-03-14 14:52:12 UTC 
(rev 7939)
@@ -20,6 +20,7 @@
 /usr/local/bin/ipsecctrl
 /usr/local/bin/iptableswrapper
 /usr/local/bin/logwatch
+/usr/local/bin/openvpn.sh
 /usr/local/bin/rebuildhosts
 /usr/local/bin/rebuildlangtexts
 /usr/local/bin/red

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to