<?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>Dan Klassen &#187; security</title>
	<atom:link href="http://danklassen.com/wordpress/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://danklassen.com/wordpress</link>
	<description>Apps, tech-news, and other interesting stuff.</description>
	<lastBuildDate>Wed, 06 May 2009 17:44:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting up VPN Connection with gnome Network Manager</title>
		<link>http://danklassen.com/wordpress/2008/12/setting-up-vpn-connection-with-gnome-network-manager/</link>
		<comments>http://danklassen.com/wordpress/2008/12/setting-up-vpn-connection-with-gnome-network-manager/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 04:32:58 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[server admin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[system admin]]></category>

		<guid isPermaLink="false">http://danklassen.com/wordpress/?p=54</guid>
		<description><![CDATA[Recently for a project I&#8217;ve been working on at the office I had to set up a VPN connection to gain access to the client&#8217;s network. They already had vpn set up on their end (thankfully) however, oddly enough I didn&#8217;t have a vpn client. I noticed that the gnome Network Manager had a tab [...]]]></description>
			<content:encoded><![CDATA[<p>Recently for a project I&#8217;ve been working on at the office I had to set up a VPN connection to gain access to the client&#8217;s network. They already had vpn set up on their end (thankfully) however, oddly enough I didn&#8217;t have a vpn client. I noticed that the gnome Network Manager had a tab for VPN, however the add button was disabled. After a quick google, I found out that you just have to install the packages &#8216;network-manager-pptp&#8217; and &#8216;pptp-linux&#8217; to enable it.</p>

<div class="wp_codebox"><table width="100%" ><tr id="p542"><td class="code" id="p54code2"><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> network-manager-pptp pptp-linux</pre></td></tr></table></div>

<div id="attachment_57" class="wp-caption alignnone" style="width: 310px"><a href="http://danklassen.com/wordpress/wp-content/uploads/2008/12/screenshot-network-connections.png"><img class="size-medium wp-image-57" title="Network Manager Window" src="http://danklassen.com/wordpress/wp-content/uploads/2008/12/screenshot-network-connections-300x224.png" alt="Network Manager Window" width="300" height="224" /></a></dt>
</dl>
</div>
<p>Did the trick and now it was just a matter of entering the server information, username, password. At this point I was still unable to connect to the network. I double and triple checked my info and it was all right. It turned out I had to enable Point to Point Encryption (makes sense) in the advanced section.</p>
<div class="mceTemp">
<dl id="attachment_58" class="wp-caption alignnone" style="width: 209px;">
<dt class="wp-caption-dt"><a href="http://danklassen.com/wordpress/wp-content/uploads/2008/12/screenshot-nm-connection-editor.png"><img class="size-medium wp-image-58" title="Use Point to Point encryption" src="http://danklassen.com/wordpress/wp-content/uploads/2008/12/screenshot-nm-connection-editor-199x300.png" alt="Use Point to Point encryption" width="199" height="300" /></a></dt>
</dl>
</div>
<p>Now, I have a nice little &#8216;locked&#8217; icon on my network status bar.</p>
<div class="mceTemp">
<dl id="attachment_56" class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://danklassen.com/wordpress/wp-content/uploads/2008/12/network-manager-locked.png"><img class="size-medium wp-image-56" title="VPN Connection in Network Manager" src="http://danklassen.com/wordpress/wp-content/uploads/2008/12/network-manager-locked-300x20.png" alt="VPN Connection in Network Manager" width="300" height="20" /></a><p class="wp-caption-text">VPN Connection in Network Manager</p></div>
<p>Who knew it would be that easy?</p>
]]></content:encoded>
			<wfw:commentRss>http://danklassen.com/wordpress/2008/12/setting-up-vpn-connection-with-gnome-network-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password Security</title>
		<link>http://danklassen.com/wordpress/2008/05/password-security/</link>
		<comments>http://danklassen.com/wordpress/2008/05/password-security/#comments</comments>
		<pubDate>Thu, 29 May 2008 14:30:27 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[server admin]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[system admin]]></category>

		<guid isPermaLink="false">http://danklassen.ca/wordpress/?p=14</guid>
		<description><![CDATA[So, everything requires a password these days right? Whether you&#8217;re setting up a new email account, signing up for twitter, or creating a new bank account. How in the world do you remember all of these passwords? Well, I&#8217;ve seen the old sticky note on the monitor (in the drawer, under the keyboard, you name [...]]]></description>
			<content:encoded><![CDATA[<p>So, everything requires a password these days right? Whether you&#8217;re setting up a new <a title="gMail - The Best Webmail Out There" href="http://www.gmail.com" target="_blank">email account</a>, signing up for <a href="http://danklassen.ca/wordpress/2008/05/twittering/">twitter</a>, or creating a new bank account. How in the world do you remember all of these passwords? Well, I&#8217;ve seen the old sticky note on the monitor (in the drawer, under the keyboard, you name it) all too often, and we all know that we shouldn&#8217;t use the same password everywhere right? That leaves two options: have an amazing memory (ask my wife, I don&#8217;t) or find a way to securely manage your passwords.</p>
<p><a href="http://danklassen.ca/wordpress/wp-content/uploads/2008/05/keepassx1.png"><img class="alignright size-medium wp-image-21" title="keepassx Main Window" src="http://danklassen.ca/wordpress/wp-content/uploads/2008/05/keepassx1-300x199.png" alt="" width="300" height="199" /></a>Thankfully <a title="KeePass Home Page" href="http://keepass.info" target="_blank">KeePass</a> (or <a href="http://www.keepassx.org/" target="_blank">KeepassX</a> on Linux or Mac OS-X) can help out where my memory lacks. KeePass will provide you with a secure place to store all of you passwords in an encrypted format. From the screenshot you can get a rough idea as to what the interface looks like. When you highlight any of the entries, you can just Ctrl+C to copy the password and paste it into whatever application is asking for it. For websites, there&#8217;s even an &#8216;auto-type&#8217; feature. To use this, you first go to the site you want to log in to, click in the username box, and then open KeePass and click on the entry for the site. Then press Ctrl+V and it will type in your username / password for you. Slick eh?</p>
<p><span id="more-14"></span></p>
<p><a href="http://danklassen.ca/wordpress/wp-content/uploads/2008/05/keepassx2.png"><img class="alignleft size-medium wp-image-22" title="keepassx Password Generation" src="http://danklassen.ca/wordpress/wp-content/uploads/2008/05/keepassx2-280x300.png" alt="" width="280" height="300" /></a>I&#8217;ve also been asked about how to generate secure passwords. If you are going to use something like KeePass, I would recommend using it&#8217;s built in password generator tool (take a look to the left). It gives you a few options to configure, and then spits out a nice random password for you. For those of you using Ubuntu (or any variant of linux for that matter) you can use the command line tool pwgen (click to <a href="apt:pwgen">install</a> in Ubuntu or &#8216;apt-get install pwgen&#8217;). After installing run something like:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p145"><td class="code" id="p14code5"><pre class="sh" style="font-family:monospace;">pwgen -B -N 5 -1</pre></td></tr></table></div>

<p>To get a list of passwords similar to:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p146"><td class="code" id="p14code6"><pre class="sh" style="font-family:monospace;">eiyah7Ei
Aeh3Ooxo
jaW9ahFi
rohxiJ7z
uth9ZieY</pre></td></tr></table></div>

<p>The -B parameter tells it to not use ambiguous characters (is it a 0 or an O? l or I?). -N 5 creates 5 for you to choose from and -1 puts them each on their own line to make it easier to pick.</p>
<p>If you don&#8217;t have access to either of those tools, or you need something that you&#8217;ll have a better shot of remembering, try basing the password off of a phrase or something you&#8217;ll remember, and add in a couple twists. Let&#8217;s try one here&#8230; off the top of my head, the first phrase that came to mind was &#8220;an apple a day keeps the doctor away&#8221; and the password I came up with is &#8220;4pP13/d=!phD&#8221;. (4pp13 kinda loos like apple, /d is short for per day, =! is &#8216;not equals&#8217; in programming, and phD is a doctor.. apple/day equals no doctor). Okay, that may not be the best example, but you get the idea right?</p>
<p>If you are needing to create a password for a remote server, I would recommend looking into <a title="Creating SSH Keys" href="/wordpress/2008/05/creating-ssh-keys/" target="_self">ssh keys</a>. Used well they can provide better security and less hassle for you.</p>
<p>Anyone else have any password strategies they&#8217;d like to share? Please, please don&#8217;t say &#8220;my favorite pet&#8217;s name&#8221; or &#8220;my birthday and last 4 digits of my phone number&#8221;&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://danklassen.com/wordpress/2008/05/password-security/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating SSH Keys</title>
		<link>http://danklassen.com/wordpress/2008/05/creating-ssh-keys/</link>
		<comments>http://danklassen.com/wordpress/2008/05/creating-ssh-keys/#comments</comments>
		<pubDate>Wed, 28 May 2008 04:30:12 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[server admin]]></category>

		<guid isPermaLink="false">http://danklassen.ca/wordpress/?p=15</guid>
		<description><![CDATA[If you need to manage multiple remote servers, you&#8217;ve probably had the joy of needing to remember numerous passwords. With ssh keys, you can eliminate the need of typing in a password each time you log into a server via ssh. As an added bonus, the key that will be used will be much (much) [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to manage multiple remote servers, you&#8217;ve probably had the joy of needing to remember numerous passwords. With ssh keys, you can eliminate the need of typing in a password each time you log into a server via ssh. As an added bonus, the key that will be used will be much (much) longer than any password you would sanely type in.</p>
<p>To utilize ssh keys, you will need to generate a private / public key pair on your local machine. To do this, type:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p1510"><td class="code" id="p15code10"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> rsa</pre></td></tr></table></div>

<p>to generate a RSA encrypted keyset. When you do this, it will ask you where to save it, just hit enter to use the defaults. The next question will be what passphrase you would like to use. This can be an effective way to double up your security. If you set this, you will need both the key that will be generated, as well as this passphrase to log into the remote server. If you are going for a secure setup, this is most likely the way to go.</p>
<p><span id="more-15"></span></p>
<p>After you have create your public and private key (both will be generated using the previous command), take a look at your public key by typing</p>

<div class="wp_codebox"><table width="100%" ><tr id="p1511"><td class="code" id="p15code11"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub</pre></td></tr></table></div>

<p>Copy the entire contents of this file so we can let the server know to authorize this key. Log into your server as you normally would and then:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p1512"><td class="code" id="p15code12"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys</pre></td></tr></table></div>

<p>If the file did not exist already, just create it. This is the default place that OpenSSH will look for authorized keys. Now, paste the content of the key into the end of this file and save it.</p>
<p>Viola, that should do it. Try exiting from the server, and then re-logging in. If you used a passphrase in the initial step, enter that now, otherwise, you should be directly logged in as your user on the server.</p>
<p>This can be quite handy for setting up backup cron jobs between servers, or any other scripts which would normally require a password. Now you can keep the passwords out of the shell scripts and just let them do their thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://danklassen.com/wordpress/2008/05/creating-ssh-keys/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
