mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
VPN / IPsec: calculatation error in 8b62109a61 , start at 31,127 to make sure both points can actually reach eachother. for https://github.com/opnsense/core/issues/4700
This commit is contained in:
parent
819131b866
commit
ee002053da
@ -1848,9 +1848,9 @@ function ipsec_get_configured_vtis()
|
||||
$parts = explode(':', Net_IPv6::Uncompress($phase2[$fieldname], true));
|
||||
$tunnel_int64[$fieldname] = hexdec(implode("", array_slice($parts, -4)));
|
||||
}
|
||||
$mask = 128 - decbin(abs($tunnel_int64['tunnel_remote'] - $tunnel_int64['tunnel_local']));
|
||||
$mask = 127 - decbin(abs($tunnel_int64['tunnel_remote'] - $tunnel_int64['tunnel_local']));
|
||||
} else {
|
||||
$mask = 32 - abs(ip2long($phase2['tunnel_remote']) - ip2long($phase2['tunnel_local']));
|
||||
$mask = 31 - abs(ip2long($phase2['tunnel_remote']) - ip2long($phase2['tunnel_local']));
|
||||
}
|
||||
|
||||
$configured_intf[$intfnm]['networks'][] = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user