diff options
author | smos <seth.mos@dds.nl> | 2011-03-02 08:21:16 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-03-02 08:21:16 +0100 |
commit | 829fa12ed525127cdfe8f7c5eca443af31de9564 (patch) | |
tree | 928134a72a6b56012660a231a88d502cca45be91 /etc | |
parent | baca83aa29796e96731a53f05a35a2c272375d66 (diff) | |
download | pfsense-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.inc | 5 |
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 */ |