diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-03-12 19:43:37 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-03-12 19:44:20 +0100 |
commit | 287e0c9d27405b88d3727f0edd21b778638dc5b4 (patch) | |
tree | ed089299cde40d7a04cdda690196f3f1ed76e0b5 /etc | |
parent | 73fbece8f11fa253120f549e6ea837c9242534a2 (diff) | |
download | pfsense-287e0c9d27405b88d3727f0edd21b778638dc5b4.zip pfsense-287e0c9d27405b88d3727f0edd21b778638dc5b4.tar.gz |
Correct and expand the local and remote IP address endpoint check so that it specifies which one is at fault.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index db4b6a0..aa0857f 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -1557,8 +1557,11 @@ function reload_tunnel_spd_policy($phase1, $phase2, $old_phase1, $old_phase2) { return false; } - if((!is_ipaddr($oldep)) || (! is_ipaddr($ep)) || (! is_ipaddr($rgip)) || (! is_ipaddr($old_gw))) { - log_error("IPSEC: ERROR: One of the local or remote endpoints did not resolve to a IP address, aborting"); + if((!is_ipaddr($old_ep)) || (! is_ipaddr($ep))) { + log_error("IPSEC: ERROR: One of the endpoints is not a IP address. Old EP '{$old_ep}' new EP '{$ep}'"); + } + if((! is_ipaddr($rgip)) || (! is_ipaddr($old_gw))) { + log_error("IPSEC: ERROR: One of the remote endpoints is not a IP address. Old RG '{$old_gw}' new RG '{$rgip}'"); } $spdconf = ""; |