Revision 65319e4c
Added by Chris Buechler over 13 years ago
usr/local/www/firewall_nat_out.php | ||
---|---|---|
138 | 138 |
|
139 | 139 |
/* PPTP subnet */ |
140 | 140 |
if (($config['pptpd']['mode'] == "server") && is_private_ip($config['pptpd']['remoteip'])) { |
141 |
$pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+$config['pptpd']['n_pptp_units'])); |
|
141 |
$pptptopip = $config['pptpd']['n_pptp_units'] - 1; |
|
142 |
$pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+$pptptopip)); |
|
142 | 143 |
foreach ($pptp_subnets as $pptpsn) { |
143 | 144 |
$natent = array(); |
144 | 145 |
$natent['source']['network'] = $pptpsn; |
Also available in: Unified diff
fix firewall_nat_out to not auto-generate outbound NAT rules with one too many IPs