2002-11-09 19:06:34 +01:00
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<meta http-equiv="Content-Type"
|
|
|
|
|
content="text/html; charset=windows-1252">
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<meta name="ProgId" content="FrontPage.Editor.Document">
|
|
|
|
|
<title>DHCP</title>
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</head>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<body>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0"
|
|
|
|
|
style="border-collapse: collapse;" bordercolor="#111111" width="100%"
|
|
|
|
|
id="AutoNumber1" bgcolor="#400169" height="90">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<td width="100%">
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<h1 align="center"><font color="#ffffff">DHCP</font></h1>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
</tbody>
|
2002-08-22 23:21:41 +02:00
|
|
|
|
</table>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<h2 align="left">If you want to Run a DHCP Server on your firewall</h2>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<ul>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<li>
|
|
|
|
|
<p align="left">Specify the "dhcp" option on each interface to be
|
|
|
|
|
served by your server in the <a href="Documentation.htm#Interfaces">/etc/shorewall/interfaces</a>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
file. This will generate rules that will allow DHCP to and from your
|
|
|
|
|
firewall system. </p>
|
|
|
|
|
</li>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<p align="left">When starting "dhcpd", you need to list those interfaces
|
2003-03-23 19:47:54 +01:00
|
|
|
|
on the run line. On a RedHat system, this is done by modifying /etc/sysconfig/dhcpd.
|
2002-11-09 19:06:34 +01:00
|
|
|
|
</p>
|
|
|
|
|
</li>
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</ul>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<h2 align="left">If a Firewall Interface gets its IP Address via DHCP</h2>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<ul>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<p align="left">Specify the "dhcp" option for this interface in the
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<a href="Documentation.htm#Interfaces">/etc/shorewall/interfaces</a>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
file.<2E>This will generate rules that will allow DHCP to and from your firewall
|
|
|
|
|
system. </p>
|
|
|
|
|
</li>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<p align="left">If you know that the dynamic address is always going
|
2003-03-23 19:47:54 +01:00
|
|
|
|
to be in the same subnet, you can specify the subnet address in the interface's
|
|
|
|
|
entry in the <a href="Documentation.htm#Interfaces">/etc/shorewall/interfaces</a>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
file. </p>
|
|
|
|
|
</li>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<p align="left">If you don't know the subnet address in advance, you
|
|
|
|
|
should specify "detect" for the interface's subnet address in the <a
|
|
|
|
|
href="Documentation.htm#Interfaces">/etc/shorewall/interfaces</a> file
|
|
|
|
|
and start Shorewall after the interface has started. </p>
|
|
|
|
|
</li>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
<li>
|
|
|
|
|
<p align="left">In the event that the subnet address might change while
|
2002-11-09 19:06:34 +01:00
|
|
|
|
Shorewall is started, you need to arrange for a "shorewall refresh"
|
|
|
|
|
command to be executed when a new dynamic IP address gets assigned to
|
|
|
|
|
the interface. Check your DHCP client's documentation. </p>
|
|
|
|
|
</li>
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</ul>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<p align="left"><font size="2">Last updated 11/03/2002 - <a
|
|
|
|
|
href="support.htm">Tom Eastep</a></font></p>
|
2003-03-23 19:47:54 +01:00
|
|
|
|
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<p><font face="Trebuchet MS"><a href="copyright.htm"><font size="2">Copyright</font>
|
|
|
|
|
<20> <font size="2">2001, 2002 Thomas M. Eastep.</font></a></font></p>
|
|
|
|
|
<br>
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</body>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
</html>
|