From 10c9531d2c6541a0c90c752db1a43baa05632078 Mon Sep 17 00:00:00 2001
From: jim-p
Date: Sat, 23 Jan 2010 19:22:08 -0500
Subject: Add a package for 1.2.3 that will show an OpenVPN server status
(client list) like 2.0 has.
---
config/openvpn-status/openvpn-status.xml | 70 ++++++++++++++
config/openvpn-status/status_openvpn.php | 161 +++++++++++++++++++++++++++++++
2 files changed, 231 insertions(+)
create mode 100644 config/openvpn-status/openvpn-status.xml
create mode 100644 config/openvpn-status/status_openvpn.php
(limited to 'config/openvpn-status')
diff --git a/config/openvpn-status/openvpn-status.xml b/config/openvpn-status/openvpn-status.xml
new file mode 100644
index 00000000..4f7a876b
--- /dev/null
+++ b/config/openvpn-status/openvpn-status.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+ .
+ All rights reserved.
+ */
+/* ========================================================================== */
+/*
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ */
+/* ========================================================================== */
+ ]]>
+
+ OpenVPN Status Page
+ Management Port Defined in OpenVPN Config
+ Currently there are no FAQ items provided.
+ OpenVPN Status
+ 1.0
+ Status: OpenVPN
+
+
+ /usr/local/www/
+ 077
+ - http://www.pfsense.com/packages/config/openvpn-status/status_openvpn.php
+
+
+
+
+
\ No newline at end of file
diff --git a/config/openvpn-status/status_openvpn.php b/config/openvpn-status/status_openvpn.php
new file mode 100644
index 00000000..7238c0ca
--- /dev/null
+++ b/config/openvpn-status/status_openvpn.php
@@ -0,0 +1,161 @@
+$pgtitle
";
+
+echo $buff;
+
+?>
+
+
+
+
+
+ Client connections for =$server['name'];?>
+ |
+
+
+
+
+
+ Common Name |
+ Real Address |
+ Virtual Address |
+ Connected Since |
+ Bytes Sent |
+ Bytes Received |
+
+
+
+
+
+ =$conn['common_name'];?>
+ |
+
+ =$conn['remote_host'];?>
+ |
+
+ =$conn['virtual_addr'];?>
+ |
+
+ =$conn['connect_time'];?>
+ |
+
+ =$conn['bytes_sent'];?>
+ |
+
+ =$conn['bytes_recv'];?>
+ |
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
NOTE: You must enable the OpenVPN management interface for each server you want to monitor. You can do this by placing "management 127.0.0.1 <port>;" in the custom options box for the server, where <port> is the port number set for that server.
+
+
--
cgit v1.2.3