TorGuard WireGuard VPN on PrivateRouter OpenWRT - Complete Setup Guide

Last updated: September 11, 2025
Table of Contents

⚡ About WireGuard on PrivateRouter

PrivateRouter offers custom OpenWRT routers with an easy-to-use WireGuard setup tool designed specifically for TorGuard. This integration provides the fastest VPN performance possible on router hardware with automatic connection management.

WireGuard Performance

🚀 Why WireGuard?

3-5x

Faster than OpenVPN

~4,000

Lines of code (vs 100k+)

<1ms

Connection time

256-bit

ChaCha20 encryption

PrivateRouter Benefits

🏠 Why Use PrivateRouter?

🎯

Pre-configured

TorGuard-optimized firmware

🔧

Easy Setup

Custom tgwireguard app

💻

Web Interface

User-friendly LuCI GUI

🛡️

Network-wide

All devices protected

High Performance

Hardware acceleration

🔄

Auto-reconnect

Persistent connection

Prerequisites

📋 Before You Start

  • ✅ Active TorGuard VPN subscription
  • ✅ PrivateRouter with OpenWRT firmware
  • ✅ Access to router admin panel
  • ✅ TorGuard VPN username/password
  • ✅ Internet connection to router

⚠️ Compatibility Note

This guide is specific to PrivateRouter devices. For other OpenWRT routers, use the standard OpenWRT guide.

WireGuard vs OpenVPN

⚡ WireGuard

  • ✅ 3-5x faster speeds
  • ✅ Lower CPU usage
  • ✅ Instant connections
  • ✅ Better battery life
  • ✅ Modern cryptography
  • ✅ Simpler configuration

Best for: Maximum performance

🔒 OpenVPN

  • ✅ Mature & proven
  • ✅ More server options
  • ✅ TCP fallback
  • ✅ Obfuscation support
  • ⚠️ Higher overhead
  • ⚠️ Complex setup

Best for: Compatibility

Step-by-Step Setup

1

Generate WireGuard Config

Visit TorGuard's config generator and create your WireGuard configuration:

  1. Go to TorGuard Config Generator
  2. Select "WireGuard" as VPN tunnel type
  3. Choose your desired server location
  4. Enter your TorGuard VPN username
  5. Click "Generate Config"
TorGuard Config Generator

💡 Server Selection Tips

  • Choose geographically closest server for best speed
  • Consider server load indicators
  • Some locations offer better streaming support
2

Copy Configuration Values

From the generated config, you'll need these specific values:

🔑 Private Key Your client private key (keep secret!)
🔌 ListenPort Usually 51820 or random port
📍 Address Your VPN IP (e.g., 10.x.x.x/32)
🏛️ Public Key Server's public key
🎯 Endpoint:Port Server address and port
WireGuard Config Values

⚠️ Important

Copy these values exactly as shown, including any equals signs or special characters. A single typo will prevent connection.

3

Configure PrivateRouter

Now configure your router with the WireGuard settings:

A. Access tgwireguard App

  1. Log into your PrivateRouter admin panel
  2. Click the VPN tab
  3. Click "tgwireguard"

B. Install tgwireguard (if needed)

If you don't see the tgwireguard option:

  1. Download from GitHub
  2. Go to System → Software
  3. Click "Upload Package"
  4. Select the downloaded .ipk file
  5. Click "Install"

C. Enter Configuration

Paste each value from Step 2 into the matching fields:

  • Private Key: Your client private key
  • Listen Port: Port from config
  • Address: Your VPN IP address
  • Public Key: Server public key
  • Endpoint: Server address:port

Click "Save & Apply" when done.

tgwireguard Configuration

tgwireguard Features

🛠️ App Capabilities

🚀 One-click start/stop control
🔄 Auto-connect on boot
🔥 Automatic firewall rules
📊 Connection status display
Optimized for TorGuard
🛡️ Kill switch functionality

Connection Management

🎮 Using Your VPN Connection

  • Start VPN: Click "Start WireGuard" button
  • Stop VPN: Click "Stop WireGuard" button
  • Auto-start: Enabled by default on router boot
  • Status: Check connection status in the interface
  • Logs: View logs under System → System Log

Router Compatibility

Router Model CPU RAM Expected Speed
PrivateRouter Mini MediaTek MT7621 256MB ~200 Mbps
PrivateRouter Pro Qualcomm IPQ4019 512MB ~400 Mbps
PrivateRouter Ultra Qualcomm IPQ8072 1GB ~800 Mbps
Generic OpenWRT Various 128MB+ Varies

Advanced Settings

🔧 Power User Options

1. DNS Configuration

Force all DNS through VPN:

# Add to WireGuard config
DNS = 10.8.0.1

2. Kill Switch

Block internet if VPN disconnects:

# Firewall rule (automatic with tgwireguard)
PostUp = iptables -I FORWARD -o wan -j DROP
PreDown = iptables -D FORWARD -o wan -j DROP

3. Split Tunneling

Route specific devices outside VPN:

  • Use Policy-Based Routing
  • Configure in Network → Firewall
  • Add device MAC/IP exceptions

4. Multiple Configs

Switch between servers:

  • Save multiple configurations
  • Name them by location
  • Quick switch via interface

Troubleshooting

🔍 Common Issues & Solutions

No Internet After Connect

  • Check firewall settings
  • Verify DNS configuration
  • Restart router services
  • Check WAN connection

Connection Failed

  • Verify all config values
  • Check server status
  • Try different endpoint
  • Regenerate config

Slow Speeds

  • Try closer server
  • Check router CPU usage
  • Update router firmware
  • Test without VPN first

App Not Found

  • Download latest .ipk
  • Check OpenWRT version
  • Install dependencies
  • Reboot after install

Config Not Saving

  • Check special characters
  • No extra spaces
  • Use Save & Apply
  • Clear browser cache

DNS Leaks

  • Set custom DNS servers
  • Disable ISP DNS
  • Use TorGuard DNS
  • Test at dnsleaktest.com

Security Benefits

🔐 WireGuard Security Features

  • ChaCha20-Poly1305: Authenticated encryption
  • Curve25519: Key exchange
  • BLAKE2s: Hashing
  • Perfect Forward Secrecy: Key rotation
  • Minimal Attack Surface: ~4,000 lines of code
  • No Key Negotiation: Resistant to downgrade attacks

Performance Optimization

⚡ Speed Tips

  • MTU Size: Set to 1420 for optimal performance
  • Server Selection: Use ping tests to find fastest
  • Hardware Acceleration: Enable if router supports
  • QoS Settings: Prioritize VPN traffic
  • Channel Width: Use 80MHz on 5GHz WiFi
  • CPU Governor: Set to performance mode

Need Help?

If you need assistance with your PrivateRouter setup:

Support Resources:

Include your router model and any error messages

Was this article helpful?

Share:

Ready to Get Help?

Our support team is available 24/7 to assist you with any questions.