<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amnezia</title>
    <description>The latest articles on DEV Community by Amnezia (@amnezia-vpn).</description>
    <link>https://dev.to/amnezia-vpn</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2408614%2Fdbf7f0c4-9127-4d06-840a-56609ebd482d.png</url>
      <title>DEV Community: Amnezia</title>
      <link>https://dev.to/amnezia-vpn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amnezia-vpn"/>
    <language>en</language>
    <item>
      <title>Setting up your own secure VPN with Amnezia VPN</title>
      <dc:creator>Amnezia</dc:creator>
      <pubDate>Tue, 19 Nov 2024 01:42:15 +0000</pubDate>
      <link>https://dev.to/amnezia-vpn/setting-up-your-own-secure-vpn-with-amnezia-vpn-22d7</link>
      <guid>https://dev.to/amnezia-vpn/setting-up-your-own-secure-vpn-with-amnezia-vpn-22d7</guid>
      <description>&lt;p&gt;Hi all, this is Amnezia VPN!&lt;/p&gt;

&lt;p&gt;Many people have been asking lately: how is it possible to quickly and easily set up own VPN? We have the solution!&lt;/p&gt;

&lt;p&gt;In this guide, we explain how to set up a VPN on your own server with a wide range of protocols using &lt;a href="https://amnezia.org/en" rel="noopener noreferrer"&gt;&lt;strong&gt;Amnezia VPN&lt;/strong&gt;&lt;/a&gt;. Let’s get started!&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;First, you’ll need a server. You can find a list of recommended hosting providers along with detailed purchasing instructions on &lt;a href="https://amnezia.org/en/starter-guide" rel="noopener noreferrer"&gt;&lt;strong&gt;our website&lt;/strong&gt;&lt;/a&gt;. Here, we’ll only outline the minimum system requirements for the server:&lt;/p&gt;

&lt;p&gt;● &lt;strong&gt;Operating System&lt;/strong&gt;: Linux (Ubuntu 22.04 is suitable, but version 24 is not; Debian 11/12 also works).&lt;br&gt;
● &lt;strong&gt;Processor Architecture&lt;/strong&gt;: x86-64&lt;br&gt;
● &lt;strong&gt;Virtualization&lt;/strong&gt;: KVM&lt;br&gt;
● &lt;strong&gt;IPv4 Server Address&lt;/strong&gt;&lt;br&gt;
● &lt;strong&gt;RAM&lt;/strong&gt;: 2 GB recommended, but at least 1 GB (you can also install Amnezia VPN on a server with only 512 MB of RAM, but the number of available protocols will be reduced to &lt;strong&gt;three&lt;/strong&gt;).&lt;br&gt;
● No pre-installed software or control panels required.&lt;/p&gt;

