<?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>openvpn Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/openvpn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 20 Nov 2020 16:46:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Setting up OpenVPN Server on Ubuntu 20.04 LTS</title>
		<link>https://www.osradar.com/setting-up-openvpn-server-on-ubuntu-20-04-lts/</link>
					<comments>https://www.osradar.com/setting-up-openvpn-server-on-ubuntu-20-04-lts/#respond</comments>
		
		<dc:creator><![CDATA[rajneesh]]></dc:creator>
		<pubDate>Fri, 20 Nov 2020 15:45:07 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25569</guid>

					<description><![CDATA[<p>So, in this post, you will learn How to set an OpenVPN server on Ubuntu 20.04. VPN or virtual private network is a set of technologies that allows a network to connect through a protected tunnel with other networks. VPNs are uses by an organization to provide remote access of their protected resource maybe access [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/setting-up-openvpn-server-on-ubuntu-20-04-lts/">Setting up OpenVPN Server on Ubuntu 20.04 LTS</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>So, in this post, you will learn How to set an OpenVPN server on Ubuntu 20.04.</p>



<p>VPN or virtual private network is a set of technologies that allows a network to connect through a protected tunnel with other networks. VPNs are uses by an organization to provide remote access of their protected resource maybe access to some files, software access, or some client communication. A VPN Create private communication between two devices. Devices can be similar or different, I can be a mobile, router, or a computer, it allows remote access while protecting traffic/communication as well.</p>



<h2><strong>How a VPN works?</strong></h2>



<p>&#8220;Private&#8221; in VPN refers to network topology instead of privacy. VPN work based on routing, bridging, and encapsulation. Layer 3 VPN creates a new route for virtual network adopter while in bridging VPN method (or Layer 2) method like connected devices are on the same physical network.</p>



<p>Encapsulation means traveling information is wrapped inside packets, these encapsulated packets travel through a secure VPN tunnel between server and client. A VPN server will be only visible to clients. VPN or virtual private network is a set of technologies that allows a network to connect through a protected tunnel with other networks. VPNs are uses by an organization to provide remote access of their protected resource maybe access to some files, software access, or some client communication. A VPN Create private communication between two devices. </p>



<p>So, Devices can be similar or different, I can be a mobile, router, or a computer, it allows remote access while protecting traffic/communication as well.</p>



<h2><strong>Configure OpenVPN&nbsp;&nbsp;&nbsp;&nbsp;</strong></h2>



<p>Pre requisites:</p>



<ol type="1"><li><a href="https://www.osradar.com/tag/focal" target="_blank" rel="noreferrer noopener">Ubuntu 20.04 LST</a></li><li>Internet connection</li><li>A mobile/remote device to test your OpenVPN services.</li></ol>



<p><strong>Install required packaged:</strong></p>



<p>So, open a browser and go to the OpenVPN <a href="https://openvpn.net" target="_blank" rel="noreferrer noopener">main site</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="474" height="258" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-12.png" alt="" class="wp-image-25571" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-12.png 474w, https://www.osradar.com/wp-content/uploads/2020/11/image-12-300x163.png 300w" sizes="(max-width: 474px) 100vw, 474px" /></figure>



<p>Click on Get <strong>OpenVPN visible</strong> on upper left corner of the site.</p>



<p>Then, click on the Ubuntu icon.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="475" height="254" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-13.png" alt="" class="wp-image-25572" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-13.png 475w, https://www.osradar.com/wp-content/uploads/2020/11/image-13-300x160.png 300w" sizes="(max-width: 475px) 100vw, 475px" /></figure>



<p>After that, Install required packages are per instructions provided on website.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="480" height="340" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-14.png" alt="" class="wp-image-25573" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-14.png 480w, https://www.osradar.com/wp-content/uploads/2020/11/image-14-300x213.png 300w" sizes="(max-width: 480px) 100vw, 480px" /></figure>



<pre class="wp-block-preformatted"># apt update &amp;&amp; apt -y install ca-certificates wget net-tools gnupg</pre>



<pre class="wp-block-preformatted">wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -</pre>



<pre class="wp-block-preformatted"># echo "deb http://as-repository.openvpn.net/as/debian focal main"&gt;/etc/apt/sources.list.d/openvpn-as-repo.list </pre>



<p>When installation process is over you will be able to see following message, where VPN server is accessible on port number <strong>943</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="624" height="264" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-15.png" alt="" class="wp-image-25582" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-15.png 624w, https://www.osradar.com/wp-content/uploads/2020/11/image-15-300x127.png 300w" sizes="(max-width: 624px) 100vw, 624px" /></figure>



<p>Let’s access admin portal first, assign password to OpenVPN user.</p>



<pre class="wp-block-preformatted"># passwd OpenVPN</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="457" height="77" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-16.png" alt="" class="wp-image-25583" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-16.png 457w, https://www.osradar.com/wp-content/uploads/2020/11/image-16-300x51.png 300w" sizes="(max-width: 457px) 100vw, 457px" /></figure>



<p>Then, open URL <a href="https://ip-addr:943/admin">https://ip-addr:943/admin</a>, provide user id and password created in previous step:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="466" height="233" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-17.png" alt="" class="wp-image-25584" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-17.png 466w, https://www.osradar.com/wp-content/uploads/2020/11/image-17-300x150.png 300w" sizes="(max-width: 466px) 100vw, 466px" /></figure>



<p>Then, Click on user management and go to user permissions</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="624" height="290" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-18.png" alt="" class="wp-image-25585" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-18.png 624w, https://www.osradar.com/wp-content/uploads/2020/11/image-18-300x139.png 300w" sizes="(max-width: 624px) 100vw, 624px" /></figure>



<p>Create a new user (demouser in our example scenario), click on more settings, define password and save settings.</p>



<p>Here you have created a VPN client user which can be accessed via remote.</p>



<p>To check if creds are working properly or not, open <strong>https://ip-addr:943</strong> in another browser. Provide user id and password created in above step (demouser).</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="487" height="263" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-19.png" alt="" class="wp-image-25586" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-19.png 487w, https://www.osradar.com/wp-content/uploads/2020/11/image-19-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/image-19-485x263.png 485w" sizes="(max-width: 487px) 100vw, 487px" /></figure>



<p>After providing credential, a window something like below will appear. Here you can save your VPN profiles by click on user-locked profile.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="624" height="436" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-20.png" alt="" class="wp-image-25587" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-20.png 624w, https://www.osradar.com/wp-content/uploads/2020/11/image-20-300x210.png 300w" sizes="(max-width: 624px) 100vw, 624px" /></figure>



<p>To run a OpenVPN client on MS <a href="https://www.osradar.com/tag/windows" target="_blank" rel="noreferrer noopener">Windows</a>®, download application and install.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="624" height="399" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-21.png" alt="" class="wp-image-25588" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-21.png 624w, https://www.osradar.com/wp-content/uploads/2020/11/image-21-300x192.png 300w" sizes="(max-width: 624px) 100vw, 624px" /></figure>



<p>When setup is done, open MS Windows VPN client application and provide credentials.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="213" height="364" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-22.png" alt="" class="wp-image-25589" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-22.png 213w, https://www.osradar.com/wp-content/uploads/2020/11/image-22-176x300.png 176w" sizes="(max-width: 213px) 100vw, 213px" /></figure>



<p>Enable OpenVPN connection, we can see successfully connected VPN connection on MS Windows® client. &nbsp;</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="198" height="320" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-24.png" alt="" class="wp-image-25591" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-24.png 198w, https://www.osradar.com/wp-content/uploads/2020/11/image-24-186x300.png 186w" sizes="(max-width: 198px) 100vw, 198px" /></figure>



<p>So, let’s try with android device as well. Download <strong>OpenVPN </strong>application on your mobile device.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="457" height="320" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-25.png" alt="" class="wp-image-25592" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-25.png 457w, https://www.osradar.com/wp-content/uploads/2020/11/image-25-300x210.png 300w" sizes="(max-width: 457px) 100vw, 457px" /></figure>



<p>Provide credentials and connect OpenVPN connection, steps are exactly as were for Desktop.  </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="215" height="431" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-26.png" alt="" class="wp-image-25593" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-26.png 215w, https://www.osradar.com/wp-content/uploads/2020/11/image-26-150x300.png 150w" sizes="(max-width: 215px) 100vw, 215px" /></figure>



<p>Now both of the devices (Desktop and Android) are connected, lets see if connections are visible on OpenVPN server or not.</p>



<p>Open <a href="https://ip-addr:943/admin">https://ip-addr:943/admin</a></p>



<p>We can see 02 active connections up and running.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="624" height="327" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-27.png" alt="" class="wp-image-25594" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-27.png 624w, https://www.osradar.com/wp-content/uploads/2020/11/image-27-300x157.png 300w" sizes="(max-width: 624px) 100vw, 624px" /></figure>



<h2><strong>Conclusion</strong></h2>



<p>OpenVPN is one of the most reputed VPN authentication services getting used globally. Also, OpenVPN is a standardized open-source protocol, where a maximum of the devices supports OpenVPN and can connect via that protocol. </p>



<p>So, the application is very easy to set up and robust platform which can be used for corporate, educational, or government organization for secure tunneled communications.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/setting-up-openvpn-server-on-ubuntu-20-04-lts/">Setting up OpenVPN Server on Ubuntu 20.04 LTS</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/setting-up-openvpn-server-on-ubuntu-20-04-lts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>OpenVPN authentication with freeRADIUS</title>
		<link>https://www.osradar.com/openvpn-authentication-with-freeradius/</link>
					<comments>https://www.osradar.com/openvpn-authentication-with-freeradius/#comments</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Mon, 18 Feb 2019 08:10:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[openvpn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10865</guid>

					<description><![CDATA[<p>So this post we will be working on integrating them together making them a very useful infrastructure that facilitate user authentication from OpenVPN to freeRadius. The advantage of this design is that it allows central user account administration inside mysql database for any incoming OpenVPN user logins. Couple of my last documents followed up on [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/openvpn-authentication-with-freeradius/">OpenVPN authentication with freeRADIUS</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>So this post we will be working on integrating them together making them a very useful infrastructure that facilitate user authentication from OpenVPN to freeRadius. The advantage of this design is that it allows central user account administration inside mysql database for any incoming OpenVPN user logins.</p>
<p>Couple of my last documents followed up on how to setup</p>
<ul>
<li><a href="https://www.osradar.com/setup-vpn-access-provisioning-server-on-top-of-ubuntu-18-04/">OpenVPN server.</a></li>
<li><a href="https://www.osradar.com/freeradius-with-mysql-backend/">freeRADIUS server.</a></li>
</ul>
<h2><strong>Getting Started</strong></h2>
<p>Note that through out the document, I will stick to Ubuntu 18.04 OS version.</p>
<h4><strong>Step 01</strong> — Required Package Installation</h4>
<pre># apt-get update
# apt-get install libgcrypt11-dev build-essential</pre>
<h4><strong>Step 02</strong> — build radius plugin that helps to communicate from OpenVPN to freeRadius</h4>
<p>Downloading and building</p>
<pre># wget http://www.nongnu.org/radiusplugin/radiusplugin_v2.1a_beta1.tar.gz
# tar xvf radiusplugin_v2.1a_beta1.tar.gz</pre>
<pre># cd radiusplugin_v2.1a_beta1
# make</pre>
<p>Copy the built plugin to appropriate location</p>
<pre># mkdir /etc/openvpn/radius
# cp -r radiusplugin.so /etc/openvpn/radius</pre>
<h4><strong>Step 03</strong> — Configure built Plugin to work with freeRadius server</h4>
<pre># vim /etc/openvpn/radius/radius.cnf</pre>
<pre>NAS-Identifier=anyName

# The service type which is sent to the RADIUS server
Service-Type=5

# The framed protocol which is sent to the RADIUS server
Framed-Protocol=1

# The NAS port type which is sent to the RADIUS server
NAS-Port-Type=5

# The NAS IP address which is sent to the RADIUS server
NAS-IP-Address=172.17.0.56

# Path to the OpenVPN configfile. The plugin searches there for
# client-config-dir PATH   (searches for the path)
# status FILE     		   (searches for the file, version must be 1)
# client-cert-not-required (if the option is used or not)
# username-as-common-name  (if the option is used or not)

# Path to our OpenVPN configuration file. Each OpenVPN configuration file needs its own radiusplugin configuration file as well
OpenVPNConfig=/etc/openvpn/server.conf


# Support for topology option in OpenVPN 2.1
# If you don't specify anything, option "net30" (default in OpenVPN) is used. 
# You can only <span class="hljs-operator"><span class="hljs-keyword">use</span> one <span class="hljs-keyword">of</span> the options <span class="hljs-keyword">at</span> the same <span class="hljs-keyword">time</span>.
# <span class="hljs-keyword">If</span> you <span class="hljs-keyword">use</span> topology <span class="hljs-keyword">option</span> <span class="hljs-string">"subnet"</span>, fill <span class="hljs-keyword">in</span> the <span class="hljs-keyword">right</span> netmask, <span class="hljs-keyword">e</span>.<span class="hljs-keyword">g</span>. <span class="hljs-keyword">from</span> OpenVPN <span class="hljs-keyword">option</span> <span class="hljs-string">"--server NETWORK NETMASK"</span>  
subnet=<span class="hljs-number">255.255</span><span class="hljs-number">.255</span><span class="hljs-number">.0</span>
# <span class="hljs-keyword">If</span> you <span class="hljs-keyword">use</span> topology <span class="hljs-keyword">option</span> <span class="hljs-string">"p2p"</span>, fill <span class="hljs-keyword">in</span> the <span class="hljs-keyword">right</span> network, <span class="hljs-keyword">e</span>.<span class="hljs-keyword">g</span>. <span class="hljs-keyword">from</span> OpenVPN <span class="hljs-keyword">option</span> <span class="hljs-string">"--server NETWORK NETMASK"</span>
# p2p=<span class="hljs-number">10.8</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span>


# Allows the <span class="hljs-keyword">plugin</span> <span class="hljs-keyword">to</span> overwrite the <span class="hljs-keyword">client</span> config <span class="hljs-keyword">in</span> <span class="hljs-keyword">client</span> config <span class="hljs-keyword">file</span> <span class="hljs-keyword">directory</span>,
# <span class="hljs-keyword">default</span> <span class="hljs-keyword">is</span> <span class="hljs-literal">true</span>
overwriteccfiles=<span class="hljs-literal">true</span>

# Allows the <span class="hljs-keyword">plugin</span> <span class="hljs-keyword">to</span> <span class="hljs-keyword">use</span> auth control files <span class="hljs-keyword">if</span> OpenVPN (&gt;= <span class="hljs-number">2.1</span> rc8) provides them.
# <span class="hljs-keyword">default</span> <span class="hljs-keyword">is</span> <span class="hljs-literal">false</span>
# useauthcontrolfile=<span class="hljs-literal">false</span>

# <span class="hljs-keyword">Only</span> the accouting functionality <span class="hljs-keyword">is</span> used, <span class="hljs-keyword">if</span> <span class="hljs-keyword">no</span> <span class="hljs-keyword">user</span> <span class="hljs-keyword">name</span> <span class="hljs-keyword">to</span> forwarded <span class="hljs-keyword">to</span> the <span class="hljs-keyword">plugin</span>, the common <span class="hljs-keyword">name</span> <span class="hljs-keyword">of</span> certificate <span class="hljs-keyword">is</span> used
# <span class="hljs-keyword">as</span> <span class="hljs-keyword">user</span> <span class="hljs-keyword">name</span> <span class="hljs-keyword">for</span> radius accounting.
# <span class="hljs-keyword">default</span> <span class="hljs-keyword">is</span> <span class="hljs-literal">false</span>
# accountingonly=<span class="hljs-literal">false</span>


# <span class="hljs-keyword">If</span> the accounting <span class="hljs-keyword">is</span> non essential, nonfatalaccounting can be <span class="hljs-keyword">set</span> <span class="hljs-keyword">to</span> <span class="hljs-literal">true</span>. 
# <span class="hljs-keyword">If</span> <span class="hljs-keyword">set</span> <span class="hljs-keyword">to</span> <span class="hljs-literal">true</span> all <span class="hljs-keyword">errors</span> during the accounting <span class="hljs-keyword">procedure</span> <span class="hljs-keyword">are</span> ignored, which can be
# - radius accounting can fail
# - FramedRouted (<span class="hljs-keyword">if</span> configured) maybe <span class="hljs-keyword">not</span> configured correctly
# - <span class="hljs-keyword">errors</span> during vendor specific <span class="hljs-keyword">attributes</span> script execution <span class="hljs-keyword">are</span> ignored
# But <span class="hljs-keyword">if</span> <span class="hljs-keyword">set</span> <span class="hljs-keyword">to</span> <span class="hljs-literal">true</span> the <span class="hljs-keyword">performance</span> <span class="hljs-keyword">is</span> increased because OpenVPN does <span class="hljs-keyword">not</span> <span class="hljs-keyword">block</span> during the accounting <span class="hljs-keyword">procedure</span>.
# <span class="hljs-keyword">default</span> <span class="hljs-keyword">is</span> <span class="hljs-literal">false</span>
nonfatalaccounting=<span class="hljs-literal">false</span>

# <span class="hljs-keyword">Path</span> <span class="hljs-keyword">to</span> a script <span class="hljs-keyword">for</span> vendor specific <span class="hljs-keyword">attributes</span>.
# Leave it <span class="hljs-keyword">out</span> <span class="hljs-keyword">if</span> you don<span class="hljs-string">'t use an own script.
# vsascript=/root/workspace/radiusplugin_v2.0.5_beta/vsascript.pl

# Path to the pipe for communication with the vsascript.
# Leave it out if you don'</span><span class="hljs-keyword">t</span> <span class="hljs-keyword">use</span> an own script.
# vsanamedpipe=/tmp/vsapipe

# A radius <span class="hljs-keyword">server</span> definition, there could be more <span class="hljs-keyword">than</span> one.
# The <span class="hljs-keyword">priority</span> <span class="hljs-keyword">of</span> the <span class="hljs-keyword">server</span> depends <span class="hljs-keyword">on</span> the <span class="hljs-keyword">order</span> <span class="hljs-keyword">in</span> this <span class="hljs-keyword">file</span>. The <span class="hljs-keyword">first</span> one has the highest <span class="hljs-keyword">priority</span>.
<span class="hljs-keyword">server</span>
{
	# The UDP port <span class="hljs-keyword">for</span> radius accounting.
	acctport=<span class="hljs-number">1813</span>
	# The UDP port <span class="hljs-keyword">for</span> radius <span class="hljs-keyword">authentication</span>.
	authport=<span class="hljs-number">1812</span>
	# The <span class="hljs-keyword">name</span> <span class="hljs-keyword">or</span> ip address <span class="hljs-keyword">of</span> the radius <span class="hljs-keyword">server</span>.
	<span class="hljs-keyword">name</span>=172.17.0.55
	# How many times should the <span class="hljs-keyword">plugin</span> send the <span class="hljs-keyword">if</span> there <span class="hljs-keyword">is</span> <span class="hljs-keyword">no</span> response?
	retry=<span class="hljs-number">1</span>
	# How <span class="hljs-keyword">long</span> should the <span class="hljs-keyword">plugin</span> <span class="hljs-keyword">wait</span> <span class="hljs-keyword">for</span> a response?
	<span class="hljs-keyword">wait</span>=<span class="hljs-number">1</span>
	# The <span class="hljs-keyword">shared</span> secret.
	sharedsecret=mysecret
}</span></pre>
<p>&nbsp;</p>
<h4><strong>Step 04</strong> — Template OpenVPN server configuration file</h4>
<pre># vim /etc/openvpn/server.conf</pre>
<pre>port 443 
proto tcp 
dev tun 
server 10.11.0.0 255.255.255.0 
ca /etc/openvpn/easy-rsa/keys/ca.crt 
cert /etc/openvpn/easy-rsa/keys/server.crt 
key /etc/openvpn/easy-rsa/keys/server.key 
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
plugin /etc/openvpn/radius/radiusplugin.so /etc/openvpn/radius/radius.cnf ifconfig-pool-persist ipp.txt persist-key 
persist-tun 
keepalive 10 60 
reneg-sec 0 
comp-lzo 
tun-mtu 1468 
tun-mtu-extra 32 
mssfix 1400 
push "persist-key" 
push "persist-tun" 
push "redirect-gateway def1" 
push "dhcp-option DNS 8.8.8.8" 
push "dhcp-option DNS 8.8.4.4" 
status /etc/openvpn/443.log 
verb 3
client-cert-not-required</pre>
<p>&nbsp;</p>
<h4><strong>Step 05</strong> — Service start up</h4>
<pre># systemctl start openvpn@server</pre>
<h2><strong>Client Work-Station End</strong></h2>
<h4><strong>Step 06</strong> — Required Package Installation</h4>
<pre># apt-get update &amp;&amp; apt-get install -y network-manager-openvpn</pre>
<h4><strong>Step 07</strong> — Launch `nm-connection-editor` &amp; create new VPN profile</h4>
<pre># nm-connection-editor</pre>
<p>Next, Click (+) sign &amp; Select &#8220;OpenVPN&#8221; from the drop-down menu</p>
<p><img loading="lazy" class="alignnone size-full wp-image-10917" src="https://www.osradar.com/wp-content/uploads/2019/02/vpnpassword.png" alt="" width="451" height="523" srcset="https://www.osradar.com/wp-content/uploads/2019/02/vpnpassword.png 451w, https://www.osradar.com/wp-content/uploads/2019/02/vpnpassword-259x300.png 259w, https://www.osradar.com/wp-content/uploads/2019/02/vpnpassword-362x420.png 362w" sizes="(max-width: 451px) 100vw, 451px" /><br />
Check my previous <a href="https://www.osradar.com/setup-vpn-access-provisioning-server-on-top-of-ubuntu-18-04/">post</a> on getting required certificate. Also, once the new VPN profile is saved, start the launch by clicking the configured Profile name. Note that prior to VPN establishment, your credentials are being passed to OpenVPN server which in turn redirect them to freeRadius. However, actual process of credential verification is being performed at mysql database where we setup user details.</p>
<h4><em><strong>&#8220;I hope this has been informative&#8221;</strong></em></h4>
<p>The post <a rel="nofollow" href="https://www.osradar.com/openvpn-authentication-with-freeradius/">OpenVPN authentication with freeRADIUS</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/openvpn-authentication-with-freeradius/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Setup VPN access provisioning server on top of Ubuntu 18.04</title>
		<link>https://www.osradar.com/setup-vpn-access-provisioning-server-on-top-of-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/setup-vpn-access-provisioning-server-on-top-of-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Thu, 14 Feb 2019 09:19:24 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[openvpn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10692</guid>

					<description><![CDATA[<p>If you are looking for a solution that helps others to route their systems traffic via our local gateway(ISP) which acting like a proxy, then here is a free solution. This is called Virtual Private Networking (VPN) and once  users are connected, they have been assigned a private network which then ultimately enforce routing their [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/setup-vpn-access-provisioning-server-on-top-of-ubuntu-18-04/">Setup VPN access provisioning server on top of Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are looking for a solution that helps others to route their systems traffic via our local gateway(ISP) which acting like a proxy, then here is a free solution. This is called Virtual Private Networking (VPN) and once  users are connected, they have been assigned a private network which then ultimately enforce routing their local traffic via our VPN server to the actual destination. Of course, there are different use-cases people might look to achieve by deploying a VPN service and some of them are;</p>
<ul>
<li>Encrypt outgoing traffic</li>
<li>Possible of traffic routing other than your local ISP</li>
</ul>
<h3>Getting Started</h3>
<p>01. Installing the required packages</p>
<pre class=""># apt-get update &amp;&amp; apt-get install -y openvpn easy-rsa</pre>
<p>02. Creating additional directory for hosting certificate which we later introduce</p>
<pre class=""># mkdir -p /etc/openvpn/server/certs</pre>
<pre class=""># cd /etc/openvpn/server/certs</pre>
<p>03. Build a CA &amp; its Keys</p>
<pre class=""># openssl genrsa -out ca.key 2048</pre>
<pre class=""># openssl req -new -x509 -days 3650 -key ca.key -out ca.crt


Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:la 
Locality Name (eg, city) []:la
Organization Name (eg, company) [Internet Widgits Pty Ltd]:osradar
Organizational Unit Name (eg, section) []:it
Common Name (e.g. server FQDN or YOUR name) []:vpn-server.osradar.com
Email Address []:</pre>
<p>04. Lets generate our VPN service own certificates &amp; Keys</p>
<pre class="lang:sh decode:true"># openssl genrsa -out vpn.key 2048</pre>
<pre class="lang:sh decode:true"># openssl req -new -key vpn.key -out vpn.csr

Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:la
Locality Name (eg, city) []:la
Organization Name (eg, company) [Internet Widgits Pty Ltd]:osradar
Organizational Unit Name (eg, section) []:it
Common Name (e.g. server FQDN or YOUR name) []:vpn-server.osradar.com
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
</pre>
<pre class="lang:sh decode:true"># openssl x509 -req -in vpn.csr -out vpn.crt -CA ca.crt -CAkey ca.key -CAcreateserial -days 365

Signature ok
subject=C = US, ST = la, L = la, O = osradar, OU = it, CN = vpn-server.osradar.com</pre>
<pre class=""># openssl dhparam -out dh2048.pem 2048</pre>
<p>05. Configuring the Open VPN server</p>
<pre class="lang:sh decode:true"># vim /etc/openvpn/server/server.conf

port 443    
proto tcp    
dev tun    
server 10.11.0.0 255.255.255.0    
ca /etc/openvpn/server/keys/ca.crt    
cert /etc/openvpn/server/certs/vpn.crt    
key /etc/openvpn/server/certs/vpn.key    
dh /etc/openvpn/server/certs/dh2048.pem  
persist-key    
persist-tun    
keepalive 10 60    
reneg-sec 0    
comp-lzo    
tun-mtu 1468    
tun-mtu-extra 32    
mssfix 1400    
push "persist-key"    
push "persist-tun"    
push "redirect-gateway def1"    
push "dhcp-option DNS 8.8.8.8"    
push "dhcp-option DNS 8.8.4.4"    
status /etc/openvpn/443.log    
verb 3</pre>
<p>06. Starting up the service</p>
<pre class=""># systemctl start openvpn@server</pre>
<p>07. Enable IPV4 routing between interfaces</p>
<pre class=""># vim /etc/sysctl.d/60-ipv4-forward.conf

net.ipv4.ip_forward=1</pre>
<pre class=""># sysctl -p /etc/sysctl.d/60-ipv4-forward.conf</pre>
<p>08. Changing the firewall rules</p>
<pre class=""># vim /etc/ufw/before.rules

# START OPENVPN RULES
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 10.8.0.0/16 -o main_nic -j MASQUERADE
COMMIT
# END OPENVPN RULES</pre>
<p><strong>main_nic</strong> =&gt; replace this with your outgoing NIC device name</p>
<p>Allow 443/tcp which we setup our VPN service</p>
<pre class=""># ufw allow 443/tcp
# ufw disable
# ufw enable
</pre>
<p>09. Prepare user certificate. In the example below, I assume the username is bob.</p>
<pre class=""># openssl genrsa -out bob.key 2048</pre>
<pre class="lang:sh decode:true"># openssl req -new -key bob.key -out bob.csr

You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:LK
State or Province Name (full name) [Some-State]:CMB
Locality Name (eg, city) []:colombo
Organization Name (eg, company) [Internet Widgits Pty Ltd]:private
Organizational Unit Name (eg, section) []:it
Common Name (e.g. server FQDN or YOUR name) []:bob
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:</pre>
<p>&nbsp;</p>
<p>10. Sign the user certificate using the CA certificate which we generated at step 03.</p>
<pre class=""># openssl x509 -req -in bob.csr -out bob.crt -CA ca.crt -CAkey ca.key -CAcreateserial -days 365</pre>
<p><strong>bob.crt</strong> should be shared with the user in order to them to launch OpenVPN client from their work-station.</p>
<h3>Client Work-Station End.</h3>
<p>11. Open the terminal and install the the required packages and then launch &#8220;nm-connection-editor&#8221;</p>
<pre class=""># apt-get update &amp;&amp; apt-get install -y network-manager-openvpn</pre>
<pre class="">$ nm-connection-editor</pre>
<p>&nbsp;</p>
<p>12. Setting up the VPN client profile</p>
<p>Click (+) Sign and then Select the OpenVPN option under the drop-down menu</p>
<p><img loading="lazy" class="alignnone wp-image-10783 size-full" src="https://www.osradar.com/wp-content/uploads/2019/02/vpn1-e1550055358692.png" alt="" width="456" height="528" srcset="https://www.osradar.com/wp-content/uploads/2019/02/vpn1-e1550055358692.png 456w, https://www.osradar.com/wp-content/uploads/2019/02/vpn1-e1550055358692-259x300.png 259w, https://www.osradar.com/wp-content/uploads/2019/02/vpn1-e1550055358692-363x420.png 363w" sizes="(max-width: 456px) 100vw, 456px" /> <img loading="lazy" class="alignnone size-full wp-image-10784" src="https://www.osradar.com/wp-content/uploads/2019/02/vn2-e1550055316217.png" alt="" width="648" height="539" srcset="https://www.osradar.com/wp-content/uploads/2019/02/vn2-e1550055316217.png 648w, https://www.osradar.com/wp-content/uploads/2019/02/vn2-e1550055316217-300x250.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/vn2-e1550055316217-505x420.png 505w" sizes="(max-width: 648px) 100vw, 648px" /></p>
<p>&nbsp;</p>
<p>That&#8217;s it. Now you can start newly created VPN connection which then initiate a encrypted tunnel between local station to the destination VPN server. <img loading="lazy" class="alignnone size-full wp-image-10810" src="https://www.osradar.com/wp-content/uploads/2019/02/Screenshot_2019-02-14_12-46-15-e1550132000268.png" alt="" width="372" height="117" srcset="https://www.osradar.com/wp-content/uploads/2019/02/Screenshot_2019-02-14_12-46-15-e1550132000268.png 372w, https://www.osradar.com/wp-content/uploads/2019/02/Screenshot_2019-02-14_12-46-15-e1550132000268-300x94.png 300w" sizes="(max-width: 372px) 100vw, 372px" /></p>
<p>You can verify the result by looking at the IP address space</p>
<pre class=""># ip addr show</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-10814" src="https://www.osradar.com/wp-content/uploads/2019/02/ipshow.png" alt="" width="923" height="98" srcset="https://www.osradar.com/wp-content/uploads/2019/02/ipshow.png 923w, https://www.osradar.com/wp-content/uploads/2019/02/ipshow-300x32.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/ipshow-768x82.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/ipshow-696x74.png 696w" sizes="(max-width: 923px) 100vw, 923px" /></p>
<p><em><strong>&#8220;I hope this has been informative&#8221;</strong></em></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/setup-vpn-access-provisioning-server-on-top-of-ubuntu-18-04/">Setup VPN access provisioning server on top of Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/setup-vpn-access-provisioning-server-on-top-of-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VORCLE – Recovering HTTP Data from VPN Connections Made Easy</title>
		<link>https://www.osradar.com/vorcle-recovering-http-data-from-vpn-connections-made-easy/</link>
					<comments>https://www.osradar.com/vorcle-recovering-http-data-from-vpn-connections-made-easy/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Wed, 15 Aug 2018 18:08:52 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[voracle]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[vpn vulnerability]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5335</guid>

					<description><![CDATA[<p>For protection, we all heard the name of VPN, right? VPN is a service that allows accessing the internet and leaving the lowest possible footprint of yourself, ensuring your privacy. However, a new method of attack can now recover HTTP traffic that you send through a secure (encrypted) VPN connection. Of course, under certain conditions, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/vorcle-recovering-http-data-from-vpn-connections-made-easy/">VORCLE – Recovering HTTP Data from VPN Connections Made Easy</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>For protection, we all heard the name of VPN, right? VPN is a service that allows accessing the internet and leaving the lowest possible footprint of yourself, ensuring your privacy. However, a new method of attack can now recover HTTP traffic that you send through a secure (encrypted) VPN connection. Of course, under certain conditions, not in all cases!</p>
<p>The name of the attack is quite charming – VORACLE. The attack was discovered by security researcher Ahamed Nafeez. The finding about the attack was presented at the Black Hat and DEF CON security conferences.</p>
<h1>What is VORACLE?</h1>
<p><img loading="lazy" class=" wp-image-5340 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/vpn-attack-voracle.png" alt="" width="686" height="305" srcset="https://www.osradar.com/wp-content/uploads/2018/08/vpn-attack-voracle.png 607w, https://www.osradar.com/wp-content/uploads/2018/08/vpn-attack-voracle-300x133.png 300w" sizes="(max-width: 686px) 100vw, 686px" /></p>
<p>To be honest, VORACLE isn’t a brand new attack method. Instead, it’s a combo and variation of some already-existing older cryptographic attacks like BREACH, TIME and CRIME.</p>
<p>In the previous attacks, researchers discovered that data was recoverable from TLS-encrypted connections if the compression of data happened before encrypting. Fixes for those attacks were out in 2012 and 2013 and since then, HTTP connection was safe.</p>
<p>What Nafeez discovered that the theoretical points of those attacks are still valid in the case of some VPN traffic types. He pointed out that the VPN clients/services that compress the HTTP web traffic before the encryption as a part of the connection are still vulnerable to those older attacks.</p>
<h1>VORACLE can decrypt HTTP traffic sent via VPNs</h1>
<p><img loading="lazy" class=" wp-image-5339 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/decrypt-traffic.jpg" alt="" width="693" height="337" srcset="https://www.osradar.com/wp-content/uploads/2018/08/decrypt-traffic.jpg 650w, https://www.osradar.com/wp-content/uploads/2018/08/decrypt-traffic-300x146.jpg 300w" sizes="(max-width: 693px) 100vw, 693px" /></p>
<p>According to Nafeez, VORACLE still allows an attacker to decrypt the original content of the HTTP traffic that’s going through the VPN connection. He explains that the aim of this attack is to leak secrets like cookies, page with sensitive info etc.</p>
<p>Nafeez also pointed out that VORACLE only works against the VPN services/clients that use the OpenVPN protocol as their core. OpenVPN is open-source and uses a default setting – compressing all the data before encryption via TLS and later, sending it via the VPN tunnel. Thus, it satisfies the conditions of the old attacks – BREACH, TIME and CRIME.</p>
<h1>VORACLE is preventable</h1>
<p><img loading="lazy" class=" wp-image-5338 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/prevent-voracle.jpg" alt="" width="698" height="393" srcset="https://www.osradar.com/wp-content/uploads/2018/08/prevent-voracle.jpg 670w, https://www.osradar.com/wp-content/uploads/2018/08/prevent-voracle-300x169.jpg 300w" sizes="(max-width: 698px) 100vw, 698px" /></p>
<p>Despite VORACLE is so dangerous, it is still preventable in a very simple way. For example, some VPN services/clients allow modifying this setting to switch to a non-OpenVPN protocol.</p>
<p>Second, when surfing the net, users can decide not to surf websites that only offer HTTP. Thus, by only browsing the HTTPS sites, even if the attacker gets their hand on the traffic, it won’t be understandable to them.</p>
<p>Third, the attack doesn’t seem to be working in the case of Chromium-based browsers that split the HTTP requests in multiple parts like header and body. It means that even if you access HTTP sites using Chrome and other Chrome-based browsers, you won’t be susceptible to VORACLE.</p>
<p>TunnelBear removed the compression support for its OpenVPN-based servers. Private Internet Access also confirmed that they disabled the pre-compression back in 2014.</p>
<p>Stay safe on the internet!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/vorcle-recovering-http-data-from-vpn-connections-made-easy/">VORCLE – Recovering HTTP Data from VPN Connections Made Easy</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/vorcle-recovering-http-data-from-vpn-connections-made-easy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
