How To Create Your Own WireGuard VPN Server Using An Ubuntu Linux VPS

Channel:
Subscribers:
30,000
Published on ● Video Link: https://www.youtube.com/watch?v=UFCSi2UMaiU



Category:
Guide
Duration: 13:34
15,225 views
244


In this video, I will guide you through the complete process of setting up your very own WireGuard Virtual Private Network (VPN) server on a Linux Virtual Private Server (VPS) also known as a cloud server. WireGuard is a cross-platform opensource VPN that utilises cryptography in its protocol. DigitalOcean will be the server host provider used in this video demonstration. It offers cloud servers through a service called Droplets. To install WireGuard VPN on our VPS we will use a bash shell installation script hosted on GitHub by Nyr called wireguard-install.

πŸ”΅Free $200 DigitalOcean cloud credits using my referral link: https://digitalocean.pxf.io/c/1245219/1373759/15890

How To Get $200 In Free DigitalOcean Cloud Credits https://youtu.be/9QE7zbyc6Ek

How To Install PuTTY on Windows 11 And Windows 10 https://youtu.be/0ptZPTTwRaE

WireGuard VPN Client Installation https://www.wireguard.com/install/
Download PuTTY https://www.putty.org/
wireguard-install script by Nyr https://github.com/Nyr/wireguard-install
What Is My IP Address https://whatismyipaddress.com/

Steps To Setup WireGuard VPN Server On An Ubuntu Linux VPS:
1. Navigate to https://digitalocean.pxf.io/c/1245219/1373759/15890 and create a free DigitalOcean account. The above link is my referral link granting you $200 in free cloud credit for 60 days as a new user
2. Once you have created your DigitalOcean account, you will be taken to your DigitalOcean dashboard. Hover over Create.
3. Click Droplets
4. Create and configure your droplet and then click Create Droplet
5. While your droplet is being created, navigate to https://www.wireguard.com/install/ and install your desired WireGuard client for your Operating System (OS).
6. On your DigitalOcean dashboard copy your droplets IP address by clicking on Copy to the right hand side of your droplets IP address.
7. If you're on Windows as demonstrated in this video, navigate to https://www.putty.org/ and download the SSH client called PuTTY. If you're on an OS that is unsupported by PuTTY you will need to use an alternative SSH client. For a detailed installation guide of PuTTY check out this video of mine https://youtu.be/0ptZPTTwRaE
8. Once PuTTY has been installed, open up the PuTTY SSH client and paste in your droplets IP address into the Host Name (or IP address) section
9. Click Open
10. In the PuTTY command line terminal, login as root by typing the word root and hitting Enter on your keyboard
11. Next, type in your root password that you created for your droplet and hit Enter on your keyboard. You will now be logged into your droplet
12. Open another browser tab and navigate to https://github.com/Nyr/wireguard-install
13. Highlight and copy the wireguard-install script command which you can also find below:

wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh

14. Right click to paste in the above WireGuard script command into your terminal
15. Press Enter on your keyboard to execute the command
16. Follow the WireGuard script installers prompts to configure and install WireGuard on your cloud server. To roll with the defaults, press Enter on your keyboard for each prompt
17. If you're greeted with a purple screen that asks you "Which services should be restarted" then simply press tab on your keyboard followed by Enter.
18. You will now see a WireGuard VPN QR code containing the client configuration. You can scan this using a mobile device with the WireGuard VPN client to import the WireGuard VPN tunnel. If you're using a computer as demonstated in this video, you're going to need to type the following commands to get your client configuration information:

ls
cat [YourClientConfigName.conf]

19. Highlight to copy the config info displayed from [Interface] to PersistentKeepalive and everything in between by simply highlighting it in the command line terminal window
20. Open up your WireGuard VPN client, click the arrow next to Add Tunnel and click on Add empty tunnel...
21. Delete the pre typed information, right click and paste in the WireGuard VPN client config info you just highlighted in the terminal. Give your tunnel a name and click on Save
22. Click Activate
23. Check if your current IP address displayed on https://whatismyipaddress.com/ matches your droplets IP address. If it matches, then your WireGuard VPN is working!

