WireGuard VPN

Build Your Own VPN: The WireGuard Setup Guide

Why pay for slow VPNs? Turn your ServerMO Dedicated Server into a high-speed, private VPN tunnel with built-in Ad-Blocking.

Why WireGuard?

Most commercial VPNs use old protocols like OpenVPN, which can be slow. WireGuard is a modern, high-performance VPN protocol that runs directly inside the Linux kernel.

  • Maximum Speed: Use your server's full Gigabit bandwidth.
  • Total Privacy: You own the server, you own the logs.
  • Ad-Blocking: Can be configured to block ads network-wide (See Step 2).

Step 1: Get the Magic Script

We will use a trusted automated installer script to handle keys and firewall rules instantly.

Login to your server (SSH) and run these commands:

curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
chmod +x wireguard-install.sh

Step 2: Run & Enable Ad-Blocking

Run the script. This is where we enable the magic features.

./wireguard-install.sh

πŸ”₯ Pro Tip: How to Block Ads

When the script asks for DNS resolvers, do not choose the default!

  • For Max Speed: Choose Google (8.8.8.8) or Cloudflare (1.1.1.1).
  • For Ad-Blocking: Choose AdGuard DNS. (If not listed, select "Custom" and type: 94.140.14.14).

This will automatically block ads on your phone/PC while connected to the VPN.

Step 3: Connect Your Phone (QR Code)

The script will generate a massive QR Code in your terminal.

  1. Download the WireGuard App (iOS/Android).
  2. Tap (+) -> Scan from QR code.
  3. Scan your screen. Connected!

Tip: Split Tunneling (Android/iOS)

Want to use VPN only for specific apps?
Open the WireGuard App -> Click your tunnel -> Edit -> Click "All Applications". Uncheck apps that you want to bypass the VPN.

Step 4: Connect Your PC / Laptop

To connect a computer, you need the config file generated by the script. Use the `cat` command to read it:

cat my_laptop.conf

Copy the text output, open the WireGuard Desktop Client (Windows/Mac), click "Add Tunnel" -> "Add empty tunnel", and paste the text.

Step 5: Manage Users

To Add or Delete a user, simply run the script again:

./wireguard-install.sh

Select Option 1 to Add User, or Option 2 to Revoke (Delete) a user immediately.

Final Thoughts

You now have a private VPN with Ad-Blocking capabilities. No monthly fees, no throttling.

Troubleshooting: If you can't connect, ensure UDP Port 51820 is allowed in your server's firewall (UFW/Firewalld).

Need a server with 1Gbps or 10Gbps Uplink? Check out ServerMO Network Speeds β†’

Common Questions about WireGuard VPN

Is WireGuard faster than OpenVPN?

Yes, significantly. WireGuard runs directly inside the Linux kernel and uses modern cryptography (ChaCha20). This results in faster connection speeds, lower latency (ping), and less battery drain on mobile devices compared to older protocols like OpenVPN.

Does this setup block ads automatically?

Yes! During the installation step, if you select AdGuard DNS or enter a custom DNS like 94.140.14.14, the VPN server will automatically filter out ads and trackers before they reach your phone or computer.

Can I use this on my iPhone, Android, and PC?

Absolutely. WireGuard has free official apps for iOS, Android, Windows, macOS, and Linux. For mobile devices, you can simply connect by scanning the QR code generated by your ServerMO server.

Is it safe to use on Public WiFi?

Yes. When you connect to your WireGuard VPN, it creates an encrypted tunnel between your device and your dedicated server. Even if you are on an insecure Airport or Coffee Shop WiFi, hackers cannot see your data or passwords.

Ready to Launch with Unmatched Power?

Ready to Launch with Unmatched Power? Deploy blazing-fast 1–100Gbps unmetered servers, high-performance GPU rigs, or game-optimized hosting custom-built for speed, reliability, and scale. Whether it’s colocation, compute-intensive tasks, or latency-critical applications, ServerMO delivers. Order now and get online in minutes, fully secured, fully optimized.

Red and white text reads '24x7' above bold purple 'SERVICES' on a white background, all set against a black backdrop. Energetic and modern feel.

Power. Performance. Precision.

99.99% Uptime Guarantee
24/7 Expert Support
Blazing-Fast NVMe SSD

Christmas Mega Sale!

Unwrap the ultimate power! Get massive holiday discounts on all Dedicated Servers. Offer ends soon grab yours before the snow melts!

London UK (15% OFF)
Tokyo Japan (10% OFF)
00Days
00Hrs
00Min
00Sec
Explore Grand Offers