Project

General

Profile

« Previous | Next » 

Revision 8a3b09ef

Added by Seth Mos over 14 years ago

Comment out static mappings, this needs more research

View differences:

etc/inc/services.inc
668 668
EOD;
669 669

  
670 670
		/* add static mappings */
671
		/* Does not work for IPv6
672
		/* You can not use a hardware parameter for DHCPv6 hosts
673
		/* Needs to be figured out
671 674
		if (is_array($dhcpv6ifconf['staticmap'])) {
672 675

  
673 676
			$i = 0;
......
692 695
				$i++;
693 696
			}
694 697
		}
695

  
698
		*/
696 699
		
697 700
		$realif = escapeshellcmd(get_real_interface($dhcpv6if));
698 701
		$dhcpdv6ifs[] = $realif;
usr/local/www/services_dhcpv6.php
577 577
			<td width="78%" class="vtable">
578 578
				<select name="netmask" class="formselect" id="netmask">
579 579
				<?php
580
				for ($i = 32; $i > 0; $i--) {
581
					if($i <> 31) {
580
				for ($i = 128; $i > 0; $i--) {
581
					if($i <> 127) {
582 582
						echo "<option value=\"{$i}\" ";
583 583
						if ($i == $pconfig['netmask']) echo "selected";
584 584
						echo ">" . $i . "</option>";
......
592 592
			<tr>
593 593
			<td width="22%" valign="top" class="vncellreq"><?=gettext("Range");?></td>
594 594
			<td width="78%" class="vtable">
595
				<input name="range_from" type="text" class="formfld unknown" id="range_from" size="20" value="<?=htmlspecialchars($pconfig['range_from']);?>">
596
				&nbsp;<?=gettext("to"); ?>&nbsp; <input name="range_to" type="text" class="formfld unknown" id="range_to" size="20" value="<?=htmlspecialchars($pconfig['range_to']);?>">
595
				<input name="range_from" type="text" class="formfld unknown" id="range_from" size="28" value="<?=htmlspecialchars($pconfig['range_from']);?>">
596
				&nbsp;<?=gettext("to"); ?>&nbsp; <input name="range_to" type="text" class="formfld unknown" id="range_to" size="28" value="<?=htmlspecialchars($pconfig['range_to']);?>">
597 597
			</td>
598 598
			</tr>
599 599
			<tr>
600 600
			<td width="22%" valign="top" class="vncell"><?=gettext("DNS servers");?></td>
601 601
			<td width="78%" class="vtable">
602
				<input name="dns1" type="text" class="formfld unknown" id="dns1" size="20" value="<?=htmlspecialchars($pconfig['dns1']);?>"><br>
603
				<input name="dns2" type="text" class="formfld unknown" id="dns2" size="20" value="<?=htmlspecialchars($pconfig['dns2']);?>"><br>
602
				<input name="dns1" type="text" class="formfld unknown" id="dns1" size="28" value="<?=htmlspecialchars($pconfig['dns1']);?>"><br>
603
				<input name="dns2" type="text" class="formfld unknown" id="dns2" size="28" value="<?=htmlspecialchars($pconfig['dns2']);?>"><br>
604 604
				<?=gettext("NOTE: leave blank to use the system default DNS servers - this interface's IP if DNS forwarder is enabled, otherwise the servers configured on the General page.");?>
605 605
			</td>
606 606
			</tr>
607 607
			<tr>
608 608
			<td width="22%" valign="top" class="vncell"><?=gettext("Gateway");?></td>
609 609
			<td width="78%" class="vtable">
610
				<input name="gateway" type="text" class="formfld host" id="gateway" size="20" value="<?=htmlspecialchars($pconfig['gateway']);?>"><br>
610
				<input name="gateway" type="text" class="formfld host" id="gateway" size="28" value="<?=htmlspecialchars($pconfig['gateway']);?>"><br>
611 611
			 	 <?=gettext("The default is to use the IP on this interface of the firewall as the gateway. Specify an alternate gateway here if this is not the correct gateway for your network.");?>
612 612
			</td>
613 613
			</tr>
614 614
			<tr>
615 615
			<td width="22%" valign="top" class="vncell"><?=gettext("Domain name");?></td>
616 616
			<td width="78%" class="vtable">
617
				<input name="domain" type="text" class="formfld unknown" id="domain" size="20" value="<?=htmlspecialchars($pconfig['domain']);?>"><br>
617
				<input name="domain" type="text" class="formfld unknown" id="domain" size="28" value="<?=htmlspecialchars($pconfig['domain']);?>"><br>
618 618
				 <?=gettext("The default is to use the domain name of this system as the default domain name provided by DHCP. You may specify an alternate domain name here.");?>
619 619
			 </td>
620 620
			</tr>
621 621
			<tr>
622 622
			<td width="22%" valign="top" class="vncell"><?=gettext("Domain search list");?></td>
623 623
			<td width="78%" class="vtable">
624
				<input name="domainsearchlist" type="text" class="formfld unknown" id="domainsearchlist" size="20" value="<?=htmlspecialchars($pconfig['domainsearchlist']);?>"><br>
624
				<input name="domainsearchlist" type="text" class="formfld unknown" id="domainsearchlist" size="28" value="<?=htmlspecialchars($pconfig['domainsearchlist']);?>"><br>
625 625
				<?=gettext("The DHCP server can optionally provide a domain search list.");?>
626 626
			</td>
627 627
			</tr>
......
648 648
			<tr>
649 649
			<td width="22%" valign="top" class="vncell"><?=gettext("Failover peer IP:");?></td>
650 650
			<td width="78%" class="vtable">
651
				<input name="failover_peerip" type="text" class="formfld host" id="failover_peerip" size="20" value="<?=htmlspecialchars($pconfig['failover_peerip']);?>"><br>
651
				<input name="failover_peerip" type="text" class="formfld host" id="failover_peerip" size="28" value="<?=htmlspecialchars($pconfig['failover_peerip']);?>"><br>
652 652
				<?=gettext("Leave blank to disable.  Enter the interface IP address of the other machine.  Machines must be using CARP.");?>
653 653
			</td>
654 654
			</tr>
......
681 681
					<input valign="middle" type="checkbox" value="yes" name="ddnsupdate" id="ddnsupdate" <?php if($pconfig['ddnsupdate']) echo " checked"; ?>>&nbsp;
682 682
					<b><?=gettext("Enable registration of DHCP client names in DNS.");?></b><br />
683 683
					<p>
684
					<input name="ddnsdomain" type="text" class="formfld unknown" id="ddnsdomain" size="20" value="<?=htmlspecialchars($pconfig['ddnsdomain']);?>"><br />
684
					<input name="ddnsdomain" type="text" class="formfld unknown" id="ddnsdomain" size="28" value="<?=htmlspecialchars($pconfig['ddnsdomain']);?>"><br />
685 685
					<?=gettext("Note: Leave blank to disable dynamic DNS registration.");?><br />
686 686
					<?=gettext("Enter the dynamic DNS domain which will be used to register client names in the DNS server.");?>
687 687
				</div>
......
694 694
					<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show NTP configuration");?></a>
695 695
				</div>
696 696
				<div id="showntp" style="display:none">
697
					<input name="ntp1" type="text" class="formfld unknown" id="ntp1" size="20" value="<?=htmlspecialchars($pconfig['ntp1']);?>"><br>
698
					<input name="ntp2" type="text" class="formfld unknown" id="ntp2" size="20" value="<?=htmlspecialchars($pconfig['ntp2']);?>">
697
					<input name="ntp1" type="text" class="formfld unknown" id="ntp1" size="28" value="<?=htmlspecialchars($pconfig['ntp1']);?>"><br>
698
					<input name="ntp2" type="text" class="formfld unknown" id="ntp2" size="28" value="<?=htmlspecialchars($pconfig['ntp2']);?>">
699 699
				</div>
700 700
			</td>
701 701
			</tr>
......
734 734
					<b><?=gettext("Enables network booting.");?></b>
735 735
					<p>
736 736
					<?=gettext("Enter the IP of the"); ?> <b><?=gettext("next-server"); ?></b>
737
					<input name="nextserver" type="text" class="formfld unknown" id="nextserver" size="20" value="<?=htmlspecialchars($pconfig['nextserver']);?>">
737
					<input name="nextserver" type="text" class="formfld unknown" id="nextserver" size="28" value="<?=htmlspecialchars($pconfig['nextserver']);?>">
738 738
					<?=gettext("and the filename");?>
739
					<input name="filename" type="text" class="formfld unknown" id="filename" size="20" value="<?=htmlspecialchars($pconfig['filename']);?>"><br>
739
					<input name="filename" type="text" class="formfld unknown" id="filename" size="28" value="<?=htmlspecialchars($pconfig['filename']);?>"><br>
740 740
					<?=gettext("Note: You need both a filename and a boot server configured for this to work!");?>
741 741
					<p>
742 742
					<?=gettext("Enter the"); ?> <b><?=gettext("root-path"); ?></b>-<?=gettext("string");?>
usr/local/www/services_dhcpv6_edit.php
212 212
                <tr> 
213 213
                  <td width="22%" valign="top" class="vncell"><?=gettext("IPv6 address");?></td>
214 214
                  <td width="78%" class="vtable"> 
215
                    <input name="ipaddrv6" type="text" class="formfld unknown" id="ipaddrv6" size="20" value="<?=htmlspecialchars($pconfig['ipaddrv6']);?>">
215
                    <input name="ipaddrv6" type="text" class="formfld unknown" id="ipaddrv6" size="28" value="<?=htmlspecialchars($pconfig['ipaddrv6']);?>">
216 216
                    <br>
217 217
                    <?=gettext("If no IPv6 address is given, one will be dynamically allocated  from the pool.");?></td>
218 218
                </tr>
219 219
                <tr> 
220 220
                  <td width="22%" valign="top" class="vncell"><?=gettext("Hostname");?></td>
221 221
                  <td width="78%" class="vtable"> 
222
                    <input name="hostname" type="text" class="formfld unknown" id="hostname" size="20" value="<?=htmlspecialchars($pconfig['hostname']);?>">
222
                    <input name="hostname" type="text" class="formfld unknown" id="hostname" size="28" value="<?=htmlspecialchars($pconfig['hostname']);?>">
223 223
                    <br> <span class="vexpl"><?=gettext("Name of the host, without domain part.");?></span></td>
224 224
                </tr>				
225 225
                <?php if($netboot_enabled) { ?>
226 226
		<tr>
227 227
		  <td width="22%" valign="top" class="vncell">Netboot filename</td>
228 228
		  <td width="78%" class="vtable">
229
		    <input name="netbootfile" type="text" class="formfld unknown" id="netbootfile" size="20" value="<?=htmlspecialchars($pconfig['netbootfile']);?>">
229
		    <input name="netbootfile" type="text" class="formfld unknown" id="netbootfile" size="28" value="<?=htmlspecialchars($pconfig['netbootfile']);?>">
230 230
		    <br> <span class="vexpl">Name of the file that should be loaded when this host boots off of the network, overrides setting on main page.</span></td>
231 231
		</tr>
232 232
		<?php } ?>

Also available in: Unified diff