WireGuard VPN on DD-WRT - Setup Guide with TorGuard

Last updated: September 11, 2025
Table of Contents

⚡ About WireGuard

WireGuard is an extremely simple yet fast and modern VPN protocol that utilizes state-of-the-art cryptography. It's designed to be faster, simpler, leaner, and more useful than IPsec while avoiding complexity. Particularly beneficial for routers with limited CPU power.

Why WireGuard on DD-WRT?

✨ WireGuard Benefits

  • Ultra-Fast Performance: Up to 4x faster than OpenVPN on routers
  • Low CPU Usage: Perfect for consumer routers with limited processing power
  • Modern Cryptography: ChaCha20, Curve25519, BLAKE2s, SipHash24
  • Minimal Attack Surface: Only ~4,000 lines of code vs OpenVPN's ~100,000
  • Quick Reconnection: Seamless roaming between networks
  • Lower Latency: Ideal for gaming and real-time applications

Performance Comparison

Connection Time <100ms vs OpenVPN: 2-8 seconds
Throughput +300% vs OpenVPN on routers
CPU Usage -50% vs other protocols
Battery Impact Minimal on connected devices

Protocol Comparison

WireGuard

  • ✅ Fastest performance
  • ✅ Lowest latency
  • ✅ Minimal CPU usage
  • ✅ Modern crypto only
  • ✅ Built into kernel
  • ❌ No obfuscation

OpenVPN

  • ✅ Most compatible
  • ✅ Obfuscation options
  • ✅ Mature & stable
  • ❌ Higher CPU usage
  • ❌ Slower on routers
  • ❌ Complex setup

IPSec/L2TP

  • ✅ Native support
  • ✅ Good compatibility
  • ❌ Outdated crypto
  • ❌ Can be blocked
  • ❌ Setup complexity
  • ❌ Performance issues

DD-WRT Requirements

⚠️ Important Requirements

  • DD-WRT Version: Must have WireGuard support (build r44048 or newer)
  • Router CPU: ARM or newer MIPS processors recommended
  • RAM: 128MB minimum, 256MB+ recommended
  • Kernel: Must support WireGuard kernel module

Note: Not all DD-WRT builds include WireGuard. Check your build's feature list.

Step-by-Step Configuration

1

Access Router Interface

Navigate to your DD-WRT router's web interface:

  • Default: 192.168.1.1
  • Alternative: 192.168.0.1

Log in with your administrator credentials.

2

Create WireGuard Tunnel

Navigate to Setup → Tunnels:

  1. Click Add Tunnel button
  2. Select Enable
  3. Choose WireGuard from the dropdown menu
  4. Click Save

🔑 Key Generation

After saving, DD-WRT will display:

  • Private Key: Keep this secret!
  • Public Key: You'll need this for TorGuard config

Click Generate Key if keys aren't shown, then copy both keys.

3

Generate TorGuard Config

Visit the TorGuard Config Generator:

Configuration Steps:

  1. VPN Tunnel type: Select "WireGuard"
  2. Server Location: Choose your preferred server or enter Dedicated IP
  3. VPN Username: Enter your TorGuard username
  4. Local Public-Key: Paste the public key from DD-WRT
  5. Local Private-Key: Paste the private key from DD-WRT
  6. Click Generate Config
TorGuard WireGuard Config Generator
4

Configure DD-WRT Settings

Using your generated config, fill in the DD-WRT tunnel settings:

NAT via tunnel: Enable
Endpoint: Enable
Endpoint Address: [Server IP from config]:1443

📍 Allowed IPs Configuration

Set to: 0.0.0.0/1, 128.0.0.0/1

This routes all internet traffic through the VPN while maintaining local network access.

Route Allowed IPs via tunnel: Enable
Persistent Keepalive: 25
Peer Public Key: [From generated config]

Add Peer Configuration:

IP Address: [Address from config, e.g., 10.x.x.x]
Subnet Mask: 255.255.255.255

Click Save after entering all settings.

DD-WRT WireGuard Configuration

Finally, click Apply Settings to activate the tunnel.

5

Verify Connection

Connect a device to your DD-WRT router's network and verify:

  1. Browse to TorGuard IP Check
  2. Confirm IP shows TorGuard server location
  3. Verify status shows "Protected"
IP Verification

WireGuard Cryptography

🔐 Security Specifications

  • Key Exchange: Curve25519 for ECDH
  • Encryption: ChaCha20 stream cipher
  • Authentication: Poly1305 authenticator
  • Hashing: BLAKE2s hash function
  • Hashtable keys: SipHash24
  • Perfect Forward Secrecy: Yes, every 2 minutes

All cryptographic choices are fixed - no downgrade attacks possible!

Feature Comparison

Feature WireGuard OpenVPN
Code Size ~4,000 lines ~100,000 lines
Setup Time <100ms 2-8 seconds
Handshake 1-RTT Multi-RTT
Crypto Agility No (fixed, modern) Yes (configurable)
Roaming Seamless Reconnect required
CPU Usage Very Low Moderate-High

Router Compatibility

✅ Known Compatible Models

Netgear R7800
Linksys WRT32X
ASUS RT-AC86U
Netgear R9000
Linksys WRT3200ACM
ASUS RT-AX88U

Note: Requires DD-WRT build with WireGuard support. Older/weaker routers may not support WireGuard.

Advanced Configuration

🔧 Advanced Options

MTU Optimization

For better performance, you can set MTU in Additional Config:

MTU = 1420

DNS Configuration

To use TorGuard DNS servers:

  • Go to Setup → Basic Setup
  • Set Static DNS 1: 10.8.0.1
  • Set Static DNS 2: 10.9.0.1

Kill Switch

To block internet if VPN disconnects:

  • Administration → Commands
  • Add firewall rules to block WAN access
  • Only allow traffic through wg0 interface

Troubleshooting

No Connection

  • Verify endpoint IP and port (1443)
  • Check keys match config exactly
  • Ensure WireGuard module is loaded
  • Try regenerating config

Slow Speeds

  • Check router CPU usage
  • Try different server location
  • Verify MTU settings
  • Update DD-WRT firmware

DNS Issues

  • Set static DNS servers
  • Clear DNS cache
  • Check allowed IPs includes DNS
  • Disable IPv6 if problematic

Security Considerations

🔒 Security Best Practices

  • Key Security: Never share your private key
  • Regular Updates: Keep DD-WRT firmware updated
  • Firewall Rules: Configure proper firewall rules
  • DNS Leak Protection: Use TorGuard DNS servers
  • IPv6: Disable if not routed through VPN

Performance Tips

💡 Optimization Tips

  • Server Selection: Choose geographically close servers
  • Router Placement: Ensure good ventilation for CPU cooling
  • QoS Settings: Configure Quality of Service for priority traffic
  • Channel Selection: Use less congested Wi-Fi channels
  • Hardware Acceleration: Enable if your router supports it

Need Help?

If you're experiencing issues with WireGuard on DD-WRT:

Contact Support

Include your DD-WRT build number and router model

Additional Resources:

Was this article helpful?

Share:

Ready to Get Help?

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