<?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>Coretanium &#187; FreeBSD</title>
	<atom:link href="http://www.coretanium.net/category/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.coretanium.net</link>
	<description>tech blah blah</description>
	<lastBuildDate>Tue, 29 Jun 2010 15:39:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeBSD Custom Kernel</title>
		<link>http://www.coretanium.net/freebsd-custom-kernel</link>
		<comments>http://www.coretanium.net/freebsd-custom-kernel#comments</comments>
		<pubDate>Mon, 11 Jan 2010 20:16:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.coretanium.net/wordpress2/?p=239</guid>
		<description><![CDATA[The following document describes how to build a custom kernel in FreeBSD.
This tutorial is NOT for upgrading your kernel, if you want to upgrade your kernel please read this tutorial.
1) Make a copy of your GENERIC kernel (never use GENERIC unless you want your   changes wasted when you do a cvsup update)
root@machine# cd [...]]]></description>
			<content:encoded><![CDATA[<p>The following document describes how to build a custom kernel in FreeBSD.</p>
<p>This tutorial is NOT for upgrading your kernel, if you want to upgrade your kernel please read this tutorial.</p>
<p>1) Make a copy of your GENERIC kernel (never use GENERIC unless you want your   changes wasted when you do a cvsup update)<br />
root@machine# cd /usr/src/sys/i386/conf<br />
root@machine# cp GENERIC CUSTOMEKERNEL</p>
<p>2. Edit the CUSTOMKERNEL to configure support for new hardware. Make sure all   the required modules are loaded. If a dependancy is missing, your kernel build   will fail.</p>
<p>3. Compile and install your new kernel.</p>
<p>root@machine# cd /usr/src<br />
root@machine# make buildkernel KERNCONF=CUSTOMKERNEL<br />
root@machine# make installkernel KERNCONF=CUSTOMKERNEL</p>
<p>4. Reboot and you have a fully customised kernel build.</p>
<p>* If you are running your system in securelevel you will need to make some changes before doing the actual kernel installation! In your /etc/rc.conf set kern_securelevel to kern_securelevel=&#8221;-1&#8243; and reboot your machine, then proceed with the install of your custom kernel. After your custom kernel has been installed you can change the values back to whatever your requirements are.</p>
<p>* By doing a &#8220;make clean&#8221; on every kernel build defeats the   purpose of a makefile. There are times when the   build should be cleaned up, you can do it by doing a &#8220;make clean&#8221; or &#8220;config   -r&#8221; to clean up obj. By doing it every time may make your kernel build run   twice as long and it&#8217;s not necesary!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coretanium.net/freebsd-custom-kernel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counting up to the UNIX Epoch time reading 1,234,567,890!</title>
		<link>http://www.coretanium.net/countdown-actually-up-to-the-unix-epoch-time-reading-123456789</link>
		<comments>http://www.coretanium.net/countdown-actually-up-to-the-unix-epoch-time-reading-123456789#comments</comments>
		<pubDate>Mon, 09 Feb 2009 08:11:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.xnetcore.com/countdown-actually-up-to-the-unix-epoch-time-reading-123456789/</guid>
		<description><![CDATA[Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds. It is widely used not only on Unix-like operating systems but also in many other computing systems. It is neither a [...]]]></description>
			<content:encoded><![CDATA[<p>Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds. It is widely used not only on Unix-like operating systems but also in many other computing systems. It is neither a linear representation of time nor a true representation of UTC (though it is frequently mistaken for both) as the times it represents are UTC but it has no way of representing UTC leap seconds (e.g. 1998-12-31 23:59:60).</p>
<p>&#8220;At 11:31:30pm UTC on Feb 13, 2009, Unix time will reach 1,234,567,890.</p>
<p>Where will you be at this momentous second?&#8221; &#8211; from Bell Labs</p>
<p>You can use the following perl command to find out when the Epoch time reading will be 123456789 in your time zone</p>
<pre lang="perl">perl -e 'print scalar localtime(1234567890),"\n";'</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.coretanium.net/countdown-actually-up-to-the-unix-epoch-time-reading-123456789/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD STABLE</title>
		<link>http://www.coretanium.net/freebsd-stable</link>
		<comments>http://www.coretanium.net/freebsd-stable#comments</comments>
		<pubDate>Thu, 11 Jan 2007 20:16:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.coretanium.net/wordpress2/?p=241</guid>
		<description><![CDATA[FreeBSD-STABLE Howto
sync source via cvsup
cp      /usr/share/examples/cvsup/stable-supfile /etc
vi      /etc/stable-supfile
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-MIRRORS
cvsup.uk.freebsd.org (sync all source)
cvsup /etc/stable-supfile
cd /usr/src/sys/i386/conf
cp GENERIC KERNEL
cd /usr/src
echo &#8220;KERNCONF=FIREWALL&#8221; &#62;&#62; /etc/make.conf
make buildworld
make buildkernel
make installkernel
shutdown -r now
]]></description>
			<content:encoded><![CDATA[<p>FreeBSD-STABLE Howto</p>
<p>sync source via cvsup</p>
<p>cp      /usr/share/examples/cvsup/stable-supfile /etc</p>
<p>vi      /etc/stable-supfile</p>
<p>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-MIRRORS</p>
<p>cvsup.uk.freebsd.org (sync all source)</p>
<p>cvsup /etc/stable-supfile</p>
<p>cd /usr/src/sys/i386/conf</p>
<p>cp GENERIC KERNEL</p>
<p>cd /usr/src<br />
echo &#8220;KERNCONF=FIREWALL&#8221; &gt;&gt; /etc/make.conf<br />
make buildworld<br />
make buildkernel<br />
make installkernel</p>
<p>shutdown -r now</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coretanium.net/freebsd-stable/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 4.10 (STABLE) Firewall</title>
		<link>http://www.coretanium.net/freebsd-4-10-stable-firewall</link>
		<comments>http://www.coretanium.net/freebsd-4-10-stable-firewall#comments</comments>
		<pubDate>Thu, 11 Jan 2007 20:14:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.coretanium.net/wordpress2/?p=237</guid>
		<description><![CDATA[The following document describes how to build your own BSD based firewall
1) Copy the GENERIC kernel to YOURKERNEL
root@machine# cd /usr/src/sys/i386/conf
root@machine# cp GENERIC YOURKERNEL
2) Compile the following into the kernel:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPDIVERT
2) Add the following if your &#8220;paranoid&#8221;
options TCP_RESTRICT_RST
options TCP_DROP_SYNFIN
3) Edit /etc/rc.conf to add the firewall:
firewall_enable=&#8221;YES&#8221;
firewall_script=&#8221;/etc/fw/fwruleset&#8221;
natd_enable=&#8221;YES&#8221;
natd_interface=&#8221;tun0&#8243;
natd_flags=&#8221;-dynamic&#8221;
4) Create your firewall ruleset in /etc/fw/fwruleset
root@machine# mkdir /etc/fw
root@machine# [...]]]></description>
			<content:encoded><![CDATA[<p>The following document describes how to build your own BSD based firewall</p>
<p>1) Copy the GENERIC kernel to YOURKERNEL</p>
<p>root@machine# cd /usr/src/sys/i386/conf<br />
root@machine# cp GENERIC YOURKERNEL</p>
<p>2) Compile the following into the kernel:</p>
<p>options IPFIREWALL<br />
options IPFIREWALL_VERBOSE<br />
options IPFIREWALL_VERBOSE_LIMIT=100<br />
options IPDIVERT</p>
<p>2) Add the following if your &#8220;paranoid&#8221;</p>
<p>options TCP_RESTRICT_RST<br />
options TCP_DROP_SYNFIN</p>
<p>3) Edit /etc/rc.conf to add the firewall:</p>
<p>firewall_enable=&#8221;YES&#8221;<br />
firewall_script=&#8221;/etc/fw/fwruleset&#8221;<br />
natd_enable=&#8221;YES&#8221;<br />
natd_interface=&#8221;tun0&#8243;<br />
natd_flags=&#8221;-dynamic&#8221;</p>
<p>4) Create your firewall ruleset in /etc/fw/fwruleset</p>
<p>root@machine# mkdir /etc/fw<br />
root@machine# vi fwruleset</p>
<p>sample firewall ruleset<br />
# Define firewall command<br />
fwcmd=&#8221;/sbin/ipfw&#8221;<br />
# Force flushing of current rules<br />
$fwcmd -f flush<br />
# Divert all packets through tunnel interface<br />
$fwcmd add divert natd all from any to any via tun0<br />
# Allow all data from local interfaces &#8211; change to your interface<br />
$fwcmd add allow ip from any to any via lo0<br />
$fwcmd add allow ip from any to any via fxp0<br />
# Allow all connections we initiate<br />
$fwcmd add allow tcp from any to any out xmit tun0 setup<br />
# Allow connections that are open to stay open<br />
$fwcmd add allow tcp from any to any via tun0 established<br />
# Allow access to apache and ssh from the internet<br />
$fwcmd add allow tcp from any to any 80 setup<br />
$fwcmd add allow tcp from any to any 22 setup<br />
# Sends RESET to all ident packets<br />
$fwcmd add reset log tcp from any to any 113 in recv tun0<br />
# Only allow DNS queries to specified DNS servers<br />
$fwcmd add allow udp from any to x.x.x.x 53 out xmit tun0<br />
# Allow them back<br />
$fwcmd add allow udp from x.x.x.x 53 to any in recv tun0<br />
# Allow ICMP<br />
$fwcmd add 65435 allow icmp from any to any<br />
# Deny rest<br />
$fwcmd add 65435 deny log ip from any to any</p>
<p>Reboot your machine and you should have a fully functional firewall!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coretanium.net/freebsd-4-10-stable-firewall/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD sysctl</title>
		<link>http://www.coretanium.net/freebsd-sysctl</link>
		<comments>http://www.coretanium.net/freebsd-sysctl#comments</comments>
		<pubDate>Fri, 25 Nov 2005 17:39:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.coretanium.net/wordpress2/?p=228</guid>
		<description><![CDATA[I&#8217;ve found this good site on sysctl while googling&#8230;
http://sysctl.enderunix.org/
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found this good site on sysctl while googling&#8230;</p>
<p>http://sysctl.enderunix.org/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coretanium.net/freebsd-sysctl/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Comparison of Solaris, Linux, and FreeBSD Kernels</title>
		<link>http://www.coretanium.net/a-comparison-of-solaris-linux-and-freebsd-kernels</link>
		<comments>http://www.coretanium.net/a-comparison-of-solaris-linux-and-freebsd-kernels#comments</comments>
		<pubDate>Sat, 22 Oct 2005 17:14:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.coretanium.net/wordpress2/?p=225</guid>
		<description><![CDATA[http://www.opensolaris.org /os/article/2005-10-14_a_comparison_of_solaris__linux__and_freebsd_kernels/
]]></description>
			<content:encoded><![CDATA[<p>http://www.opensolaris.org /os/article/2005-10-14_a_comparison_of_solaris__linux__and_freebsd_kernels/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coretanium.net/a-comparison-of-solaris-linux-and-freebsd-kernels/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
