summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_phase2.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-10-23 21:37:17 +0000
committerErmal <eri@pfsense.org>2012-10-23 21:37:17 +0000
commit8d1a9e58c92837504e3fc167f9a08570145766db (patch)
treefaa0d4eb40123ba1f585d30eded9cd7837f38aed /usr/local/www/vpn_ipsec_phase2.php
parentfbfed5baccbe768594f60ef4bceb98a9a882ae45 (diff)
downloadpfsense-8d1a9e58c92837504e3fc167f9a08570145766db.zip
pfsense-8d1a9e58c92837504e3fc167f9a08570145766db.tar.gz
Throw an error when invalid configuration is posted(address->network).
Diffstat (limited to 'usr/local/www/vpn_ipsec_phase2.php')
-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 08c157b..c6ced6e 100644
--- a/usr/local/www/vpn_ipsec_phase2.php
+++ b/usr/local/www/vpn_ipsec_phase2.php
@@ -146,6 +146,8 @@ if ($_POST) {
case "network":
if (($pconfig['natlocalid_netbits'] != 0 && !$pconfig['natlocalid_netbits']) || !is_numeric($pconfig['natlocalid_netbits']))
$input_errors[] = gettext("A valid nat local network bit count must be specified.");
+ if ($pconfig['localid_type'] == "address")
+ $input_errors[] = gettext("You cannot configure a network type address for NAT while only an address type is selected for local source.");
case "address":
if (!empty($pconfig['natlocalid_address']) && !is_ipaddr($pconfig['natlocalid_address']))
$input_errors[] = gettext("A valid nat local network IP address must be specified.");
OpenPOWER on IntegriCloud