<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OrangeSwarm &#187; DHCP</title>
	<atom:link href="http://www.setupswarm.com/tag/dhcp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.setupswarm.com</link>
	<description>A dark place on the interwebs</description>
	<lastBuildDate>Mon, 26 Jul 2010 10:59:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Ubuntu DHCP Server</title>
		<link>http://www.setupswarm.com/main/software/linux/ubuntu-dhcp-server</link>
		<comments>http://www.setupswarm.com/main/software/linux/ubuntu-dhcp-server#comments</comments>
		<pubDate>Fri, 11 Dec 2009 20:42:10 +0000</pubDate>
		<dc:creator>Heroin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.setupswarm.com/wordpress/?p=147</guid>
		<description><![CDATA[Ok, after screwing around with Firestarter and DHCP several times on Ubuntu, I figured I&#8217;d write up my experiences on how to get it working correctly on the first try (with DHCP, I might add, as that&#8217;s where most of my problems came in). Install Requirements sudo apt-get install firestarter dhcp3-server Configuring NICs Make sure [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, after screwing around with Firestarter and DHCP several times on Ubuntu, I figured I&#8217;d write up my experiences on how to get it working correctly on the first try (with DHCP, I might add, as that&#8217;s where most of my problems came in).</p>
<p><span id="more-147"></span></p>
<p><strong>Install Requirements</strong></p>
<blockquote><p><code>sudo apt-get install firestarter dhcp3-server</code></p></blockquote>
<p><strong>Configuring NICs</strong><br />
Make sure that your internal network card is assigned a static IP address in a range that you will use for you internal network.<br />
To do this, go to System -&gt; Administration -&gt; Networking. Once there, go into the properties for the network card you will use for your internal/routed network (it will quite likely be disabled) and set it up as you deem necessary.<br />
As a basic example, set the IP address to 192.168.0.1, and the subnet mask to 255.255.255.0. Leave the gateway empty.</p>
<p><strong>Small Fix</strong><br />
To fix the problem where Firestarter cannot locate the DHCP daemon init script: From within a terminal type and run the following command (creating a symbolic link to fix the mis-reference; this is a simple alternative to editing Firestarter&#8217;s init script).</p>
<blockquote><p><code>sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd</code></p></blockquote>
<p>This fixes the problem where Firestarter will sometimes say something along the lines of &#8220;An unknown error occured&#8221; when DHCP is enabled within its configuration. Sometimes the firewall will start anyway, but DHCP will remain off.</p>
<p><strong>Configuring DHCP</strong><br />
Configure the interfaces on which DHCP will be listening Edit your /etc/default/dhcp3-server file (using a text editor running as root, or by logging in and running &#8220;sudo vi /etc/default/dhcp3-server&#8221;). The only variable in there by default is &#8220;INTERFACES&#8221;, which will have a null value. Set it to your internal network interface. For example:</p>
<blockquote><p><code># Defaults for dhcp initscript<br />
# sourced by /etc/init.d/dhcp<br />
# installed at /etc/default/dhcp3-server by the maintainer scripts<br />
#<br />
# This is a POSIX shell fragment<br />
#<br />
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?<br />
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".<br />
INTERFACES="eth0"</code></p></blockquote>
<p>Write the file and exit.</p>
<p><strong>Run Firestarter</strong><br />
If this is your first time running Firestarter, the wizard should appear. If not, simply click Firewall -&gt; Wizard from within Firestarter.<br />
Select your external (Internet-connected) device when it asks, and make sure to specify whether or not the address is obtained via DHCP. Click the &#8220;Forward&#8221; button, check the &#8220;Enable Internet connection sharing&#8221; box, select your internal network card, and check the box for &#8220;Enable DHCP for local network&#8221;. Drop down the &#8220;DHCP server details&#8221; and enter the range of IPs you would like for it to dynamically assign.<br />
Make sure they are in the same range as the static IP you set for your internal network card, also, for the DNS server field, you MUST supply an address &#8211; &#8220;&#8221; will *NOT* work. Simply look at your /etc/resolv.conf file if you need inspiration.<br />
Click &#8220;Forward&#8221;, check the &#8220;Start firewall now&#8221; box, and click &#8220;Save&#8221;.</p>
<p><strong>Conclusion</strong><br />
It took me a while to pinpoint the causes of various small problems I was having getting it to play nicely with DHCP, but I finally got it down and figured I&#8217;d share my experiences. Please let me know if you have any suggestions (I know I clumped everything together for that last step, but c&#8217;mon, it&#8217;s a wizard&#8230; It&#8217;s pretty freaking simple).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.setupswarm.com/main/software/linux/ubuntu-dhcp-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
