summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-21 21:41:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-21 21:41:36 +0000
commit7a6bbecad19f2032f1906e7b7d07daa8738d3334 (patch)
tree3244b6a972d0ef577cf96f92de159780a8888941 /usr/local/www/firewall_nat_out.php
parent7392a31f823bffe44dd768fe884ecfff525850a1 (diff)
downloadpfsense-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-xusr/local/www/firewall_nat_out.php4
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")
OpenPOWER on IntegriCloud