[Note] To add a new client for another device you will need to run the wireguard-install script command once again in the terminal.

wireguard-install script defaults:
- IP: VPS IPv4 address
- Port: 51820
- Client name: client
- DNS Server: Current system resolvers

Timestamps:
0:00 - Intro
1:13 - Create The WireGuard VPN Server
3:56 - Install WireGuard VPN Client
5:16 - Login To WireGuard VPN Server Using SSH Client
7:17 - Install WireGuard VPN & Add New Client Config(s) On Server
10:59 - Connect To WireGuard VPN Using The Client (Add Empty Tunnel)
12:21 - Check If WireGuard VPN Is Active
13:07 - Closing

#WireGuard #VPN #DigitalOcean




Other Videos By Websplaining


2024-11-13How To Make An OpenVPN Access Server With Web-Based User Interface (UI) On DigitalOcean
2024-11-07How To Create PiVPN Server Using A Self-hosted Ubuntu Linux VPS And WireGuard Client
2024-11-04How To Make A WireGuard Easy (wg-easy) VPN Server With Web-Based Admin UI On An Ubuntu Linux VPS
2024-10-30How To Install One Click, Pre-configured Hugging Face (HUGS) AI Models On DigitalOcean GPU Droplets
2024-10-29How To Check NVIDIA GPU Specification Information On Ubuntu Linux Command Line Terminal
2024-10-29How To Create A NVIDIA H100 GPU Cloud Server To Run And Train AI, ML, And LLMs Apps On DigitalOcean
2024-10-25How To Make A Counter-Strike 2 (CS2) Game Server On A DigitalOcean Ubuntu Linux VPS (Droplet)
2024-10-22How To Create Your Own OpenVPN Server On An Ubuntu Linux VPS
2024-08-28How To Setup SPR : Secure Programmable Routers VPN Server On An Ubuntu Linux VPS
2024-01-08How To Request To Increase Droplet Limit On DigitalOcean
2024-01-04How To Create Your Own WireGuard VPN Server Using An Ubuntu Linux VPS
2023-12-28How To Create Your Own Pi-hole VPN Server On A Linux VPS Using DigitalOceans 1 Click Droplet Install
2023-11-27How To Quickly Share Your Connected Wi-Fi Network With Your Friends On Android
2023-11-25How To Turn On And Share Your Wi-Fi Hotspot Data With Friends On Android
2023-11-22How To Update The Google Play Store On Android
2023-11-20How To Turn On Notification History To See Recent And Snoozed Notifications On Android
2023-11-20How To Cancel PayPal Automatic Pre-Approved Payments (Autopay) And Reoccurring Subscriptions
2023-11-20How To Quickly Download All Available App Updates On Android (Update All Android Applications)
2023-11-17How To Make Your Own Media Server With Jellyfin And DigitalOcean
2023-06-07How To Create A Minecraft: Java Edition 1.20 Server On An Ubuntu Cloud Server (VPS) - Trails & Tales
2023-05-27How To BitTorrent Using Magnet Links And .Torrent File link Addresses On Ubuntu Linux Terminal (CLI)



Tags:
How To Create Your Own WireGuard VPN Server Using An Ubuntu Linux VPS
WireGuard
WireGuard VPN
DigitalOcean
Droplet
VPS
VPN
Virtual Private Network
Virtual Private Server
Cloud Server
Cloud
WireGuard VPN Server
Ubuntu
Linux
Ubuntu Linux
Ubuntu Linux VPS
WireGuard Client Installation
WireGuard Client
How To Make Your Own WireGuard VPN Server On An Ubuntu Linux Cloud Server
How To Setup Your Own WireGuard VPN Server On A DigitalOcean Droplet
.conf
WireGuard client.conf