<?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>Darknet - The Darkside &#187; Siddharth</title>
	<atom:link href="http://www.darknet.org.uk/author/siddharth/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darknet.org.uk</link>
	<description>Ethical Hacking, Penetration Testing &#38; Computer Security</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:34:17 +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>SSL VPNs and OpenVPN &#8211; Part IV</title>
		<link>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/</link>
		<comments>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/#comments</comments>
		<pubDate>Fri, 10 Mar 2006 06:20:03 +0000</pubDate>
		<dc:creator>Siddharth</dc:creator>
				<category><![CDATA[Linux Hacking]]></category>
		<category><![CDATA[Network Hacking]]></category>
		<category><![CDATA[Security Software]]></category>
		<category><![CDATA[Information-Security]]></category>
		<category><![CDATA[network-security]]></category>
		<category><![CDATA[Open-Source-Software]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[ssl-vpn]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii-contd/</guid>
		<description><![CDATA[4. Brief How-to &#8230;. Creating Multiple clients to Single site tunnels. Example of using PKI to create a client-to-site VPN: For a road warrior or roaming/multiple user scenario, static keys based VPNs don&#8217;t scale well. You will need to implement a PKI if you have Hub and Spoke architecture of VPN. From the OpenVPN.net website: [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<h2>4. Brief How-to &#8230;.  Creating Multiple clients to Single site tunnels.</h2>
<p><strong>Example of using PKI to create a client-to-site VPN:</strong></p>
<p>For a road warrior or roaming/multiple user scenario, static keys based VPNs don&#8217;t scale well. You will need to implement a PKI if you have Hub and Spoke architecture of VPN.</p>
<p>From the <a href="http://openvpn.net">OpenVPN.net</a> website:</p>
<p><strong>Static Key advantages</strong></p>
<ul>
<li>Simple Setup</li>
<li>No X509 PKI (Public Key      Infrastructure) to maintain</li>
</ul>
<p><strong>Static Key disadvantages</strong></p>
<ul>
<li>Limited scalability &#8212; one      client, one server</li>
<li>Lack of <em>perfect forward      secrecy</em> &#8212; key compromise results in total disclosure of previous      sessions</li>
<li>Secret key must exist in      plaintext form on each VPN peer</li>
<li>Secret key must be exchanged      using a pre-existing secure channel</li>
</ul>
<p>The following describes implementing PKI from OpenVPN.net&#8217;s OpenVPN 2.x How-to. For far more description and settings, please consult this <a title="How-to" href="http://openvpn.net/howto.html">howto</a>.</p>
<p>If you want to use OpenVPN in a multiple client&#8217;s setup, then it&#8217;s recommended that you setup PKI first. A PKI will have;</p>
<p>- A certificate (Public key) and a private key for the server and each client</p>
<p>- A certificate authority (CA) certificate and key for signing server and client certificates.</p>
<p>Both server and client will authenticate the other by first verifying that the presented certificate was signed by the master certificate authority (CA), and then by testing information in the now-authenticated certificate header, such as the certificate common name or certificate type (client or server).</p>
<p>Generating the master Certificate Authority (CA) certificate and key:</p>
<p>For PKI management, we will use a set of scripts bundled with OpenVPN.</p>
<p>If you are using Linux, BSD, or a unix-like OS, open a shell and cd to the <strong>easy-rsa</strong> subdirectory of the OpenVPN distribution. If you installed OpenVPN from an RPM file, the easy-rsa directory can usually be found in <strong>/usr/share/doc/packages/openvpn</strong> or <strong>/usr/share/doc/openvpn-2.0</strong> (it&#8217;s best to copy this directory to another location such as <strong>/etc/openvpn</strong>, before any edits, so that future OpenVPN package upgrades won&#8217;t overwrite your modifications). If you installed from a .tar.gz file, the easy-rsa directory will be in the top level directory of the expanded source tree.</p>
<p>If you are using Windows, open up a Command Prompt window and cd to <strong>\Program Files\OpenVPN\easy-rsa</strong>. Run the following batch file to copy configuration files into place (this will overwrite any preexisting vars.bat and openssl.cnf files):</p>
<p><code>init-config</code></p>
<p>Now edit the <strong>vars</strong> file (called <strong>vars.bat</strong> on Windows) and set the KEY_COUNTRY, KEY_PROVINCE, KEY_CITY, KEY_ORG, and KEY_EMAIL parameters. Don&#8217;t leave any of these parameters blank.</p>
<p>Next, initialize the PKI. On Linux/BSD/Unix:</p>
<p><code>. ./vars</code></p>
<p><code>./clean-all</code></p>
<p><code>./build-ca</code></p>
<p>On Windows:</p>
<p><code>vars</code></p>
<p><code>clean-all</code></p>
<p><code>build-ca</code></p>
<p>The final command (<strong>build-ca</strong>) will build the certificate authority (CA) certificate and key by invoking the interactive <strong>openssl</strong> command:</p>
<p><code>ai:easy-rsa # ./build-ca</code></p>
<p><code>Generating a 1024 bit RSA private key</code></p>
<p><code>............++++++</code></p>
<p><code>...........++++++</code></p>
<p><code>writing new private key to 'ca.key'</code></p>
<p><code>-----</code></p>
<p><code>You are about to be asked to enter information that will be incorporated</code></p>
<p><code>into your certificate request.</code></p>
<p><code>What you are about to enter is what is called a Distinguished Name or a DN.</code></p>
<p><code>There are quite a few fields but you can leave some blank</code></p>
<p><code>For some fields there will be a default value,</code></p>
<p><code>If you enter '.', the field will be left blank.</code></p>
<p><code>-----</code></p>
<p><code>Country Name (2 letter code) [KG]:</code></p>
<p><code>State or Province Name (full name) [NA]:</code></p>
<p><code>Locality Name (eg, city) [BISHKEK]:</code></p>
<p><code>Organization Name (eg, company) [OpenVPN-TEST]:</code></p>
<p><code>Organizational Unit Name (eg, section) []:</code></p>
<p><code>Common Name (eg, your name or your server's hostname) []:OpenVPN-CA</code></p>
<p><code>Email Address [me@myhost.mydomain]:</code></p>
<p>Note that in the above sequence, most queried parameters were defaulted to the values set in the <strong>vars</strong> or <strong>vars.bat</strong> files. The only parameter which must be explicitly entered is the <strong>Common Name</strong>. In the example above, I used &#8220;OpenVPN-CA&#8221;.</p>
<p><code>Generate certificate &amp; key for server</code></p>
<p>Next, we will generate a certificate and private key for the server. On Linux/BSD/Unix:</p>
<p><code>./build-key-server server</code></p>
<p>On Windows:</p>
<p><code>build-key-server server</code></p>
<p>As in the previous step, most parameters can be defaulted. When the <strong>Common Name</strong> is queried, enter &#8220;server&#8221;. Two other queries require positive responses, &#8220;Sign the certificate? [y/n]&#8221; and &#8220;1 out of 1 certificate requests certified, commit? [y/n]&#8220;.</p>
<p><strong>Generate certificates &#038; keys for 3 clients</strong></p>
<p>Generating client certificates is very similar to the previous step. On Linux/BSD/Unix:</p>
<p><code>./build-key client1</code></p>
<p><code>./build-key client2</code></p>
<p><code>./build-key client3</code></p>
<p>On Windows:</p>
<p><code>build-key client1</code></p>
<p><code>build-key client2</code></p>
<p><code>build-key client3</code></p>
<p>If you would like to password-protect your client keys, substitute the <code>build-key-pass</strong> script.</p>
<p>Remember that for each client, make sure to type the appropriate <strong>Common Name</strong> when prompted, i.e. "client1", "client2", or "client3". Always use a unique common name for each client.</p>
<p><strong>Generate Diffie Hellman parameters</strong></p>
<p><a href="http://www.rsasecurity.com/rsalabs/node.asp?id=2248">Diffie Hellman</a> parameters must be generated for the OpenVPN server. On Linux/BSD/Unix:</p>
<p><code>./build-dh</code></p>
<p>On Windows:</p>
<p><code>build-dh</code></p>
<p>Output:</p>
<p><code>ai:easy-rsa # ./build-dh</code></p>
<p><code>Generating DH parameters, 1024 bit long safe prime, generator 2</code></p>
<p><code>This is going to take a long time</code></p>
<p><code>.................+...........................................</code></p>
<p><code>...................+.............+.................+.........</code></p>
<p><code>......................................</code></p>
<p>The final step in the key generation process is to copy all files to the machines which need them, taking care to copy secret files over a secure channel.</p>
<p>You can also generate the certificates and keys in their respective machines to bypass copying them over some secure channel.</p>
<p>Although your default installation will have sample client and server ovpn files, you can also find an excellent sample Client and Server configuration files <a href="http://openvpn.net/howto.html#server">here</a>.</p>
<p>The sample files are pretty easy to understand and are common for Linux and Windows except for the part where config files look for "key" and "crt" files. On Windows, you will have to use double backslashes to quote a path. For example; "C:\\Program Files\\OpenVPN\\config\\foo.key" .</p>
<p>After configuring the files according to your network, you can put those "ovpn" files in the config directory of your installed path and start OpenVPN using these files.</p>
<p>That's it! Following these steps correctly will most probably have your VPN tunnel up and running. This translates into a VPN that's easy to implement, easy to maintain and dirt cheap. The choice doesn't get any easier than this.</p>
<p><strong>4. OpenVPN in a Nutshell</strong></p>
<p>OpenVPN is a free, open source GPL'ed software. Implementing it across your tunnel requirements not only is cheaper, but also easy to implement and maintain. It takes away the complexity of IPSec, and it introduces the security of SSL in VPN domain.</p>
<p>If you do face any problems; the OpenVPN.net <a title="Mailing List" href="http://openvpn.net/mail.html">mailing list</a> and Mathias Sundman's website <a href="http://openvpn.de/">http://openvpn.de</a> should get you all the help you require.</p>
<p>All the best SSL VPN'ing!!</p>
<p>Some excellent articles:</p>
<p>1. <a title="Meet OpenVPN" href="http://www.linuxjournal.com/article/7949">Meet OpenVPN</a> By Hans-Cees Speel</p>
<p>2. <a title="Introduction to OpenVPN" href="http://www.osnews.com/story.php?news_id=5803">Introduction to OpenVPN</a> By David Bogen</p>
<p>3. <a title="OpenVPN GUI for Windows" href="http://openvpn.se">OpenVPN GUI for Windows</a> By Mathias Sundman</p>
<p>4. <a title="OpenVPN TAP howto" href="http://forums.gentoo.org/viewtopic.php?t=233080">OpenVPN 2.0 TAP mini-HOWTO</a> By cchee on forums.gentoo.org</p>
<p>5. <a title="To setup a VPN using OpenVPN" href="http://mia.ece.uic.edu/~papers/volans/openvpn.html">To setup a VPN using OpenVPN</a> on UIC.edu</p>
<p>Previously:</p>
<p></p>
<p><a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/">1. SSL VPNs and Using OpenVPN : What is an SSL VPN</a><br />
<a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/">2 .SSL VPNs and OpenVPN - Part II : Why OpenVPN?</a><br />
<a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/">3. SSL VPNs and OpenVPN - Part III : Brief How-to - OpenVPN and Site-to-Site Tunnels.</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+IV+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D89+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/&amp;t=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+IV" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+IV" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+IV" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+IV" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+IV" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2006%2F03%2Fssl-vpns-and-openvpn-part-iv%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL VPNs and OpenVPN &#8211; Part III</title>
		<link>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/</link>
		<comments>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/#comments</comments>
		<pubDate>Thu, 09 Mar 2006 03:19:54 +0000</pubDate>
		<dc:creator>Siddharth</dc:creator>
				<category><![CDATA[Linux Hacking]]></category>
		<category><![CDATA[Network Hacking]]></category>
		<category><![CDATA[Security Software]]></category>
		<category><![CDATA[Information-Security]]></category>
		<category><![CDATA[network-security]]></category>
		<category><![CDATA[Open-Source-Software]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[ssl-vpn]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/</guid>
		<description><![CDATA[3. Brief How-to &#8230;.. OpenVPN and Site-to-Site Tunnels. OpenVPN can be implemented either Site-to-site or client-server model. I will take example configurations of both models. If you want to implement site-to-site configuration, the best way is to use static-keys instead of PKI. Using static keys, you can have your VPN tunnel up and running in [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<h2>3. Brief How-to &#8230;.. OpenVPN and Site-to-Site Tunnels.</h2>
<p>OpenVPN can be implemented either Site-to-site or client-server model. I will take example configurations of both models.</p>
<p>If you want to implement site-to-site configuration, the best way is to use static-keys instead of PKI. Using static keys, you can have your VPN tunnel up and running in a jiffy.</p>
<p>First, decide which Operating systems will be used for implementing VPN endpoints on your network. According to OS, download the OpenVPN software from these locations;</p>
<p><strong>Linux</strong>: <a href="http://openvpn.net/download.html">http://openvpn.net/download.html</a></p>
<p>I would recommend using Mathias Sundman&#8217;s &#8220;OpenVPN GUI for windows&#8221; for its sheer simplicity.</p>
<p><strong>Windows</strong>: <a href="http://openvpn.se/download.html">http://openvpn.se/download.html</a></p>
<p><strong>Example of using static keys to create a site-to-site VPN:</strong></p>
<p>In this example, a VPN tunnel will be created with a server endpoint of 10.33.66.1 and a client (peer) endpoint of 10.33.66.2. Encrypted communication between peers will occur over UDP port 1194, the default OpenVPN port.</p>
<p>First generate a static key using this command;</p>
<p><code>openvpn --genkey --secret static.key</code></p>
<p>Copy the static key to both peers over some secure channel. Heck, use a pen drive if you are paranoid and have access to both peers physically.</p>
<p>Copy the static key file in &#8220;config&#8221; directory of OpenVPN installation.</p>
<p>Create a configuration file named &#8220;server.ovpn&#8221; in the config directory of OpenVPN, and type this in the file;</p>
<p><code>dev tun</code></p>
<p><code>ifconfig 10.33.66.1 10.33.66.2</code></p>
<p><code>secret static.key</code></p>
<p>Now create a &#8220;client.ovpn&#8221; file in config directory of second peer which will effectively become a client for the server you created just now. Put the following in the client file;</p>
<p><code>remote remoteserverip</code></p>
<p><code>dev tun</code></p>
<p><code>ifconfig 10.33.66.2 10.33.66.1</code></p>
<p><code>secret static.key</code></p>
<p>The IP address of remote server will come in place of &#8220;remoteserverip&#8221; in the remote directive of client.ovpn.</p>
<p>Now start OpenVPN executables using these ovpn files that we created. If you get &#8220;Initialization Sequence Completed&#8221; in the window, most of your work is done. Now ping the other end of tunnel. If ping succeeds, you are done!</p>
<p>Always make sure that you have UDP port 1194 (or any port/transport protocol over which you plan to create a tunnel) open through the network. This may require manually opening the ports at the firewalls/routers at both ends.<br />
If you want to access the networks <strong>behind </strong>the endpoint servers, there are two options. Either you use routing (TUN) mode or bridging (TAP) mode on your OpenVPN machines. For some obscure reasons if you want to allow non-routable protocols to be tunneled (like NetBIOS) then you will have to use OpenVPN in TAP mode. Bridging ensures that your VPN endpoints make a long reach Ethernet over your WAN.</p>
<p>If you decide that you want to use a routed (TUN) mode, then you must enable IP forwarding on the OpenVPN machine. The virtual interface can be made external interface and local area connection can be designated internal. It will basically become a router and you can do everything with this box that you could with Linux/windows based router.</p>
<p>Next: <strong>Creating OpenVPN tunnels for Clients-to-site scenario&#8230;.</strong></p>
<p><a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iv/">Read on in Part IV</a></p>
<p>Previously:</p>
<p></p>
<p><a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/">1. SSL VPNs and Using OpenVPN : What is an SSL VPN</a><br />
<a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/">2. SSL VPNs and OpenVPN &#8211; Part II : Why OpenVPN?</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+III+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D86+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/&amp;t=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+III" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+III" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+III" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+III" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+III" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2006%2F03%2Fssl-vpns-and-openvpn-part-iii%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL VPNs and OpenVPN &#8211; Part II</title>
		<link>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/</link>
		<comments>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/#comments</comments>
		<pubDate>Wed, 08 Mar 2006 04:00:59 +0000</pubDate>
		<dc:creator>Siddharth</dc:creator>
				<category><![CDATA[Linux Hacking]]></category>
		<category><![CDATA[Network Hacking]]></category>
		<category><![CDATA[Security Software]]></category>
		<category><![CDATA[Information-Security]]></category>
		<category><![CDATA[network-security]]></category>
		<category><![CDATA[Open-Source-Software]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[ssl-vpn]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/</guid>
		<description><![CDATA[2. Why OpenVPN Here, in this article, I will lay down the emphasis on one important Open-Source SSL VPN software written by James Yonan and contributed by several others, which proposes security without the inherent complexity of IPsec AND using a trusted design of client component and VPN server. Usually VPNs require end points which [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<h2>2. Why OpenVPN</h2>
<p>Here, in this article, I will lay down the emphasis on one important Open-Source SSL VPN software written by James Yonan and contributed by several others, which proposes security without the inherent complexity of IPsec AND using a trusted design of client component and VPN server.</p>
<p>Usually VPNs require end points which are trusted. The server and client are machines with elevated levels of trust as VPN components are installed on known machines which participate in corporate network according to security policy. Additionally, it is made sure that authentication credentials are pre-installed (in a secure way) on both of these devices so that each endpoint could authenticate each other.</p>
<p>SSL Remote Access connections nee. SSL Gateway clients, allow users to connect to VPN servers irrespective of the machine. The client can be any machine in cybercafe or public terminal. This brings us to two severe security issues. One, we break the trust model. The server and client no longer share the authentication credentials using secure channel.</p>
<p>Two, users connect from machines that are not subject to corporate security policies. Even if the user manages to start SSL session with SSL gateways, they are doing all their input and output on an unknown insecure machines that might as well be worm clearinghouses.</p>
<p>The propensity of a public machine loaded with keystroke loggers and remote management tools that allow the attacker to sniff passwords and collect session data is very high. Untrusted Clientless VPNs on an arbitrary machine is the weakest link in a security chain.<br />
OpenVPN adheres to secure computing practices with a software component installed on the endpoints.</p>
<p>From the <a title="OpenVPN" href="http://openvpn.net/">OpenVPN</a> website:</p>
<p>&#8220;OpenVPN is a full-featured SSL VPN which implements OSI layer 2 or 3 secure network extension using the industry standard SSL/TLS protocol, supports flexible client authentication methods based on certificates, smart cards, and/or username/password credentials, and allows user or group-specific access control policies using firewall rules applied to the VPN virtual interface.<br />
OpenVPN is not a web application proxy and does not operate through a web browser.&#8221;</p>
<p>Another reason: OpenVPN is <a title="FREE" href="http://www.gnu.org/philosophy/free-sw.html">FREE</a>. And works on Linux like OS&#8217;s AND Windows.</p>
<p>Next: we will learn how to implement a VPN Tunnel using OpenVPN.</p>
<p><a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-iii/">Read on in Part III</a></p>
<p></p>
<p>Previously:<br />
<a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/">1. SSL VPNs and Using OpenVPN : What is an SSL VPN</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+II+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D85+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/&amp;t=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+II" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+II" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+II" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+II" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/&amp;title=SSL+VPNs+and+OpenVPN+%E2%80%93+Part+II" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2006%2F03%2Fssl-vpns-and-openvpn-part-ii%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL VPNs and Using OpenVPN</title>
		<link>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/</link>
		<comments>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 02:18:08 +0000</pubDate>
		<dc:creator>Siddharth</dc:creator>
				<category><![CDATA[Linux Hacking]]></category>
		<category><![CDATA[Network Hacking]]></category>
		<category><![CDATA[Security Software]]></category>
		<category><![CDATA[Information-Security]]></category>
		<category><![CDATA[network-security]]></category>
		<category><![CDATA[Open-Source-Software]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[ssl-vpn]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/</guid>
		<description><![CDATA[Requirement: To connect to a VPN server in a different country. Situation: A country which has proxies at every gateway. Issues: VPN based on IPSec is fussy when it comes across networks which are NAT&#8217;ted/ proxied. The Security Parameters Indexes don&#8217;t match and clients do not get connected. Objective: To connect VPN server in a [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p><em><strong>Requirement:</strong></em> To connect to a VPN server in a different country.</p>
<p><em><strong>Situation:</strong></em> A country which has proxies at every gateway.</p>
<p><em><strong>Issues:</strong></em> VPN based on IPSec is fussy when it comes across networks which are NAT&#8217;ted/ proxied. The Security Parameters Indexes don&#8217;t match and clients do not get connected.</p>
<p><em><strong>Objective:</strong></em> To connect VPN server in a corporate network using some flexible VPN which I can run on any port/transport protocol so as to bypass the port/protocols/applications restriction.</p>
<p>Using these factors I came to conclusion that I needed SSL VPN solution. The following article explains the SSL VPN nuances and advantages of using them in certain situations.</p>
<p>Contents:
<ol>
<li>What is an SSL VPN</li>
<li>Why OpenVPN</li>
<li>brief How-to (site-to-site      and client to site)</li>
<li>Nutshell</li>
</ol>
<h2>1. What is an SSL VPN</h2>
<p>For a very long time, people in information security have thought IPSec is THE VPN and SSL is for secure online banking. While SSL has traditionally been used for Web site security purposes, SSL&#8217;s applications reach wider than just web proxying and application security.</p>
<p>Traditional SSL VPN started off with products that were more like SSL gateways instead of true VPNs. These products cannot be really termed as VPN but more like &#8220;Secure Remote Application Access&#8221;.</p>
<p>They thrive on a management facade called &#8220;Clientless VPN&#8221;. A VPN that can be established with any web browser without installing a software component sure promise less pain for users and administrators alike, but it comes with certain caveats that we will talk about later.</p>
<p>In the past, IPSec has been used as THE technology to create a VPN Site-to-site or site-to-client tunnel. IPSec has since long enjoyed widespread implementation because of its monopoly on function, although it has received its fair share of criticism for being too complex, and tightly coupled with Operating System.</p>
<p>IPSec came out in November 1988 with a series of RFC&#8217;s defining the protocols necessary to create VPNs. This RFC (2401-2412) represented a backbone of IPSec technologies. While IPSec does provide for a framework to establish a secure tunnel, it comes with a lot of complexity. Since complexity and security is inversely proportional, there are so many things with IPsec that may go wrong with wrong implementation. Thoroughly understanding everything and grappling with issues like Nat-T is something not everyone would be comfortable with.</p>
<p>Apart from that, IPSec being coupled tightly with Operating System doesn&#8217;t induce a sense of security. Any program integrated with kernel is against secure computing architecture. A wrong implementation or a security breach could take down the whole system.</p>
<p>Understanding the fact that IPSec is complex, industry started moving towards SSL based Remote Access solutions which may not be as secured as we want them to be. It&#8217;s because of the fact that a lot of these solutions push web browser as the client which can be used at any machine. The issue of ANY machine connecting to central site may not be very desirable as machines in cybercafes or public terminals do not form a part of control domain. Its desirable to run your upper layer protocols over SSL because it&#8217;s widely implemented and allowed in majority of packet filters.</p>
<p>Yeah&#8230;..but WHY OpenVPN??</p>
<p></p>
<p><a href="http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn-part-ii/">Read on in Part II</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=SSL+VPNs+and+Using+OpenVPN+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D84+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/&amp;t=SSL+VPNs+and+Using+OpenVPN" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/&amp;title=SSL+VPNs+and+Using+OpenVPN" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/&amp;title=SSL+VPNs+and+Using+OpenVPN" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/&amp;title=SSL+VPNs+and+Using+OpenVPN" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/&amp;title=SSL+VPNs+and+Using+OpenVPN" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2006%2F03%2Fssl-vpns-and-openvpn%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2006/03/ssl-vpns-and-openvpn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get the ball rollin&#8217;</title>
		<link>http://www.darknet.org.uk/2006/02/get-the-ball-rollin/</link>
		<comments>http://www.darknet.org.uk/2006/02/get-the-ball-rollin/#comments</comments>
		<pubDate>Thu, 09 Feb 2006 09:05:34 +0000</pubDate>
		<dc:creator>Siddharth</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[launch]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2006/02/get-the-ball-rollin/</guid>
		<description><![CDATA[Hi&#8230;. It is a nice idea. I hope we all can put up some stuff, something that we are interested in and something that will get our grey cells working. Maybe someday &#8230;. just maybe&#8230;this will evolve into an idea&#8230;.a killer app!]]></description>
			<content:encoded><![CDATA[<p></p>
<p>Hi&#8230;.</p>
<p>It is a nice idea. I hope we all can put up some stuff, something that we are interested in and something that will get our grey cells working.</p>
<p></p>
<p>Maybe someday &#8230;. just maybe&#8230;this will evolve into an idea&#8230;.a killer app!</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Get+the+ball+rollin%E2%80%99+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D19+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2006/02/get-the-ball-rollin/&amp;t=Get+the+ball+rollin%E2%80%99" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2006/02/get-the-ball-rollin/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2006/02/get-the-ball-rollin/&amp;title=Get+the+ball+rollin%E2%80%99" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2006/02/get-the-ball-rollin/&amp;title=Get+the+ball+rollin%E2%80%99" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2006/02/get-the-ball-rollin/&amp;title=Get+the+ball+rollin%E2%80%99" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2006/02/get-the-ball-rollin/&amp;title=Get+the+ball+rollin%E2%80%99" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2006%2F02%2Fget-the-ball-rollin%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2006/02/get-the-ball-rollin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

