summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-12-07 15:36:03 -0500
committerjim-p <jimp@pfsense.org>2012-12-07 15:36:36 -0500
commit0b73e6f2466194cfa6cc2b72180db84fba3f81fa (patch)
tree4920d1c49372ada728004a6dc5c51b572076645f /usr
parent0100d5775332faae681881ab0a1753262566645c (diff)
downloadpfsense-0b73e6f2466194cfa6cc2b72180db84fba3f81fa.zip
pfsense-0b73e6f2466194cfa6cc2b72180db84fba3f81fa.tar.gz
Don't allow transport mode to be selected for mobile clients. Fixes #2713
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/vpn_ipsec_phase2.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec_phase2.php b/usr/local/www/vpn_ipsec_phase2.php
index c1f7403..a8c859e 100644
--- a/usr/local/www/vpn_ipsec_phase2.php
+++ b/usr/local/www/vpn_ipsec_phase2.php
@@ -176,6 +176,8 @@ if ($_POST) {
}
/* Validate enabled phase2's are not duplicates */
if (isset($pconfig['mobile'])){
+ if (substr($pconfig['mode'], 0, 6) != "tunnel")
+ $input_errors[] = gettext("Mobile IPsec only supports Tunnel mode.");
/* User is adding phase 2 for mobile phase1 */
foreach($a_phase2 as $key => $name){
if (isset($name['mobile'])){
OpenPOWER on IntegriCloud