summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ping.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-04-02 10:41:44 -0400
committerjim-p <jimp@pfsense.org>2013-04-02 10:41:44 -0400
commit534834639f1d1a8c359b69a85440163d64e413fb (patch)
tree48a0fa7b2b53bfded4b5ed036ff3f3c3b8e88017 /usr/local/www/diag_ping.php
parent6a7230b660df51b3f3461c9169025f1a367ff4d2 (diff)
downloadpfsense-534834639f1d1a8c359b69a85440163d64e413fb.zip
pfsense-534834639f1d1a8c359b69a85440163d64e413fb.tar.gz
Add OpenVPN interfaces as potential ping sources, too.
Diffstat (limited to 'usr/local/www/diag_ping.php')
-rwxr-xr-xusr/local/www/diag_ping.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php
index 5c0732b..8e1255c 100755
--- a/usr/local/www/diag_ping.php
+++ b/usr/local/www/diag_ping.php
@@ -41,7 +41,8 @@
##|-PRIV
$pgtitle = array(gettext("Diagnostics"), gettext("Ping"));
-require("guiconfig.inc");
+require_once("guiconfig.inc");
+
define('MAX_COUNT', 10);
define('DEFAULT_COUNT', 3);
@@ -111,6 +112,18 @@ include("head.inc"); ?>
<select name="interface" class="formselect">
<option value="">Any</option>
<?php $listenips = get_possible_listen_ips();
+ 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'])) {
+ $vpn = array();
+ $vpn['value'] = 'ovpn' . substr($mode, 0, 1) . $setting['vpnid'];
+ $vpn['name'] = gettext("OpenVPN") . " ".$mode.": ".htmlspecialchars($setting['description']);
+ $listenips[] = $vpn;
+ }
+ }
+ }
+ }
foreach ($listenips as $lip):
$selected = "";
if (!link_interface_to_bridge($lip['value']) && ($lip['value'] == $interface))
OpenPOWER on IntegriCloud