diff options
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index 1f5f58b..d5a731f 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -101,9 +101,9 @@ if (isset($_POST['save'])) { } } $natent = array(); - $osn = convert_ip_to_network_format($config['interfaces'][$if]['ipaddr'], + $osn = gen_subnet($config['interfaces'][$if]['ipaddr'], $config['interfaces'][$if]['subnet']); - $natent['source']['network'] = $osn; + $natent['source']['network'] = $osn . "/" . $config['interfaces'][$if]['subnet']; $natent['sourceport'] = ""; $int_description = $config['interfaces'][$if]['descr']; if($if == "lan") |