Commit 9385d1fb authored by Franco Fichtner's avatar Franco Fichtner

filter: improve print style in rules file

parent 04a1d6c4
......@@ -750,7 +750,7 @@ function filter_generate_aliases(&$FilterIflist, &$after_filter_configure_run)
{
global $config;
$aliases = "#System aliases\n";
$aliases = "# System aliases\n";
$aliases .= "loopback = \"{ lo0 }\"\n";
foreach ($FilterIflist as $if => $ifcfg) {
......@@ -1725,14 +1725,14 @@ function filter_nat_rules_generate(&$FilterIflist)
$alintrf = null;
}
if (!empty($alintrf) ) {
$natrules .= "# Anti lockout, prevent redirects for protected ports to this interface ip \n";
$natrules .= "no rdr on {$alintrf} proto tcp from any to ( {$alintrf} ) port { {$alports} } ";
$natrules .= "\n# Anti lockout, prevent redirects for protected ports to this interface ip \n";
$natrules .= "no rdr on {$alintrf} proto tcp from any to ( {$alintrf} ) port { {$alports} }\n";
}
unset($alports);
}
if (isset($config['nat']['rule'])) {
$natrules .= "# NAT Inbound Redirects\n";
$natrules .= "\n# NAT Inbound Redirects\n";
foreach ($config['nat']['rule'] as $rule) {
update_filter_reload_status(sprintf(gettext("Creating NAT rule %s"), $rule['descr']));
......
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