diff options
author | Chris Buechler <cmb@pfsense.org> | 2011-09-09 04:39:30 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2011-09-09 04:39:30 -0400 |
commit | 70ec6cc296c8799f539785e45c4cf97fae7ae970 (patch) | |
tree | 7e282f15a8c875e622aa0eff60141c6d2ac2951b /usr/local/www | |
parent | 7c7d856ccb77c81cac41d1aecebe132107b1942c (diff) | |
download | pfsense-70ec6cc296c8799f539785e45c4cf97fae7ae970.zip pfsense-70ec6cc296c8799f539785e45c4cf97fae7ae970.tar.gz |
fix firewall_nat_out to not auto-generate outbound NAT rules with one too many IPs
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index cc41149..07a492e 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -138,7 +138,8 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") { /* PPTP subnet */ if (($config['pptpd']['mode'] == "server") && is_private_ip($config['pptpd']['remoteip'])) { - $pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+$config['pptpd']['n_pptp_units'])); + $pptptopip = $config['pptpd']['n_pptp_units'] - 1; + $pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+$pptptopip)); foreach ($pptp_subnets as $pptpsn) { $natent = array(); $natent['source']['network'] = $pptpsn; |