Easy WireGuard Setup and Config in 2 Minutes: Create Your Own VPN Server

Setting up your own VPN server has never been easier. With WireGuard setup for VPN (Virtual Private Network), a fast and highly secure VPN protocol, you can create your own private network in just a few steps. In this guide, we’ll show you how to quickly set up WireGuard on a VPS server and add users in under 2 minutes.

Step 1: Get a VPS from SatisfyHost

Before starting, you’ll need a VPS (Virtual Private Server) to host your VPN. A reliable VPS from SatisfyHost starts at just $7 per month, offering the perfect balance of performance and cost to run your VPN.

Once you’ve set up your VPS, you’re ready to begin the installation process.

Step 2: Connect to Your Server

Connect to your VPS using an SSH client like PuTTY. This allows you to run commands on your server remotely. After connecting, you’ll have access to the server’s terminal.

Step 3: Install WireGuard

To install WireGuard on your VPS, follow these simple steps:

  1. Switch to the root user:

2. Download the WireGuard installation script:

3. Make the script executable:

4. Run the installation script:

The script will guide you through the entire setup process, making it quick and easy to install WireGuard on your server.

Step 4: Get Your VPN Configuration File

After the installation, WireGuard will generate a configuration file for your VPN client. You can retrieve it with the following command (replace “yourname” with your chosen name):

This file contains all the details required to connect your device to the VPN.

Step 5: Save the Configuration File

Here’s how to save your configuration file for use on your local device:

  1. Copy the configuration text directly from the terminal (in PuTTY, highlighting the text automatically copies it to your clipboard).
  2. Paste the copied content into a text editor like Notepad.
  3. Save the file with a .conf extension, for example: wg0-client-yourname.conf.

Step 6: Install and Configure the WireGuard Client

Once you’ve saved the configuration file, you need to download the WireGuard client for your platform. You can download it here.

After installation:

  1. Open the WireGuard client on your device.
  2. Click “Add Tunnel” and import the .conf file you just saved.
  3. Activate the tunnel to securely connect to your VPN.

Step 7: Adding a New User

To add additional users to your VPN, follow these steps:

  1. Run the WireGuard setup script again:

2. Choose option 1 from the menu to add a new user.

3. Enter the desired username and confirm by pressing Enter a couple of times. Here I used jhon.

    Once the new user is created, you will receive a message similar to:

    add-new-user-on-wireguard-setup

    Step 8: Set Up the New User

    1. View the configuration file for the new user (replace “jhon” with the new username):
    new-user-key-on-vpn-wireguard-setup

    2. Copy the content of the configuration file.

    3. Open the WireGuard client on the new user’s device.

    4. Click “Add Empty Tunnel” or press CTRL + N.

    • Paste the copied configuration into the fields and save the tunnel.

    Now, the new user can securely connect to the VPN.

    Conclusion

    Setting up WireGuard on your VPS is incredibly easy and can be done in just a few minutes. Whether you’re creating your own private network or adding new users, WireGuard provides a fast and secure solution. Don’t forget, if you need a reliable server to host your VPN, you can get a VPS from SatisfyHost starting at just $7 per month. With this setup, you’ll have a robust VPN server ready in no time!