Commit d02c03a9 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix tunnel identification when using ipsec nat,...

(legacy) fix tunnel identification when using ipsec nat, https://github.com/opnsense/core/issues/369

(cherry picked from commit c72484ec)
parent b4a6c9ea
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment