<?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>laneolson.ca &#187; Security</title>
	<atom:link href="http://www.laneolson.ca/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laneolson.ca</link>
	<description></description>
	<lastBuildDate>Tue, 08 Jun 2010 20:25:03 +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>Installing OpenVAS 3 on Ubuntu 9.10</title>
		<link>http://www.laneolson.ca/2010/02/04/installing-openvas-3-on-ubuntu-9-10/</link>
		<comments>http://www.laneolson.ca/2010/02/04/installing-openvas-3-on-ubuntu-9-10/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 18:01:18 +0000</pubDate>
		<dc:creator>Lane</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenVAS]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.laneolson.ca/?p=137</guid>
		<description><![CDATA[<img src="http://www.laneolson.ca/wp-content/uploads/2010/02/OpenVAS.png" alt="OpenVAS 3 on Ubuntu 9.10" />
<p>This is a minor update to my previous post on <a href="http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/">how to install OpenVAS 2 on Ubuntu 9.04</a>.  Since that post there have been some changes.  A new release of Ubuntu and a new version of OpenVAS.  If you still prefer to use OpenVAS 2 then my previous instructions should work fine with Ubuntu 9.10.  Those who would like to take advantage of OpenVAS 3 can expect the following new features:</p>
<ul>
<li>A new internal architecture of the modules
</li><li>NVT Meta Information that is free of arbitrary size limits
</li><li>IPv6 support
</li><li>WMI clients support
</li><li>Supports upcoming optional extensions:
<ul>
   <li>OpenVAS Manager for storing and organizing scans on a central server in a
       SQL database
   </li><li>OpenVAS Administrator for User-, Feed- and Settings-Management
   </li><li>Greenbone Security Assistent for a web-based Vulnerability Management
</li></ul>
</li></ul>
<p>You can read more about it on the <a href="http://www.openvas.org" target="_blank">official OpenVAS website</a>.  Now, lets get to the good stuff.  The instructions below should get you up and running with OpenVAS 3 on Ubuntu 9.10...</p>]]></description>
			<content:encoded><![CDATA[<p>This is a minor update to my previous post on <a href="http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/">how to install OpenVAS 2 on Ubuntu 9.04</a>.  Since that post there have been some changes.  A new release of Ubuntu and a new version of OpenVAS.  If you still prefer to use OpenVAS 2 then my previous instructions should work fine with Ubuntu 9.10.  Those who would like to take advantage of OpenVAS 3 can expect the following new features:</p>
<ul>
<li>A new internal architecture of the modules
</li>
<li>NVT Meta Information that is free of arbitrary size limits
</li>
<li>IPv6 support
</li>
<li>WMI clients support
</li>
<li>Supports upcoming optional extensions:
<ul>
<li>OpenVAS Manager for storing and organizing scans on a central server in a<br />
       SQL database
   </li>
<li>OpenVAS Administrator for User-, Feed- and Settings-Management
   </li>
<li>Greenbone Security Assistent for a web-based Vulnerability Management
</li>
</ul>
</li>
</ul>
<p>You can read more about it on the <a href="http://www.openvas.org" target="_blank">official OpenVAS website</a>.  Now, lets get to the good stuff.  The instructions below should get you up and running with OpenVAS 3 on Ubuntu 9.10:</p>
<h3>Prerequisites</h3>
<p>First we need to install all of the dependent packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential libgnutls-dev libpcap0.8-dev <span style="color: #c20cb9; font-weight: bold;">bison</span> 
libglib2.0-dev libgpgme11-dev libssl-dev cmake</pre></div></div>

<h3>Getting the Files</h3>
<p>Once those packages have installed we need to download the files required for OpenVAS.  The links below may be outdated, make sure you obtain the latest version.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">706</span><span style="color: #000000; font-weight: bold;">/</span>openvas-libraries-3.0.3.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">696</span><span style="color: #000000; font-weight: bold;">/</span>openvas-scanner-3.0.1.tar.gz</pre></div></div>

<p>Now that we have downloaded the required files we must compile and install the packages in the following order:</p>
<ol>
<li>openvas-libraries</li>
<li>openvas-scanner</li>
</ol>
<h3>Install OpenVAS Libraries</h3>
<p>
Start by untarring the openvas-libraries and compiling/installing it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-libraries-3.0.3.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-libraries-3.0.3<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>If all goes well here then you should get a message saying that the openvas-libraries have been installed.  If for some reason you get a message saying that gpgme is not installed, then try this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libgpgme11-dev</pre></div></div>

<h3>Install OpenVAS Scanner</h3>
<p>Next untar the openvas-scanner and compile/install it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-scanner-3.0.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-scanner-3.0.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>The OpenVAS libraries, and scanner should now be installed.  We now have to make sure that /usr/local/bin and /usr/local/sbin are in our PATH.  We can do that by typing in:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #800000;">${PATH}</span></pre></div></div>

<p>In the output from the above command you should see /usr/local/bin and /usr/local/sbin somewhere.  If you don&#8217;t you will have to add those entries to the <a href="https://help.ubuntu.com/community/EnvironmentVariables#Persistent%20environment%20variables">PATH environmental variable</a> manually.  If your PATH environmental variable is all good you can build the links to the new libraries:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> ldconfig</pre></div></div>

<h3>Generate a Certificate</h3>
<p>We are now ready to <a href="http://www.openvas.org/compendium/generating-a-server-certificate.html" target="blank">generate a certificate</a> for our OpenVAS Server, make sure to enter values relevant to your location.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-mkcert</pre></div></div>

<p>Follow the onscreen prompts and enter the appropriate information when asked.</p>
<h3>Create a User</h3>
<p>Now we need to <a href="http://www.openvas.org/compendium/adding-new-users.html" target="blank">add a user</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-adduser</pre></div></div>

<p>Enter a username and choose your authentication method (choose &#8220;pass&#8221; to authenticate with a password).  Hit ctrl-d when you are prompted for rules if you don&#8217;t want any scanning restrictions.</p>
<p>Now everything that we need is setup for the OpenVAS scanner.  The next step is to sync the server with the NVT feed.  The NVT (Network Vulnerability Test) feed is a list of files that will be downloaded to your server.  I would recommend that you run the openvas-nvt-sync on regular intervals to ensure that your NVT files are up to date.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-nvt-sync</pre></div></div>

<p><em>Note: The first time you run this command it may take a while to download all the NVT&#8217;s.  Grab a coffee and a sandwich, some water and a piece of fruit, some beer and some pretzels&#8230; or whatever it is you eat/drink.</em></p>
<p>Once it&#8217;s done its thing you can start up the OpenVAS server daemon:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvassd</pre></div></div>

<p><em>Note: It might take a few minutes to load all the plug-ins.  A great opportunity to get some exercise and burn off the beer and pretzels from earlier.</em></p>
<p>If all went according to plan, you now have a running version of OpenVAS server.  The next step in the process is to setup a client to connect to the OpenVAS server.  You may opt to do this on a different computer, but you can just as easily install it on the same computer.</p>
<h3>Install the OpenVAS Client</h3>
<p>First we need to install the dependent packages for the client:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libgtk2.0-dev htmldoc</pre></div></div>

<p>Now we can proceed to install the client:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">685</span><span style="color: #000000; font-weight: bold;">/</span>openvas-client-3.0.0.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-client-3.0.0.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-client-3.0.0<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>If the above works for you, great!  However if you&#8217;re running a 64 bit OS like me, you might get an error when you run &#8220;sudo make&#8221;.  The error I received was:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ld</span>: cannot <span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-lcrypto</span>
collect2: <span style="color: #c20cb9; font-weight: bold;">ld</span> returned <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">exit</span> status
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>OpenVAS-Client<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Leaving directory <span style="color: #000000; font-weight: bold;">`/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>openvas-client-3.0.0<span style="color: #000000; font-weight: bold;">/</span>openvas<span style="color: #ff0000;">'
make: *** [client] Error 2</span></pre></div></div>

<p>I ran the following command to see what the problem was:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">laneolson<span style="color: #000000; font-weight: bold;">@</span>system:<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>openvas-client-3.0.0$ ldconfig <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> crypto
	libcrypto.so.0.9.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span>libc6,x86-<span style="color: #000000;">64</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.so.0.9.8
	libcrypto.so.0.9.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span>libc6,x86-<span style="color: #000000;">64</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.so.0.9.8
	libcrypto.so.0.9.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span>libc6, hwcap: 0x0008000000008000<span style="color: #7a0874; font-weight: bold;">&#41;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib32<span style="color: #000000; font-weight: bold;">/</span>i686<span style="color: #000000; font-weight: bold;">/</span>cmov<span style="color: #000000; font-weight: bold;">/</span>libcrypto.so.0.9.8
	libcrypto.so.0.9.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span>libc6, hwcap: 0x0004000000000000<span style="color: #7a0874; font-weight: bold;">&#41;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib32<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>libcrypto.so.0.9.8
	libcrypto.so.0.9.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span>libc6, hwcap: 0x0002000000000000<span style="color: #7a0874; font-weight: bold;">&#41;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib32<span style="color: #000000; font-weight: bold;">/</span>i486<span style="color: #000000; font-weight: bold;">/</span>libcrypto.so.0.9.8</pre></div></div>

<p>Creating a link in /usr/lib/ solved the problem:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.so.0.9.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.so</pre></div></div>

<p>If you had to make the symbolic link make sure you do the following afterwards to complete the setup:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> ldconfig
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> clean
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>You should have a message saying that the Client was installed successfully.  You can run the client with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> OpenVAS-Client</pre></div></div>

<p>The client can be installed on any computer that has access to the server.  Once it is installed you just have to connect, setup a scan and you&#8217;re done!  If you run into any hiccups along the way feel free to post in the comments and I will see if I can lend a hand.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laneolson.ca/2010/02/04/installing-openvas-3-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Trend Micro WFBS 6.0 Common Fixes</title>
		<link>http://www.laneolson.ca/2009/08/26/trend-micro-wfbs-6-0-common-fixes/</link>
		<comments>http://www.laneolson.ca/2009/08/26/trend-micro-wfbs-6-0-common-fixes/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 20:08:41 +0000</pubDate>
		<dc:creator>Lane</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Trend Micro]]></category>
		<category><![CDATA[WFBS]]></category>

		<guid isPermaLink="false">http://www.laneolson.ca/?p=121</guid>
		<description><![CDATA[<p>In my last blog post I talked about an issue with <a href="http://www.laneolson.ca/2009/08/17/trend-micro-wfbs-client-security-agent-will-not-update/">Trend Micro WFBS not updating</a>.  I have been using Trend Micro Worry Free Business Security for almost a year now and have found it to be very easy to manage.  However, no software is without faults, and this is especially true for anti-virus software.  I have run into a few issues upgrading, installing, and re-installing Trend Micro WFBS.  I&#8217;ve assembled this list to help some people that may run into the same issues as I have.  </p> 
<p><b>How to change the password for the Web Console if you are locked out</b></p> 
<p>For some reason after I upgraded from WFBS 5.1 to 6.0 I was unable to login to the Web Console with my old password.  Accessing the web console is pretty essential to managing WFBS so I had to find a way to reset it.  Fortunately I had a backup of the ofcserver.ini file which contains an encrypted version of the web console password.  I was able to replace the encrypted password in the new ini file with the one from the old file.  You can reset your password by:</p> 
<ol> 
<li>Stop the Trend Mico Master Service</li> 
<li>Open up the ofcserver.ini (C:\Program Files\Trend Micro\Security Server\PCCSRV\Private\ofcserver.ini)</li> 
<li>Find the line that starts with &#8220;Master_Pwd&#8221; and replacing it with this:
 
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">Master_Pwd</span>=<span style="color: #000000; font-weight: bold;">!</span>CRYPT<span style="color: #000000; font-weight: bold;">!</span>523DD5B28918ED6D2ED4C7DFFE949A638AA4D1C8B1D25440F37606AD23C793453C0043B1B483A2EADE21439233C</pre></div></div> 
 
</li> 
<li>Save the file then Start the Trend Micro Master Service</li> 
<li>Login to the Trend Micro WFBS web console, your password will be &#8220;P@$$w0rd!&#8221;. </li> 
<li>You should now be able to login to the web console and set your password to whatever you like.</li> 
</ol>]]></description>
			<content:encoded><![CDATA[<p>In my last blog post I talked about an issue with <a href="http://www.laneolson.ca/2009/08/17/trend-micro-wfbs-client-security-agent-will-not-update/">Trend Micro WFBS not updating</a>.  I have been using Trend Micro Worry Free Business Security for almost a year now and have found it to be very easy to manage.  However, no software is without faults, and this is especially true for anti-virus software.  I have run into a few issues upgrading, installing, and re-installing Trend Micro WFBS.  I&#8217;ve assembled this list to help some people that may run into the same issues as I have.  </p>
<h4>How to change the password for the Web Console if you are locked out</h4>
<p>For some reason after I upgraded from WFBS 5.1 to 6.0 I was unable to login to the Web Console with my old password.  Accessing the web console is pretty essential to managing WFBS so I had to find a way to reset it.  Fortunately I had a backup of the ofcserver.ini file which contains an encrypted version of the web console password.  I was able to replace the encrypted password in the new ini file with the one from the old file.  You can reset your password by:</p>
<ol>
<li>Stop the Trend Mico Master Service</li>
<li>Open up the ofcserver.ini (C:\Program Files\Trend Micro\Security Server\PCCSRV\Private\ofcserver.ini)</li>
<li>Find the line that starts with &#8220;Master_Pwd&#8221; and replacing it with this:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">Master_Pwd</span>=<span style="color: #000000; font-weight: bold;">!</span>CRYPT<span style="color: #000000; font-weight: bold;">!</span>523DD5B28918ED6D2ED4C7DFFE949A638AA4D1C8B1D25440F37606AD23C793453C0043B1B483A2EADE21439233C</pre></div></div>

</li>
<li>Save the file then Start the Trend Micro Master Service</li>
<li>Login to the Trend Micro WFBS web console, your password will be &#8220;P@$$w0rd!&#8221;. </li>
<li>You should now be able to login to the web console and set your password to whatever you like.</li>
</ol>
<h4>Disable the password to unload or uninstall the Trend Micro Client/Server Security Agent</h4>
<p>In addition to being locked out of the web console as mentioned above, I was also unable to unload or uninstall the Cient/Server Security agent from any of my machines.  A quick registry fix solves this problem.</p>
<ol>
<li>Go to Start > Run and type in &#8220;regedit&#8221;.</li>
<li>Search for the keys &#8220;Allow Uninstall&#8221; or &#8220;NoPwdProtect&#8221; located in HKEY_LOCAL_MACHINE/Software/TrendMicro/PC-cillinNTCorp/CurrentVersion/Misc.</li>
<li>Change these values from 0 to 1.  You will then be able to unload the agent and uninstall the agent. </li>
</ol>
<h4>Cannot re-install client security agent</h4>
<p>After having issues with one of my clients I decided to scrap it and start with a fresh install.  Unfortunately uninstalling the agent from add/remove programs often isn&#8217;t enough.  There are several fragments left behind and the Trend Micro agent will not let you re-install until those fragments are gone.   The remedy for this is performing a manual uninstall of the Client/Security agent.  In my case the Add/Remove uninstaller got most of the job done, but I still had to remove the registry keys before I was able to re-install the agent.  I&#8217;m not going to outline all the steps here because they can already be found in the <a href="http://esupport.trendmicro.com/smb/pages/Worry-FreeBusinessSecurityStandardAdvanced60.aspx" target="_blank">Trend Micro WFBS knowledgebase</a>.</p>
<p>That concludes the fixes I&#8217;ve had to use in the past to deal with a flakey Trend Micro install.  Hopefully they help you out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laneolson.ca/2009/08/26/trend-micro-wfbs-6-0-common-fixes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Trend Micro WFBS Client Security Agent Will Not Update</title>
		<link>http://www.laneolson.ca/2009/08/17/trend-micro-wfbs-client-security-agent-will-not-update/</link>
		<comments>http://www.laneolson.ca/2009/08/17/trend-micro-wfbs-client-security-agent-will-not-update/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 16:37:08 +0000</pubDate>
		<dc:creator>Lane</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Antivirus]]></category>
		<category><![CDATA[Trend Micro]]></category>
		<category><![CDATA[WFBS]]></category>

		<guid isPermaLink="false">http://www.laneolson.ca/?p=117</guid>
		<description><![CDATA[<p>I noticed today that my Trend Micro WFBS Client Security Agent has outdated virus pattern definitions.  It has been almost a week since they were updated!  I tried to manually update on both the server side and the client agent but had no luck.  The Client would tell me the update was successful, but the pattern version would remain the same.  On the server end when I went to manually update I would receive a HTTP Timeout.  The Trend Micro knowledge base is less than helpful...  Anyways, it's a relatively easy fix for any one else having this issue.  Heres how I fixed it.</p>
<ol>
<li>
Login to your WFBS server and go to the downloads folder in the PCCSRV folder (usually located at C:\Program Files\Trend Micro\PCCSRV\Download).
</li>
<li>Find a file called server.ini and rename it to server.bak</li>
<li>Login to the WFBS web console and go to Updates > Manual</li>
<li>From the list of components to update choose Antivirus and hit <strong>Update Now</strong></li>
<li>The WFBS server should now fetch the update files.</li>
<li>Once the updates have been fetched your clients should now update with the new patterns!</li>
</ol>
<p>
I'm not entirely sure what causes this to happen.  I found that this solution worked for me after some trial and error.  It may work for you, it may not!
</p>]]></description>
			<content:encoded><![CDATA[<p>I noticed today that my Trend Micro WFBS Client Security Agent has outdated virus pattern definitions.  It has been almost a week since they were updated!  I tried to manually update on both the server side and the client agent but had no luck.  The Client would tell me the update was successful, but the pattern version would remain the same.  On the server end when I went to manually update I would receive a HTTP Timeout.  My update.log file was alternating between a few different errors including:
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ActiveUpdate was unable to connect to the network. Please verify that the network connection is functional<span style="color: #000000; font-weight: bold;">&lt;</span>COMMA<span style="color: #000000; font-weight: bold;">&gt;</span> and <span style="color: #000000; font-weight: bold;">then</span> try again.<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">28</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>and</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Your HTTP request has timed out.<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">26</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>
The Trend Micro knowledge base is less than helpful&#8230;  Anyways, it&#8217;s a relatively easy fix for any one else having this issue.  Heres how I fixed it.</p>
<ol>
<li>
Login to your WFBS server and go to the downloads folder in the PCCSRV folder (usually located at C:\Program Files\Trend Micro\PCCSRV\Download).
</li>
<li>Find a file called server.ini and rename it to server.bak</li>
<li>Login to the WFBS web console and go to Updates > Manual</li>
<li>From the list of components to update choose Antivirus and hit <strong>Update Now</strong></li>
<li>The WFBS server should now fetch the update files.</li>
<li>Once the updates have been fetched your clients should now update with the new patterns!</li>
</ol>
<p>
I&#8217;m not entirely sure what causes this to happen.  I found that this solution worked for me after some trial and error.  It may work for you, it may not!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laneolson.ca/2009/08/17/trend-micro-wfbs-client-security-agent-will-not-update/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Splunk with SSL and Password Protection Using Apache</title>
		<link>http://www.laneolson.ca/2009/07/08/splunk-with-ssl-and-password-protection-using-apache/</link>
		<comments>http://www.laneolson.ca/2009/07/08/splunk-with-ssl-and-password-protection-using-apache/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 19:31:39 +0000</pubDate>
		<dc:creator>Lane</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Splunk]]></category>

		<guid isPermaLink="false">http://www.laneolson.ca/?p=90</guid>
		<description><![CDATA[<p>Splunk is probably the greatest tool that I've found for managing pretty much any kind of data.  Firewalls, switches, windows servers, software logs... the list goes on!  The creators of Splunk generously offer a free version with a few limitations which is perfect for those of us who aren't huge enterprises.  Unfortunately, one of the limitations is the lack of some type of authentication which is pretty crucial if your logs contain sensitive data.  I've configured my Splunk installation so that it requires authetication through an Apache proxy.  I've also enabled SSL to allow for encryption of web traffic.  The following guide outlines the steps I followed in order to do so on Ubuntu 9.04.  This is mostly just a combination of the following guides into one:</p>
<ul>
<li><a href="http://www.deckerd.com/core/splunk-free-htaccess-protection-using-apache/">Splunk htaccess Authentication</a></li>
<li>
<a href="http://www.tc.umn.edu/~brams006/selfsign_ubuntu.html">SSL Setup</a>
</li>
<li>
<a href="http://ubuntuforums.org/showthread.php?t=159661">IPtables setup</a>
</li>
</ul>
<p>I recommend viewing them for a more detailed explanation.</p>
<p>This guide assumes you have a fresh installation of Splunk but should work fine with an existing one.  If you don't have a Splunk installation yet, you can install it quite easily:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #ff0000;">'http://www.splunk.com/index.php/download_track?file=3.4.10/linux/splunk-3.4.10-60883-Linux-i686.tgz&#38;ac=&#38;wget=true&#38;name=wget&#38;typed=releases'</span> 
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz splunk-3.4.10-<span style="color: #000000;">60883</span>-Linux-i686.tgz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> splunk<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>splunk start
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>splunk<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>splunk <span style="color: #7a0874; font-weight: bold;">enable</span> boot-start</pre></div></div> 
<p><em><strong>Note:</strong> Make sure you obtain the latest release.  The address in the above wget is probably not the most recent version.</em></p>
<p>
You will also want to enable https on the Splunk installation.  You can do this bygoing to http://127.0.0.1:8000/ and clicking the Admin link on the top right part of Splunk Web. </p>]]></description>
			<content:encoded><![CDATA[<p>Splunk is probably the greatest tool that I&#8217;ve found for managing pretty much any kind of data.  Firewalls, switches, windows servers, software logs&#8230; the list goes on!  The creators of Splunk generously offer a free version with a few limitations which is perfect for those of us who aren&#8217;t huge enterprises.  Unfortunately, one of the limitations is the lack of some type of authentication which is pretty crucial if your logs contain sensitive data.  I&#8217;ve configured my Splunk installation so that it requires authetication through an Apache proxy.  I&#8217;ve also enabled SSL to allow for encryption of web traffic.  The following guide outlines the steps I followed in order to do so on Ubuntu 9.04.  This is mostly just a combination of the following guides into one:</p>
<ul>
<li><a href="http://www.deckerd.com/core/splunk-free-htaccess-protection-using-apache/">Splunk htaccess Authentication</a></li>
<li>
<a href="http://www.tc.umn.edu/~brams006/selfsign_ubuntu.html">SSL Setup</a>
</li>
<li>
<a href="http://ubuntuforums.org/showthread.php?t=159661">IPtables setup</a>
</li>
</ul>
<p>I recommend viewing them for a more detailed explanation.</p>
<p>This guide assumes you have a fresh installation of Splunk but should work fine with an existing one.  If you don&#8217;t have a Splunk installation yet, you can install it quite easily:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #ff0000;">'http://www.splunk.com/index.php/download_track?file=3.4.10/linux/splunk-3.4.10-60883-Linux-i686.tgz&amp;ac=&amp;wget=true&amp;name=wget&amp;typed=releases'</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz splunk-3.4.10-<span style="color: #000000;">60883</span>-Linux-i686.tgz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> splunk<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>splunk start
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>splunk<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>splunk <span style="color: #7a0874; font-weight: bold;">enable</span> boot-start</pre></div></div>

<p><em><strong>Note:</strong> Make sure you obtain the latest release.  The address in the above wget is probably not the most recent version.</em></p>
<p>You will also want to enable https on the Splunk installation.  You can do this bygoing to http://127.0.0.1:8000/ and clicking the Admin link on the top right part of Splunk Web.  Then in the <b>Server: View Settings</b> page under <b>Splunk Web</b> set <em>Enable SSL (HTTPS) in Splunk Web?</em> to <b>Yes</b>.  Restart Splunk and you should now be able to access it with an https prefix.</p>
<p>For this guide you are also going to need apache2, openssl.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 openssl</pre></div></div>

<p>Once apache has installed you have to enable the required modules:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod proxy
<span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod proxy_http
<span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod ssl</pre></div></div>

<p>The proxy modules are required because we are going to be taking requests on port 80 and those requests will be forwarded to the Splunk web interface on port 8000.</p>
<p>Now I am not going to go into extreme detail about generating certificates as this could be a whole topic in itself.  Check out Paul Bramscher&#8217;s page on <a href="http://www.tc.umn.edu/~brams006/selfsign.html">generating self signed certificates</a> if you want more details.</p>
<p>The first step is to go to your home directory and generate a server key:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~
<span style="color: #c20cb9; font-weight: bold;">sudo</span> openssl genrsa <span style="color: #660033;">-des3</span> <span style="color: #660033;">-out</span> server.key <span style="color: #000000;">4096</span></pre></div></div>

<p>Next create a certificate signing request with the server key.  You will be asked a series of questions, answer them as you see fit:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-key</span> server.key <span style="color: #660033;">-out</span> server.csr</pre></div></div>

<p>Now sign the certificate signing request.  This one is valid for 1000 days, you may use whatever you like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openssl x509 <span style="color: #660033;">-req</span> <span style="color: #660033;">-days</span> <span style="color: #000000;">1000</span> <span style="color: #660033;">-in</span> server.csr <span style="color: #660033;">-signkey</span> server.key <span style="color: #660033;">-out</span> server.crt</pre></div></div>

<p>Now make a version that does not require a password:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openssl rsa <span style="color: #660033;">-in</span> server.key <span style="color: #660033;">-out</span> server.key.insecure
<span style="color: #c20cb9; font-weight: bold;">mv</span> server.key server.key.secure
<span style="color: #c20cb9; font-weight: bold;">mv</span> server.key.insecure server.key</pre></div></div>

<p>Lastly copy the key and certificate that do not require a password to the designated apache folder:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ssl
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> server.key <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ssl
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> server.crt <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ssl</pre></div></div>

<p>That&#8217;s it for the certificates!  Now we can start configuring apache.  Create a configuration file for the ssl setup:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>ssl</pre></div></div>

<p>You will want to enter something similar to this:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">VirtualHost</span> *:<span style="color: #ff0000;">443</span>&gt;
        <span style="color: #00007f;">ServerAdmin</span> webmaster@domain.com
        <span style="color: #00007f;">ServerAlias</span> machine.domain.com
        <span style="color: #00007f;">ProxyPass</span> / https://127.0.0.1:<span style="color: #ff0000;">8000</span>/
        <span style="color: #00007f;">ProxyPassReverse</span> / https://127.0.0.1:<span style="color: #ff0000;">8000</span>/
        <span style="color: #00007f;">ErrorLog</span> /var/log/apache2/error.log
        <span style="color: #00007f;">CustomLog</span> /var/log/apache2/access.log combined
        SSLEngine <span style="color: #0000ff;">On</span>
        SSLCertificateFile /etc/apache2/ssl/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl/server.key
        SSLProxyEngine <span style="color: #0000ff;">on</span>
&lt;/<span style="color: #000000; font-weight:bold;">VirtualHost</span>&gt;
&lt;<span style="color: #000000; font-weight:bold;">Proxy</span> https://127.0.0.1:<span style="color: #ff0000;">8000</span>/*&gt;
        <span style="color: #00007f;">Order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
        <span style="color: #00007f;">Deny</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
        <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
        <span style="color: #00007f;">AuthName</span> <span style="color: #7f007f;">&quot;machine.domain.com&quot;</span>
        <span style="color: #00007f;">AuthType</span> Basic
        <span style="color: #00007f;">AuthUserFile</span> /var/www/.htpasswd
        <span style="color: #00007f;">Require</span> valid-<span style="color: #00007f;">user</span>
&lt;/<span style="color: #000000; font-weight:bold;">Proxy</span>&gt;</pre></div></div>

<p>The ServerAlias will be whatever your DNS name for your Splunk server is.</p>
<p>Now enable the site we just set up:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2ensite ssl</pre></div></div>

<p>You should also make sure that Apache is listening on port 443.  Do this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ports.conf</pre></div></div>

<p>Add this (if it does not already exist):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>IfModule mod_ssl.c<span style="color: #000000; font-weight: bold;">&gt;</span>
    Listen <span style="color: #000000;">443</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Now the last step is setting up your user account in the .htpasswd file.  This can be done with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> htpasswd <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>.htpasswd username</pre></div></div>

<p>Where username is replaced with the username you wish to use.  The -c flag creates the file, if you need to add multiple users do not use the -c flag after the first command or it will overwrite the file.</p>
<p>Now restart Apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>If all goes well you should be able to type in the https://machine.domain.com/ and you will receive a password prompt.  Enter the username/password you just created and you will be at Splunk Web!</p>
<p>Now, try typing in https://machine.domain.com:8000/ and see what happens.  You will probably be directed to Splunk web without being prompted for a password.  Uh oh&#8230; did you just do all this for nothing?!  Nope!  We can set up some ip table rules to prevent access to port 8000 to force users to use the proxy.  I won&#8217;t go into depth on this but we first allow access to port 8000 from localhost with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-s</span> 127.0.0.1 <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">8000</span> <span style="color: #660033;">-j</span> ACCEPT</pre></div></div>

<p>Now we want to drop all other hosts from accessing port 8000:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">8000</span> <span style="color: #660033;">-j</span> DROP</pre></div></div>

<p>Now any attempts to access https://machine.domain.com:8000/ will be blocked, but access attempts to the password protected interface on port 443 will still be allowed.</p>
<p>You can also modify the above rules to limit access to the interface by IP address.  Just replace 127.0.0.1 with the IP address you wish to allow acces and change the dport to 443.  Enter one of these commands for each IP address to allow.  Then enter the second rule (with dport 443) once all the allowed hosts have been added.</p>
<p><em><strong>Note:</strong>  The iptables will not be reloaded when you reboot the Splunk machine.  I recommend following this <a href="http://ubuntuforums.org/showthread.php?t=159661" target="_blank">firewall guide</a> in order to have a configurable iptables script that loads on startup</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.laneolson.ca/2009/07/08/splunk-with-ssl-and-password-protection-using-apache/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Install OpenVAS Vulnerability Scanner on Ubuntu 9.04</title>
		<link>http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/</link>
		<comments>http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/#comments</comments>
		<pubDate>Tue, 26 May 2009 18:28:19 +0000</pubDate>
		<dc:creator>Lane</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenVAS]]></category>
		<category><![CDATA[vulnerability scanner]]></category>

		<guid isPermaLink="false">http://www.laneolson.ca/?p=84</guid>
		<description><![CDATA[OpenVAS is a great open source alternative to Nessus, which in the recent years has closed its source.  Nessus still remains free to home users but requires commercial users to purchase a Professional plugin feed to obtain the latest and greatest plugins.  If your IT department is running on a low budget, or you just prefer to stick to open source then OpenVAS is the way to go!  OpenVAS has readily available installation packages for several different flavours of linux (Gentoo, OpenSUSE, Slackware, etc.).  As of writing this, I am not aware of any installation packages created for Ubuntu.  However, I was able to compile OpenVAS from source quite easily on Ubuntu by performing the following steps.  For a more in depth look at installing and configuring OpenVAS check out the OpenVAS Compendium.
Prerequisites
First we need to install all of the dependent packages:

sudo apt-get install build-essential libgnutls-dev libpcap0.8-dev bison libgtk2.0-dev
libglib2.0-dev libgpgme11-dev libssl-dev htmldoc


Note: libgtk2.0-dev is only required for the OpenVAS client.  htmldoc is only required if you plan on exporting reports to PDF from the OpenVAS client.
Getting the Files
Once those packages have installed we need to download the files required for OpenVAS.  The links below may be outdated, make sure you obtain the latest version.

cd /tmp
wget http://wald.intevation.org/frs/download.php/572/openvas-libraries-2.0.2.tar.gz
wget http://wald.intevation.org/frs/download.php/561/openvas-libnasl-2.0.1.tar.gz
wget http://wald.intevation.org/frs/download.php/562/openvas-server-2.0.1.tar.gz
wget http://wald.intevation.org/frs/download.php/576/openvas-plugins-1.0.6.tar.gz
wget http://wald.intevation.org/frs/download.php/575/openvas-client-2.0.3.tar.gz

Now that we have downloaded the required files we must sompile and install the packages in the following order:

openvas-libraries
openvas-libnasl
openvas-server
openvas-plugins

Install OpenVAS Libraries

Start by untarring the openvas-libraries and compiling/installing it:

tar -xvf openvas-libraries-2.0.2.tar.gz
cd openvas-libraries-2.0.2/
sudo ./configure
sudo make
sudo make install

Install OpenVAS libnasl
Next untar the openvas-libnasl and compile/install it:

cd ..
tar -xvf openvas-libnasl-2.0.1.tar.gz
cd openvas-libnasl-2.0.1/
sudo ./configure
sudo make
sudo make install

Install OpenVAS Server
Next untar the openvas-server and compile/install it:

cd ..
tar -xvf openvas-server-2.0.1.tar.gz
cd openvas-server-2.0.1/
sudo ./configure
sudo make
sudo make install

The OpenVAS libraries, libnasl, and server packages should now be installed.  We now have to make sure that /usr/local/bin and /usr/local/sbin are in our PATH.  We can do that by typing in:

echo ${PATH}

In the output from the above command you should see /usr/local/bin and /usr/local/sbin somewhere.  If you don&#8217;t you will have to add those entries to the PATH environmental variable manually.
Install OpenVAS Plugins
Our next step is to compile/install the plugins:

cd ..
tar -xvf openvas-plugins-1.0.6.tar.gz
cd openvas-plugins-1.0.6/
sudo ./configure
sudo make
sudo make install

Note:  The plugins may take a while to make&#8230; be patient.
Now we have to setup the symbolic links:

sudo ldconfig

Generate a Certificate
We are now ready to generate a certificate for our OpenVAS Server, make sure to enter values relevant to your location.

sudo openvas-mkcert

Create a User
Now we need to add a user:

sudo openvas-adduser

Enter a username and choose your authentication method.  Hit ctrl-d when you are prompted for rules if you dont want any scanning restrictions.

sudo openvas-nvt-sync

And at last&#8230; the moment of truth!  Start up the OpenVAS server daemon:

sudo openvasd -D

Install the OpenVAS Client
Now that the server is setup you can setup the client to run the scans:

cd ..
tar -xvf openvas-client-2.0.3.tar.gz
cd openvas-client-2.0.3/
sudo ./configure
sudo make
sudo make install
sudo OpenVAS-Client

The client can be installed on any computer that has access to the server.  Once it is installed you just have to connect, setup a scan and you&#8217;re done!  Stay tuned for another blog post on configuring scans with the OpenVAS Client.
]]></description>
			<content:encoded><![CDATA[<p>OpenVAS is a great open source alternative to Nessus, which in the recent years has closed its source.  Nessus still remains free to home users but requires commercial users to purchase a Professional plugin feed to obtain the latest and greatest plugins.  If your IT department is running on a low budget, or you just prefer to stick to open source then OpenVAS is the way to go!  OpenVAS has readily available installation packages for several different flavours of linux (Gentoo, OpenSUSE, Slackware, etc.).  As of writing this, I am not aware of any installation packages created for Ubuntu.  However, I was able to compile OpenVAS from source quite easily on Ubuntu by performing the following steps.  For a more in depth look at installing and configuring OpenVAS check out the <a href="http://www.openvas.org/compendium/openvas-compendium.html">OpenVAS Compendium</a>.</p>
<h3>Prerequisites</h3>
<p>First we need to install all of the dependent packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential libgnutls-dev libpcap0.8-dev <span style="color: #c20cb9; font-weight: bold;">bison</span> libgtk2.0-dev
libglib2.0-dev libgpgme11-dev libssl-dev htmldoc</pre></div></div>

<p class="note">
Note: libgtk2.0-dev is only required for the OpenVAS client.  htmldoc is only required if you plan on exporting reports to PDF from the OpenVAS client.</p>
<h3>Getting the Files</h3>
<p>Once those packages have installed we need to download the files required for OpenVAS.  The links below may be outdated, make sure you obtain the latest version.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">572</span><span style="color: #000000; font-weight: bold;">/</span>openvas-libraries-2.0.2.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">561</span><span style="color: #000000; font-weight: bold;">/</span>openvas-libnasl-2.0.1.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">562</span><span style="color: #000000; font-weight: bold;">/</span>openvas-server-2.0.1.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">576</span><span style="color: #000000; font-weight: bold;">/</span>openvas-plugins-1.0.6.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">575</span><span style="color: #000000; font-weight: bold;">/</span>openvas-client-2.0.3.tar.gz</pre></div></div>

<p>Now that we have downloaded the required files we must sompile and install the packages in the following order:</p>
<ol>
<li>openvas-libraries</li>
<li>openvas-libnasl</li>
<li>openvas-server</li>
<li>openvas-plugins</li>
</ol>
<h3>Install OpenVAS Libraries</h3>
<p>
Start by untarring the openvas-libraries and compiling/installing it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-libraries-2.0.2.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-libraries-2.0.2<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<h3>Install OpenVAS libnasl</h3>
<p>Next untar the openvas-libnasl and compile/install it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-libnasl-2.0.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-libnasl-2.0.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<h3>Install OpenVAS Server</h3>
<p>Next untar the openvas-server and compile/install it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-server-2.0.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-server-2.0.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>The OpenVAS libraries, libnasl, and server packages should now be installed.  We now have to make sure that /usr/local/bin and /usr/local/sbin are in our PATH.  We can do that by typing in:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #800000;">${PATH}</span></pre></div></div>

<p>In the output from the above command you should see /usr/local/bin and /usr/local/sbin somewhere.  If you don&#8217;t you will have to add those entries to the <a href="https://help.ubuntu.com/community/EnvironmentVariables#Persistent%20environment%20variables">PATH environmental variable</a> manually.</p>
<h3>Install OpenVAS Plugins</h3>
<p>Our next step is to compile/install the plugins:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-plugins-1.0.6.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-plugins-1.0.6<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p class="note">Note:  The plugins may take a while to make&#8230; be patient.</p>
<p>Now we have to setup the symbolic links:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> ldconfig</pre></div></div>

<h3>Generate a Certificate</h3>
<p>We are now ready to <a href="http://www.openvas.org/compendium/generating-a-server-certificate.html" target="blank">generate a certificate</a> for our OpenVAS Server, make sure to enter values relevant to your location.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-mkcert</pre></div></div>

<h3>Create a User</h3>
<p>Now we need to <a href="http://www.openvas.org/compendium/adding-new-users.html" target="blank">add a user</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-adduser</pre></div></div>

<p>Enter a username and choose your authentication method.  Hit ctrl-d when you are prompted for rules if you dont want any scanning restrictions.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-nvt-sync</pre></div></div>

<p>And at last&#8230; the moment of truth!  Start up the OpenVAS server daemon:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvasd <span style="color: #660033;">-D</span></pre></div></div>

<h3>Install the OpenVAS Client</h3>
<p>Now that the server is setup you can setup the client to run the scans:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-client-2.0.3.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-client-2.0.3<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> OpenVAS-Client</pre></div></div>

<p>The client can be installed on any computer that has access to the server.  Once it is installed you just have to connect, setup a scan and you&#8217;re done!  Stay tuned for another blog post on configuring scans with the OpenVAS Client.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
