summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-03-02 08:21:16 +0100
committersmos <seth.mos@dds.nl>2011-03-02 08:21:16 +0100
commit829fa12ed525127cdfe8f7c5eca443af31de9564 (patch)
tree928134a72a6b56012660a231a88d502cca45be91 /etc
parentbaca83aa29796e96731a53f05a35a2c272375d66 (diff)
downloadpfsense-829fa12ed525127cdfe8f7c5eca443af31de9564.zip
pfsense-829fa12ed525127cdfe8f7c5eca443af31de9564.tar.gz
Add a check that should prevent configuration of racoon with duplicate phase 1 IP entries.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 624098d..2e72a6d 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -164,7 +164,10 @@ function vpn_ipsec_configure($ipchg = false)
if (!is_ipaddr($rg))
continue;
}
-
+ if(array_search($rg, $rgmap)) {
+ log_error("The remote gateway {$rg} already exists on another phase 1 entry");
+ continue;
+ }
$rgmap[$ph1ent['remote-gateway']] = $rg;
/* step through each phase2 entry */
OpenPOWER on IntegriCloud