<?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>Geek Projects - Linux, Apache, MySQL, PHP &#187; FreeBSD</title>
	<atom:link href="http://www.geekprojects.org/category/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekprojects.org</link>
	<description>A Linux Sysadmin</description>
	<lastBuildDate>Sat, 10 Apr 2010 01:42:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SMTP relay with FreeBSD and sendmail</title>
		<link>http://www.geekprojects.org/2008/05/setting-up-an-smtp-relay-with-freebsd-and-sendmail/</link>
		<comments>http://www.geekprojects.org/2008/05/setting-up-an-smtp-relay-with-freebsd-and-sendmail/#comments</comments>
		<pubDate>Wed, 07 May 2008 03:42:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.geekprojects.org/2008/05/06/setting-up-an-smtp-relay-with-freebsd-and-sendmail/</guid>
		<description><![CDATA[Here&#8217;s a guide to setting up a FreeBSD server to relay emails for a set of IP addresses and/or hostnames. Be very careful to only enable relaying for trusted machines. Ideally, you&#8217;d setup your FreeBSD sendmail server to require authentication. Enable sendmail on your FreeBSD server by adding the following line to the /etc/rc.conf file: [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a guide to setting up a FreeBSD server to relay emails for a set of IP addresses and/or hostnames. Be very careful to only enable relaying for trusted machines. Ideally, you&#8217;d setup your FreeBSD sendmail server to require authentication.</p>
<ol>
<li>Enable sendmail on your FreeBSD server by adding the following line to the <strong>/etc/rc.conf</strong> file:</li>
<p><code>sendmail_enable="YES"</code></p>
<li>Start sendmail using FreeBSD&#8217;s rc.d system.</li>
<p><code>/etc/rc.d/sendmail start</code></p>
<li>Add the IP address or IP addresses that you&#8217;d like sendmail to relay mail for to the <strong>/etc/mail/access</strong> file. For example, the following lines enable relaying for all emails coming from 10.0.2.1, and any IP address starting with 192.168.0.</li>
<p><code>10.0.2.1      RELAY</code><br />
<code>192.168.0     RELAY</code></p>
<li><strong>cd</strong> to your FreeBSD server&#8217;s <strong>/etc/mail</strong> directory, and run <strong>make</strong> to apply your changes to sendmail.</li>
<p><code>cd /etc/mail</code><br />
<code>make</code></ol>
]]></content:encoded>
			<wfw:commentRss>http://www.geekprojects.org/2008/05/setting-up-an-smtp-relay-with-freebsd-and-sendmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing djbdns dnscache on FreeBSD 6</title>
		<link>http://www.geekprojects.org/2008/04/installing-djbdns-dnscache-on-freebsd-6/</link>
		<comments>http://www.geekprojects.org/2008/04/installing-djbdns-dnscache-on-freebsd-6/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 20:52:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.geekprojects.org/2008/04/29/installing-djbdns-dnscache-on-freebsd-6/</guid>
		<description><![CDATA[djbdns is a DNS server package that was created in response to BIND&#8217;s history of security holes. Whenever I setup a Linux or FreeBSD DNS server, I try to use djbdns rather than BIND. Here&#8217;s how to setup a DNS caching server using FreeBSD 6.x and djbdns&#8217;s dnscache mode. The following commands should be run [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cr.yp.to/djbdns.html">djbdns</a> is a DNS server package that was created in response to BIND&#8217;s history of security holes. Whenever I setup a Linux or FreeBSD DNS server, I try to use djbdns rather than BIND. Here&#8217;s how to setup a DNS caching server using FreeBSD 6.x and djbdns&#8217;s dnscache mode. The following commands should be run with root, su or sudo:</p>
<ol>
<li>Install the djbdns port, and its dependencies.</li>
<p><code>cd /usr/ports/dns/djbdns<br />
make install clean<br />
rehash</code></p>
<li>Enable the supervise service, which is used to start djbdns.</li>
<p><code>echo 'svscan_enable="YES"' &gt;&gt; /etc/rc.conf<br />
mkdir /var/service<br />
usr/local/etc/rc.d/svscan.sh start</code></p>
<li>Create djbdns&#8217;s cache and log accounts.</li>
<p><code>pw useradd Gdnscache -d /nonexistent -s /sbin/nologin<br />
pw useradd Gdnslog -d /nonexistent -s /sbin/nologin<br />
</code></p>
<li>Configure djbdns as a DNS caching server. In the examples below, 192.168.0.1 is the IP address of the interface that the djbdns DNS caching server will run on, and 192.168.0/24 is the network that I want to allow to access the server. Subsitute in the appropriate IPs and range(s) for your network.</li>
<p><code>dnscache-conf Gdnscache Gdnslog /usr/local/etc/dnscache 192.168.0.1<br />
ln -s /usr/local/etc/dnscache /var/service<br />
touch /var/service/dnscache/root/ip/192.168.0<br />
/usr/local/etc/rc.d/svscan.sh restart</code></ol>
<p>Sources:</p>
<ul>
<li><a href="http://cr.yp.to/djbdns/install.html">How to install djbdns</a></li>
<li><a href="http://cr.yp.to/djbdns/run-cache-x.html">How to run an external cache for your network</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.geekprojects.org/2008/04/installing-djbdns-dnscache-on-freebsd-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
