<?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>kb.hurricane-ridge.com &#187; security</title>
	<atom:link href="http://kb.hurricane-ridge.com/tag/security/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:49:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bookmarks for December 8, 2009 through December 10, 2009</title>
		<link>http://kb.hurricane-ridge.com/links/bookmarks-for-december-8-2009-through-december-10-2009</link>
		<comments>http://kb.hurricane-ridge.com/links/bookmarks-for-december-8-2009-through-december-10-2009#comments</comments>
		<pubDate>Sat, 12 Dec 2009 00:26:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[DMZ]]></category>
		<category><![CDATA[infoblox]]></category>
		<category><![CDATA[ipam]]></category>
		<category><![CDATA[isc dhcp]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[ratproxy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[solaris 10]]></category>
		<category><![CDATA[vCenter]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=741</guid>
		<description><![CDATA[Links for December 8, 2009 through December 10, 2009: IPAM Freeware Download &#8211; &#34;This IP address management freeware is a complete solution with the complete feature set of the Infoblox IP address manager, including Smart Folders, Network Map (with subnet management) and leading IPv6 capabilities.&#34; Failover with ISC DHCP &#8211; &#34;Starting with version 3.0, the [...]]]></description>
			<content:encoded><![CDATA[<p>Links for December 8, 2009 through December 10, 2009:</p>
<ul>
<li><a href="http://www.infoblox.com/services/infoblox-ipam-freeware.cfm">IPAM Freeware Download</a> &#8211; &quot;This IP address management freeware is a complete solution with the complete feature set of the Infoblox IP address manager, including Smart Folders, Network Map (with subnet management) and leading IPv6 capabilities.&quot;</li>
<li><a href="http://www.madboa.com/geek/dhcp-failover/">Failover with ISC DHCP</a> &#8211; &quot;Starting with version 3.0, the ISC DHCP server offered failover capabilities that allow network administrators to offer a more robust DHCP service. A failover setup requires a little care, but it&rsquo;s fairly straightforward to implement.&quot;</li>
<li><a href="http://code.google.com/p/ratproxy/">ratproxy &#8211; Project Hosting on Google Code</a> &#8211; &quot;A semi-automated, largely passive web application security audit tool, optimized for an accurate and sensitive detection, and automatic annotation, of potential problems and security-relevant design patterns based on the observation of existing, user-initiated traffic in complex web 2.0 environments.&quot;</li>
<li><a href="http://www.sun.com/bigadmin/features/articles/patching_best_practices.jsp">BigAdmin Feature Article: Patching Best Practices for the Solaris 10 OS (With Sam the Sysadmin)</a> &#8211; &quot;This Solaris 10 Patching Best Practices Course Reference Guide is a supplement to the web-based training course WS-2700-S10: Solaris 10 Patching Best Practices. The guide presents the key concepts of the course but it does not contain all the content presented in the course itself. The guide is intended to be used as a reference and refresher after having completed the online course.&quot;</li>
<li><a href="http://www.jume.nl/articles/vmware/143-vcenter-client-shortcuts">vCenter Client Shortcuts</a> &#8211; Keyboard shortcuts for the VMware vCenter (formerly Virtual Infrastructure) Client.</li>
<li><a href="http://www.vmware.com/files/pdf/dmz_virtualization_vmware_infra_wp.pdf">DMZ Virtualization with VMware Infrastructure</a> &#8211; &quot;As virtualization of network DMZs becomes more common, demand is increasing for information to help network security professionals understand and mitigate the risks associated with this practice. This paper provides detailed descriptions of three different virtualized DMZ configurations and identifies best practice approaches that enable secure deployment.&quot;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/links/bookmarks-for-december-8-2009-through-december-10-2009/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly Remove IP Addresses from spamdb</title>
		<link>http://kb.hurricane-ridge.com/applications/quickly-remove-ip-addresses-from-spamdb</link>
		<comments>http://kb.hurricane-ridge.com/applications/quickly-remove-ip-addresses-from-spamdb#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:34:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[openbsd]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=62</guid>
		<description><![CDATA[To remove all whitelisted entries in &#8211; for example - 69.6.0.0/16 run: # spamdb &#124; grep WHITE &#124; egrep '\&#124;69\.6\.' &#124; \ cut -f 2 -d '&#124;' &#124; xargs -L 1 spamdb -d]]></description>
			<content:encoded><![CDATA[<p>To remove all whitelisted entries in &#8211; for example - <a href="http://www.senderbase.org/search?searchString=69.6.0.0%2F16">69.6.0.0/16</a> run:</p>
<p><code># spamdb | grep WHITE | egrep '\|69\.6\.' | \<br />
cut -f 2 -d '|' | xargs -L 1 spamdb -d</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/quickly-remove-ip-addresses-from-spamdb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reloading and Testing pf rulesets</title>
		<link>http://kb.hurricane-ridge.com/os/freebsd/reloading-and-testing-pf-rulesets</link>
		<comments>http://kb.hurricane-ridge.com/os/freebsd/reloading-and-testing-pf-rulesets#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:31:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[openbsd]]></category>
		<category><![CDATA[pf]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=58</guid>
		<description><![CDATA[To test the ruleset in /etc/pf.conf, do the following: sudo pfctl -n -f /etc/pf.conf sudo pfctl -n -v -f /etc/pf.conf The second pfctl command displays the rules you&#8217;ve created; however, it can be easy to miss a syntax error warning in the verbosity &#8211; the first command will make it easy to spot those. You can [...]]]></description>
			<content:encoded><![CDATA[<p>To test the ruleset in <code>/etc/pf.conf</code>, do the following:</p>
<p><code>sudo pfctl -n -f /etc/pf.conf<br />
sudo pfctl -n -v -f /etc/pf.conf</code></p>
<p>The second pfctl command displays the rules you&#8217;ve created; however, it can be easy to miss a syntax error warning in the verbosity &#8211; the first command will make it easy to spot those.</p>
<p>You can test the ruleset by having a second, completely open firewall ruleset that you can revert to called <code>pf.conf-open</code> containing just:</p>
<p><code>pass all</code></p>
<p>Then do the following, as root:</p>
<p><code>pfctl -f /etc/pf.conf; sleep 90; pfctl -f /etc/pf-open.conf</code></p>
<p>When you&#8217;re ready to reload the ruleset permanently, use the FreeBSD start/stop script:</p>
<p><code>sudo /etc/rc.d/pf reload</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/freebsd/reloading-and-testing-pf-rulesets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running a chrooted BIND in a FreeBSD Jail</title>
		<link>http://kb.hurricane-ridge.com/os/freebsd/running-a-chrooted-bind-in-a-freebsd-jail</link>
		<comments>http://kb.hurricane-ridge.com/os/freebsd/running-a-chrooted-bind-in-a-freebsd-jail#comments</comments>
		<pubDate>Mon, 29 Dec 2008 05:17:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=31</guid>
		<description><![CDATA[(N.B. &#8211; This document was originally written in 2006; I have not verified that it remains applicable to FreeBSD in 2008.) Running a chrooted BIND server within a FreeBSD jail requires mounting its devfs outside of the jail; this document provides an RCng start stop script to do that. Attempting to start BIND using the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>(N.B. &#8211; This document was originally written in 2006; I have not verified that it remains applicable to FreeBSD in 2008.)</strong></p>
<p>Running a chrooted BIND server within a FreeBSD jail requires mounting its devfs outside of the jail; this document provides an RCng start stop script to do that.</p>
<p>Attempting to start BIND using the stock RCng script in a FreeBSD jail results in the following error:</p>
<p><code>&gt; sudo /etc/rc.d/named start<br />
mount_devfs: Operation not permitted<br />
/etc/rc.d/named: WARNING: devfs_domount(): Unable to mount devfs on /var/named/dev<br />
devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted<br />
devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted<br />
Starting named.</code></p>
<p>The reason for this is that you are unable to mount and manipulate the devfs for the chroot within the jail itself; it must be done in the parent of the jail. To do this at boot, the script below can be used.</p>
<p><code>#!/bin/sh</code></p>
<p><code># PROVIDE: jailedchrootdevfs<br />
# REQUIRE: rcconf mountcritremote<br />
# BEFORE: jail<br />
# KEYWORD: nojail</code></p>
<p><code>. /etc/rc.subr</code></p>
<p><code>name="jailed-chroot-devfs"<br />
start_cmd='start'<br />
stop_cmd=':'<br />
#rc_debug=1</code></p>
<p><code>jailed_named_chrootdir='/u1/jail/192.168.1.234/var/named'<br />
start()<br />
{<br />
umount ${jailed_named_chrootdir}/dev 2&gt;/dev/null<br />
devfs_domount ${jailed_named_chrootdir}/dev devfsrules_hide_all<br />
devfs -m ${jailed_named_chrootdir}/dev rule apply path null unhide<br />
devfs -m ${jailed_named_chrootdir}/dev rule apply path random unhide<br />
}</code></p>
<p><code>load_rc_config $name<br />
run_rc_command "$1"</code></p>
<p>Next, within the jail, edit <code>/etc/rc.d/named</code> to comment out the equivalent lines to those above, found within the <code>chroot_autoupdate()</code> function:</p>
<p><code>*** named Thu Feb 23 12:34:41 2006<br />
--- ../../../../../etc/rc.d/named Thu Nov 3 00:12:06 2005<br />
***************<br />
*** 58,67 ****</code></p>
<p><code># Mount a devfs in the chroot directory if needed<br />
#<br />
! #umount ${named_chrootdir}/dev 2&gt;/dev/null<br />
! #devfs_domount ${named_chrootdir}/dev devfsrules_hide_all<br />
! #devfs -m ${named_chrootdir}/dev rule apply path null unhide<br />
! #devfs -m ${named_chrootdir}/dev rule apply path random unhide</code></p>
<p><code># Copy local timezone information if it is not up to date.<br />
#<br />
--- 58,67 ----</code></p>
<p><code># Mount a devfs in the chroot directory if needed<br />
#<br />
! umount ${named_chrootdir}/dev 2&gt;/dev/null<br />
! devfs_domount ${named_chrootdir}/dev devfsrules_hide_all<br />
! devfs -m ${named_chrootdir}/dev rule apply path null unhide<br />
! devfs -m ${named_chrootdir}/dev rule apply path random unhide</code></p>
<p><code># Copy local timezone information if it is not up to date.<br />
#</code></p>
<p>Notes on the RCng script:</p>
<ul>
<li>Specifiying that the RCng script run BEFORE: jail ensures that the directory is mounted before the jail starts up, and starts its BIND process.</li>
<li>The devfs commands in <code>start()</code> are adapted from the <code>/etc/rc.d/named</code>script.</li>
<li><code>/etc/rc.subr</code> contains the <code>devfs_domount</code> subroutine; <code>load_rc_config $name</code> is required to load the devfs variables it needs to work.</li>
</ul>
<p>Other notes:</p>
<ul>
<li>You will need to set the <code>security.jail.allow_raw_sockets</code> sysctl to 1 to allow named to open a UDP socket.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/freebsd/running-a-chrooted-bind-in-a-freebsd-jail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

