Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes IPSec Status for natted tunnels

See http://redmine.pfsense.org/issues/2884 for details.

Thanks, Michele
  • Loading branch information...
commit 1bad10259aff96ff7a2248e5b173f0c3fc35b025 1 parent d632dd5
@mdima mdima authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  etc/inc/ipsec.inc
View
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.