How to Connect Multiple VPS Servers with Private WireGuard Mesh Network
Hostinger vs. Contabo: Full Specifications Breakdown
Data verified from our lab benchmarks • Updated for 2026
| Feature / Metric | HostingerEditor's Choice UI | ContaboMax RAM Value |
|---|---|---|
| Starting Price | $2.99 / month (Web) | $4.99 / mo (VPS) | $5.50 / month (Cloud VPS S) |
| vCPU Cores | 1 to 8 vCPU (Dedicated resources) | 4 to 12 vCPU (High Core Count) |
| RAM Memory | 4 GB to 32 GB | 6 GB to 64 GB (Gigantic RAM) |
| Storage Technology | 50 GB – 400 GB NVMe SSD | 50 GB NVMe or 300 GB SSD |
| Traffic / Bandwidth | 4 TB to 32 TB | 32 TB Outgoing + Unlimited In |
| Control Panel & UI | hPanel (Ultra Modern & Easy) | cPanel, Plesk, Webmin, or CLI |
| Customer Support | 24/7 Live Chat & AI Support (Multi-lingual) | Email Ticket Support (German Business Hours) |
| Best For | Bloggers, WordPress Sites & Devs wanting easy UI | Heavy Database, Docker, Game Servers & SysAdmins |
| Money-Back Guarantee | 30-Day Money-Back Guarantee | 14-Day EU Statutory Cancellation |
| Official Links | Visit Hostinger | Visit Contabo |
Stop exposing private databases and backend APIs to the public internet. Learn how to connect multiple VPS nodes securely over an encrypted WireGuard mesh tunnel.
- Isolates backend databases (Postgres, MySQL, Redis) completely from the public internet
- Seamlessly connects servers across different providers (e.g. Hostinger web node + Contabo storage node)
- Zero performance tax: WireGuard runs directly in the Linux kernel with sub-1ms crypto latency
The Danger of Public-Facing Backend Services
In distributed multi-server architectures, web application servers frequently need to communicate with dedicated database nodes, Redis caches, or backup storage targets. A dangerous anti-pattern is binding MySQL (port 3306) or PostgreSQL (port 5432) to 0.0.0.0 and allowing public internet connections secured only by a password.
Attackers continually scan cloud ranges for open database ports. A single brute-force breach or leaked credential exposes your entire customer database. Furthermore, transmitting unencrypted database queries across the public web is vulnerable to interception.
WireGuard solves this by creating an encrypted, private point-to-point virtual network (VPN) between your servers. You can connect a Hostinger KVM VPS acting as your public frontend web server with a Contabo Storage VPS acting as your private database warehouse over internal, non-routable IP addresses (e.g., 10.0.0.1 and 10.0.0.2).
Network Topology Architecture
- Node A (Frontend Web Server - Hostinger KVM): Public IP
195.35.12.84| WireGuard Internal IP10.0.0.1 - Node B (Backend Database - Contabo VPS): Public IP
161.97.142.50| WireGuard Internal IP10.0.0.2
Step 1: Install WireGuard on Both Nodes
Run the following commands on both Server A and Server B:
sudo apt update && sudo apt install -y wireguard wireguard-tools
Step 2: Generate Cryptographic Keys on Node A
On Node A (Hostinger):
cd /etc/wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
cat privatekey
cat publickey
Step 3: Generate Cryptographic Keys on Node B
On Node B (Contabo):
cd /etc/wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
cat privatekey
cat publickey
Step 4: Configure Node A (/etc/wireguard/wg0.conf)
Create the tunnel configuration on Node A:
sudo nano /etc/wireguard/wg0.conf
[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = NODE_A_PRIVATE_KEY
[Peer]
# Node B (Contabo)
PublicKey = NODE_B_PUBLIC_KEY
Endpoint = 161.97.142.50:51820
AllowedIPs = 10.0.0.2/32
PersistentKeepalive = 25
Step 5: Configure Node B (/etc/wireguard/wg0.conf)
Create the tunnel configuration on Node B:
sudo nano /etc/wireguard/wg0.conf
[Interface]
Address = 10.0.0.2/24
ListenPort = 51820
PrivateKey = NODE_B_PRIVATE_KEY
[Peer]
# Node A (Hostinger)
PublicKey = NODE_A_PUBLIC_KEY
Endpoint = 195.35.12.84:51820
AllowedIPs = 10.0.0.1/32
PersistentKeepalive = 25
Step 6: Firewall Rules & Starting the Tunnel
Open UDP port 51820 on both servers' UFW firewalls:
sudo ufw allow 51820/udp
sudo systemctl enable --now wg-quick@wg0
Step 7: Verifying Encrypted Connectivity
On Node A, test pinging Node B across the private WireGuard tunnel:
ping 10.0.0.2
Check the active tunnel telemetry with the wg command:
sudo wg
# Output confirms:
# interface: wg0
# peer: [Node B Public Key]
# endpoint: 161.97.142.50:51820
# latest handshake: 14 seconds ago
# transfer: 1.42 MiB received, 2.18 MiB sent
Step 8: Binding Database to Private IP Only
Now, on your backend Contabo database node, edit PostgreSQL or MySQL settings to listen only on the private WireGuard interface:
# /etc/postgresql/16/main/postgresql.conf
listen_addresses = '10.0.0.2, localhost'
Restart PostgreSQL. Now, your database is 100% invisible to the public internet, accessible solely by your frontend web server through military-grade encryption.
Recommended Reading & Related Guides
Summary
Using WireGuard site-to-site networking allows you to combine the strengths of multiple providers—such as Hostinger's fast web nodes with Contabo's high-capacity storage nodes—in a unified, hyper-secure private cloud.
Video Walkthrough & Official References
How to Set Up Your Own WireGuard VPN Server on Ubuntu • ZacsTech
Official External Documentation
Cryptographic key generation, peer routing, and kernel module documentation.
Official hPanel guides for DNS, LiteSpeed Cache, and WordPress staging.
Server rescue mode, VNC console access, and Object Storage S3 endpoints.
Editorial Verdict: Pros & Cons
What We Love (Pros)
- Isolates backend databases (Postgres, MySQL, Redis) completely from the public internet
- Seamlessly connects servers across different providers (e.g. Hostinger web node + Contabo storage node)
- Zero performance tax: WireGuard runs directly in the Linux kernel with sub-1ms crypto latency
Drawbacks (Cons)
- Requires manual key exchange between peer configuration files unless using an overlay orchestrator
Written by Alex Vance
Cloud Infrastructure Architect
Alex and the ServerCraft engineering lab run routine benchmarks on over 25 web hosting providers, maintaining strict objectivity and reproducibility.
Recommended Next Reads
Best Cheap High RAM VPS (2026): 8GB, 16GB & 32GB RAM Servers From $5.50/mo
Compare the best cheap 8GB, 16GB, and 32GB high-RAM VPS providers for Docker, databases, and self-hosting—starting at $5.50/mo with NVMe storage.
Hostinger vs Hetzner Cloud VPS (2026): Performance Benchmarks & Real Value Test
A deep technical comparison between Hostinger KVM VPS and Hetzner Cloud. We benchmarked UnixBench, NVMe disk latency, network peering, and ease of management.
Hostinger VPS vs DigitalOcean Droplets (2026): Performance Benchmarks & Cost Breakdown
Is DigitalOcean worth 7x the price of Hostinger KVM VPS? We benchmarked CPU compile speeds, NVMe read/write IOPS, network latency, and ease of management.