<?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>danielmiessler.com &#187; Sysadmin</title>
	<atom:link href="http://danielmiessler.com/categories/sysadmin/feed" rel="self" type="application/rss+xml" />
	<link>http://danielmiessler.com</link>
	<description>grep understanding</description>
	<lastBuildDate>Sat, 11 Feb 2012 21:09:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Apache Modules in Ubuntu</title>
		<link>http://danielmiessler.com/blog/installing-apache-modules-in-ubuntu</link>
		<comments>http://danielmiessler.com/blog/installing-apache-modules-in-ubuntu#comments</comments>
		<pubDate>Mon, 07 Dec 2009 03:23:00 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://danielmiessler.com/blog/installing-apache-modules-in-ubuntu</guid>
		<description><![CDATA[These are the ones I often seem to need. [bash]a2enmod headers a2enmod expires a2enmod rewrite[/bash] Then bounce the service: [bash]/etc/init.d/apach2 restart[/bash] [ If it seems like this post is a note to myself, that's because it is. :) That's how the entire site got started, actually. ] Related ContentA Few Apache Hardening BasicsHow to See [...]]]></description>
			<content:encoded><![CDATA[<p>These are the ones I often seem to need.</p>

<p>[bash]a2enmod headers
a2enmod expires
a2enmod rewrite[/bash]</p>

<p>Then bounce the service:</p>

<p>[bash]/etc/init.d/apach2 restart[/bash]</p>

<p class="post_note">[ If it seems like this post is a note to myself, that's because it is. :) That's how the entire site got started, actually. ]</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/a-few-apache-hardening-basics" rel="bookmark" class="crp_title">A Few Apache Hardening Basics</a></li><li><a href="http://danielmiessler.com/blog/how-to-see-how-your-apache-is-configured" rel="bookmark" class="crp_title">How to See How Your Apache is Configured</a></li><li><a href="http://danielmiessler.com/blog/installing-the-latest-version-of-nmap-using-subversion" rel="bookmark" class="crp_title">Installing the Latest Version of Nmap Using Subversion</a></li><li><a href="http://danielmiessler.com/blog/show-hidden-files-in-os-x" rel="bookmark" class="crp_title">Show Hidden Files in OS X</a></li><li><a href="http://danielmiessler.com/blog/some-sysadmin-tools" rel="bookmark" class="crp_title">Some Sysadmin Tools</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/installing-apache-modules-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A List of Google&#8217;s DNS Servers</title>
		<link>http://danielmiessler.com/blog/a-list-of-googles-dns-servers</link>
		<comments>http://danielmiessler.com/blog/a-list-of-googles-dns-servers#comments</comments>
		<pubDate>Sat, 05 Dec 2009 15:29:59 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://danielmiessler.com/blog/a-list-of-googles-dns-servers</guid>
		<description><![CDATA[So, most of us have heard about Google offering public DNS services now. What most don&#8217;t know is that there are three (3) IPs available currently rather than just two (2). Here they are, in one place: 8.8.8.8 8.8.4.4 4.3.2.1 // the one google hasn&#8217;t talked about yet And, yeah, they&#8217;re fast. I&#8217;m pinging them [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><img width="300" height="" src="http://www.google.com/images/srpr/logo1w.png" alt="google_logo" /></p>

<p>So, most of us have heard about <a href="http://code.google.com/speed/public-dns/" title="Google Public DNS">Google offering public DNS services</a> now. What most don&#8217;t know is that there are three (3) IPs available currently rather than just two (2). Here they are, in one place:</p>

<ol>
<li>8.8.8.8</li>
<li>8.8.4.4</li>
<li>4.3.2.1 // the one google hasn&#8217;t talked about yet</li>
</ol>

<p>And, yeah, <em>they&#8217;re fast</em>. I&#8217;m pinging them sub 1.5ms from this server, and DNS responses from them are blazing.</p>

<p>::</p>

<p class="post_note">* I&#8217;ll be updating this post as Google announces more IPs, as a reference for myself and anyone else.</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/google-doing-federated-openid-for-google-apps-now" rel="bookmark" class="crp_title">Google Doing Federated OpenID for Google Apps Now</a></li><li><a href="http://danielmiessler.com/blog/google-sync-coming-to-the-iphone" rel="bookmark" class="crp_title">Google Sync Coming to the iPhone</a></li><li><a href="http://danielmiessler.com/blog/google-getting-into-social-profiles" rel="bookmark" class="crp_title">Google Getting Into Social Profiles</a></li><li><a href="http://danielmiessler.com/blog/quicksilver-google-quick-search-box" rel="bookmark" class="crp_title">Quicksilver &#8211;> Google Quick Search Box</a></li><li><a href="http://danielmiessler.com/blog/why-you-should-encrypt-all-of-your-google-activities-poc" rel="bookmark" class="crp_title">Why You Should Encrypt *All* of Your Google Activities [POC]</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/a-list-of-googles-dns-servers/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HOWTO: Use Splunk as Your Remote Syslog Server</title>
		<link>http://danielmiessler.com/blog/howto-use-splunk-as-your-remote-syslog-server</link>
		<comments>http://danielmiessler.com/blog/howto-use-splunk-as-your-remote-syslog-server#comments</comments>
		<pubDate>Mon, 01 Jun 2009 11:50:47 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Splunk]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blog/howto-use-splunk-as-your-remote-syslog-server</guid>
		<description><![CDATA[So I&#8217;ve been messing with Splunk> a bit recently, and as part of that I&#8217;ve been sending logs from iptables, snort, and apache&#8211;not to mention the other stuff that naturally lands within /var/log/messages. As you can see, the reason I&#8217;m doing this is to get a brutally powerful data view in one interface. Here I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been messing with <a href="http://www.splunk.com/" title="Splunk IT Search Company | It's not just Log Management anymore">Splunk</a>> a bit recently, and as part of that I&#8217;ve been sending logs from <code>iptables</code>, <code>snort</code>, and <code>apache</code>&#8211;not to mention the other stuff that naturally lands within <code>/var/log/messages</code>.</p>

<p style="text-align:center"><img width="500" height="" src="http://dmiessler.com/wp-content/uploads/2009/06/get-requests.png" alt="get_requests" /></p>

<p>As you can see, the reason I&#8217;m doing this is to get a brutally powerful data view in one interface. Here I&#8217;m showing some GET requests within my Apache logs, but I currently have saved searches for all these various types of information:</p>

<ul>
<li>drops on my firewall</li>
<li>accepts on my firewall</li>
<li>successful SSH logins (password or key)</li>
<li>failed SSH logins (password or key)</li>
<li>associations to my wireless</li>
<li>incoming GET requests to Apache</li>
<li>user agents</li>
</ul>

<p>The key with Splunk> is the quickness in which you can search raw data, and create powerful visualizations of the results.</p>

<p style="text-align:center"><img width="" height="" src="http://dmiessler.com/wp-content/uploads/2009/06/dports.png" alt="dports" /><br /><span class="image_attribution">firewall drops by port within 3 hours</span></p>

<p style="text-align:center"><img width="300" height="" src="http://dmiessler.com/wp-content/uploads/2009/06/dports2.png" alt="dports2" /></p>

<h2>Syslog Setup</h2>

<p>So this all requires that Splunk> see your log data; here&#8217;s how to set up <code>syslog-ng</code> to forward your various log types to an arbitrary destination.</p>

<h3><code>netfilter/iptables</code></h3>

<p>Log your desired traffic (this is my default-deny at the bottom of my ruleset)</p>

<p>[bash]/sbin/iptables -A INPUT -i eth0 -d $SENECA -j LOG &#8211;log-level 7 &#8211;log-prefix &quot;Firewall: Default Deny: &quot;[/bash]</p>

<p>This will automatically go to <code>syslog</code> on most systems.</p>

<h3><code>Apache</code></h3>

<p>You don&#8217;t do anything specific in Apache, other than make sure you&#8217;re logging the stuff you want. I prefer to get user-agent and such in my logs:</p>

<p>[bash]LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined
LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b&quot; common
LogFormat &quot;%{Referer}i -&gt; %U&quot; referer
LogFormat &quot;%{User-Agent}i&quot; agent
LogFormat &quot;%v %h %l %u %t \&quot;%r\&quot; %&gt;s %b %T&quot; script
LogFormat &quot;%v %h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot; VLOG=%{VLOG}e&quot; vhost[/bash]</p>

<h3><code>syslog</code></h3>

<p>Then for the most important piece you have to:</p>

<ol>
<li>Tell <code>syslog-ng</code> to parse your Apache logs</li>
<li>Tell <code>syslog-ng</code> to send logs to your remote system (Splunk, in this case)</li>
</ol>

<p>First, here&#8217;s how you get arbitrary, quickly expanding logs into <cocde>syslog-ng</code>:</p>

<p>[bash]source access {
    file(&quot;/var/log/apache2/access_log&quot; &lt;em&gt;follow_freq&lt;/em&gt;(1)
    flags(no-parse));
};[/bash]</p>

<p>This names a source <em>access</em> (for access_log) that will be harvested from a <em>file</em>. The file is my main Apache log. The important bit is the <em>follow_freq(1)</em>, as it keeps you from having to do crazy tail / pipe tricks to get access_log's input into <code>syslog-ng</code>. The 1 says to parse the file for new content every second.</p>

<p>Then you need to define a <em>destination</em> for your logs:</p>

<p>[bash]destination logserver { udp(&quot;your.remote.logserver.dns&quot; port(514)); };[/bash]</p>

<p>And then give the <code>log</code> command, which calls your custom source and your custom destination:</p>

<p>[bash]log { source(access); destination(logserver); };[/bash]</p>

<p class="post_note">[ ** Don't forget to also add log lines for your default syslog source as well. ]</p>

<p>And that's pretty much it. Configure Splunk to listen on UDP/514 and you will have some decent data to start playing with. ::</p>

<h3>Links</h3>

<p>[ <a href="http://www.splunk.com/base/Documentation/3.0/User/Search" title="Search">Splunk Search Syntax | splunk.com</a> ]</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/bird-hunted-to-near-extinction-due-to-infuriating-fuck-you-call-the-onion" rel="bookmark" class="crp_title">Bird Hunted To Near Extinction Due To Infuriating &#8216;Fuck You&#8217; Call | The Onion</a></li><li><a href="http://danielmiessler.com/blog/updated-ruby-code-for-querying-ipinfodb" rel="bookmark" class="crp_title">Updated Ruby Code for Querying IpInfoDB</a></li><li><a href="http://danielmiessler.com/blog/a-few-apache-hardening-basics" rel="bookmark" class="crp_title">A Few Apache Hardening Basics</a></li><li><a href="http://danielmiessler.com/blog/keeping-your-screenshots-organized-in-os-x" rel="bookmark" class="crp_title">Keeping Your Screenshots Organized in OS X</a></li><li><a href="http://danielmiessler.com/blog/27bslash6-com" rel="bookmark" class="crp_title">27bslash6.com</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/howto-use-splunk-as-your-remote-syslog-server/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A Simple Script for Harvesting DNS, Country, State, and City Information From a List of IP Addresses</title>
		<link>http://danielmiessler.com/blog/a-simple-script-for-harvesting-dns-country-state-and-city-information-from-a-list-of-ip-addresses</link>
		<comments>http://danielmiessler.com/blog/a-simple-script-for-harvesting-dns-country-state-and-city-information-from-a-list-of-ip-addresses#comments</comments>
		<pubDate>Tue, 19 May 2009 00:41:40 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blog/a-simple-script-for-harvesting-dns-country-state-and-city-information-from-a-list-of-ip-addresses</guid>
		<description><![CDATA[My buddy at work asked me if I could find some location information for a list of IPs. I knew of the GeoIP / GeoLite project(s), so I said yes and then proceeded to put together the following quick hack in bash. Here&#8217;s what it does: Pull a list of IP addresses from your apache [...]]]></description>
			<content:encoded><![CDATA[<p>My buddy at work asked me if I could find some location information for a list of IPs. I knew of the <a href="http://www.maxmind.com/app/geoip_country" title="MaxMind - GeoLite Country | Open Source IP Address to Country Database">GeoIP / GeoLite</a> project(s), so I said yes and then proceeded to put together the following quick hack in bash.</p>

<p>Here&#8217;s what it does:</p>

<ol>
<li>Pull a list of IP addresses from your apache logs (you can get the list from anywhere, of course).</li>
<li>Strip the duplicates (using <code>uniq</code>)</li>
<li>Use <code>host</code> to get the DNS entry for the IP</li>
<li>Use the default <code>geoiplookup</code> to get the country for the IP.</li>
<li>Use <code>geoiplookup</code> with the city file passed to it to get the city (and other info) for the IP.</li>
<li>Output the whole thing into a .csv file that will import instantly into Excel.</li>
</ol>

<p>[bash]#!/usr/bin/env bash
cat /var/log/apache2/ | awk &#8216;{print $1}&#8217; > ips.txt
uniq ips.txt > uniques.txt
IPS=&#8217;cat uniques.txt&#8217;
echo &#8220;&#8221; > ./ipinfo.csv
for i in $IPS
do
    echo &#8220;$i,&#8217;host $i | awk &#8216;{print $5}&#8221;,&#8217;geoiplookup $i | cut -d &#8220;,&#8221; -f2 | sed -e &#8216;s/^[ \t]<em>//&#8221;,&#8217;geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat $i | cut -d &#8220;,&#8221; -f3 | sed -e &#8216;s/^[ \t]</em>//&#8221;,&#8217;geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat $i | cut -d &#8220;,&#8221; -f4 | sed -e &#8216;s/^[ \t]*//&#8221;&#8221; >> ipinfo.csv
done
[/bash]</p>

<p class="post_note">[ The backticks have been changed to single quotes so it would render correctly. <a href="http://dmiessler.com/files/geo.sh.txt">Here's</a> the original file. ]</p>

<p>Here&#8217;s what the output looks like:</p>

<pre><code>[text]193.110.229.12,host12-193-110-229.limes.com.pl.,Poland,82,Gdansk
189.20.216.229,3(NXDOMAIN),Brazil,27,São Paulo
81.192.159.138,ll81-2-138-159-192-81.ll81-2.iam.net.ma.,Morocco,07,Casablanca
189.20.216.229,3(NXDOMAIN),Brazil,27,São Paulo
76.27.75.237,c-76-27-75-237.hsd1.ut.comcast.net.,United States,UT,South Jordan
189.20.216.229,3(NXDOMAIN),Brazil,27,São Paulo
123.125.66.70,3(NXDOMAIN),China,22,Beijing
70.183.232.136,wsip-70-183-232-136.pn.at.cox.net.,United States,FL,Pensacola
66.249.70.108,crawl-66-249-70-108.googlebot.com.,United States,CA,Mountain View
193.212.60.77,3(NXDOMAIN),Norway,01,Fornebu
189.20.216.229,3(NXDOMAIN),Brazil,27,São Paulo
193.110.229.12,host12-193-110-229.limes.com.pl.,Poland,82,Gdansk
83.16.251.58,ajr58.internetdsl.tpnet.pl.,Poland,82,Gdansk
193.110.229.12,host12-193-110-229.limes.com.pl.,Poland,82,Gdansk
212.247.189.113,3(NXDOMAIN),Sweden,25,Västerås[/text]
</code></pre>

<h2>Setup</h2>

<p>So there are a few quick things you need before this will work:</p>

<ul>
<li><code>geoip</code>, which gives you the <code>geopiplookup</code> command.

<ol>
<li>The <a href="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz" title="">GeoLiteCity.dat file manually</a>, which you need to put somewhere. I put it next to the default one that comes with geoip, which is in /usr/share/GeoIP/.</li>
<li>ensure the paths in your environment match the paths in the script.</li>
</ol></li>
</ul>

<p>Of course, if I were really cool I&#8217;d use a real programming language and one of the APIs, but this is quick, dirty and effective. I&#8217;m thinking about building a rails-based web service for doing it. If anyone&#8217;s interested or has any comments on this one, let me know in the comments or send me a mail at daniel@dmiessler.com. ::</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/ruby-parsing-an-ip-list-to-send-to-ipinfodb-3" rel="bookmark" class="crp_title">Ruby: Parsing an IP List to Send to IpInfoDB</a></li><li><a href="http://danielmiessler.com/blog/getting-ip-location-information-in-wireshark" rel="bookmark" class="crp_title">Getting IP Location Information in Wireshark</a></li><li><a href="http://danielmiessler.com/blog/how-to-get-around-the-md5sum-carriage-return-issue" rel="bookmark" class="crp_title">How to Get Around the md5sum Carriage Return Issue</a></li><li><a href="http://danielmiessler.com/blog/a-few-apache-hardening-basics" rel="bookmark" class="crp_title">A Few Apache Hardening Basics</a></li><li><a href="http://danielmiessler.com/blog/installing-the-latest-version-of-nmap-using-subversion" rel="bookmark" class="crp_title">Installing the Latest Version of Nmap Using Subversion</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/a-simple-script-for-harvesting-dns-country-state-and-city-information-from-a-list-of-ip-addresses/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Get Around the md5sum Carriage Return Issue</title>
		<link>http://danielmiessler.com/blog/how-to-get-around-the-md5sum-carriage-return-issue</link>
		<comments>http://danielmiessler.com/blog/how-to-get-around-the-md5sum-carriage-return-issue#comments</comments>
		<pubDate>Mon, 20 Apr 2009 21:03:26 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/?p=5442</guid>
		<description><![CDATA[There&#8217;s an issue with md5sum where it returns unexpected results due to the fact that appends a carriage return to what you&#8217;re trying to get a sum of. So if you try and get a sum of &#8220;password&#8221; by summing a file with the word &#8220;password&#8221; as the only line in the file, you won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><center><img src="http://www.iusmentis.com/technology/hashfunctions/md5/md5operation.gif" /></center></p>

<p>There&#8217;s an issue with <code>md5sum</code> where it returns unexpected results due to the fact that appends a carriage return to what you&#8217;re trying to get a sum of.</p>

<p>So if you try and get a sum of &#8220;password&#8221; by summing a file with the word &#8220;password&#8221; as the only line in the file, you won&#8217;t actually be summing &#8220;password&#8221;, but rather &#8220;password[^M]&#8220;, which obviously won&#8217;t be the same.</p>

<h2>The Fix</h2>

<p>So a quick fix for this is to use <code>echo</code> to feed <code>md5sum</code> with the <code>-n</code> option, which removes the trailing carriage return:</p>

<p>[bash]echo -n &#8220;password&#8221; | md5sum[/bash]</p>

<p>::</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/beyond-ssh-bookmarks" rel="bookmark" class="crp_title">Beyond SSH Bookmarks</a></li><li><a href="http://danielmiessler.com/blog/installing-the-latest-version-of-nmap-using-subversion" rel="bookmark" class="crp_title">Installing the Latest Version of Nmap Using Subversion</a></li><li><a href="http://danielmiessler.com/blog/nmap-use-the-top-ports-option-for-both-tcp-and-udp-simultaneously" rel="bookmark" class="crp_title">Nmap: Use the <code>--top-ports</code> Option for Both TCP and UDP Simultaneously</a></li><li><a href="http://danielmiessler.com/blog/howto-use-splunk-as-your-remote-syslog-server" rel="bookmark" class="crp_title">HOWTO: Use Splunk as Your Remote Syslog Server</a></li><li><a href="http://danielmiessler.com/blog/os-x-manipulating-the-clipboard-via-command-line" rel="bookmark" class="crp_title">OS X: Manipulating the Clipboard via Command Line</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/how-to-get-around-the-md5sum-carriage-return-issue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Clean Out Old .svn Directories</title>
		<link>http://danielmiessler.com/blog/how-to-clean-out-old-svn-directories</link>
		<comments>http://danielmiessler.com/blog/how-to-clean-out-old-svn-directories#comments</comments>
		<pubDate>Tue, 02 Dec 2008 06:12:44 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blog/howto-clean-out-old-svn-directories</guid>
		<description><![CDATA[find . -type d -name .svn -print0 &#124; xargs -0 rm -rf Links [ Find and Xargs &#124; dmiessler.com ] Related ContentLinux: Harnessing The Über-Powerful Find Command (+xargs)Linux: xargs vs. exec {}A Few Apache Hardening BasicsA Script For Quickly Upgrading to the Latest Version of WordPressWordPress 2.7]]></description>
			<content:encoded><![CDATA[<p><span class="hcommand">find . -type d -name .svn -print0 | xargs -0 rm -rf</span></p>

<h3>Links</h3>

<p>[ <a href="http://dmiessler.com/study/find/" title="dmiessler.com | study | find">Find and Xargs | dmiessler.com</a> ]</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/linux-harnessing-the-uber-powerful-find-command-xargs" rel="bookmark" class="crp_title">Linux: Harnessing The Über-Powerful Find Command (+xargs)</a></li><li><a href="http://danielmiessler.com/blog/linux-xargs-vs-exec" rel="bookmark" class="crp_title">Linux: <code>xargs</code> vs. <code>exec {}</code></a></li><li><a href="http://danielmiessler.com/blog/a-few-apache-hardening-basics" rel="bookmark" class="crp_title">A Few Apache Hardening Basics</a></li><li><a href="http://danielmiessler.com/blog/a-script-for-updating-to-the-latest-version-of-wordpress" rel="bookmark" class="crp_title">A Script For Quickly Upgrading to the Latest Version of WordPress</a></li><li><a href="http://danielmiessler.com/blog/wordpress-27" rel="bookmark" class="crp_title">WordPress 2.7</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/how-to-clean-out-old-svn-directories/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing My New Host</title>
		<link>http://danielmiessler.com/blog/testing-my-new-host</link>
		<comments>http://danielmiessler.com/blog/testing-my-new-host#comments</comments>
		<pubDate>Sun, 30 Nov 2008 21:12:57 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blog/testing-my-new-host</guid>
		<description><![CDATA[Well, I&#8217;ve finally [fingers crossed] moved my site to my new host. I&#8217;m doing the most depressing of moves&#8211;going from colocation to &#8220;regular&#8221; hosting. But at least it&#8217;s good hosting. Rather than go the discount route I went with Media Temple (mt), which according to my research is just about as good as you can [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve finally [fingers crossed] moved my site to my new host. I&#8217;m doing the most depressing of moves&#8211;going from colocation to &#8220;regular&#8221; hosting. But at least it&#8217;s good hosting. Rather than go the discount route I went with <a href="http://www.mediatemple.net/" title="(mt) Media Temple - Web Hosting Built to Scale.">Media Temple (mt)</a>, which according to my research is just about as good as you can get without doing colo.</p>

<p>Anyway, I expect problems.</p>

<p>Please let me know if you see anything funky with the site itself or with my syndication feeds. And any input on differences noticed would be great, e.g. if the site is slower now, or faster, or whatever.</p>

<p>Here are my feeds in case you don&#8217;t have them&#8230;</p>

<p>[ <a href="http://dmiessler.com/syndication/" title="dmiessler.com | syndication">dmiessler.com Syndication Feeds</a> ]</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/feeds-updated" rel="bookmark" class="crp_title">Feeds Updated</a></li><li><a href="http://danielmiessler.com/blog/syndication-page-updated" rel="bookmark" class="crp_title">Syndication Page Updated</a></li><li><a href="http://danielmiessler.com/blog/i-just-passed-1000-subscribers" rel="bookmark" class="crp_title">I Just Passed 1000 Subscribers</a></li><li><a href="http://danielmiessler.com/blog/august-2007-site-enhancements" rel="bookmark" class="crp_title">August 2007 Site Enhancements</a></li><li><a href="http://danielmiessler.com/blog/feed-updates" rel="bookmark" class="crp_title">Feed Updates</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/testing-my-new-host/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Security and Obscurity: Does Changing Your SSH Port Lower Your Risk?</title>
		<link>http://danielmiessler.com/blog/security-and-obscurity-does-changing-your-ssh-port-lower-your-risk</link>
		<comments>http://danielmiessler.com/blog/security-and-obscurity-does-changing-your-ssh-port-lower-your-risk#comments</comments>
		<pubDate>Sun, 16 Mar 2008 02:19:12 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blog/security-and-obscurity-changing-your-ssh-port</guid>
		<description><![CDATA[My opinion on security and obscurity is that obscurity can in fact help improve an already sound security posture. That&#8217;s keeping in mind that it should never become security by obscurity &#8212; which is definitely bad. Anyway, I&#8217;ve debated this issue for years with many people, and I remain convinced that my position on the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><img width="250" height="250" src="http://danielmiessler.com/images/obscurity.gif" alt="predator" /></p>

<p><a href="http://danielmiessler.com/study/security_and_obscurity" title="Security and Obscurity">My opinion on security and obscurity</a> is that obscurity can in fact help improve an already sound security posture. That&#8217;s keeping in mind that it should never become security <strong>by</strong> obscurity &#8212; which is definitely bad.</p>

<p>Anyway, I&#8217;ve debated this issue for years with many people, and I remain convinced that my position on the matter is correct. But tonight I decided to do some very coarse testing of the idea using the SSH daemon.</p>

<p>I decided to configure my SSH daemon to listen on port 24 in addition to its regular port of 22 so I could see the difference in attempts to guess credentials on each. My expected result is far fewer attempts to access SSH on port 24 than port 22, which I equate to less risk to my, or any, SSH daemon.</p>

<p>It&#8217;s quite simple to set this up; you just put two port lines in your config instead of one, and then restart your daemon:</p>

<p><pre class="codeblock">Port 22
Port 24</pre></p>

<p>Then I added logging to a couple of my firewall rules:</p>

<p><pre class="codeblock">-j LOG --log-level 7 --log-prefix "Logged port 22: "
-j LOG --log-level 7 --log-prefix "Logged port 24: "</pre></p>

<p>(log rules go before their associated DROP, REJECT and ACCEPT rules, btw)</p>

<p>&#8230;and I&#8217;ve let that run for over 8 hours&#8230;on an unremarkable Saturday.</p>

<h2>The Results</h2>

<p>Well, it&#8217;s definitely true that very few people look for SSH on port 24. In the time that I gathered <strong>7,025</strong> connection attempts to my SSH daemon on port 22 I received <strong>3</strong> on port 24.</p>

<p><em>Three.</em></p>

<p class="update">[UPDATE: The stats over the weekend were over <strong>18,000</strong> connections to port 22, and <strong>five</strong> (5) to port 24.]</p>

<p><strong>That&#8217;s fine, but the real question is this: would it reduce my risk of being compromised remotely through my SSH daemon if I were to change the daemon&#8217;s port to 24? I think the answer is yes.</strong></p>

<p>Let&#8217;s assume that there&#8217;s a new zero day out for OpenSSH that is just owning boxes with impunity. Is anyone willing to argue that someone unleashing such an attack would waste significant effort going for non-standard ports? Or are they more likely to stick with the default port where they&#8217;re guaranteed to find more daemons?</p>

<p>I think we <em>do</em> gain security by moving commonly-attacked listeners to non-standard ports. And yes, that extra security does come from obscurity. Remember, even tanks are painted with camouflage. ::</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/a-short-security-and-obscurity-summary" rel="bookmark" class="crp_title">A Short &#8220;Security and Obscurity&#8221; Summary</a></li><li><a href="http://danielmiessler.com/blog/2-ssh-brute-force-countermeastures" rel="bookmark" class="crp_title">2 SSH Brute-Force-Attack Countermeasures</a></li><li><a href="http://danielmiessler.com/blog/security-and-obscurity-its-not-what-you-think" rel="bookmark" class="crp_title">Security And Obscurity: It&#8217;s Not What You Think</a></li><li><a href="http://danielmiessler.com/blog/problems-with-check-point-nat-and-sip" rel="bookmark" class="crp_title">Problems with Check Point, NAT, and SIP</a></li><li><a href="http://danielmiessler.com/blog/dmzs-nating-vs-using-public-addresses" rel="bookmark" class="crp_title">DMZs: NATing vs. Using Public Addresses</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/security-and-obscurity-does-changing-your-ssh-port-lower-your-risk/feed</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>How to Migrate Your Custom Domain&#8217;s Email to Google (And Maintain Your Addresses)</title>
		<link>http://danielmiessler.com/blog/how-to-migrate-your-custom-domains-email-to-google-and-maintain-your-addresses</link>
		<comments>http://danielmiessler.com/blog/how-to-migrate-your-custom-domains-email-to-google-and-maintain-your-addresses#comments</comments>
		<pubDate>Wed, 14 Nov 2007 06:00:12 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blogarchive/how-to-migrate-your-custom-domains-email-to-google-while-keeping-your-addresses-and-domain</guid>
		<description><![CDATA[After over six (6) years of handling my domain&#8217;s email through self-built and administered Linux boxes, I just migrated all my email functionality over to Google. This has never been a solid option for me for one primary reason: the mixing of gmail.com with my own domain (danielmiessler.com). Forwarding and changing &#8220;reply to&#8221; settings has [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><img width="400" height="" src="http://dmiessler.com/wp-content/uploaded_content/2007/11/googleapps.png" alt="googleapps" /></p>

<p>After over six (6) years of handling my domain&#8217;s email through self-built and administered Linux boxes, I just migrated all my email functionality over to <a href="http://www.google.com/" title="Google">Google</a>. This has never been a solid option for me for one primary reason: the mixing of gmail.com with my own domain (danielmiessler.com). Forwarding and changing &#8220;reply to&#8221; settings has never been that attractive to me.</p>

<p class="offset">That problem has been solved. You can now let Google handle your domain&#8217;s email while keeping <strong>your existing addresses</strong>. That means you still get Google&#8217;s webmail interface (exactly like GMail) but everything is tied directly to your domain. It&#8217;s called <a href="http://www.google.com/apps/intl/en/group/index.html">Google Apps</a>.</p>

<p>Google Apps allows those with their own domain to move their entire mail infrastructure to Google. That means keeping your email addresses <em>exactly</em> as they are today (e.g. daniel@danielmiessler.com) while gaining the benefit of being hosted by Google. Here are a few advantages to consider:</p>

<ul>
<li>Google uptime</li>
<li>Google speed</li>
<li>Long-term stability (they aren&#8217;t going anywhere)</li>
<li>You can use the &#8220;GMail&#8221; interface as your domain&#8217;s webmail <strong>and/or</strong> use IMAP or POP (way better than most self-install webmail systems)</li>
<li>You can point <strong>http://mail.yourdomain.com</strong> to your new GMail interface (<a href="http://mail.danielmiessler.com/">like mine</a>).</li>
<li>You get to keep all of your addresses and present a clean identity to everyone (nobody will see gmail.com in from or reply to fields)</li>
<li>Google&#8217;s industry-leading spam protection</li>
<li>Full IMAP support (with IDLE) </li>
<li>Full SMTP support (no need for a separate outgoing server)</li>
<li>SSL support on both incoming and outgoing mail</li>
<li>No more worrying about keeping your mail server up</li>
</ul>

<p><strong>All of Google&#8217;s mail power, but for <em>your</em> domain.</strong> Notice how I&#8217;m signing in below; I just enter my first name &#8220;daniel&#8221;, as my domain is already filled out for me. Way slicker than GMail.</p>

<p style="text-align:center"><img width="500" height="" src="http://danielmiessler.com/wp-content/uploads/2010/04/google_apps_signin.png" alt="googleappssignin" /></p>

<p>And it&#8217;s simple to setup; I did the domain and two accounts in like 10 minutes (including DNS changes) Here are the basic steps:</p>

<ol>
<li>Create a <strong>free</strong> account at <a href="http://www.google.com/apps/intl/en/group/index.html">Google Apps</a></li>
<li>Verify your domain ownership with Google (I did the file upload)</li>
<li>Change your MX records to point to Google&#8217;s mail servers (<a href="http://dyndns.com">DynDNS</a> makes this easy)</li>
<li>Wait for everything to update (for me, 10 minutes)</li>
<li>[optional] Pay the upgrade fee and import everything from another online mail account (GMail, Hotmail, Yahoo!, etc.)</li>
</ol>

<p>That&#8217;s pretty much it. And keep in mind that Google Apps isn&#8217;t just for mail; you can also have Chat, Calendar, Docs, and even your main web page hosted by Google. And you can set up shortcuts so that you can get to your online Google Mail by going to http://mail.yourdomain.com. Mine is at <a href="http://mail.danielmiessler.com">http://mail.danielmiessler.com</a>, for example. And you can do the same for your calendar, docs, etc.</p>

<p>So yeah, if you haven&#8217;t looked into Google Apps yet, it might be time to check it out. ::</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/a-keyboard-shortcut-for-archiving-mail-using-mailapp-and-google-mail" rel="bookmark" class="crp_title">A Keyboard Shortcut for Archiving Mail Using Mail.app and Google Mail</a></li><li><a href="http://danielmiessler.com/blog/decision-2008-google-apps-vs-apples-mobileme" rel="bookmark" class="crp_title">Decision 2008: Google Apps vs. Apple&#8217;s MobileMe</a></li><li><a href="http://danielmiessler.com/blog/filtering-non-gmail-email-with-gmail" rel="bookmark" class="crp_title">Filtering Non-Gmail Email With Gmail</a></li><li><a href="http://danielmiessler.com/blog/why-you-should-encrypt-all-of-your-google-activities-poc" rel="bookmark" class="crp_title">Why You Should Encrypt *All* of Your Google Activities [POC]</a></li><li><a href="http://danielmiessler.com/blog/this-is-why-you-should-be-encrypting-your-communications-with-google-traffic-included" rel="bookmark" class="crp_title">This is Why You Should Be Encrypting Your Communications with Google [Traffic Included]</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/how-to-migrate-your-custom-domains-email-to-google-and-maintain-your-addresses/feed</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>An Introduction To IMAP IDLE: Why Yahoo!&#8217;s iPhone Push System Isn&#8217;t Working So Well</title>
		<link>http://danielmiessler.com/blog/an-introduction-to-imap-idle-why-yahoos-iphone-push-system-isnt-working-so-well</link>
		<comments>http://danielmiessler.com/blog/an-introduction-to-imap-idle-why-yahoos-iphone-push-system-isnt-working-so-well#comments</comments>
		<pubDate>Tue, 03 Jul 2007 04:08:26 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Protocols]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1435</guid>
		<description><![CDATA[I just finished a short write-up on IMAP IDLE &#8212; a system that&#8217;s often called an email &#8220;push&#8221; technology. Here are a couple of excerpts: IDLE is not &#8212; according to my definition above &#8212; a true push technology. IDLE actually requires an active connection in order to work, and that connection cannot be initiated [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished a short write-up on <a href="http://www.ietf.org/rfc/rfc2177.txt">IMAP IDLE</a> &#8212; a system that&#8217;s often called an email &#8220;push&#8221; technology. Here are a couple of excerpts:</p>

<blockquote>IDLE is not &#8212; according to my definition above &#8212; a true push technology. IDLE actually requires an active connection in order to work, and that connection cannot be initiated by the server.</blockquote>

<p>[Update]: Yahoo! uses P-IMAP, not IDLE to implement &#8220;push&#8221;&#8230;[ Link: <a href="http://dmiessler.com/study/imap_idle/">An Introduction to IMAP IDLE</a> ]</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/hidden-leopard-features-mailapp-imap-idle-support-screenshot" rel="bookmark" class="crp_title">Hidden Leopard Features: Mail.app IMAP IDLE Support [Screenshot]</a></li><li><a href="http://danielmiessler.com/blog/mailapp-is-imap-retarded" rel="bookmark" class="crp_title">Mail.app is IMAP-Retarded</a></li><li><a href="http://danielmiessler.com/blog/postfix-courier-imap-mailapp-and-certificates" rel="bookmark" class="crp_title">Postfix, Courier-Imap, Mail.app, and Certificates</a></li><li><a href="http://danielmiessler.com/blog/how-to-migrate-your-custom-domains-email-to-google-and-maintain-your-addresses" rel="bookmark" class="crp_title">How to Migrate Your Custom Domain&#8217;s Email to Google (And Maintain Your Addresses)</a></li><li><a href="http://danielmiessler.com/blog/linux-good-community-good-distro" rel="bookmark" class="crp_title">Linux: Good Community = Good Distro</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/an-introduction-to-imap-idle-why-yahoos-iphone-push-system-isnt-working-so-well/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Admin Krahs User (Krah! is an action verb)</title>
		<link>http://danielmiessler.com/blog/admin-krahs-user-krah-is-an-action-verb</link>
		<comments>http://danielmiessler.com/blog/admin-krahs-user-krah-is-an-action-verb#comments</comments>
		<pubDate>Mon, 28 May 2007 03:30:15 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1360</guid>
		<description><![CDATA[OMG this is awesome. This should be the companion image to the BOFH literature. Related ContentCat vs. Dog: Krah!Bill Maher Unleashes Krah on Jay LenoThe Truth About OS X&#8217;s Kernel: It&#8217;s Not UnixPrinciple of Least Astonishment &#124; WikipediaDr. Finkelstein Krah&#8217;s Girl Who Invokes Holocaust]]></description>
			<content:encoded><![CDATA[<p>OMG this is awesome. This should be the companion image to the <a href="http://en.wikipedia.org/wiki/Bastard_Operator_From_Hell">BOFH</a> literature.</p>

<p style="text-align: center"><img src="http://dmiessler.com/images/adminkrah.gif" title="krah!" alt="krah!" /></p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/cat-vs-dog-krah" rel="bookmark" class="crp_title">Cat vs. Dog: Krah!</a></li><li><a href="http://danielmiessler.com/blog/bill-maher-unleashes-krah-on-jay-leno" rel="bookmark" class="crp_title">Bill Maher Unleashes Krah on Jay Leno</a></li><li><a href="http://danielmiessler.com/blog/the-truth-about-os-xs-kernel-its-not-unix" rel="bookmark" class="crp_title">The Truth About OS X&#8217;s Kernel: It&#8217;s Not Unix</a></li><li><a href="http://danielmiessler.com/blog/principle-of-least-astonishment-wikipedia" rel="bookmark" class="crp_title">Principle of Least Astonishment | Wikipedia</a></li><li><a href="http://danielmiessler.com/blog/dr-finkelstein-krahs-girl-who-invokes-holocaust" rel="bookmark" class="crp_title">Dr. Finkelstein Krah&#8217;s Girl Who Invokes Holocaust</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/admin-krahs-user-krah-is-an-action-verb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Unix/Linux Permissions Refresher</title>
		<link>http://danielmiessler.com/blog/a-unix-linux-permissions-refresher</link>
		<comments>http://danielmiessler.com/blog/a-unix-linux-permissions-refresher#comments</comments>
		<pubDate>Mon, 16 Apr 2007 21:41:25 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1285</guid>
		<description><![CDATA[I&#8217;ve just posted my latest study piece. This one&#8217;s on Unix/Linux permissions. [ Link: Unix/Linux Permissions ] Related ContentVisualizing Unix PermissionsThe UNIX Configuration Rosetta StoneMy Guide To lsofUnix Geek HumorHow To Get Static Networking Up In Linux From The Command Line]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just posted my latest <a href="http://dmiessler.com/study/">study</a> piece. This one&#8217;s on Unix/Linux permissions.</p>

<p>[ Link: <a href="http://dmiessler.com/study/unixlinux_permissions/">Unix/Linux Permissions</a> ]</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/visualizing-unix-permissions" rel="bookmark" class="crp_title">Visualizing Unix Permissions</a></li><li><a href="http://danielmiessler.com/blog/the-unix-configuration-rosetta-stone" rel="bookmark" class="crp_title">The UNIX Configuration Rosetta Stone</a></li><li><a href="http://danielmiessler.com/blog/my-guide-to-lsof" rel="bookmark" class="crp_title">My Guide To lsof</a></li><li><a href="http://danielmiessler.com/blog/unix-geek-humor-3" rel="bookmark" class="crp_title">Unix Geek Humor</a></li><li><a href="http://danielmiessler.com/blog/how-to-get-static-networking-up-in-linux-from-the-command-line" rel="bookmark" class="crp_title">How To Get Static Networking Up In Linux From The Command Line</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/a-unix-linux-permissions-refresher/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>OSSIM</title>
		<link>http://danielmiessler.com/blog/ossim</link>
		<comments>http://danielmiessler.com/blog/ossim#comments</comments>
		<pubDate>Wed, 04 Apr 2007 14:08:46 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1254</guid>
		<description><![CDATA[A collection of open source tools &#8212; all configured to work together. Very interesting concept. Here are a few that it has. Arpwatch, used for mac anomaly detection. P0f, used for passive OS detection and os change analisys. Pads, used for service anomaly detection. Nessus, used for vulnerability assessment and for cross correlation (IDS vs [...]]]></description>
			<content:encoded><![CDATA[<p>A collection of open source tools &#8212; all configured to work <em>together</em>. Very interesting concept. Here are a few that it has.</p>

<ul>
    <li> Arpwatch, used for mac anomaly detection.</li>
    <li> P0f, used for passive OS detection and os change analisys.</li>
    <li> Pads, used for service anomaly detection.</li>
    <li> Nessus, used for vulnerability assessment and for cross correlation (IDS vs Security Scanner).</li>
    <li> Snort, the IDS, also used for cross correlation with nessus.</li>
    <li> Spade, the statistical packet anomaly detection engine. Used to gain knowledge about attacks without signature.</li>
    <li> Tcptrack, used for session data information which can grant useful information for attack correlation.</li>
    <li> Ntop, which builds an impressive network information database from which we can get aberrant behaviour anomaly detection.</li>
    <li> Nagios. Being fed from the host asset database it monitors host and service availability information.</li>
    <li> Osiris, a great HIDS.</li>
</ul>

<p><small>(thanks to <a href="http://www.averageadmins.com/blog/">Average Admins</a> for the find)</small></p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/a-big-win-for-open-source-security-software-at-ibm" rel="bookmark" class="crp_title">A Big Win For Open-Source Security Software At IBM</a></li><li><a href="http://danielmiessler.com/blog/vulnerability-management-without-asset-management-isnt" rel="bookmark" class="crp_title">Vulnerability Management Without Asset Management, Isn&#8217;t</a></li><li><a href="http://danielmiessler.com/blog/facebook-adds-face-detection-to-photos" rel="bookmark" class="crp_title">Facebook Adds Face Detection To Photos</a></li><li><a href="http://danielmiessler.com/blog/googles-web-malware-detection-system" rel="bookmark" class="crp_title">Google&#8217;s Web Malware Detection System</a></li><li><a href="http://danielmiessler.com/blog/bel-escort" rel="bookmark" class="crp_title">BEL > Escort</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/ossim/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows 2003 Workstation</title>
		<link>http://danielmiessler.com/blog/windows-2003-workstation</link>
		<comments>http://danielmiessler.com/blog/windows-2003-workstation#comments</comments>
		<pubDate>Tue, 27 Feb 2007 21:26:41 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1174</guid>
		<description><![CDATA[You might be saying no such thing exists, but I beg to differ. I&#8217;ve dumped XP as a Windows platform. I now use it only when something specifically requires it (which isn&#8217;t often). I prefer to use Windows Server 2003 as a workstation instead. Why? Mostly because of raw socket limitations. I hate the fact [...]]]></description>
			<content:encoded><![CDATA[<p>You might be saying no such thing exists, but I beg to differ. I&#8217;ve dumped XP as a Windows platform. I now use it only when something specifically requires it (which isn&#8217;t often).</p>

<p>I prefer to use Windows Server 2003 as a workstation instead. Why? Mostly because of raw socket limitations. I hate the fact that security software is hit or miss on XP. I simply lack the time to worry about whether or not XP will gimp up a given security tool.</p>

<p>So I&#8217;ve just built my latest Windows VMware image (for Outlook, Word and Visio) using Server 2003. Office 2007, by the way, is awesome. I very much like the ribbon concept, as well as the other more subtle improvements. And Office 2007 runs great on Server 2003, so this is a good thing.</p>

<p>It&#8217;s become very clear to me that XP is an OS designed for the masses. It&#8217;s edges have been rounded so that people don&#8217;t cut themselves, which is unfortunate since I was actually using them to get work done. Luckily for me there&#8217;s another Microsoft platform that runs Office, and until the next version of server comes out this is what I&#8217;ll be running as my Windows &#8220;desktop&#8221;.</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/microsofts-best-kept-secret-for-it-professionals" rel="bookmark" class="crp_title">Microsoft&#8217;s Best Kept Secret For IT Professionals</a></li><li><a href="http://danielmiessler.com/blog/i-hate-microsoft" rel="bookmark" class="crp_title">I Hate Microsoft</a></li><li><a href="http://danielmiessler.com/blog/vmware-server-20-beta" rel="bookmark" class="crp_title">VMware Server 2.0 Beta</a></li><li><a href="http://danielmiessler.com/blog/my-os-x-software-list" rel="bookmark" class="crp_title">My OS X Software List</a></li><li><a href="http://danielmiessler.com/blog/back-to-the-blackberry" rel="bookmark" class="crp_title">Back to the Blackberry</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/windows-2003-workstation/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux: Don&#8217;t Type &#8220;Y&#8221; &#8212; Just Press Enter</title>
		<link>http://danielmiessler.com/blog/linux-dont-type-y-just-press-enter</link>
		<comments>http://danielmiessler.com/blog/linux-dont-type-y-just-press-enter#comments</comments>
		<pubDate>Thu, 22 Feb 2007 19:57:28 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1164</guid>
		<description><![CDATA[When apt your package manager is prompting you regarding an install decision, like so: Do you want to continue [Y/n]? Just press enter. The &#8220;Y&#8221; being capitalized means it&#8217;s the default. :) I think we all know this, but so many of us still type the &#8220;Y&#8221; out of habit. This is my attempt to [...]]]></description>
			<content:encoded><![CDATA[<p>When <code><strike>apt</strike></code> your package manager is prompting you regarding an install decision, like so:</p>

<p><strong>Do you want to continue [Y/n]?</strong></p>

<p><em>Just press enter.</em> The &#8220;Y&#8221; being capitalized means <em>it&#8217;s the default</em>. :)</p>

<p>I think we all know this, but so many of us still type the &#8220;Y&#8221; out of habit. This is my attempt to free you from doing so.</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/the-coolest-thing-you-didnt-know-bash-could-do" rel="bookmark" class="crp_title">The Coolest Thing You Didn&#8217;t Know Bash Could Do</a></li><li><a href="http://danielmiessler.com/blog/how-to-search-your-site-using-google-from-firefoxs-address-bar-with-code" rel="bookmark" class="crp_title">How To Search Your Site Using Google From Firefox&#8217;s Address Bar (with code)</a></li><li><a href="http://danielmiessler.com/blog/7-relatively-unknown-but-very-powerful-vim-features" rel="bookmark" class="crp_title">7 Relatively Unknown But Very Powerful Vim Features</a></li><li><a href="http://danielmiessler.com/blog/linux-dhcp" rel="bookmark" class="crp_title">Linux DHCP</a></li><li><a href="http://danielmiessler.com/blog/do-a-google-search-for-ip-and-get-your-ip-address" rel="bookmark" class="crp_title">Do a Google Search for &#8216;ip&#8217; and Get Your IP Address</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/linux-dont-type-y-just-press-enter/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Postfix, Courier-Imap, Mail.app, and Certificates</title>
		<link>http://danielmiessler.com/blog/postfix-courier-imap-mailapp-and-certificates</link>
		<comments>http://danielmiessler.com/blog/postfix-courier-imap-mailapp-and-certificates#comments</comments>
		<pubDate>Wed, 21 Feb 2007 03:01:19 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Courier]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1158</guid>
		<description><![CDATA[I just finished getting Mail.app to recognize two seperate SSL certs from my server &#8212; one for imap.dmiessler.com, and another for smtp.dmiessler.com. This was less than trivial (mostly due to my own stupidity). What this means is that I can finally use real domain names in my certificates (self-signed) for two separate hostnames while avoiding [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished getting Mail.app to recognize two seperate SSL certs from my server &#8212; one for imap.dmiessler.com, and another for smtp.dmiessler.com. This was less than trivial (mostly due to my own stupidity).</p>

<p>What this means is that I can finally use real domain names in my certificates (self-signed) for two separate hostnames while avoiding the annoying prompts that OS X likes to throw when it senses tomfoolery.</p>

<p>Here are the steps:</p>

<ul>
    <li>Create your Postfix certificates the way Weitse wants you to, using your SMTP hostname.</li>
    <li>Import both the CA cert <strong>and</strong> your actual Postfix certificate into OS X.</li>
    <li>For IMAP, edit your imapd.cnf file to reflect your IMAP hostname, etc.</li>
    <li>Run <code>mkimapdcert</code>.</li>
    <li>Import that certificate into OS X.</li>
</ul>

<p>Now when you open Mail.app you should not get prompted to accept any certificates. The trick is that you need to import the CA&#8217;s cert on the Postfix side or it won&#8217;t work. But with courier this is not required. It has something to do with the format of the certificates being different.</p>

<p>It&#8217;s on my list of things to research, but for now I&#8217;m just happy I got it working exactly as I want it.</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/linux-filtering-spam-and-viruses-without-amavis" rel="bookmark" class="crp_title">Linux: Filtering Spam And Viruses Without Amavis</a></li><li><a href="http://danielmiessler.com/blog/mailapp-is-imap-retarded" rel="bookmark" class="crp_title">Mail.app is IMAP-Retarded</a></li><li><a href="http://danielmiessler.com/blog/how-to-get-postfix-to-use-smtp-auth-without-mysql" rel="bookmark" class="crp_title">How To Get Postfix To Use SMTP-AUTH *WITHOUT* MySQL</a></li><li><a href="http://danielmiessler.com/blog/filtering-non-gmail-email-with-gmail" rel="bookmark" class="crp_title">Filtering Non-Gmail Email With Gmail</a></li><li><a href="http://danielmiessler.com/blog/what-mail-server-do-the-big-universities-use" rel="bookmark" class="crp_title">What Mail Server Do The Big Universities Use?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/postfix-courier-imap-mailapp-and-certificates/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security: Implementing A Secure And Usable Internet Password Scheme</title>
		<link>http://danielmiessler.com/blog/security-implementing-a-secure-and-usable-internet-password-scheme</link>
		<comments>http://danielmiessler.com/blog/security-implementing-a-secure-and-usable-internet-password-scheme#comments</comments>
		<pubDate>Tue, 13 Feb 2007 16:34:23 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Passwords]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1136</guid>
		<description><![CDATA[Being an information security consultant I am often asked how to balance the need for online passwords that are both hard to guess and easy to remember. There are a number of solutions out there for dealing with the problem, but the system that I&#8217;m about to outline below is an elegant hybrid of simplicity [...]]]></description>
			<content:encoded><![CDATA[<p>Being an information security consultant I am often asked how to balance the need for online passwords that are both hard to guess and easy to remember. There are a number of solutions out there for dealing with the problem, but the system that I&#8217;m about to outline below is an elegant hybrid of simplicity and security. It works for me, and I think it can work for you as well.</p>

<p style="text-align: center"><img src="http://dmiessler.com/images/padlock.jpeg" title="Padlock" alt="Padlock" height="100" width="100" /></p>

<h4>The Problem</h4>

<p>The main issue we&#8217;re all grappling with is the number and complexity of the passwords we need to remember. Ideally, we would never share a password between any two sites. They would all be different and at the same time highly complex. Unfortunately, this doesn&#8217;t mesh well with reality. The human brain just isn&#8217;t up to the task.</p>

<h4>Simplification Through Classification</h4>

<p>The way we get around this limitation is to classify our online accounts according to risk. In other words, we&#8217;re going to determine how important each of our accounts are, and then put them into one of three (3) groups. For the purposes of this article we&#8217;ll use the military classifications.</p>

<ol>
    <li>Top Secret</li>
    <li>Secret</li>
    <li>Confidential</li>
</ol>

<p>Next we&#8217;ll simply group your Internet account types into each of these categories:</p>

<ul>
    <li><strong>Top Secret</strong>
Banking, brokerages, financially or identity-oriented sites. Think about your social security number and other sensitive personal data. Any accounts of this nature you want to protect with your strongest layer of security.</li>
    <li><strong>Secret</strong>
Personal email, blogging sites, important forums, etc. These are your main accounts that you use on a day-to-day basis. They aren&#8217;t ultra-sensitive, but they a huge part of your life and need to be secure.</li>
    <li> <strong>Confidential</strong>
Product forums, mailing lists, etc. These are your low-risk accounts, meaning that if one were to be compromised it would be annoying but not a major problem. We&#8217;re still going to have relatively strong passwords here, but they&#8217;re going to be simple in comparison to the two higher levels.</li>
<small>** Also keep in mind whether or not a site supports encrypted logins or not when assigning your accounts to these groups. Never put an account into the top two groups (Top Secret or Secret) if that site doesn&#8217;t support encryption. We don&#8217;t want someone possibly intercepting one of your upper-level passwords.</small></ul>

<h4>Designing Our Password Schemes</h4>

<p>Ok, now that you have your accounts grouped properly it&#8217;s time to design our three password systems. We&#8217;ll start with the Top Secret:</p>

<p><font color="red"><strong>Level 1 &#8212; Top Secret:
</strong></font>
For this level we&#8217;re going to use a combination of upper-case, lower-case, numbers, and special characters. We&#8217;re also going to make the password at least 12 characters in length. You will be writing these passwords down on a card in your wallet or purse, so it doesn&#8217;t matter if you can&#8217;t remember the password at first. After you use it a few times it&#8217;ll become second nature regardless of how complex it is. Try something like this:</p>

<p><font color="red" size="3"><strong>    5PF.c9a8&gt;12!</strong></font></p>

<p>It looks pretty scary, but you&#8217;d be surprised how easy it is to remember once you type it a few times over a number of days. The point is that it&#8217;s <em>not</em> going to be guessed, and it&#8217;s not going to be tied to another account. If you absolutely have to, you can use a sentence algorithm to build the password, like so:</p>

<p><em>My Online Bank Password Is Not Simple To Guess At All, Julie.</em></p>

<p><font color="red" size="3"><strong>    M0bP1n5tGAAJ.</strong></font></p>

<p>You will be writing these passwords down on a card in your wallet or purse, so it doesn&#8217;t matter if you can&#8217;t remember the password at first. After you use it a few times it&#8217;ll become second nature regardless of how complex it is.</p>

<blockquote>One point on writing down passwords: Many people think this is a bad idea, but that fully depends on how you secure them once their written down. Sticky note on monitor? Bad. Wallet? Good. You have to balance the risk of strong passwords in your wallet vs. weak ones in your brain.</blockquote>

<p>Regardless of the scheme you use to create your passwords, you want them to be a) pseudo-random/highly complex, b) over 10 characters in length, and d) <em>absolutely unique</em>. In short, we don&#8217;t want someone with your brokerage account password to be able to log into your bank with the same credentials.</p>

<p><font color="blue"><strong>Level 2 &#8212; Secret:</strong></font></p>

<p>With the secret level accounts we&#8217;re going to introduce an aspect of simplicity/usability. We&#8217;ll do this by creating an algorithm for creating and varying passwords for various sites while still maintaining the appearance of randomness within each individual password.</p>

<blockquote>In short, all level 2 (Secret) passwords will be generated by the same algorithm. As such, they&#8217;ll look very similar to you, but will look like random garbage when viewed independently by an outsider.</blockquote>

<p>So let&#8217;s build your Level-2 (Secret) algorithm; we&#8217;ll use a Gmail account as a template:</p>

<p><small>[This is just a <em>sample</em> algorithm; you should make your own.]</small></p>

<ol>
    <li>First two letters + last letter of the account.
GML</li>
    <li>Add the three letters up and subtract your birthday.
G (7) + M (13) + L (12) = 32 &#8211; 15 (if you&#8217;re born on the 15th) = 17
<em>GML17</em></li>
    <li>Add the two numbers you made to create a third number.
17 = 1 + 7 = 8
<em>GML178</em></li>
    <li>Add a word for length. Use character substitution for complexity if you want.
<em>GML178H0lid4y</em></li>
    <li>Add special characters.
<em>!GML178H0lid4y#</em></li>
    <li>Scramble as desired.<font color="blue" size="3"><strong> </strong></font><font color="blue" size="3"><strong> </strong></font><font color="blue" size="3"><strong> </strong></font><font color="blue" size="3"><strong>

!H0lid4y#GML178#</strong></font></li>
</ol>

<p>You now have a very solid password for your Gmail account. But it gets much better than that. You&#8217;re using the same algorithm for all your level 2 accounts. So do the same for your Hotmail account and you&#8217;ll end up with:</p>

<p><font color="blue" size="3"><strong>!H0lid4y#HOL358#</strong></font></p>

<p><font color="green"><strong>Level 3 &#8212; Confidential:</strong></font></p>

<p>For our lowest security level (3) we&#8217;re going to use an algorithm similar to the secret level (2), only it&#8217;s going to be completely different and much simpler. Remember, these are your unimportant accounts; you wouldn&#8217;t want them to be compromised, of course, but if they were then it wouldn&#8217;t be that big of a deal.</p>

<p>Let&#8217;s make a level 3 algorithm for a site called cars.com:</p>

<ol>
    <li>Last letter then first letter of the site (cars).
<em>SC</em></li>
    <li>A word to be used for all your low level accounts. Add a single character of number substitution (i to 1)
<em>SCPubl1c</em></li>
    <li>Use a special character.
<em>SCPubl1c$</em></li>
    <li>Scramble as desired.<font color="green" size="3"><strong> </strong></font><font color="green" size="3"><strong> </strong></font><font color="green" size="3"><strong> </strong></font><font color="green" size="3"><strong>

$Publ1cSC</strong></font></li>
</ol>

<p>Again, you now have a decent password that&#8217;s not easy to guess and will give a bit of difficulty if someone gets one and tries to guess others. Of course, if they get one of these level 3 passwords and try to break your Secret (2) or Top Secret (1) passwords, they&#8217;ll be unsuccessful.</p>

<h4>Conclusion</h4>

<p>Using this system can increase both security and usability when working with multiple accounts online. Here are a few additional guidelines about this technique and passwords in general:</p>

<ul>
    <li>Vary your algorithm for level 2 and 3 accounts regularly (I recommend at least once a year)</li>
    <li>Memorize your algorithm and write down your <em>passwords</em> on a card in your wallet. Don&#8217;t write down the algorithm itself. Just seeing a password created with it should jar your memory.</li>
    <li>For an extra layer of security you can consider leaving out or modifying a crucial part of the passwords you write down. This way, even someone with the card will not be able to use it. Be warned that if you forget what you changed, however, you&#8217;ll be very upset.</li>
    <li>Change your level 1 passwords often as well. With the strength that we&#8217;re using in this article I&#8217;d advocate once every 6-months.</li>
    <li>Many also use what&#8217;s effectively a level 4 account, i.e. a throw-away password that is used for accounts even lower in importance than level 3. Usually this is a static password. Just be sure to be very selective about where you use such a password, and make it as complex and long as possible while retaining its benefit of simplicity.</li>
    <li>An <a href="http://www.schneier.com/passsafe.html">encrypted database</a> is another option for managing passwords. I advocate this method over that one due to issues with losing or damaging the portable storage that the DB is stored on, in addition to not being comfortable with using such a system on a foreign computer (where necessarily you open ALL of your passwords to the system being used). It&#8217;s really a matter of personal preference, however, as both systems have their strengths and weaknesses.</li>
</ul>

<p>I hope this has been useful. For any questions or comments, please feel free to <a href="http://dmiessler.com/contact/">contact me</a> directly.:</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/the-list-of-shame-websites-that-dont-allow-special-characters-in-their-passwords" rel="bookmark" class="crp_title">The List Of Shame: Websites That Don&#8217;t Allow Special Characters In Their Passwords</a></li><li><a href="http://danielmiessler.com/blog/password-reset-mechanisms-the-online-security-threat-nobodys-talking-about" rel="bookmark" class="crp_title">Password Reset Mechanisms: The Online Security Threat Nobody&#8217;s Talking About</a></li><li><a href="http://danielmiessler.com/blog/lame-online-password-logic" rel="bookmark" class="crp_title">Lame Online Password Logic</a></li><li><a href="http://danielmiessler.com/blog/new-project-passwordstandardscom" rel="bookmark" class="crp_title">New Project: PasswordStandards.com</a></li><li><a href="http://danielmiessler.com/blog/never-argue-again-about-the-pronunciation-of-os-x-proof-included" rel="bookmark" class="crp_title">Never Argue Again About The Pronunciation Of &#8220;OS X&#8221; (Proof Included)</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/security-implementing-a-secure-and-usable-internet-password-scheme/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>DMIESSLER.COM Offerings</title>
		<link>http://danielmiessler.com/blog/dmiesslercom-offerings</link>
		<comments>http://danielmiessler.com/blog/dmiesslercom-offerings#comments</comments>
		<pubDate>Tue, 13 Feb 2007 04:36:08 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1132</guid>
		<description><![CDATA[Just as a refresher, here are a few things you can get here at my site: A blog to read. Some primers and articles. A way to check your external IP address. Very accurate time (HTML). A solid time server (204.11.219.126 UDP 123). A solid DNS server (204.11.219.126 UDP 53). A friend. Related ContentMy First [...]]]></description>
			<content:encoded><![CDATA[<p>Just as a refresher, here are a few things you can get here at my site:</p>

<ol>
    <li>A <a href="http://dmiessler.com/">blog</a> to read.</li>
    <li>Some <a href="http://dmiessler.com/study/">primers</a> and <a href="http://dmiessler.com/writing/">articles</a>.</li>
    <li><a href="http://dmiessler.com/ip/">A way to check your external IP address</a>.</li>
    <li><a href="http://dmiessler.com/time/">Very accurate time</a> (HTML).</li>
    <li>A solid time server (204.11.219.126 UDP 123).</li>
    <li>A solid DNS server (204.11.219.126 UDP 53).</li>
    <li>A <a href="mailto:daniel@dmiessler.com">friend</a>.</li>
</ol>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/my-first-dabble-into-ajax-dmiesslercomtime" rel="bookmark" class="crp_title">My First Dabble Into Ajax: dmiessler.com/time</a></li><li><a href="http://danielmiessler.com/blog/greetings-new-subscribers" rel="bookmark" class="crp_title">Greetings New Subscribers</a></li><li><a href="http://danielmiessler.com/blog/big-changes-afoot" rel="bookmark" class="crp_title">Big Changes Afoot</a></li><li><a href="http://danielmiessler.com/blog/dmiesslercomstudy-rss-feed" rel="bookmark" class="crp_title">dmiessler.com/study [RSS Feed]</a></li><li><a href="http://danielmiessler.com/blog/feed-updates" rel="bookmark" class="crp_title">Feed Updates</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/dmiesslercom-offerings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Server &gt; Full Reddit Wrath</title>
		<link>http://danielmiessler.com/blog/new-server-full-reddit-wrath</link>
		<comments>http://danielmiessler.com/blog/new-server-full-reddit-wrath#comments</comments>
		<pubDate>Thu, 28 Dec 2006 06:28:52 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1052</guid>
		<description><![CDATA[So I made it to the front page of reddit today and my new server didn&#8217;t even blink. This brings me great joy. Related Content[happy.reddit.com] The Most-Needed SubredditThis Link Could Have Been Anything [Reddit Spam Issue]A Comment of Mine on Immigration on RedditHow To Create Dynamic Digg/Reddit/Del.icio.us Buttons For Your Pages (Includes Code)I Just Created [...]]]></description>
			<content:encoded><![CDATA[<p>So I made it to the front page of <a href="http://reddit.com">reddit</a> today and my new server didn&#8217;t even blink. This brings me great joy.</p>

<p><img width="646" height="316" src="http://dmiessler.com/images/redditop.png" /></p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/happyredditcom-the-most-needed-subreddit" rel="bookmark" class="crp_title">[happy.reddit.com] The Most-Needed Subreddit</a></li><li><a href="http://danielmiessler.com/blog/this-link-could-have-been-anything-reddit-spam-issue" rel="bookmark" class="crp_title">This Link Could Have Been Anything [Reddit Spam Issue]</a></li><li><a href="http://danielmiessler.com/blog/a-comment-of-mine-on-immigration-on-reddit" rel="bookmark" class="crp_title">A Comment of Mine on Immigration on Reddit</a></li><li><a href="http://danielmiessler.com/blog/how-to-create-dynamic-diggredditdelicious-buttons-for-your-pages-includes-code" rel="bookmark" class="crp_title">How To Create Dynamic Digg/Reddit/Del.icio.us Buttons For Your Pages (Includes Code)</a></li><li><a href="http://danielmiessler.com/blog/i-just-created-therwebappsec-subreddit" rel="bookmark" class="crp_title">I Just Created the/r/webappsec Subreddit</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/new-server-full-reddit-wrath/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Get Realtime Bandwidth Statistics Using Stock Commands</title>
		<link>http://danielmiessler.com/blog/linux-get-realtime-bandwidth-statistics-using-stock-commands</link>
		<comments>http://danielmiessler.com/blog/linux-get-realtime-bandwidth-statistics-using-stock-commands#comments</comments>
		<pubDate>Wed, 15 Nov 2006 06:25:23 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1004</guid>
		<description><![CDATA[Have you ever been in Linux and wanted to watch how much bandwidth was going in and out of your box? Most have, and here&#8217;s a very simply way to do it without a GUI or installing anything extra: # watch -n1 "ifconfig eth0 &#124; grep Mb" RX bytes:105209490 (100.3 Mb) TX bytes:448524558 (427.7 Mb) [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever been in Linux and wanted to watch how much bandwidth was going in and out of your box? Most have, and here&#8217;s a very simply way to do it without a GUI or installing anything extra:</p>

<p><strong><code># watch -n1 "ifconfig eth0 | grep Mb"</code></strong>
<pre class="codeblock">RX bytes:105209490 (100.3 Mb)  TX bytes:448524558 (427.7 Mb)</pre></p>

<blockquote>What you end up with is a counter of your current bandwidth usage <em>that gets updated every second</em>. It&#8217;s not sexy but it gives you a decent feel for how much action your NIC is seeing.</blockquote>

<p>Just change your network interface in the <code>grep</code> bit to the one you want and you&#8217;re all set. Oh, and if you&#8217;re using Debian or Ubuntu, you may want to try grepping for &#8220;Mib&#8221; instead of &#8220;Mb&#8221;.</p>

<p>Enjoy.:</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/linux-xargs-vs-exec" rel="bookmark" class="crp_title">Linux: <code>xargs</code> vs. <code>exec {}</code></a></li><li><a href="http://danielmiessler.com/blog/ubuntu-aptitude-apt" rel="bookmark" class="crp_title">Ubuntu: aptitude > apt-*</a></li><li><a href="http://danielmiessler.com/blog/new-pc-setup-steps" rel="bookmark" class="crp_title">New PC Setup Steps</a></li><li><a href="http://danielmiessler.com/blog/bandwidth-2" rel="bookmark" class="crp_title">Bandwidth</a></li><li><a href="http://danielmiessler.com/blog/character-encoding-which-schemes-encode-to-which-sizes" rel="bookmark" class="crp_title">Character Encoding: Which Schemes Encode to Which Sizes?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/linux-get-realtime-bandwidth-statistics-using-stock-commands/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