&lt;p&gt;After purchasing the server, you’ll receive the setup details: &lt;strong&gt;IP address&lt;/strong&gt;, &lt;strong&gt;login&lt;/strong&gt; (it should be &lt;strong&gt;root&lt;/strong&gt;; a different user can be used as well, but we’ll discuss that below), and &lt;strong&gt;password&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Some hosting providers (like &lt;strong&gt;&lt;em&gt;DigitalOcean&lt;/em&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;em&gt;Amazon&lt;/em&gt;&lt;/strong&gt;, etc.) may have certain ports closed by default, which might be needed by Amnezia. Therefore, you’ll need to check if port &lt;strong&gt;22&lt;/strong&gt; (for &lt;strong&gt;SSH&lt;/strong&gt;) is open. Additionally, during and after installation, make sure that the necessary TCP or UDP ports for your chosen protocol are open (&lt;strong&gt;for example&lt;/strong&gt; — &lt;strong&gt;443/TCP&lt;/strong&gt; for &lt;strong&gt;OpenVPN over Cloak&lt;/strong&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1:
&lt;/h2&gt;

&lt;p&gt;Download the application to the device where you want to use the VPN. You can get it from the official &lt;a href="https://amnezia.org/en/downloads" rel="noopener noreferrer"&gt;website&lt;/a&gt; or from our &lt;a href="https://github.com/amnezia-vpn/amnezia-client/releases/latest" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you’re installing the app on a Linux system, you’ll need to make the downloaded file executable. For Ubuntu systems, you may also need to install additional libraries with the following command: &lt;code&gt;apt install libxcb-cursor0 libxcb-xinerama0&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2:
&lt;/h2&gt;

&lt;p&gt;Once the application is installed, proceed with the setup. Choose the "&lt;strong&gt;self-hosted VPN&lt;/strong&gt;" option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fracb0nez1n02sqd37dzy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fracb0nez1n02sqd37dzy.png" alt="Image description" width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3:
&lt;/h2&gt;

&lt;p&gt;Enter the server details you received from the hosting-provider.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3ucdwx50y316y33dkws1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3ucdwx50y316y33dkws1.png" alt="Image description" width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s go into a bit more detail here:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If your server’s SSH is on a non-standard port (not 22), append the port number after the IP address, separated by a colon.&lt;/li&gt;
&lt;li&gt;By default, Amnezia VPN is configured using the root user. However, if you prefer not to use root, create a separate user, add it to the &lt;strong&gt;sudo group&lt;/strong&gt;, and grant it permission to &lt;strong&gt;run sudo commands without a password or other confirmations&lt;/strong&gt;. If you choose this method, enter the username of the created user instead of &lt;strong&gt;&lt;em&gt;root&lt;/em&gt;&lt;/strong&gt; in the setup field.&lt;/li&gt;
&lt;li&gt;Amnezia supports certain SSH key formats. Here are the commands to generate a supported format:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-keygen -t rsa -m PEM -b 2048

ssh-keygen -t rsa -m PEM -b 3072

ssh-keygen -t rsa -m PEM -b 4096

ssh-keygen -t ed25519
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paste the &lt;strong&gt;&lt;em&gt;PrivateKey&lt;/em&gt;&lt;/strong&gt; including the lines &lt;strong&gt;====BEGIN====&lt;/strong&gt; and &lt;strong&gt;====END====&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Amnezia currently &lt;strong&gt;does not support 2FA&lt;/strong&gt;, so if it’s enabled on your server, you’ll need to disable it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4:
&lt;/h2&gt;

&lt;p&gt;Choose the protocol to install.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fswf8bdt9ie7ogw7nb2o7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fswf8bdt9ie7ogw7nb2o7.png" alt="Image description" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can select automatic mode (&lt;strong&gt;&lt;em&gt;Low&lt;/em&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;em&gt;High&lt;/em&gt;&lt;/strong&gt;), and Amnezia will install a protocol based on the category (&lt;a href="https://docs.amnezia.org/documentation/amnezia-wg/" rel="noopener noreferrer"&gt;&lt;strong&gt;AmneziaWG&lt;/strong&gt;&lt;/a&gt; for &lt;strong&gt;&lt;em&gt;High&lt;/em&gt;&lt;/strong&gt;, and &lt;strong&gt;WireGuard&lt;/strong&gt; for &lt;strong&gt;&lt;em&gt;Low&lt;/em&gt;&lt;/strong&gt;). If you select the wrong protocol, don’t worry—you can always install additional protocols (&lt;strong&gt;OpenVPN over Cloak&lt;/strong&gt;, &lt;strong&gt;XRay&lt;/strong&gt;, &lt;strong&gt;Shadowsocks&lt;/strong&gt;, etc.) and switch between them from the server menu on the main screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5:
&lt;/h2&gt;

&lt;p&gt;After selecting the protocol or mode, wait a bit for the installation to complete.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fow9lw9oolbctn8iv5jhk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fow9lw9oolbctn8iv5jhk.png" alt="Image description" width="800" height="193"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6:
&lt;/h2&gt;

&lt;p&gt;Congratulations! Amnezia VPN has successfully installed the protocol on your server.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft09i7h7oau967lntvp7n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft09i7h7oau967lntvp7n.png" alt="Image description" width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you can click the “&lt;strong&gt;Connect&lt;/strong&gt;” button to start using the VPN on your device.&lt;/p&gt;

&lt;p&gt;Sharing Your VPN:&lt;br&gt;
But that’s not all! If you want to share VPN with others, you can use the “Share” option to allow your friends and family to use the VPN connection as well.&lt;/p&gt;

&lt;p&gt;And that’s it! :D&lt;/p&gt;

&lt;p&gt;In addition to VPN protocols, Amnezia also allows you to set up an &lt;strong&gt;SFTP storage&lt;/strong&gt;, a &lt;strong&gt;WordPress-based website on the Tor network&lt;/strong&gt;, a &lt;strong&gt;custom DNS&lt;/strong&gt; server for use with the VPN, and supports &lt;strong&gt;split tunneling&lt;/strong&gt; (based on IP/domains as well as applications).&lt;/p&gt;

&lt;p&gt;Let me know if you need any other assistance!&lt;/p&gt;

</description>
      <category>vpn</category>
      <category>tutorial</category>
      <category>opensource</category>
      <category>amnezia</category>
    </item>
  </channel>
</rss>
