Commit fa047498 authored by Franco Fichtner's avatar Franco Fichtner

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

parent f20f0c91
...@@ -392,7 +392,7 @@ function filter_configure_sync($verbose = false) ...@@ -392,7 +392,7 @@ function filter_configure_sync($verbose = false)
} }
// init interfaces and gateways // init interfaces and gateways
$fw->setInterfaceMapping($cnfint); $fw->setInterfaceMapping($cnfint);
$fw->setGateways(return_gateways_array()); $fw->setGateways(return_gateways_array(false, true));
$fw->setGatewayGroups(return_gateway_groups_array()); $fw->setGatewayGroups(return_gateway_groups_array());
filter_core_bootstrap($fw); filter_core_bootstrap($fw);
......
...@@ -175,10 +175,6 @@ class FilterRule ...@@ -175,10 +175,6 @@ class FilterRule
{ {
if (!empty($this->gatewayMapping[$value]['logic'])) { if (!empty($this->gatewayMapping[$value]['logic'])) {
return " " . $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 { } else {
return ""; return "";
} }
......
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