<?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 Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/vpn/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/vpn/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Fri, 28 Mar 2025 00:30:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>VPN Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/vpn/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Configuring OpenVPN for Secure Remote Access on ServerStadium Dedicated Servers</title>
		<link>https://serverstadium.com/knowledge-base/configuring-openvpn-secure-remote-access-dedicated-servers/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 00:30:29 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=12155</guid>

					<description><![CDATA[<p>Introduction This guide details how to configure OpenVPN for secure remote access on a ServerStadium dedicated server. OpenVPN is a robust and flexible VPN solution that provides encrypted connections for secure communication. Leveraging ServerStadium’s high-performance infrastructure, you can deploy a secure VPN environment to enable safe remote access to your network. Prerequisites Before you begin,&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-openvpn-secure-remote-access-dedicated-servers/">Configuring OpenVPN for Secure Remote Access on ServerStadium Dedicated Servers</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">This guide details how to configure OpenVPN for secure remote access on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a>. OpenVPN is a robust and flexible VPN solution that provides encrypted connections for secure communication. Leveraging ServerStadium’s high-performance infrastructure, you can deploy a secure VPN environment to enable safe remote access to your network.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<p class="wp-block-paragraph">Before you begin, ensure you have the following:</p>



<ul class="wp-block-list">
  
  <li>A <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> running Ubuntu (or a similar Linux distribution).</li>
  
  
  <li>Basic command line knowledge and sudo privileges.</li>
  
  
  <li>Familiarity with network configuration and VPN concepts.</li>
  
</ul>



<h2 class="wp-block-heading">Deployment Steps</h2>



<h3 class="wp-block-heading">1. Update Your System</h3>



<p class="wp-block-paragraph">Begin by updating your system packages to ensure you have the latest security patches:</p>


<pre><code>sudo apt-get update && sudo apt-get upgrade -y</code></pre>


<h3 class="wp-block-heading">2. Install OpenVPN</h3>



<p class="wp-block-paragraph">Install OpenVPN and Easy-RSA using the package manager:</p>


<pre><code>sudo apt-get install openvpn easy-rsa -y</code></pre>


<h3 class="wp-block-heading">3. Configure the CA and Generate Certificates</h3>



<p class="wp-block-paragraph">Create a directory for Easy-RSA and set up the Public Key Infrastructure (PKI):</p>


<pre><code>make-cadir ~/openvpn-ca
cd ~/openvpn-ca
./easyrsa init-pki
./easyrsa build-ca nopass</code></pre>


<p class="wp-block-paragraph">Generate the server certificate and key, then generate Diffie-Hellman parameters:</p>


<pre><code>./easyrsa gen-req server nopass
./easyrsa sign-req server server
./easyrsa gen-dh</code></pre>


<h3 class="wp-block-heading">4. Configure the OpenVPN Server</h3>



<p class="wp-block-paragraph">Copy the sample configuration file to the OpenVPN directory:</p>


<pre><code>sudo cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/
cd /etc/openvpn
sudo gunzip server.conf.gz</code></pre>


<p class="wp-block-paragraph">Edit the <code>server.conf</code> file to match your requirements. For example, set the certificate and key file paths:</p>


<pre><code>sudo nano /etc/openvpn/server.conf</code></pre>


<p class="wp-block-paragraph">Ensure the following lines are updated with your file paths:</p>


<pre><code>ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh.pem</code></pre>


<p class="wp-block-paragraph">Copy your generated certificates and keys from the <code>~/openvpn-ca/pki</code> directory to <code>/etc/openvpn/</code>:</p>


<pre><code>sudo cp ~/openvpn-ca/pki/ca.crt /etc/openvpn/
sudo cp ~/openvpn-ca/pki/issued/server.crt /etc/openvpn/
sudo cp ~/openvpn-ca/pki/private/server.key /etc/openvpn/
sudo cp ~/openvpn-ca/pki/dh.pem /etc/openvpn/</code></pre>


<h3 class="wp-block-heading">5. Adjust Firewall and Enable IP Forwarding</h3>



<p class="wp-block-paragraph">Edit the sysctl configuration to enable IP forwarding:</p>


<pre><code>sudo nano /etc/sysctl.conf</code></pre>


<p class="wp-block-paragraph">Uncomment or add the following line:</p>


<pre><code>net.ipv4.ip_forward=1</code></pre>


<p class="wp-block-paragraph">Apply the changes:</p>


<pre><code>sudo sysctl -p</code></pre>


<p class="wp-block-paragraph">Adjust your firewall (UFW example) to allow OpenVPN traffic:</p>


<pre><code>sudo ufw allow 1194/udp</code></pre>


<h3 class="wp-block-heading">6. Start the OpenVPN Service</h3>



<p class="wp-block-paragraph">Start the OpenVPN server and enable it to run on boot:</p>


<pre><code>sudo systemctl start openvpn@server
sudo systemctl enable openvpn@server</code></pre>


<h2 class="wp-block-heading">Post-Deployment Configuration</h2>



<p class="wp-block-paragraph">After configuring OpenVPN, consider these enhancements:</p>


<ul class="wp-block-list">
  
  <li>Set up client configuration files to securely connect to your VPN.</li>
  
  
  <li>Implement additional firewall rules to restrict access.</li>
  
  
  <li>Monitor VPN logs to track connections and detect potential issues.</li>
  
</ul>
<!-- /wp:post-content -->

<!-- wp:paragraph {"className":""} -->
<p>Hosting your OpenVPN service on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> ensures a secure and high-performance environment for remote access, providing peace of mind for your organization.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"className":""} -->
<h2 class="wp-block-heading">Troubleshooting</h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"className":""} -->
<p>If you encounter issues during installation or operation:</p>
<!-- /wp:paragraph -->

