<?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>toad-one.org</title>
	<atom:link href="http://www.toad-one.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.toad-one.org</link>
	<description>Cool Kids Only</description>
	<lastBuildDate>Tue, 15 Jun 2010 02:50:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>toad-one.org</title>
		<link>http://www.toad-one.org/weblog/2010/06/14/toad-one/</link>
		<comments>http://www.toad-one.org/weblog/2010/06/14/toad-one/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 02:42:22 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[General Admin]]></category>

		<guid isPermaLink="false">http://www.toad-one.org/?p=78</guid>
		<description><![CDATA[toad-one.org

I doubt that anybody will notice but I have moved an old FreeBSD blog onto this site.  I will try to move the tools over when I have time.
]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2010/06/14/toad-one/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Qmail, Chkuser, FreeBSD Ports.</title>
		<link>http://www.toad-one.org/weblog/2009/06/26/qmail-chkuser-freebsd-ports/</link>
		<comments>http://www.toad-one.org/weblog/2009/06/26/qmail-chkuser-freebsd-ports/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 01:24:38 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[General Admin]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/?p=72</guid>
		<description><![CDATA[Qmail, Chkuser, FreeBSD Ports.

Long time, no post.
I was looking for a way to get the chkuser patch compiled into qmail-smtpd while still using the FreeBSD Ports system.
I found another article here, but when I tried it, the compile failed during the patching process.  I&#8217;m not sure exactly what is happening, but from what I [...]]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2009/06/26/qmail-chkuser-freebsd-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a password to an ssh key</title>
		<link>http://www.toad-one.org/weblog/2009/02/15/add-password-to-an-ssh-key/</link>
		<comments>http://www.toad-one.org/weblog/2009/02/15/add-password-to-an-ssh-key/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 19:10:44 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Security Tips]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/?p=69</guid>
		<description><![CDATA[Add a password to an ssh key

If you would like to change the password of an ssh private key, or add a password after the fact.

$ ssh-keygen -p -f id_dsa
Enter old passphrase:
Key has comment 'id_dsa'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.
$

]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2009/02/15/add-password-to-an-ssh-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portupgrade Timesaver</title>
		<link>http://www.toad-one.org/weblog/2008/12/29/portupgrade-timesaver/</link>
		<comments>http://www.toad-one.org/weblog/2008/12/29/portupgrade-timesaver/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 17:23:12 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Ports]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/weblog/archives/2008/12/29/portupgrade-timesaver/</guid>
		<description><![CDATA[Portupgrade Timesaver

Every once in a while I run across a machine that is not as fast as I would like it to be.
As you know upgrading ports by having portupgrade compile them from source can take quite a while.
FreeBSD tries to compile as many of the ports as they can and then put the packages [...]]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2008/12/29/portupgrade-timesaver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portupgrade Problems</title>
		<link>http://www.toad-one.org/weblog/2008/12/28/portupgrade-problems/</link>
		<comments>http://www.toad-one.org/weblog/2008/12/28/portupgrade-problems/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 03:23:06 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Ports]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/weblog/archives/2008/12/28/portupgrade-problems/</guid>
		<description><![CDATA[Portupgrade Problems

Recently I noticed a problem doing a portsdb -Uu.
Portupgrade was complaining about a missing bsd.port.options.mk.
I tried cvsuping the ports, a make fetchindex, deleting all the ports and re cvsuping, but nothing worked.
I&#8217;m not sure what the problem was, but it seemed to fix itself by upgrading to FreeBSD 7 from 6.3.
]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2008/12/28/portupgrade-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Long time, no articles.</title>
		<link>http://www.toad-one.org/weblog/2008/03/04/long-time-no-articles/</link>
		<comments>http://www.toad-one.org/weblog/2008/03/04/long-time-no-articles/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 23:33:31 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[General Admin]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/weblog/archives/2008/03/04/long-time-no-articles/</guid>
		<description><![CDATA[Long time, no articles.

Wow, has it been that long?
I have been pretty busy at work lately, but I need to get off my ass and start loading up some boxes with FreeBSD 7.0.
I guess there isn&#8217;t much to write about when things aren&#8217;t broken.
]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2008/03/04/long-time-no-articles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Portaudit Tip</title>
		<link>http://www.toad-one.org/weblog/2007/10/03/portaudit-tip/</link>
		<comments>http://www.toad-one.org/weblog/2007/10/03/portaudit-tip/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 13:35:42 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Security Tips]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/weblog/archives/2007/10/03/portaudit-tip/</guid>
		<description><![CDATA[Portaudit Tip

If you are still using it you will have noticed that there have been several security problems with PHP4 lately.
Trying to do a portupgrade php4 with portaudit installed will fail because of known problems in the port.
Unfortunately if you have a old version of the port installed that stops you from upgrading to the [...]]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2007/10/03/portaudit-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSHD brute force attacks</title>
		<link>http://www.toad-one.org/weblog/2007/08/20/sshd-brute-force-attacks/</link>
		<comments>http://www.toad-one.org/weblog/2007/08/20/sshd-brute-force-attacks/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 01:01:26 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Security Tips]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/weblog/archives/2007/08/20/sshd-brute-force-attacks/</guid>
		<description><![CDATA[SSHD brute force attacks

Tested on FreeBSD 6.2
Normally I just use hosts.allow to control SSH guessing attacks by white listing IPs that should be connecting to my box, but it is not always an option.  I&#8217;m also not just going to let people just pound away for hours trying to guess random passwords even though [...]]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2007/08/20/sshd-brute-force-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portupgrade Problem</title>
		<link>http://www.toad-one.org/weblog/2007/03/14/portupgrade-problem/</link>
		<comments>http://www.toad-one.org/weblog/2007/03/14/portupgrade-problem/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 13:40:15 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[General Admin]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/weblog/archives/2007/03/14/portupgrade-problem/</guid>
		<description><![CDATA[Portupgrade Problem

I noticed that after the portupgrade port was moved from sysutils/portupgrade to ports-mgmt/portupgrade that portupgrade complains with:
cd: can&#8217;t cd to /usr/ports/sysutils/portupgrade
I&#8217;m not sure if I fixed this the right way, but what I did was
# pkg_delete portupgrade-X.X.X_X
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
# portsdb -uU
# portversion -l &#8220;]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2007/03/14/portupgrade-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A little spyware protection.</title>
		<link>http://www.toad-one.org/weblog/2007/02/19/a-little-spyware-protection/</link>
		<comments>http://www.toad-one.org/weblog/2007/02/19/a-little-spyware-protection/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 18:01:05 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[General Admin]]></category>

		<guid isPermaLink="false">http://www.bsdzone.net/weblog/archives/2007/02/19/a-little-spyware-protection/</guid>
		<description><![CDATA[A little spyware protection.

I&#8217;m probably not the only person out there who has Windows XP on their network(gasp).
Trying to get my wife to use FreeBSD is not worth the effort.
Besides using FreeBSD as a firewall for my entire home network, I also use it as our DNS server.
In comes Blackhole DNS.  The basic idea [...]]]></description>
		<wfw:commentRss>http://www.toad-one.org/weblog/2007/02/19/a-little-spyware-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="toad-one.org is a FreeBSD related site containing how-to guides, and articles." />
<meta name="keywords" content="FreeBSD, OpenBSD, NetBSD, DragonFly BSD,  unix, howto, guide, tutorial, qmail, ssh, FreeBSD help" />
<title>toad-one.org - FreeBSD help, howto guides, and articles.</title>
<link rel="stylesheet" type="text/css" media="screen" href="http://www.toad-one.org/include/toadone.css" />
<link rel="alternate" title="BSDZone RSS" href="http://www.toad-one.org/weblog/wp-rss2.php" type="application/rss+xml" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
</head>

<body>
    <div id="main">
<table border="0" align="center" cellpadding="2" cellspacing="0" width="100%">
         <tr>
          <td width="65%" align="left"><img src="http://www.toad-one.org/images/title.gif" alt="toad-one.org" /></td>
          <td width="35%" align="right" valign="bottom" nowrap="nowrap">
		<i>toad-one.org</i> - FreeBSD help, howto guides, and articles.
		<br />
		<br />
		<form method="get" action="http://www.google.com/custom">
                <input type="text" name="q" size="18" maxlength="255" value="" />
                <input type="submit" name="sa" value="search" />
                <input type="hidden" name="domains" value="toad-one.org" />
                <input type="hidden" name="sitesearch" value="toad-one.org" />
                </form>
               </td>
                </tr>
                </table>

        <table align="center" border="0" cellpadding="3" cellspacing="0" width="99%" class="tborder">

         <tr class="titlebg">
          <td bgcolor="#000080" align="center" width="100%" nowrap="nowrap"> &nbsp;
                                                [ <a href="http://www.toad-one.org/" class="menubar">Home</a> ] &nbsp;
                                                [ <a href="http://www.toad-one.org/news/" class="menubar">Current News</a> ] &nbsp;
                                                [ <a href="http://www.toad-one.org/tools/" class="menubar">Tools</a> ] &nbsp;
                                                [ <a href="http://www.toad-one.org/howto/" class="menubar">Howto Archive</a> ] &nbsp;
						[ <a href="http://www.toad-one.org/books/" class="menubar">Books</a> ] &nbsp;
                                                [ <a href="http://www.toad-one.org/search/" class="menubar">Search</a> ] &nbsp;
                                                [ <a href="http://www.toad-one.org/links/" class="menubar">Links</a> ] &nbsp;
                                                [ <a href="mailto:postmaster@toad-one.org?subject=I%20like%20cheese%20&amp;">Contact</a> ]&nbsp;
                                                [ <a href="http://www.toad-one.org/about/" class="menubar">About</a> ]
                                                &nbsp;
         </td>
        </tr>
       </table>
<br />
<center>
<script type="text/javascript"><!--
                 google_ad_client = "pub-3252169985680208";
                 google_ad_width = 728;
                 google_ad_height = 90;
                 google_ad_format = "728x90_as";
                 google_ad_type = "text_image";
                 google_ad_channel ="";
                 google_color_border = "000080";
                 google_color_bg = "DFDFDF";
                 google_color_link = "0000FF";
                 google_color_url = "00008B";
                 google_color_text = "000000";
                 //--></script>
                 <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center>
<br />
	<table align="center" border="0" cellpadding="3" cellspacing="0" width="100%">
 	 <tr>
  	  <td width="100%" valign="top">
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2010/06/14/toad-one/" rel="bookmark" title="Permanent Link:">toad-one.org</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/general/" title="View all posts in General Admin" rel="category tag">General Admin</a></li> - 14 Jun 10 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>toad-one.org<br />
<span id="more-78"></span><br />
I doubt that anybody will notice but I have moved an old FreeBSD blog onto this site.  I will try to move the tools over when I have time.</p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2009/06/26/qmail-chkuser-freebsd-ports/" rel="bookmark" title="Permanent Link:">Qmail, Chkuser, FreeBSD Ports.</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/general/" title="View all posts in General Admin" rel="category tag">General Admin</a></li> - 26 Jun 09 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>Qmail, Chkuser, FreeBSD Ports.<br />
<span id="more-72"></span><br />
Long time, no post.</p>
<p>I was looking for a way to get the chkuser patch compiled into qmail-smtpd while still using the FreeBSD Ports system.</p>
<p>I found another article <a href="http://www.bramschoenmakers.nl/en/node/440">here</a>, but when I tried it, the compile failed during the patching process.  I&#8217;m not sure exactly what is happening, but from what I can tell the other patches I chose during the qmail compile dialog changed qmail-smtpd.c to the extent that the chkuser patch failed.</p>
<p>The only way I was able to get it to work was to stop selecting so many other patches from the dialog.<br />
This is my /var/db/ports/qmail/options file:<br />
<code><br />
# This file is auto-generated by 'make config'.<br />
# No user-servicable parts inside!<br />
# Options for qmail-1.03_7<br />
_OPTIONS_READ=qmail-1.03_7<br />
WITHOUT_SMTP_AUTH_PATCH=true<br />
WITH_QMAILQUEUE_PATCH=true<br />
WITHOUT_BIG_TODO_PATCH=true<br />
WITHOUT_BIG_CONCURRENCY_PATCH=true<br />
WITHOUT_OUTGOINGIP_PATCH=true<br />
WITHOUT_LOCALTIME_PATCH=true<br />
WITHOUT_QMTPC_PATCH=true<br />
WITHOUT_MAILDIRQUOTA_PATCH=true<br />
WITHOUT_BLOCKEXEC_PATCH=true<br />
WITH_DISCBOUNCES_PATCH=true<br />
WITHOUT_SPF_PATCH=true<br />
WITHOUT_TARPIT_PATCH=true<br />
WITHOUT_EXTTODO_PATCH=true<br />
WITHOUT_QEXTRA=true<br />
WITH_RCDLINK=true<br />
</code></p>
<p>So in summary.<br />
<code><br />
cd /usr/local/src<br />
wget http://www.interazioni.it/opensource/chkuser/download/archives/chkuser-2.0.9-release.tar.gz<br />
tar xzvf chkuser-2.0.9-release.tar.gz<br />
cd /usr/ports/mail/qmail/files<br />
cp /usr/local/src/chkuser-2.0.9-release.patch .<br />
</code><br />
Follow <a href="http://www.bramschoenmakers.nl/en/node/440">this</a> selecting the patches I have listed above.<br />
<code><br />
make<br />
cd /usr/ports/mail/qmail/work/qmail-1.03/<br />
cp qmail-smtpd /var/qmail/bin/<br />
</code></p>
<p>If anybody has any ideas on how to do this better, especially with the spf and tarpit patch I would love to hear about them.</p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2009/02/15/add-password-to-an-ssh-key/" rel="bookmark" title="Permanent Link:">Add a password to an ssh key</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/security-tips/" title="View all posts in Security Tips" rel="category tag">Security Tips</a></li> - 15 Feb 09 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>Add a password to an ssh key<br />
<span id="more-69"></span><br />
If you would like to change the password of an ssh private key, or add a password after the fact.<br />
<code><br />
$ ssh-keygen -p -f id_dsa<br />
Enter old passphrase:<br />
Key has comment 'id_dsa'<br />
Enter new passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved with the new passphrase.<br />
$<br />
</code></p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2008/12/29/portupgrade-timesaver/" rel="bookmark" title="Permanent Link:">Portupgrade Timesaver</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/ports/" title="View all posts in Ports" rel="category tag">Ports</a></li> - 29 Dec 08 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>Portupgrade Timesaver<br />
<span id="more-68"></span><br />
Every once in a while I run across a machine that is not as fast as I would like it to be.</p>
<p>As you know upgrading ports by having portupgrade compile them from source can take quite a while.<br />
FreeBSD tries to compile as many of the ports as they can and then put the packages on their ftp server.</p>
<p><code><br />
export PACKAGESITE=ftp://ftp.$MIRROR.freebsd.org/pub/FreeBSD/ports/i386/packages-$VERSION-stable/Latest/<br />
</code><br />
Replace $MIRROR with your country code, and $VERSION with your version of FreeBSD, ie 7.</p>
<p><code><br />
portupgrade -PP portname(To upgrade one port)<br />
or<br />
portupgrade -PPa(To upgrade all your ports)<br />
</code><br />
The -PP will force portupgrade to use only compiled packages, it will fail if there is no compiled version of that port.</p>
<p><code><br />
portupgrade -P portname(To upgrade one port)<br />
or<br />
portupgrade -Pa(To upgrade all your ports)<br />
</code><br />
Using only one -P will cause portupgrade to try to download the package, but if it fails it will revert to compiling from source as usual.</p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2008/12/28/portupgrade-problems/" rel="bookmark" title="Permanent Link:">Portupgrade Problems</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/ports/" title="View all posts in Ports" rel="category tag">Ports</a></li> - 28 Dec 08 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>Portupgrade Problems<br />
<span id="more-67"></span><br />
Recently I noticed a problem doing a portsdb -Uu.</p>
<p>Portupgrade was complaining about a missing bsd.port.options.mk.<br />
I tried cvsuping the ports, a make fetchindex, deleting all the ports and re cvsuping, but nothing worked.</p>
<p>I&#8217;m not sure what the problem was, but it seemed to fix itself by upgrading to FreeBSD 7 from 6.3.</p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2008/03/04/long-time-no-articles/" rel="bookmark" title="Permanent Link:">Long time, no articles.</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/general/" title="View all posts in General Admin" rel="category tag">General Admin</a></li> - 04 Mar 08 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>Long time, no articles.<br />
<span id="more-66"></span><br />
Wow, has it been that long?</p>
<p>I have been pretty busy at work lately, but I need to get off my ass and start loading up some boxes with FreeBSD 7.0.</p>
<p>I guess there isn&#8217;t much to write about when things aren&#8217;t broken.</p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2007/10/03/portaudit-tip/" rel="bookmark" title="Permanent Link:">Portaudit Tip</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/security-tips/" title="View all posts in Security Tips" rel="category tag">Security Tips</a></li> - 03 Oct 07 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>Portaudit Tip<br />
<span id="more-65"></span><br />
If you are still using it you will have noticed that there have been several security problems with PHP4 lately.</p>
<p>Trying to do a portupgrade php4 with portaudit installed will fail because of known problems in the port.<br />
Unfortunately if you have a old version of the port installed that stops you from upgrading to the latest version of the port(even if it is vulnerable).</p>
<p>To get past this simply<br />
<code># portupgrade -m "DISABLE_VULNERABILITIES=yes" php4</code></p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2007/08/20/sshd-brute-force-attacks/" rel="bookmark" title="Permanent Link:">SSHD brute force attacks</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/security-tips/" title="View all posts in Security Tips" rel="category tag">Security Tips</a></li> - 20 Aug 07 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>SSHD brute force attacks<br />
<span id="more-64"></span><br />
<strong>Tested on FreeBSD 6.2</strong></p>
<p>Normally I just use hosts.allow to control SSH guessing attacks by white listing IPs that should be connecting to my box, but it is not always an option.  I&#8217;m also not just going to let people just pound away for hours trying to guess random passwords even though I use only keys for authentication.</p>
<p>I had tried several solutions before I found <a href="http://sourceforge.net/projects/sshguard/">sshguard</a>.<br />
It is simple yet powerful and supports ipfw, pf, iptables, and tcp wrappers.</p>
<p>The only problem is that the version in the ports has a bug that causes the program to drop a core. ie<br />
kernel: pid 1665 (sshguard), uid 0: exited on signal 6 (core dumped)</p>
<p>The solution which I found from <a href="http://sourceforge.net/mailarchive/message.php?msg_name=940FAA1A-42A2-4D63-860E-B9EA5E7FAA89%40bitchx.it">here</a> is to edit a few quick lines in sshguard.c.</p>
<p>It&#8217;s not ideal, but it works.<br />
<code><br />
# cd /usr/ports/security/sshguard<br />
# make fetch extract<br />
# cd work/sshguard-1.0/src<br />
# vi sshguard.c<br />
</code></p>
<p>Make the changes listed above.<br />
<code><br />
# cd ../../..<br />
# make install clean<br />
# vi /etc/syslog.conf<br />
</code></p>
<p>You will notice a line like:<br />
#auth.info;authpriv.info     |exec /usr/local/sbin/sshguard<br />
Uncomment this line and restart syslogd<br />
<code><br />
# /etc/rc.d/syslogd restart<br />
</code></p>
<p>Make sure that /etc/hosts.deny has a ALL: ALL (If you don&#8217;t have anything else using wrappers), and hosts.allow has SSHD: ALL.</p>
<p>hosts.allow should end up looking like this:<br />
<code><br />
###sshguard###<br />
###sshguard###<br />
SSHD: ALL<br />
</code></p>
<p>sshguard will add the first two lines after a the first ssh login.</p>
<p>That is it for this quick howto but there is support for white listing and a whole slew of other options in the manpages.<br />
<code><br />
# man sshguard<br />
</code></p>
<p>Good luck</p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2007/03/14/portupgrade-problem/" rel="bookmark" title="Permanent Link:">Portupgrade Problem</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/general/" title="View all posts in General Admin" rel="category tag">General Admin</a></li> - 14 Mar 07 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>Portupgrade Problem<br />
<span id="more-63"></span><br />
I noticed that after the portupgrade port was moved from sysutils/portupgrade to ports-mgmt/portupgrade that portupgrade complains with:</p>
<p>cd: can&#8217;t cd to /usr/ports/sysutils/portupgrade</p>
<p>I&#8217;m not sure if I fixed this the right way, but what I did was</p>
<p># pkg_delete portupgrade-X.X.X_X<br />
# cd /usr/ports/ports-mgmt/portupgrade<br />
# make install clean<br />
# portsdb -uU<br />
# portversion -l &#8220;<&#8221;</p>
<p>Everything seemed to work after that.</p>
</td>
		 </tr>
		</table>
		<br />
		
		<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
		 <tr class="titlebg">
		  <td><a href="http://www.toad-one.org/weblog/2007/02/19/a-little-spyware-protection/" rel="bookmark" title="Permanent Link:">A little spyware protection.</a></td> 
		 </tr>
		 <tr>
		  <td class="catbg"><a href="http://www.toad-one.org/weblog/category/general/" title="View all posts in General Admin" rel="category tag">General Admin</a></li> - 19 Feb 07 </td>
		 </tr>
		 <tr>
	          <td class="windowbg2"><p>A little spyware protection.<br />
<span id="more-62"></span></p>
<p>I&#8217;m probably not the only person out there who has Windows XP on their network(gasp).<br />
Trying to get my wife to use FreeBSD is not worth the effort.</p>
<p>Besides using FreeBSD as a firewall for my entire home network, I also use it as our DNS server.<br />
In comes <a href="http://www.bleedingthreats.net/blackhole-dns/">Blackhole DNS</a>.  The basic idea is to not resolve any sites that are known to be associated with malware.</p>
<p>FreeBSD already comes with BIND installed so we just have to activate it and work on the config files to get this to work.</p>
<p>First add this to /etc/rc.conf<br />
named_enable=&#8221;YES&#8221;</p>
<p># cd /etc/namedb<br />
# wget http://www.bleedingsnort.com/blackhole-dns/files/blockeddomain.hosts<br />
# wget http://www.bleedingsnort.com/blackhole-dns/files/spywaredomains.zones<br />
# wget http://www.bleedingsnort.com/blackhole-dns/files/update.sh<br />
# chmod 755 update.sh<br />
# cp /etc/namedb/named.conf /etc/namedb/named.bak</p>
<p>Add this to /etc/named.conf<br />
include &#8220;/etc/namedb/spywaredomains.zones&#8221;;</p>
<p>I don&#8217;t use my DNS server for anything but a local caching server and my firewall doesn&#8217;t allow lookups from anywhere but my local network.  If you have a different situation then your will have to worry about recursion and numerous other things in your named.conf.  Here is what my <a href="http://www.bsdzone.net/howto/howto_files/spyware/named.conf.txt">named.conf</a> looks like after the changes.</p>
<p>Restart or start BIND<br />
# /etc/rc.d/named restart</p>
<p>Now test your nameserver<br />
# nslookup<br />
> server localhost<br />
Default server: localhost<br />
Address: ::1#53<br />
Default server: localhost<br />
Address: 127.0.0.1#53<br />
> google.com<br />
Server:         localhost<br />
Address:        127.0.0.1#53</p>
<p>Non-authoritative answer:<br />
Name:   google.com<br />
Address: 72.14.207.99<br />
Name:   google.com<br />
Address: 64.233.167.99<br />
Name:   google.com<br />
Address: 64.233.187.99<br />
> scenicreflections.com<br />
Server:         localhost<br />
Address:        127.0.0.1#53</p>
<p>Name:   scenicreflections.com<br />
Address: 127.0.0.1<br />
> exit</p>
<p>As you can see scenicreflections.com which was listed as a bad domain now resolves to 127.0.0.1.</p>
<p>Change the interpretor in update.sh to the correct location, which is /usr/local/bin/bash then update the options to make the script work.</p>
<p>admin=&#8221;youremail@address.com&#8221;<br />
stopBind=&#8221;/etc/rc.d/named stop&#8221;<br />
startBind=&#8221;/etc/rc.d/named start&#8221;<br />
killBind=&#8221;/etc/rc.d/named zap&#8221;</p>
<p>Test to make sure that the update.sh script works<br />
# /etc/namedb/update.sh</p>
<p>Finally point your Windows machines to your new DNS server, and surf away.<br />
You should start to notice missing ads in pages.</p>
<p>If everything is okay add this to your /etc/crontab to update the domains everyday.<br />
1       2       *       *       *       root    /etc/namedb/update.sh</p>
</td>
		 </tr>
		</table>
		<br />
		          </td>
	 </tr>

	 <tr>
	  <td></td>
         </tr>
	</table>
</div>
</body>
</html>
