summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-03-12 14:49:15 -0500
committerChris Buechler <cmb@pfsense.org>2015-03-12 14:49:15 -0500
commitad073d9aec5276d19160a2ebb8018b8f6abe7945 (patch)
tree6c255186634fab0aabeac8775385ed74f14d99b3 /etc
parent7f951c6306c8a286bf8574d40b4b629709a114d9 (diff)
downloadpfsense-ad073d9aec5276d19160a2ebb8018b8f6abe7945.zip
pfsense-ad073d9aec5276d19160a2ebb8018b8f6abe7945.tar.gz
If we bail not being able to find the P1 source, log an error.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index e3a47f8..4d242e6 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -199,8 +199,10 @@ function vpn_ipsec_configure($restart = false)
$listeniflist = get_real_interface($a_phase1['interface']);
$ep = ipsec_get_phase1_src($ph1ent);
- if (!is_ipaddr($ep))
+ if (!is_ipaddr($ep)) {
+ log_error("IPsec ERROR: Could not find phase 1 source for connection {$ph1ent['descr']}. Omitting from configuration file.");
continue;
+ }
if(!in_array($ep,$ipmap))
$ipmap[] = $ep;
OpenPOWER on IntegriCloud