diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2005-09-26 20:21:31 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2005-09-26 20:21:31 +0000 |
commit | 735ab2700f3f4b4055bb8d8fd667a01459b4d9e5 (patch) | |
tree | a1b54322a6cbff7f70cc02e4391a48051d6d267d /usr | |
parent | efb343d6c8236f2676796ecd8392f6ce62a8d998 (diff) | |
download | pfsense-735ab2700f3f4b4055bb8d8fd667a01459b4d9e5.zip pfsense-735ab2700f3f4b4055bb8d8fd667a01459b4d9e5.tar.gz |
Adjust the Lan DHCP range, we start from 10 and stop at -10.
This should prevent the range overlapping on a non /24.
This also prevents trying to handout .254 which might well be a router address.
Tough luck to those trying it on a /27 or higher.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/wizards/setup_wizard.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index 38eecca..b5095d4 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -426,10 +426,10 @@ <stepsubmitphpaction> $ft = split("\.", $_POST['lanipaddress']); $ft_ip = $ft[0] . "." . $ft[1] . "." . $ft[2] . "."; - $config['dhcpd']['lan']['range']['from'] = $ft_ip . "50"; + $config['dhcpd']['lan']['range']['from'] = $ft_ip . "10"; $highestip = gen_subnet_max($_POST['lanipaddress'], $config['interfaces']['lan']['subnet']); $hi = split("\.", $highestip); - $highestip = $hi[3]-1; + $highestip = $hi[3]-10; $config['dhcpd']['lan']['range']['to'] = $ft_ip . $highestip; </stepsubmitphpaction> </step> |