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/status_openvpn.php | 161 +++++++++++++++++++++++++++++++
1 file changed, 161 insertions(+)
create mode 100644 config/openvpn-status/status_openvpn.php
(limited to 'config/openvpn-status/status_openvpn.php')
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