Add subnet to 0.0.0.0 otherwise it's not added to table, ticket #2416

This commit is contained in:
Renato Botelho 2013-11-18 16:42:29 -02:00
parent 6b1f9a9941
commit 58fac6951c

View File

@ -1679,7 +1679,7 @@ function filter_nat_rules_generate() {
$numberofnathosts++;
}
$natrules .= "\n# Subnets to NAT \n";
$tonathosts .= "127.0.0.0/8 0.0.0.0 ";
$tonathosts .= "127.0.0.0/8 0.0.0.0/0 ";
if($numberofnathosts > 4) {
$natrules .= "table <tonatsubnets> { {$tonathosts} }\n";
$macroortable = "<tonatsubnets>";