<?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>vpn security encryption openvpn ipsec ssl Archives - The Story of David Kaspar</title>
	<atom:link href="https://blog.davidkaspar.com/archives/tag/vpn-security-encryption-openvpn-ipsec-ssl/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.davidkaspar.com/archives/tag/vpn-security-encryption-openvpn-ipsec-ssl</link>
	<description>Online journal and ponderings about the Internet, gadgets and photography.</description>
	<lastBuildDate>Sat, 03 Feb 2007 12:44:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://blog.davidkaspar.com/wp-content/uploads/2020/05/chubby.gif</url>
	<title>vpn security encryption openvpn ipsec ssl Archives - The Story of David Kaspar</title>
	<link>https://blog.davidkaspar.com/archives/tag/vpn-security-encryption-openvpn-ipsec-ssl</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>HOWTO: Free Secure web browsing and access to home network using OpenVPN</title>
		<link>https://blog.davidkaspar.com/archives/2007/02/howto-free-secure-web-browsing-and-access-to-home-network-using-openvpn.php</link>
					<comments>https://blog.davidkaspar.com/archives/2007/02/howto-free-secure-web-browsing-and-access-to-home-network-using-openvpn.php#comments</comments>
		
		<dc:creator><![CDATA[David Kaspar]]></dc:creator>
		<pubDate>Sat, 03 Feb 2007 12:44:13 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[vpn security encryption openvpn ipsec ssl]]></category>
		<guid isPermaLink="false">https://davidkaspar.com/wp/2007/02/03/howto-free-secure-web-browsing-and-access-to-home-network-using-openvpn/</guid>

					<description><![CDATA[<p>Public WiFi access points are getting more and more common making it easier to browse the Internet and read your emails on the run. Unfortunately tools to capture or manipulate such open traffic are getting very mature and easy to use. Windows Remote Desktop and VNC/RealVNC are two very convenient ways of connecting to your &#8230; <a href="https://blog.davidkaspar.com/archives/2007/02/howto-free-secure-web-browsing-and-access-to-home-network-using-openvpn.php" class="more-link">Continue reading<span class="screen-reader-text"> "HOWTO: Free Secure web browsing and access to home network using OpenVPN"</span></a></p>
<p>The post <a href="https://blog.davidkaspar.com/archives/2007/02/howto-free-secure-web-browsing-and-access-to-home-network-using-openvpn.php">HOWTO: Free Secure web browsing and access to home network using OpenVPN</a> appeared first on <a href="https://blog.davidkaspar.com">The Story of David Kaspar</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Public WiFi access points are getting more and more common making it easier to browse the Internet and read your emails on the run. Unfortunately tools to capture or manipulate such open traffic are getting very mature and easy to use.<br />
Windows Remote Desktop and VNC/RealVNC are two very convenient ways of connecting to your home desktop from anywhere in the world. Unfortunately once you enable public remote connections then any person or hacker can also try and connect.<br />
I&#8217;ll admit that I am a bit late to the game but I have finally found a solution and managed to implement it.<br />
It is called OpenVPN and has all the benefits of open source software: supported by a large community, you can inspect or improve the code, it is free, you can audit the security and much more. As a bonus it is also supported on many different operating systems.<br />
In a nutshell OpenVPN consists of a server part which runs on a computer (or compatible router) on your home network and a client part which runs on remote machines. You use the same software for both parts; it is just the configuration that distinguishes a server from clients.<br />
Once the remote machine has connected to your machine at home, all Internet traffic is tunneled (sent) securely to the machine and then out on the public Internet.<br />
Instant messaging, emails, web browsing, document transfers, video conferencing, VOIP, anything and everything will be transparently encrypted and forwarded to your machine at home.<br />
Any hacker listening to your traffic on the public WiFi will from then on just see 2048 bit encrypted traffic and any hacker wanting to connect to your home computer will require a signed certificate resigning on your home computer (unlikely).<br />
<strong>Download</strong><br />
I&#8217;ll assume you are using Windows in which case the <a href="http://openvpn.se/download.html">OpenVPN GUI</a> is a great addition to the OpenVPN and you should download both at the same time (choose openvpn-2.0.9-gui-1.0.3-install.exe).<br />
<strong>Install</strong><br />
Run the installers (with admin privileges) and choose the default installation locations.<br />
<strong>Configure network settings (bridge)</strong><br />
OpenVPN will install a new network device (TAP-Win32 Adapter V8) which is used for the encrypted traffic.<br />
On the server machine you will have to bridge the TAP-Win32 Adapter V8 with whatever network adapter you are using to connect to the network (most likely LAN).<br />
Select the two network adapters in Network Connections, right click and choose bridge connection. This could take up to 45s but after that your Internet connection should function normally. If it doesn&#8217;t, you may have to modify the bridged connection with whatever settings your LAN connection had previously.<br />
The good news is that you don&#8217;t need to bridge adapters on the client machines.<br />
<strong>Create keys and certificates</strong><br />
OpenVPN is based on PKI (public key infrastructure) for session authentication and you will need to create several certificates and private keys for connecting to the OpenVPN server.<br />
First you will create your own CA (Certificate Authority) certificate and use it to sign your (one) server and (many) client certificates. You will also need to generate a file with Diffie hellman parameters.<br />
The README file in the easy-rsa folder explains this very well and provides several batch (.bat) files to automate this.<br />
One advice would be to create private keys WITHOUT a password. You do this by selecting a blank (none) password when the script asks for one.<br />
<strong>Configure server</strong><br />
OpenVPN comes with sample server and client configuration scripts in the sample-config directory. Copy the server script over to the config directory and customise it for your environment. Below are some of the most important settings:<br />
port 1194 # The default OpenVPN port<br />
proto udp # more efficient than TCP but not always available for clients<br />
;dev tun # you will not be using this<br />
dev tap<br />
dev-node OpenVPN # or whatever you renamed it to in Windows Network Connections<br />
ca ca.crt<br />
cert &lt;server machine name&gt;.crt<br />
key &lt;server machine name&gt;.key<br />
dh dh1024.pem<br />
;server 10.8.0.0 255.255.255.0 # you will not be using this<br />
server-bridge &lt;gateway ip&gt; 255.255.255.0 &lt;start client ip&gt; &lt;end client ip&gt; # Eg 192.168.0.1 255.255.255.0 192.168.0.60 192.168.0.70<br />
push &#8220;redirect-gateway&#8221; # This will forward ALL client internet traffic over the encrypted channel to your home<br />
client-to-client # if you want the different connected remote machines to see each other and be able to exchange files<br />
keepalive 10 120<br />
cipher BF-CBC # Blowfish encryption. Use DES-EDE3-CBC for ultimate security<br />
comp-lzo # compression on<br />
persist-key<br />
persist-tun<br />
status openvpn-status.log # Monitor this log file for any problems<br />
verb 3 # use verb 6 for diagnostics<br />
<strong>Configure clients</strong><br />
client<br />
;dev tun # you will not be using this<br />
dev tap<br />
dev-node OpenVPN # or whatever you renamed it to in Windows Network Connections<br />
proto udp<br />
remote &lt;server IP or host name&gt; &lt;port number&gt; # The public IP of your<br />
OpenVPN server<br />
resolv-retry infinite<br />
nobind<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert &lt;client machine name&gt;.crt<br />
key &lt;client machine name&gt;.key<br />
cipher BF-CBC # Must be same as on the server<br />
comp-lzo<br />
verb 3<br />
<strong>Improve security</strong><br />
On server:<br />
port 51002 # Use a high number (&gt;10,000 for higher security)<br />
max-clients 1 # Limit this to how many remote machines you expect to connect<br />
cipher DES-EDE3-CBC  # Triple-DES for ultimate encryption<br />
tls-auth ta.key 0 # An additional layer of protection, the effect is a bit like using a firewall. Generate it with openvpn &#8211;genkey &#8211;secret ta.key. Use 1 in client configurations<br />
;client-to-client # Do no allow client to client connections<br />
On client:<br />
ns-cert-type server # Easy-rsa automatically creates server certificates with this flag<br />
tls-auth ta.key 1<br />
If you have any questions feel free to leave a comment and I&#8217;ll see if I can help you out!</p>
<p>The post <a href="https://blog.davidkaspar.com/archives/2007/02/howto-free-secure-web-browsing-and-access-to-home-network-using-openvpn.php">HOWTO: Free Secure web browsing and access to home network using OpenVPN</a> appeared first on <a href="https://blog.davidkaspar.com">The Story of David Kaspar</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.davidkaspar.com/archives/2007/02/howto-free-secure-web-browsing-and-access-to-home-network-using-openvpn.php/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
