Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Michele Di Maria authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  etc/inc/ipsec.inc
2  etc/inc/ipsec.inc
@@ -354,7 +354,7 @@ function ipsec_phase2_status(& $spd,& $sad,& $ph1ent,& $ph2ent) {
354 354 if( ipsec_lookup_ipsec_sa($spd,$sad,"out",$loc_ip,$rmt_ip,$loc_id,$rmt_id)) {
355 355 if (empty($ph2ent['natlocalid']) && ipsec_lookup_ipsec_sa($spd,$sad,"in",$rmt_ip,$loc_ip,$rmt_id,$loc_id))
356 356 return true;
357   - else if (!empty($ph2ent['natlocalid']) && ipsec_lookup_ipsec_sa($spd,$sad,"in",$rmt_ip,$natloc_id,$rmt_id,$natloc_id))
  357 + else if (!empty($ph2ent['natlocalid']) && ipsec_lookup_ipsec_sa($spd,$sad,"out",$loc_ip,$rmt_ip,$loc_id,$rmt_id))
358 358 return true;
359 359 }
360 360

0 comments on commit 1bad102

Please sign in to comment.
Something went wrong with that request. Please try again.