<?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>MartinLanner.com &#187; OpenVPN</title>
	<atom:link href="http://martinlanner.com/category/security/openvpn/feed/" rel="self" type="application/rss+xml" />
	<link>http://martinlanner.com</link>
	<description></description>
	<lastBuildDate>Mon, 14 Nov 2011 19:16:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Install OpenVPN Access Server on Proxmox VE</title>
		<link>http://martinlanner.com/2009/06/10/how-to-install-openvpn-access-server-on-proxmox-ve/</link>
		<comments>http://martinlanner.com/2009/06/10/how-to-install-openvpn-access-server-on-proxmox-ve/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 17:30:39 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Proxmox]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://martinlanner.com/?p=125</guid>
		<description><![CDATA[I thought OpenVPN Access Server, or OpenVPN AS, was going to be easy to install on Proxmox VE using an OpenVZ container, but it turned out to be a bit more complicated than I had anticipated. So, I decided to write it all up here for others to benefit from.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-156" title="OpenVPN+Proxmox" src="http://martinlanner.com/wp-content/uploads/2009/06/openvpnproxmox.jpg" alt="OpenVPN+Proxmox" width="150" height="62" />I thought <a href="http://openvpn.net/" target="_blank">OpenVPN Access Server</a>, or OpenVPN AS, was going to be easy to install on <a href="http://pve.proxmox.com/wiki/Main_Page" target="_blank">Proxmox VE</a> using an <a href="http://wiki.openvz.org" target="_blank">OpenVZ</a> container, but it turned out to be a bit more complicated than I had anticipated. So, I decided to write it all up here for others to benefit from.</p>
<p><strong>CREDITS:</strong> I got a lot of assistance from various people on the <a href="https://www.proxmox.com/forum/index.php" target="_blank">Proxmox forums</a>, and specifically from one user, Marius.</p>
<h3>Prepare the Host Node</h3>
<p>There are a few things you will need to do up-front to prepare your &#8220;Host Node,&#8221; that is, your Proxmox VE host to allow for the TUN network interface that OpenVPN requires.  Log in to your Proxmox VE host and open:</p>
<p><code>nano /etc/vz/vz.conf</code></p>
<p>Then, scroll down to the section that says &#8220;## IPv4 iptables kernel modules&#8221; and load a few extra modules for iptables:</p>
<p><code>IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"</code></p>
<p>You must restart VZ to load the new modules by running:</p>
<p><code>/etc/init.d/vz restart</code></p>
<p>(NOTE: This will shut down any running VMs.)  Now, you&#8217;re ready to install the OS.</p>
<h3>Install the OS</h3>
<p>First off, at least for the time being, OpenVPN AS needs a 64-bit OS. Currently there are pre-packaged installation files for Ubuntu and Fedora. Installation packages for 32-bit OSes and other distributions are supposedly in the works. Because Proxmox is based on Debian and there are several Debian and Ubuntu OpenVZ templates available already, I chose to use Ubuntu 8.04 LTS 64-bit. That particular template isn&#8217;t included in the &#8220;Appliance Templates&#8221; in Proxmox (at least not in my version), so I had to download it from the Proxmox repositories first.  Simply download the &#8220;ubuntu-8.0-standard_8.04-1_amd64.tar.gz&#8221; template to your Proxmox host. Go to the Proxmox repositories and find the template you want. In my case it was at ftp://download.proxmox.com/appliances/system/ubuntu-8.0-standard_8.04-1_amd64.tar.gz, so:</p>
<p><code>cd /var/lib/vz/template/cache/<br />
wget ftp://download.proxmox.com/appliances/system/ubuntu-8.0-standard_8.04-1_amd64.tar.gz</code></p>
<p>Once the template is downloaded, log in to the web interface of your Proxmox VE host.</p>
<h3>Creating the OpenVZ container</h3>
<p>Hopefully you already know how to create an OpenVZ container in Proxmox. If not, since it&#8217;s not really the focus of this how-to, head over to <a href="http://pve.proxmox.com/wiki/Category:Video_Tutorials" target="_blank">Proxmox Tutorials</a>. Moving on, for my VPN appliance I selected the following settings:</p>
<ul>
<li>Template: ubuntu-8.0-standard_8.04-1_amd64</li>
<li>Disk space (GB): 8</li>
<li>Memory (MB): 512</li>
<li>Swap (MB): 512</li>
<li>Network type: Bridged Ethernet (veth)</li>
</ul>
<p>IMPORTANT: You must select &#8216;Bridged Internet (veth).&#8217; &#8216;Virtual Network (venet)&#8217; will not work.</p>
<p>You should of course also fill out all the other stuff, like hostname, DNS domain, DNS servers, and so on.</p>
<p>Now, simply start the VM.</p>
<h3>Configuring and preparing the VM</h3>
<p>First things, first. Update your OS! Use the &#8220;Open VNC Console&#8221; located in the &#8216;Virtual Machine Configuration&#8217; settings for your VM and run:</p>
<p><code>apt-get update<br />
apt-get upgrade<br />
</code></p>
<p>You also need to configure the IP settings of the VM. Add the network config settings for your setup, like in the following example:</p>
<p><code># Primary network interface<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.20<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.1</code></p>
<p>Then, restart your networking, like so:</p>
<p><code>/etc/init.d/networking restart</code></p>
<h3>Install OpenVPN</h3>
<p>Obviously, first things first, so you&#8217;ll need to download the installation file from OpenVPN. To download it you need to first sign up for an account. Once you&#8217;ve signed up, find the URL to the download you want. In my case, using Ubuntu 8.04 LTS 64-bit, the latest available version was OpenVPN AS 1.1.0, so I picked the openvpn-as-1.1.0-Ubuntu8.amd_64.deb file.</p>
<p>That out of the way, last thing to do before you can start configuring your OpenVPN Access Server is to actually install it. This is fast. Log in via SSH or using Proxmox&#8217;s VNC Console. Then, do this:</p>
<p><code>cd /tmp<br />
wget http://path/to/openvpn-as/download/directory/openvpn-as-1.1.0-Ubuntu8.amd_64.deb</code></p>
<p>It&#8217;s a fairly small package, so it should download relatively quickly. Then issue:</p>
<p><code>dpkg -i openvpn-as-1.1.0-Ubuntu8.amd_64.deb</code></p>
<p>It should install everything. When the installation completes, to run initial configuration for your newly installed OpenVPN Access Server, issue the following command:</p>
<p><code>/usr/local/openvpn_as/bin/ovpn-init</code></p>
<p>Unless you have specific requirements, you can just accept the defaults during the configuration process.</p>
<p>I will not cover configuring OpenVPN for your specific needs here. OpenVPN has a good document outlining how to do that. It&#8217;s available to download from their website for people who already have OpenVPN accounts. Obviously, if you&#8217;ve already gotten this far, you should have an account.</p>
<p>That&#8217;s it. All it took in the end was a few &#8220;special&#8221; tweaks here and there to make OpenVPN run in an OpenVZ container, and overall it wasn&#8217;t that complicated once I figured out what those tweaks were. Of course, it would be more straight forward to install OpenVPN AS on a dedicated server, but that would cost you more. And if you already have spare capacity on a virtual host, why not use that?</p>
<p>I hope you enjoyed this how-to. Comments, corrections, feedback, and ideas below are greatly appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://martinlanner.com/2009/06/10/how-to-install-openvpn-access-server-on-proxmox-ve/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>OpenVPN Access Server</title>
		<link>http://martinlanner.com/2009/05/29/openvpn-access-server/</link>
		<comments>http://martinlanner.com/2009/05/29/openvpn-access-server/#comments</comments>
		<pubDate>Fri, 29 May 2009 16:32:45 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[LAN]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WAN]]></category>

		<guid isPermaLink="false">http://martinlanner.com/?p=108</guid>
		<description><![CDATA[Yesterday OpenVPN Technologies, the company behind the OpenVPN open source project, announced the immediate availability of their new OpenVPN Access Server. OpenVPN Access Server, or OpenVPN AS, is a commercial product based on the open source version originally developed by James Yonan. OpenVPN AS lends itself perfectly to use either on an appliance-style server or [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-115" title="OpenVPN Technologies" src="http://martinlanner.com/wp-content/uploads/2009/05/ovpntech_logo_small.png" alt="OpenVPN Technologies" width="125" height="32" /></p>
<p>Yesterday <a href="http://openvpn.net" target="_blank">OpenVPN Technologies</a>, the company behind the OpenVPN open source project, announced the immediate availability of their new OpenVPN Access Server.</p>
<p>OpenVPN Access Server, or OpenVPN AS, is a commercial product based on the open source version originally developed by James Yonan. OpenVPN AS lends itself perfectly to use either on an appliance-style server or for running in a virtual machine. Installation is straight forward and the licensing agreement is too. The performance and scalability of running OpenVPN AS should be at least on par with most other commercial offerings, while no other, if any, commercial offerings comes even close in cost.</p>
<p>There are other reasons for using OpenVPN too. I won&#8217;t go into details about the architecture of OpenVPN and why it in many ways is superior to other VPN technologies. However, if you want to read more, you can read this thorough <a href="http://www.linux.com/archive/articles/48330" target="_blank">article on VPNs over at Linux.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://martinlanner.com/2009/05/29/openvpn-access-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The small firm&#8217;s and road warrior&#8217;s dilemma. Solution: Step 1 &#8211; a VPN.</title>
		<link>http://martinlanner.com/2007/09/15/the-small-firms-and-the-road-warriors-dilemma-solution-step-1-a-vpn/</link>
		<comments>http://martinlanner.com/2007/09/15/the-small-firms-and-the-road-warriors-dilemma-solution-step-1-a-vpn/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 21:40:54 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Small Business]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://martinlanner.com/2007/09/15/the-small-firms-and-the-road-warriors-dilemma-solution-step-1-a-vpn/</guid>
		<description><![CDATA[I work with a lot of individuals and small companies, companies ranging in size from 1-20 people. Many of the companies are consulting companies in various industries. Oftentimes the companies do not have much in common except that they are relatively small. What they do have in common, however, is their need for computer and [...]]]></description>
			<content:encoded><![CDATA[<p>I work with a lot of individuals and small companies, companies ranging in size from 1-20 people. Many of the companies are consulting companies in various industries. Oftentimes the companies do not have much in common except that they are relatively small. What they do have in common, however, is their need for computer and network support. Because they are consulting companies many of them work for different clients in different places and rarely work from their own offices. Working from remote offices means they rely on laptops for their daily computing needs, and thus storing most of their valuable data on one machine, creating several IT-related challenges. Examples of challenges they face are:<span id="more-4"></span></p>
<ul>
<li>They don&#8217;t make regular backups of their laptops.</li>
<li>If they have a &#8220;corporate&#8221; file server, they don&#8217;t back that up either.</li>
<li>They can&#8217;t remotely access their file server.</li>
<li>If they do have remote access to their file server, typically their small business network is not configured in a very secure way.</li>
</ul>
<p>When I talk to friends and colleagues who operate small businesses, they all seem to have the same problem. They don&#8217;t have the knowledge and/or time to set up a good network and computing environment for themselves and their company. They can&#8217;t buying expensive and proprietary hardware and software to solve these problems. And, on top of that, they can&#8217;t afford hiring a consultant to implement all these things for them.</p>
<p>In order to see if I could solve at least part of the dilemma, for the last few months I&#8217;ve been looking for a Virtual Private Network (VPN) solution that meets the following five requirements:</p>
<ol>
<li>Inexpensive</li>
<li>Simple</li>
<li>Reliable</li>
<li>Scalable</li>
<li>OS independent</li>
</ol>
<p>Well, there&#8217;s a sixth requirement, secure, but that&#8217;s a given. There are countless VPN solutions on the market and many good ones. But, they typically only meet three or four of the five requirements I have defined as necessary to solve the problem.</p>
<p>So, for the past few months I&#8217;ve been doing a lot of research on VPNs. IPSec and PPTP VPNs keep on popping up all the time as the core offerings of the large, well-known firms providing VPN products. Fairly recently many of the established firms have also started offering SSL VPN solutions. No matter what protocols are used, for the most part, what they have to offer is technically sound from a reliability and scalability perspective. And there&#8217;s certainly no reason to doubt that these products meet the security requirements expected from a VPN. However, most of the solutions are not:</p>
<ul>
<li>inexpensive (at least not in the eyes of the small companies I&#8217;m talking about),</li>
<li>simple enough to install and configure for the lay person with almost no networking and security knowledge, and</li>
<li>they are not OS independent.</li>
</ul>
<p>Why is OS independence so important? Well, maybe it&#8217;s not &#8230; yet. However, more and more people I know and talk to, especially in small companies, are getting Mac OS computers; an operating system largely ignored by most VPN product vendors. So, therefore, I believe OS independence is becoming more and more important. Because of that belief I set my mind on finding a solution that will work for nearly all situations, and not just for Windows users. (I mostly work on Macs myself, so that&#8217;s a big driver too.)</p>
<p>After a lot of searching, reading, and testing I found <a href="http://www.openvpn.net">OpenVPN</a> founded by James Yonan. As the name suggests, OpenVPN is an open source product and is therefore free to use and distribute. OpenVPN is a so-called SSL VPN, using Secure Socket Layer (SSL) to to encrypt all traffic. SSL is the same security technology used on e-commerce websites and what banks use for Internet banking. Furthermore, OpenVPN is compatible with a large range of operating systems, including Windows, Mac, and Linux. It is also very scalable and is being actively used in large installations all over the world. Scalability of course depends on the horsepower of the computer hardware on which it is installed, but for a small company, a simple computer, which may otherwise not be fit for today&#8217;s computing needs, can be reused to handle many simultaneous VPN connections. That pretty much covers four out of my five requirements. So, what about simplicity? Well, to be quite honest, OpenVPN is not that simple for the average person with limited computing, networking, and security skills. But neither are the big &#8220;brand name&#8221; vendors&#8217; solutions. Because it does meet all the other requirements, I believe it&#8217;s the best fit out there for small businesses.</p>
<p>For a small business that wants to significantly improve its computing environment, I think it&#8217;s affordable and worthwhile to hire a good network/security consultant to deploy a VPN. Once installed, OpenVPN is extremely easy to use and it work really well. Obviously, to resolve all the issues around backup, etc, mentioned above, simply installing a VPN won&#8217;t solve all that in one swoop, but it does go a long way towards creating a better environment for the &#8220;road warrior&#8221; and it does open up the doors to a nice and cost effective setup for centralized file storage, management, and backups.</p>
]]></content:encoded>
			<wfw:commentRss>http://martinlanner.com/2007/09/15/the-small-firms-and-the-road-warriors-dilemma-solution-step-1-a-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

