<?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>Lockstockmods &#187; Uncategorized</title>
	<atom:link href="http://www.lockstockmods.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lockstockmods.net</link>
	<description>If its not broken... take it apart and mod it</description>
	<lastBuildDate>Sun, 04 Jul 2010 16:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setup OpenVPN</title>
		<link>http://www.lockstockmods.net/2009/11/09/setup-openvpn/</link>
		<comments>http://www.lockstockmods.net/2009/11/09/setup-openvpn/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 18:09:08 +0000</pubDate>
		<dc:creator>Kode</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lockstockmods.net/?p=113</guid>
		<description><![CDATA[Setup OpenVPN This is very rough at the moment, i have to go through it at some point and tidy it up, the reason its in this rough state was because i was writing it while setting it up on my virtual server, however, its not possible to set this up on it, totally unrelated [...]]]></description>
			<content:encoded><![CDATA[<p>Setup OpenVPN</p>
<p>This is very rough at the moment, i have to go through it at some point and tidy it up, the reason its in this rough state was because i was writing it while setting it up on my virtual server, however, its not possible to set this up on it, totally unrelated to this guide though, its just the configuration of the virtual server doesnt allow it.</p>
<p>If you find anything wrong, or have any suggestions, please let me know.</p>
<p>apt-get install openvpn</p>
<p>Create configuration file for the server in <tt>/etc/openvpn/server.conf</tt>:<br />
port 2746<br />
proto udp<br />
dev tap<br />
;dev-node tap0<br />
ca ca.crt<br />
cert server.crt<br />
key server.key # This file should be kept secret<br />
dh dh1024.pem<br />
server 10.10.10.0 255.255.255.0 # vpn subnet<br />
ifconfig-pool-persist ipp.txt<br />
;push &#8220;route 192.168.1.0 255.255.255.0&#8243; # home subnet<br />
;duplicate-cn<br />
keepalive 10 120<br />
;cipher BF-CBC        # Blowfish (default)<br />
;cipher AES-128-CBC   # AES<br />
;cipher DES-EDE3-CBC  # Triple-DES<br />
comp-lzo<br />
user nobody<br />
group nobody<br />
persist-key<br />
persist-tun<br />
;status openvpn-status.log<br />
;log-append  openvpn.log<br />
verb 10<br />
mute 20<br />
;client-to-client<br />
;client-config-dir ccd &#8220;route 134.33.0.0 255.255.0.0&#8243;</pre>
<p>cd  /usr/share/doc/openvpn/examples/easy-rsa/2.0<br />
nano vars<br />
change to your settings<br />
source ./vars<br />
./clean-all</p>
<p>build the certificate authority certificate and key by invoking the interactive openssl command.<br />
./build-ca</p>
<p>Generate certificates &amp; keys for server:<br />
./build-key server<br />
A challenge password []:<br />
An optional company name []:<br />
press enter on both</p>
<p>Sign the certificate? [y/n]:y<br />
1 out of 1 certificate requests certified, commit? [y/n]y<br />
type y for both</pre>
<p>Generate certificates &amp; keys for client</p>
<p>./build-key client1</p>
<p>A challenge password []:<br />
An optional company name []:<br />
press enter on both</p>
<p>Sign the certificate? [y/n]:y<br />
1 out of 1 certificate requests certified, commit? [y/n]y<br />
type y for both</p>
<p>Generate Diffie Hellman parameters</p>
<p>./build-dh<br />
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt /etc/openvpn/ca.crt<br />
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.crt /etc/openvpn/server.crt<br />
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem /etc/openvpn/dh1024.pem<br />
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.key /etc/openvpn/server.key<br />
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt /home/lockstock/ca.crt<br />
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/kode.crt /home/lockstock/client1.crt<br />
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/kode.key /home/lockstock/client1.key</p>
<p>download files to ur clients config folder<br />
client.conf / client.opvm<br />
remote your.ddns.host 2746<br />
client<br />
dev tap<br />
proto udp<br />
resolv-retry infinite # this is necessary for DynDNS<br />
nobind<br />
user nobody<br />
group nobody<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert client1.crt<br />
key client1.key<br />
comp-lzo<br />
verb 4<br />
mute 20</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lockstockmods.net/2009/11/09/setup-openvpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: www.lockstockmods.net @ 2010-08-01 05:14:49 -->