Skip to content

Commit

Permalink
(legacy) fix tunnel identification when using ipsec nat, #369
Browse files Browse the repository at this point in the history
(cherry picked from commit c72484e)
  • Loading branch information
AdSchellevis authored and fichtner committed Oct 13, 2015
1 parent b4a6c9e commit d02c03a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/etc/inc/vpn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -655,14 +655,6 @@ EOD;
continue;
}
if (!empty($ph2ent['natlocalid'])) {
$natleftsubnet_data = ipsec_idinfo_to_cidr($ph2ent['natlocalid'], false, $ph2ent['mode']);
if ($ph2ent['natlocalid']['type'] != "address") {
if (is_subnet($natleftsubnet_data))
$leftsubnet_data = "{$natleftsubnet_data}|{$leftsubnet_data}";
} else {
if (is_ipaddr($natleftsubnet_data))
$leftsubnet_data = "{$natleftsubnet_data}|{$leftsubnet_data}";
}
$natfilterrules = true;
}
}
Expand Down

0 comments on commit d02c03a

Please sign in to comment.