Actions
Bug #12793
closedAutomatic Outbound NAT rules does not include Static Routes entries with aliases
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Rules / NAT
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.5.2
Affected Architecture:
Description
filter_nat_rules_automatic_tonathosts() only does not parse static routes with aliases:
https://github.com/pfsense/pfsense/blob/master/src/etc/inc/filter.inc#L1750-L1760:
// Add any enabled static routes
foreach (get_staticroutes(false, false, true) as $route) {
$netip = explode("/", $route['network']);
if (isset($GatewaysList[$route['gateway']])) {
$gateway = &$GatewaysList[$route['gateway']];
if (!interface_has_gateway($gateway['interface']) && is_private_ip($netip[0])) {
$tonathosts[] = $route['network'];
$descriptions[] = gettext("static route");
}
}
}
Updated by Viktor Gurov almost 4 years ago
- Status changed from New to Closed
get_staticroutes() correctly returns expanded aliases
Actions