summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Di Maria <michele@nt2.it>2013-03-15 10:13:48 +0100
committerMichele Di Maria <michele@nt2.it>2013-03-15 10:13:48 +0100
commit1bad10259aff96ff7a2248e5b173f0c3fc35b025 (patch)
treebf99f26bc231182994b79b8ee36ca2a5346ac6ea
parentd632dd5aa9f4809e187475c367f3f1eaf444d8c3 (diff)
downloadpfsense-1bad10259aff96ff7a2248e5b173f0c3fc35b025.zip
pfsense-1bad10259aff96ff7a2248e5b173f0c3fc35b025.tar.gz
Fixes IPSec Status for natted tunnels
See http://redmine.pfsense.org/issues/2884 for details. Thanks, Michele
-rw-r--r--etc/inc/ipsec.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc
index 9ad3e4a..2d5c1a7 100644
--- a/etc/inc/ipsec.inc
+++ b/etc/inc/ipsec.inc
@@ -354,7 +354,7 @@ function ipsec_phase2_status(& $spd,& $sad,& $ph1ent,& $ph2ent) {
if( ipsec_lookup_ipsec_sa($spd,$sad,"out",$loc_ip,$rmt_ip,$loc_id,$rmt_id)) {
if (empty($ph2ent['natlocalid']) && ipsec_lookup_ipsec_sa($spd,$sad,"in",$rmt_ip,$loc_ip,$rmt_id,$loc_id))
return true;
- else if (!empty($ph2ent['natlocalid']) && ipsec_lookup_ipsec_sa($spd,$sad,"in",$rmt_ip,$natloc_id,$rmt_id,$natloc_id))
+ else if (!empty($ph2ent['natlocalid']) && ipsec_lookup_ipsec_sa($spd,$sad,"out",$loc_ip,$rmt_ip,$loc_id,$rmt_id))
return true;
}
OpenPOWER on IntegriCloud