<ul class="wp-block-list">
  <!-- wp:list-item -->
  <li>Ensure all prerequisites are installed and your system is updated.</li>
  <!-- /wp:list-item -->
  <!-- wp:list-item -->
  <li>Review the OpenVPN log files located in <code>/var/log/openvpn/</code> for error messages.</li>
  <!-- /wp:list-item -->
  <!-- wp:list-item -->
  <li>Verify that your firewall and IP forwarding settings are correct.</li>
  <!-- /wp:list-item -->
  <!-- wp:list-item -->
  <li>Consult the OpenVPN documentation and our guides in the <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium Knowledge Base</a> for further assistance.</li>
  <!-- /wp:list-item -->
</ul>
<!-- /wp:list -->

<!-- wp:heading {"className":""} -->
<h2 class="wp-block-heading">Conclusion</h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"className":""} -->
<p>Configuring OpenVPN for secure remote access on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> provides a reliable, secure solution for remote connectivity. By following this guide, you can establish a VPN that protects your network and ensures encrypted communication for all remote users. For more help or information about ServerStadium services, visit our <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">knowledge base</a> or the <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium website</a>.</p>
<!-- /wp:paragraph -->
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-openvpn-secure-remote-access-dedicated-servers/">Configuring OpenVPN for Secure Remote Access on ServerStadium Dedicated Servers</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Up a L2TP/IPSec VPN on ServerStadium for Secure VPC Access</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-l2tp-ipsec-vpn-serverstadium-vpc-access/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 26 May 2023 04:16:36 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11679</guid>

					<description><![CDATA[<p>Virtual Private Networks (VPNs) are essential for ensuring privacy and security in today&#8217;s digital world. This tutorial will guide you through setting up an L2TP/IPSec VPN on a Windows machine, providing secure access to your ServerStadium Virtual Private Cloud (VPC), which houses your cloud instances. For more tutorials and guides, make sure to visit our&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-l2tp-ipsec-vpn-serverstadium-vpc-access/">Setting Up a L2TP/IPSec VPN on ServerStadium for Secure VPC Access</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Virtual Private Networks (VPNs) are essential for ensuring privacy and security in today&#8217;s digital world. This tutorial will guide you through setting up an L2TP/IPSec VPN on a Windows machine, providing secure access to your ServerStadium Virtual Private Cloud (VPC), which houses your cloud instances.</p>
<p>For more tutorials and guides, make sure to visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a>.</p>
<h2>Step 1: Register Your Account</h2>
<p>If you haven&#8217;t already, you&#8217;ll need to create an account on our <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">Registration Page</a>. Once registered, you&#8217;ll have access to your personal <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Dashboard</a>.</p>
<h2>Step 2: Add Your Cloud Instance</h2>
<p>From your <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Dashboard</a>, click the &#8216;Add VM&#8217; button. Choose a cloud instance that suits your needs and budget. For more detailed information about our offerings, you can visit our <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">Pricing Page</a>.</p>
<h2>Step 3: Access VPN Details</h2>
<p>In your ServerStadium Cloud Dashboard, navigate to the VPN section to access your VPN user credentials and pre-shared key. Please keep this information handy, as you&#8217;ll need it in the next step.</p>
<h2>Step 4: Set Up L2TP/IPSec VPN on Windows</h2>
<ol>
<li>Click on the Windows Start button and select &#8216;Settings&#8217;.</li>
<li>Click &#8216;Network &amp; Internet&#8217;, then &#8216;VPN&#8217;.</li>
<li>Click &#8216;Add a VPN connection&#8217;.</li>
<li>In the &#8216;VPN provider&#8217; dropdown, select &#8216;Windows (built-in)&#8217;.</li>
<li>In the &#8216;Connection name&#8217; field, enter a name for this VPN connection.</li>
<li>In the &#8216;Server name or address&#8217; field, enter the IP address of your ServerStadium VPC.</li>
<li>Select &#8216;L2TP/IPsec with pre-shared key&#8217; in the&#8217; VPN type&#8217; dropdown.</li>
<li>In the &#8216;Pre-shared key&#8217; field, enter your pre-shared key.</li>
<li>Enter your VPN user credentials.</li>
<li>Click &#8216;Save&#8217; to finish the setup process.</li>
</ol>
<h2>Step 5: Enable MS-CHAP v2</h2>
<p>For your VPN connection to work properly, you&#8217;ll need to enable MS-CHAP v2 in the adapter settings:</p>
<ol>
<li>Open &#8216;Network and Sharing Center&#8217; and click on &#8216;Change adapter settings&#8217;.</li>
<li>Right-click on your VPN connection and select &#8216;Properties&#8217;.</li>
<li>Navigate to the &#8216;Security&#8217; tab.</li>
<li>In the &#8216;Authentication&#8217; section, ensure &#8216;Allow these protocols&#8217; is checked, then check &#8216;Microsoft CHAP Version 2 (MS-CHAP v2)&#8217;.</li>
</ol>
<h2>Step 6: Connect to Your VPN</h2>
<p>Now, you can connect to your newly set up VPN connection. Open the Network and Sharing Center, select your VPN connection, and click &#8216;Connect&#8217;.</p>
<h2>Conclusion</h2>
<p>Congratulations! You&#8217;ve successfully set up an L2TP/IPSec VPN on your Windows machine, providing secure access to your ServerStadium VPC.</p>
<p>Visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> for more tutorials and guides.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-l2tp-ipsec-vpn-serverstadium-vpc-access/">Setting Up a L2TP/IPSec VPN on ServerStadium for Secure VPC Access</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Create your own VPN server with DNS-Level AdBlocker using PiVPN &#038; PiHole in ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/create-your-own-vpn-server-with-dns-level-adblocker-using-pivpn-pihole-in-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Mon, 29 Nov 2021 09:10:19 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=1668</guid>

					<description><![CDATA[<p>When you have a private cloud or public cloud infrastructure, you won&#8217;t need public IP on every server or service you have. It is unnecessary and costly to have many public IPs assigned to your infrastructure. However, you will also need a way to access and manage your cloud servers securely. This is where VPN&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/create-your-own-vpn-server-with-dns-level-adblocker-using-pivpn-pihole-in-serverstadium/">Create your own VPN server with DNS-Level AdBlocker using PiVPN &amp; PiHole in ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When you have a private cloud or public cloud infrastructure, you won&#8217;t need public IP on every server or service you have. It is unnecessary and costly to have many public IPs assigned to your infrastructure. However, you will also need a way to access and manage your cloud servers <strong>securely</strong>. This is where VPN comes in</p>



<p class="wp-block-paragraph">VPN or <strong>Virtual Private Network</strong> is a way to connect to your infrastructure securely. With many ways to set it up, from a complicated custom one that attaches to your physical firewall, to a simple VPN application deployed on your Virtual machine.</p>



<p class="wp-block-paragraph">In ServerStadium, you can actually deploy VPN easily. You need to go to the Dashboard and follow this tutorial to set up your own VPN connection to ServerStadium Cloud</p>



<p class="wp-block-paragraph"><a href="https://serverstadium.com/knowledge-base/establishing-a-vpn-in-Server-Stadium/">Establishing a VPN in ServerStadium</a></p>



<h2 class="wp-block-heading">So What&#8217;s the Deal?</h2>



<p class="wp-block-paragraph">However, ServerStadium VPN has virtually supported Windows and Linux clients due to its nature.</p>



<p class="wp-block-paragraph">This is due to its setup, a client that wants to connect to ServerStadium VPN needs to be set with MS-CHAPv2, which newer MacOS clients do not support.</p>



<p class="wp-block-paragraph">If you having trouble connecting to ServerStadium VPN <strong>or</strong> in need of a more advanced function of VPN setup, this tutorial is good for you.</p>



<p class="wp-block-paragraph">In this tutorial, you will set up a VPN virtual machine, which includes a DNS-Level Adblocker. So, clients that connect to this VPN will also get an ad-free browsing benefit.</p>



<h2 class="wp-block-heading">Preparing the Virtual Machine</h2>



<p class="wp-block-paragraph">To deploy in ServerStadium, you will need a <strong>x-small Ubuntu 20.04 </strong>package and deploy the virtual machine.</p>



<p class="wp-block-paragraph">For further details on creating a new VM, you can refer to this article: <a href="https://serverstadium.com/knowledge-base/deploying-a-virtual-machine-in-Server-Stadium/">Deploying a Virtual Machine in ServerStadium &#8211; KB</a></p>



<p class="wp-block-paragraph">You will also need to open the following port and protocol on ServerStadium Security Profile:</p>



<ul class="wp-block-list">
<li>Port 51820/tcp</li>
<li>Port 51820/udp</li>
<li>Port 51821/tcp</li>
<li>Port 80/tcp</li>
</ul>



<p class="wp-block-paragraph">You can refer to this article on how to add rules to ServerStadium Security Profile: <a href="https://serverstadium.com/knowledge-base/create-vm-custom-package-reinstall-vm-and-adjusting-security-profile/">Create VM, Custom Package, Reinstall VM, and Adjusting Security Profile &#8211; ServerStadium KB</a></p>



<h2 class="wp-block-heading">PiHole DNS Server Installation</h2>



<p class="wp-block-paragraph">PiHole is a DNS server that includes an Adblocker as its feature. Thus, when you connect to this DNS server, PiHole will process your query and will decide whether the domain name is blocked or allowed to access.</p>



<p class="wp-block-paragraph">We will not make this VM DNS Server public since it will create whole another great mess, so we will only allow the DNS server to be served to any client connected to the VPN.</p>



<p class="wp-block-paragraph">To install PiHole, run this command under root user:</p>



<pre class="wp-block-code"><code>curl -sSL https://install.pi-hole.net | bash</code></pre>



<p class="wp-block-paragraph">Upon installation, you will get this message</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-448" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">Click Yes, since the VM is already having proper Public and Private static IP.</p>



<p class="wp-block-paragraph">On the next page, you must select the upstream public DNS server that this VM will connect to. You can select <strong>Google (ECS, DNSSEC) </strong>or <strong>Cloudflare (DNSSEC)</strong> for the most stable upstream.</p>



<p class="wp-block-paragraph">Then, click on yes if you are asked to &#8220;<strong>install web admin interface&#8221;</strong>. So you can easily manage the PiHole. Also, click on <strong>ON</strong> to &#8220;<strong>install lighttpd&#8221; </strong></p>



<p class="wp-block-paragraph">After that, click on yes until installation starts.</p>



<p class="wp-block-paragraph">At the end of the installation, you will get useful installation information such as below:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-449" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-1.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">Change the password to make the web interface more secure.</p>



<p class="wp-block-paragraph">That&#8217;s it for the PiHole installation; we are now halfway to setup our VPN Server. Continue with the PiVPN installation</p>



<h2 class="wp-block-heading">PiVPN Installation</h2>



<p class="wp-block-paragraph">PiVPN is a simple setup VPN application that uses WireGuard or OpenVPN as its backend. WireGuard or OpenVPN is a robust and reliable VPN protocol that is used worldwide.</p>



<p class="wp-block-paragraph">To deploy PiVPN, run this command as root user</p>



<pre class="wp-block-code"><code>curl -L https://install.pivpn.io | bash</code></pre>



<p class="wp-block-paragraph">This command will automatically start the PiVPN installation.</p>



<p class="wp-block-paragraph">On installation progress, you will be asked a few questions</p>



<p class="wp-block-paragraph">First, you will be asked a non-root user that will hold a VPN configuration. If you have no users, the installer will create them for you</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-450" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-2.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">After you create a new non-root user, you will be asked whether you will use WireGuard or OpenVPN.</p>



<p class="wp-block-paragraph">You should use WireGuard since it has a simpler client experience on Windows, Ubuntu and macOS, even on Android.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-452" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-3.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">When asked what port you should use, use the default port (51820). This is the port that we opened on ServerStadium Security Profile earlier.</p>



<p class="wp-block-paragraph">After that, you will be asked by the installer to use PiHole as its DNS; click on <strong>Yes</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-453" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-4.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">Since this server only has a Public IP, select the IP when asked the below question. Also, it is recommended to select IP for a more stable experience.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-454" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-5.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">When the below information is shown, that means the installation has succeeded.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-456" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-7.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">You can now use the VPN server and add users using the <strong>Terminal</strong>.</p>



<p class="wp-block-paragraph">However, why stop there? We also can set up PiVPN dashboard, so we can easily add or remove VPN users.</p>



<h2 class="wp-block-heading">Install PiVPN Dashboard</h2>



<p class="wp-block-paragraph">To install PiVPN-Web Dashboard, we will need to install docker on our VPN server.</p>



<p class="wp-block-paragraph">This container is not taking high resources and is easily deployable and manageable.</p>



<p class="wp-block-paragraph">To set up Docker, run the below command:</p>



<pre class="wp-block-code"><code># Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

# Add user 'pi' to group 'docker'
sudo usermod -aG docker pivpn</code></pre>



<p class="wp-block-paragraph">After docker is installed successfully, run this command to install PiVPN-Web</p>



<pre class="wp-block-code"><code>docker run -d -p 51821:51821 --name pivpn-web --restart=unless-stopped weejewel/pivpn-web</code></pre>



<p class="wp-block-paragraph">That&#8217;s it; now your VPN Server is up and running. Now we will continue to set up a new user and client on Ubuntu, Windows, and macOS</p>



<h2 class="wp-block-heading">Modify User on PiVPN-Web Dashboard</h2>



<p class="wp-block-paragraph">First, navigate to this address on your web browser:</p>



<pre class="wp-block-code"><code>http://&lt;your public ip&gt;:51821/</code></pre>



<p class="wp-block-paragraph">Then, log in to your root user account.</p>



<p class="wp-block-paragraph">After authenticated, you will be greeted with this screen</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" class="wp-image-458" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-8-1024x243.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">Click on <strong>New Client</strong> and type a new name for this VPN client.</p>



<p class="wp-block-paragraph">After you create a new client, you will have your new user with an option on the right side</p>



<figure class="wp-block-image size-large"><img decoding="async" class="wp-image-459" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-9-1024x185.png" alt="" /></figure>



<p class="wp-block-paragraph">The option from the rightmost side is:</p>



<ul class="wp-block-list">
<li>Delete Profile (Trash bin icon): Delete this profile</li>
<li>Download configuration: Download configuration to add them to the VPN client</li>
<li>Show QR Code: If you connect to a mobile device, you can easily add the configuration by taking the QR Code of the configuration.</li>
<li>Profile Enable Toggle : Enable or Disable account without deleting the profile.</li>
</ul>



<p class="wp-block-paragraph">Now, we will set the VPN client so they able to connect to the VPN server</p>



<h2 class="wp-block-heading">Configure VPN Client on Windows</h2>



<p class="wp-block-paragraph">To be able to connect with the VPN server, you need to download <strong>WireGuard</strong> application.</p>



<p class="wp-block-paragraph">In Windows, there is an application called <strong>WireGuard for Windows</strong> you can download the application on the link below:</p>



<p class="wp-block-paragraph"><a href="https://download.wireguard.com/windows-client/wireguard-installer.exe">Download Windows Installer (wireguard.com)</a></p>



<p class="wp-block-paragraph">Open the Installer and complete the installation. After that, open the application.</p>



<p class="wp-block-paragraph">First, download the configuration on PiVPN Web. Then click on <strong>Add Tunnel</strong>. Navigate to your file and download.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-462" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-10.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">Then click on <strong>Activate.</strong></p>



<h2 class="wp-block-heading">Configure VPN Client on Ubuntu</h2>



<p class="wp-block-paragraph">Since there is no GUI Client on Ubuntu, we need to add features into <strong>Ubuntu Network Manager</strong>. This method is confirmed to work on Ubuntu 20.04</p>



<p class="wp-block-paragraph">First, you need to run this command to install the to build the features</p>



<pre class="wp-block-code"><code>sudo apt install wireguard git dh-autoreconf libglib2.0-dev intltool build-essential libgtk-3-dev libnma-dev libsecret-1-dev network-manager-dev resolvconf</code></pre>



<p class="wp-block-paragraph">After the installation for the above package is completed, run the below command to compile and add a feature in <strong>Ubuntu Network Manager</strong></p>



<pre class="wp-block-code"><code>git clone https://github.com/max-moser/network-manager-wireguard
cd network-manager-wireguard
./autogen.sh --without-libnm-glib

./configure --without-libnm-glib --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/NetworkManager --localstatedir=/var

make   
sudo make install</code></pre>



<p class="wp-block-paragraph">If the installation is successful, when you open Ubuntu Network Manager, and click on add VPN you will see <strong>WireGuard</strong> and <strong>Import from file</strong> this means that you are ready to add Wireguard profile</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-463" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-11.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">Select <strong>Import from file</strong> then adds your profile.</p>



<p class="wp-block-paragraph">After that, you are able to connect to your VPN server correctly.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-464" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-12.png" alt="" /></figure>
</div>


<h2 class="wp-block-heading">Configure VPN Client on MacOS</h2>



<p class="wp-block-paragraph">There is also a WireGuard Client on Mac AppStore. You can download it here.</p>



<p class="wp-block-paragraph"><a href="https://apps.apple.com/us/app/wireguard/id1451685025?mt=12">‎WireGuard on the Mac App Store (apple.com)</a></p>



<p class="wp-block-paragraph">After you successfully install it from Mac App Store, open the application. Then click on the + icon on the bottom-left of the window and click on <strong>Import Tunnel(s) from File</strong>. Then select the configuration file</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-470" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-16.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">After it has been successfully added, click on Activate.</p>



<p class="wp-block-paragraph">You are now able to connect to your VPN Server</p>



<h2 class="wp-block-heading">Configure VPN Client on Android</h2>



<p class="wp-block-paragraph">There is an available GUI client on Android. Open <strong>Play Store </strong>and download <strong>Wireguard</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-465" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-13.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">After that, open the Wireguard application and click on the Blue (+) button</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" class="wp-image-466" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-14.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">You can pick a way to add the profile. <strong>Import from file or archive </strong>is the same way as the other OSes, you can use the configuration file. Or you can scan from QR code.</p>



<p class="wp-block-paragraph">To get the QR code for your profile, navigate to PiVPN-Web Dashboard and click on the Show QR Code on the right side of the profile</p>



<p class="wp-block-paragraph">&nbsp;</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" class="wp-image-467" src="https://erry.darajati.my.id/wp-content/uploads/2021/11/image-15-1024x64.png" alt="" /></figure>
</div>


<p class="wp-block-paragraph">After that, a QR Code will appear, scan it using your Android phone.</p>



<p class="wp-block-paragraph">Just like that, the profile will appear on your application. Now you can connect to your VPN server using android</p>



<h2 class="wp-block-heading">Closing</h2>



<p class="wp-block-paragraph">Wireguard is a lightweight and robust VPN server application that also have a multiplatform client. It can be deployed easily using PiVPN script and managed using PiVPN-Web. It also can be equipped with PiHole, a DNS Level Adblocker. Using those tools, you can create a VPN server fast, easy and secure.</p>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph"><em>Reference:</em><br /><a href="https://pi-hole.net/">Pi-hole – Network-wide protection</a><br /><a href="https://github.com/WeeJeWel/pivpn-web">GitHub &#8211; WeeJeWel/pivpn-web: 🚀 Web UI for PiVPN</a><br /><a href="https://www.pivpn.io/">PIVPN: Simplest way to setup a VPN</a></p>
<p>The post <a href="https://serverstadium.com/knowledge-base/create-your-own-vpn-server-with-dns-level-adblocker-using-pivpn-pihole-in-serverstadium/">Create your own VPN server with DNS-Level AdBlocker using PiVPN &amp; PiHole in ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Establishing a VPN in ServerStadium Cloud</title>
		<link>https://serverstadium.com/knowledge-base/establishing-a-vpn-in-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 15 Sep 2020 07:15:41 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=253</guid>

					<description><![CDATA[<p>Imagine you are in a public area, and you need to access your server in ServerStadium Cloud. You want to secure the connection between you and the server for safety and privacy. You can use a VPN to access your server in ServerStadium Cloud as a solution. Establishing a VPN in ServerStadium Cloud is easy&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/establishing-a-vpn-in-serverstadium/">Establishing a VPN in ServerStadium Cloud</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Imagine you are in a public area, and you need to access your server in ServerStadium Cloud. You want to secure the connection between you and the server for safety and privacy. You can use a VPN to access your server in ServerStadium Cloud as a solution.</p>



<p class="wp-block-paragraph"><br />Establishing a VPN in ServerStadium Cloud is easy because you only need three steps to create a VPN in ServerStadium Cloud<br />There are many benefits when you use Cloud VPN in ServerStadium, such as:</p>



<ul class="wp-block-list">
<li>Your traffic will be encrypted when using Public Wifi</li>
<li>No needed IT skills when you create a VPN in ServerStadium because we will do it for you.</li>
<li>Also, No software installs and maintenance. You just need to enable the VPN feature and create a VPN user</li>
</ul>



<p class="wp-block-paragraph">Below are the three steps to establish a VPN in ServerStadium Cloud:</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 1:</strong></h2>



<p class="wp-block-paragraph">You can login into the control panel at <a href="https://cp.serverstadium.com">https://cp.serverstadium.com</a>. On the left of the dashboard, click “Network”  then Choose “VPN”</p>



<figure class="wp-block-image size-large"><img decoding="async" width="136" height="334" class="wp-image-254" src="https://serverstadium.com/wp-content/uploads/2020/09/image-5.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-5.png 136w, https://serverstadium.com/wp-content/uploads/2020/09/image-5-122x300.png 122w" sizes="(max-width: 136px) 100vw, 136px" /></figure>



<p class="wp-block-paragraph">After you choose “<strong>VPN</strong>”, the main page will be displayed a VPN configuration:</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 2:</strong></h2>



<p class="wp-block-paragraph">Your VPN Location is located at Jakarta. Click the “<strong>Offline</strong>” red button to be “<strong>Online</strong>” green button.<br />After the VPN is “Online”, it will be displayed the <strong>VPN Public IP</strong> and <strong>Pres share key</strong>.<br />Please keep it on your note because you  will use it when you want to connect to VPN</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="427" height="379" class="wp-image-260" src="https://serverstadium.com/wp-content/uploads/2020/09/image-10.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-10.png 427w, https://serverstadium.com/wp-content/uploads/2020/09/image-10-300x266.png 300w" sizes="(max-width: 427px) 100vw, 427px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="479" height="395" class="wp-image-261" src="https://serverstadium.com/wp-content/uploads/2020/09/image-11.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-11.png 479w, https://serverstadium.com/wp-content/uploads/2020/09/image-11-300x247.png 300w" sizes="(max-width: 479px) 100vw, 479px" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 3:</strong></h2>



<p class="wp-block-paragraph">Now your VPN is Ready; the last step is to create a VPN user.<br />You can click “<strong>Add VPN User</strong>” , fill your Username and Password of your VPN User</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="544" height="113" class="wp-image-263" src="https://serverstadium.com/wp-content/uploads/2020/09/image-13.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-13.png 544w, https://serverstadium.com/wp-content/uploads/2020/09/image-13-300x62.png 300w" sizes="(max-width: 544px) 100vw, 544px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="287" height="243" class="wp-image-264" src="https://serverstadium.com/wp-content/uploads/2020/09/image-14.png" alt="" /></figure>



<p class="wp-block-paragraph">Click &#8220;<strong>Add User</strong>&#8221; then your VPN user will be listed as follow</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="558" height="215" class="wp-image-265" src="https://serverstadium.com/wp-content/uploads/2020/09/image-15.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-15.png 558w, https://serverstadium.com/wp-content/uploads/2020/09/image-15-300x116.png 300w" sizes="(max-width: 558px) 100vw, 558px" /></figure>



<p class="wp-block-paragraph">It’s easy, right? Now that your VPN is ready, we will show you how to connect the VPN using Windows 10.</p>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph">&nbsp;</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Connect to ServerStadium Cloud VPN from Windows 10</strong></h2>



<p class="wp-block-paragraph">Please make sure you have saved VPN Public IP and Pre-shared Key.<br />Because we need it when creating a VPN Profile on your personal computer</p>



<p class="wp-block-paragraph">Below is steps that you can follow:</p>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 1:</strong></h3>



<p class="wp-block-paragraph">Select &#8220;<strong>Start</strong>&#8221; button, then select “<strong>Setting</strong>”, and choose “<strong>VPN</strong>” because we want to create a VPN profile as “<strong>ServerStadium VPN</strong>” on your PC.<br />After that, “<strong>Add a VPN connection</strong>” and fill in the required fields as follow :</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="399" height="318" class="wp-image-267" src="https://serverstadium.com/wp-content/uploads/2020/09/image-16.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-16.png 399w, https://serverstadium.com/wp-content/uploads/2020/09/image-16-300x239.png 300w" sizes="(max-width: 399px) 100vw, 399px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="405" height="323" class="wp-image-268" src="https://serverstadium.com/wp-content/uploads/2020/09/image-17.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-17.png 405w, https://serverstadium.com/wp-content/uploads/2020/09/image-17-300x239.png 300w" sizes="(max-width: 405px) 100vw, 405px" /></figure>



<p class="wp-block-paragraph">Click <strong>Save</strong><br />After the VPN profile is created, you will get an error as follows when trying to connect to ServerStadium VPN.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="294" height="238" class="wp-image-269" src="https://serverstadium.com/wp-content/uploads/2020/09/image-18.png" alt="" /></figure>



<p class="wp-block-paragraph">To resolve this error message, you need to enable MS-Chap v2 on your VPN Profile. We will resolve it in Step 2.</p>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 2:</strong></h3>



<p class="wp-block-paragraph">To enable MS-Chap v2, Select &#8220;<strong>Control Panel&#8221; </strong>then click &#8220;<strong>Network and Sharing Center</strong>&#8220;. Click &#8220;<strong>Change Adapter Settings</strong>&#8220;</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="201" height="212" class="wp-image-271" src="https://serverstadium.com/wp-content/uploads/2020/09/image-20.png" alt="" /></figure>



<p class="wp-block-paragraph">Right click the VPN Profile, then choose Properties</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="409" height="251" class="wp-image-273" src="https://serverstadium.com/wp-content/uploads/2020/09/image-22.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-22.png 409w, https://serverstadium.com/wp-content/uploads/2020/09/image-22-300x184.png 300w" sizes="(max-width: 409px) 100vw, 409px" /></figure>



<p class="wp-block-paragraph">ServerStadium VPN properties will be displayed. Click “<strong>Security</strong>” tab to enable MS-CHAP v2<br />Tick “<strong>Allow these protocols</strong>” and “<strong>Microsoft Champ version 2</strong>” then Click OK</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="279" height="366" class="wp-image-274" src="https://serverstadium.com/wp-content/uploads/2020/09/image-23.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-23.png 279w, https://serverstadium.com/wp-content/uploads/2020/09/image-23-229x300.png 229w" sizes="(max-width: 279px) 100vw, 279px" /></figure>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 3:</strong></h3>



<p class="wp-block-paragraph">After you enable MS-Chap V2, you are ready to connect the VPN again.<br />Click <strong>&#8220;Setting&#8221; </strong>– <strong>VPN </strong>then Click “<strong>Connect</strong>” on ServerStadium VPN.<br />Please wait for a while until the VPN Profile “<strong>Connected</strong>”</p>


<div class="wp-block-image">
<figure class="alignleft size-large is-resized"><img loading="lazy" decoding="async" class="wp-image-277" src="https://serverstadium.com/wp-content/uploads/2020/09/image-26.png" alt="" width="444" height="183" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-26.png 456w, https://serverstadium.com/wp-content/uploads/2020/09/image-26-300x124.png 300w" sizes="(max-width: 444px) 100vw, 444px" /></figure>
</div>


<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="477" height="235" class="wp-image-279" src="https://serverstadium.com/wp-content/uploads/2020/09/image-28.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-28.png 477w, https://serverstadium.com/wp-content/uploads/2020/09/image-28-300x148.png 300w" sizes="(max-width: 477px) 100vw, 477px" /></figure>



<p class="wp-block-paragraph">Viola, now you are connected to VPN in ServerStadium Cloud.<br />You can access your VM in ServerStadium using their Internal IP Address.<br />If you have an issue when connecting to the VPN, please submit your issue to our support. We will be happy to assist you.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/establishing-a-vpn-in-serverstadium/">Establishing a VPN in ServerStadium Cloud</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
