filter: different approach, fix gateways generation to include local routes

This commit is contained in:
Franco Fichtner 2017-07-10 10:58:24 +02:00
parent f20f0c91fa
commit fa04749813
2 changed files with 1 additions and 5 deletions

View File

@ -392,7 +392,7 @@ function filter_configure_sync($verbose = false)
}
// init interfaces and gateways
$fw->setInterfaceMapping($cnfint);
$fw->setGateways(return_gateways_array());
$fw->setGateways(return_gateways_array(false, true));
$fw->setGatewayGroups(return_gateway_groups_array());
filter_core_bootstrap($fw);

View File

@ -175,10 +175,6 @@ class FilterRule
{
if (!empty($this->gatewayMapping[$value]['logic'])) {
return " " . $this->gatewayMapping[$value]['logic'] . " ";
} elseif ($value === 'Null4') {
return ' route-to ( lo0 127.0.0.1 )';
} elseif ($value === 'Null6') {
return ' route-to ( lo0 ::1 ) ';
} else {
return "";
}