diff options
author | jim-p <jimp@pfsense.org> | 2011-04-25 15:50:53 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-04-25 15:50:53 -0400 |
commit | 9f5d14ce72fd7aa18a92a7caa59cd9b429e459d0 (patch) | |
tree | 7f1a58c836f2302f9d84baee07653b57355dd373 /usr/local/www | |
parent | e3dc055a4fac4a89825db7616bfacd6b69c3ccf7 (diff) | |
download | pfsense-9f5d14ce72fd7aa18a92a7caa59cd9b429e459d0.zip pfsense-9f5d14ce72fd7aa18a92a7caa59cd9b429e459d0.tar.gz |
Show OpenVPN instances on Status > Traffic Graphs, with descriptions.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/status_graph.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index 6c00da4..8d65a34 100755 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -56,7 +56,17 @@ else // Get configured interface list $ifdescrs = get_configured_interface_with_descr(); -$ifdescrs["enc0"] = "IPSEC"; +if (isset($config['ipsec']['enable'])) + $ifdescrs['enc0'] = "IPsec"; +foreach (array('server', 'client') as $mode) { + if (is_array($config['openvpn']["openvpn-{$mode}"])) { + foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $setting) { + if (!isset($setting['disable'])) { + $ifdescrs['ovpn' . substr($mode, 0, 1) . $setting['vpnid']] = gettext("OpenVPN") . " ".$mode.": ".htmlspecialchars($setting['description']); + } + } + } +} if ($_GET['if']) { $curif = $_GET['if']; |