diff options
author | jim-p <jimp@pfsense.org> | 2011-02-16 16:22:11 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-16 16:22:11 -0500 |
commit | 0aba3822cfff6bed1cce0edee3d6814447e44979 (patch) | |
tree | 78448a563b00ff9dbd593aa953556330d86d3d2b /usr | |
parent | 3395ba20dd0b9483fce68e9992d1d2e850237cb7 (diff) | |
download | pfsense-0aba3822cfff6bed1cce0edee3d6814447e44979.zip pfsense-0aba3822cfff6bed1cce0edee3d6814447e44979.tar.gz |
Add IPsec and OpenVPN to packet capture. Ticket #1032
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/diag_packet_capture.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index 835b99b..8a9cb41 100644 --- a/usr/local/www/diag_packet_capture.php +++ b/usr/local/www/diag_packet_capture.php @@ -117,8 +117,18 @@ include("fbegin.inc"); <select name="interface"> <?php $interfaces = get_configured_interface_with_descr(); - foreach ($interfaces as $iface => $ifacename): -?> + if (isset($config['ipsec']['enable'])) + $interfaces['ipsec'] = "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'])) { + $interfaces['ovpn' . substr($mode, 0, 1) . $setting['vpnid']] = gettext("OpenVPN") . " ".$mode.": ".htmlspecialchars($setting['description']); + } + } + } + } + foreach ($interfaces as $iface => $ifacename): ?> <option value="<?=$iface;?>" <?php if ($selectedif == $iface) echo "selected"; ?>> <?php echo $ifacename;?> </option> |