diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-21 21:41:36 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-21 21:41:36 +0000 |
commit | 7a6bbecad19f2032f1906e7b7d07daa8738d3334 (patch) | |
tree | 3244b6a972d0ef577cf96f92de159780a8888941 /usr/local/www/firewall_nat_out.php | |
parent | 7392a31f823bffe44dd768fe884ecfff525850a1 (diff) | |
download | pfsense-7a6bbecad19f2032f1906e7b7d07daa8738d3334.zip pfsense-7a6bbecad19f2032f1906e7b7d07daa8738d3334.tar.gz |
MFC 8573
Correctly deterimine starting address Ticket #738
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-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") |