Grandstream WireGuard Site-to-Site Configuration Guide

Grandstream Networks, Inc.

Introduction

This guide provides step-by-step instructions to configure a WireGuard site-to-site VPN between two Grandstream GWN routers. It is intended for users looking to establish a secure VPN tunnel between two remote networks using the WireGuard protocol.

Device Series Models Supported
GWN70x2 (Wireless Routers) GWN7052, GWN7052F, GWN7062
GWN70xx (Wired Routers) GWN7001, GWN7002, GWN7003
GCC6000 (Convergence Devices) GCC6010W, GCC6010, GCC6011

WireGuard® supported devices

Prerequisites

Lab Setup Overview

This lab setup involves two routers configured as follows:

Network Topology Diagram Description: A diagram showing two routers, GWN7052F (Site A) and GCC6010W (Site B), connected via an internet network. Site A has a LAN subnet of 192.168.70.0/24 and WireGuard IP 10.0.0.2/24. Site B has a LAN subnet of 192.168.80.0/24 and WireGuard IP 10.0.0.1/24. The internet network is represented as 192.168.5.0/24, with specific IPs 192.168.5.130 for Site A's internet connection and 192.168.5.254 for Site B's internet connection.

Step 1: Configuring WireGuard on Site B (GCC6010W)

To configure WireGuard on the GCC6010W router at Site B, follow these steps:

  1. Log in to the web interface of the GCC6010W router.
  2. Navigate to VPN > WireGuard and click "Add" to create a new WireGuard instance.
  3. Fill out the configuration fields as follows:
    • Name: WG_SiteB
    • Status: ON
    • Interface: WAN1 (WAN)
    • Monitoring Port: 51820
    • Local IP Address: 10.0.0.1/24
    • Subnet Mask: 255.255.255.0
    • Destination: All
    • Private Key: [Auto-Generated] (One-click generation)
    • Public Key: [Auto-Generated] (Copy this key)
    • Maximum Transmission Unit (MTU): 1420

Configuration Summary Table:

Field Value Description
Name WG_SiteB The name of the WireGuard interface.
Status ON Toggle ON the status to enable it.
Interface WAN1 Select the WAN interface connected to the internet.
Monitoring Port 51820 Standard WireGuard port; can be customized.
Local IP Address 10.0.0.1/24 WireGuard IP address for this interface at Site B.
Subnet Mask 255.255.255.0 Subnet mask for the WireGuard network.
Destination All Allows routing to all networks.
Private Key [Auto-Generated] Automatically generated; keep it secure.
Public Key [Auto-Generated] Public Key changes whenever the Private Key changes. Note: Copy and save the public key immediately after generating the private key, as this public key will be used for configuration on the other site (either Site A or Site B).
MTU 1420 Maximum Transmission Unit; default is recommended.

Once the fields are filled out, click "Save" to create the WireGuard interface.

Adding the Peer for Site A

Next, add the peer for Site A on the router at Site B:

  1. Navigate to the Peers section and click "Add".
  2. Fill out the peer fields as follows:
    • Name: WG_SiteA
    • Status: ON
    • WireGuard: WG_SiteB
    • Public Key: [Public Key from Site A]
    • Pre-Shared Key: Optional (Generate and share securely between sites for added security)
    • Allowed IP Address: 192.168.70.0/24
    • Endpoint Address: [Public IP/DDNS of Site A]
    • Endpoint Port: 51820
    • Persistent Keepalive (Sec): 25

Peer Configuration Summary Table:

Field Value Description
Name WG_SiteA A descriptive name for the peer at Site A.
Status ON Toggle ON the status to enable it.
WireGuard WG_SiteB Select the WireGuard interface created earlier at Site B.
Public Key [Public Key from Site A] Enter the public key generated on the router at Site A.
Pre-Shared Key Optional A pre-shared key can be used for an additional layer of security. This key must be the same on both Site A and Site B. If you decide to use a pre-shared key, make sure to generate it and securely share it between the two sites.
Allowed IP Address 192.168.70.0/24 The subnet behind the router at Site A.
Endpoint Address [Public IP/DDNS of Site A] The public IP or DDNS of the router at Site A.
Endpoint Port 51820 The port WireGuard is listening on at Site A.
Persistent Keepalive 25 Default value to keep the connection alive.

Click "Save" to store the peer configuration.

Step 2: Configuring WireGuard on Site A (GWN7052F)

To configure WireGuard on the GWN7052F router at Site A, follow these steps:

Step-by-Step Instructions for Site A

  1. Log in to the web interface of the GWN7052F router.
  2. Navigate to VPN > WireGuard and click "Add" to create a new WireGuard instance.
  3. Fill out the configuration fields as follows:
    • Name: WG_SiteA
    • Status: ON
    • Interface: WAN1 (WAN)
    • Monitoring Port: 51820
    • Local IP Address: 10.0.0.2/24
    • Subnet Mask: 255.255.255.0
    • Destination: All
    • Private Key: [Auto-Generated] (One-click generation)
    • Public Key: [Auto-Generated] (Copy this key)
    • Maximum Transmission Unit (MTU): 1420

Configuration Summary Table:

Field Value Description
Name WG_SiteA The name of the WireGuard interface.
Status ON Toggle ON the status to enable it.
Interface WAN1 Select the WAN interface connected to the internet.
Monitoring Port 51820 Standard WireGuard port; can be customized.
Local IP Address 10.0.0.2/24 WireGuard IP address for this interface at Site A.
Subnet Mask 255.255.255.0 Subnet mask for the WireGuard network.
Destination All Allows routing to all networks.
Private Key [Auto-Generated] Automatically generated; keep it secure.
Public Key [Auto-Generated] Public Key changes whenever the Private Key changes. Note: Copy and save the public key immediately after generating the private key, as this public key will be used for configuration on the other site (either Site A or Site B).
MTU 1420 Maximum Transmission Unit; default is recommended.

Once the fields are filled out, click "Save" to create the WireGuard interface.

Adding the Peer for Site B

Next, add the peer for Site B on the router at Site A:

  1. Navigate to the Peers section and click "Add".
  2. Fill out the peer fields as follows:
    • Name: WG_SiteB
    • Status: ON
    • WireGuard: WG_SiteA
    • Public Key: [Public Key from Site B]
    • Pre-Shared Key: Optional (Generate and share securely between sites for added security)
    • Allowed IP Address: 192.168.80.0/24
    • Endpoint Address: [Public IP/DDNS of Site B]
    • Endpoint Port: 51820
    • Persistent Keepalive (Sec): 25

Peer Configuration Summary Table:

Field Value Description
Name WG_SiteB A descriptive name for the peer at Site B.
Status ON Toggle ON the status to enable it.
WireGuard WG_SiteA Select the WireGuard interface created earlier at Site A.
Public Key [Public Key from Site B] Enter the public key generated on the router at Site B.
Pre-Shared Key Optional A pre-shared key can be used for an additional layer of security. This key must be the same on both Site A and Site B. If you decide to use a pre-shared key, make sure to generate it and securely share it between the two sites.
Allowed IP Address 192.168.80.0/24 The subnet behind the router at Site B.
Endpoint Address [Public IP/DDNS of Site B] The public IP or DDNS of the router at Site B.
Endpoint Port 51820 The port WireGuard is listening on at Site B.
Persistent Keepalive 25 Default value to keep the connection alive.

Click "Save" to store the peer configuration.

Step 3: Testing the VPN Connection

After configuring both Site A and Site B, it's important to test the VPN connection to ensure everything is working properly.

Testing the Connection

  1. Turn on the WireGuard interfaces on both Site A and Site B.
  2. Use the ping command to test connectivity between devices on the two networks (e.g., ping from a device in 192.168.70.0/24 to a device in 192.168.80.0/24).

Troubleshooting Tips

Conclusion

By following this guide, you should now have a fully operational WireGuard site-to-site VPN between your GWN7052F and GCC6010W routers at Site A and Site B. This secure connection allows you to route traffic between the two networks seamlessly and securely over the internet.

If you encounter any issues or need further assistance, please refer to Grandstream support resources or contact the Grandstream technical support team.

Models: GWN7052, GWN7052F, GWN7062, GWN7001, GWN7002, GWN7003, GCC6010W, GCC6010, GCC6011, GWN7052 Dual Band WiFi Router, GWN7052, Dual Band WiFi Router, Band WiFi Router, WiFi Router

File Info : application/pdf, 7 Pages, 1.02MB

PDF preview unavailable. Download the PDF instead.

WireGuard -Site-to-Site-Configuration-Guide

References

Adobe Acrobat Pro (32-bit) 24.2.20991

Related Documents

Preview Grandstream GWN700X Router Firmware Release Notes and Updates
Comprehensive release notes for Grandstream GWN700X series routers, detailing firmware updates, new features, bug fixes, and important upgrading information for models GWN7001, GWN7002, and GWN7003.
Preview Grandstream GWN App for Android User Manual: Network Management Guide
Comprehensive user manual for the Grandstream GWN App for Android, detailing how to manage GWN Access Points, Routers, and Switches via GWN.Cloud and GWN Manager for efficient network monitoring and control.
Preview Grandstream GCC6000 Series Fast Provisioning Guide
A comprehensive guide to using the Fast Provisioning feature on Grandstream GCC6000 convergence devices for easy deployment of VoIP devices and SIP accounts.
Preview Grandstream GCC601X PBX Firmware Release Notes
Release notes for Grandstream GCC601X PBX firmware, detailing updates, bug fixes, and enhancements for various firmware versions including 1.0.25.41, 1.0.25.40, 1.0.25.21, 1.0.25.17, and 1.0.25.11.
Preview Grandstream GWN70xx Wireless Router Firmware Release Notes
Official release notes for Grandstream GWN70xx series wireless routers, detailing firmware versions, file information, and changes/enhancements for each release.
Preview Grandstream GWN70xx Wireless Router Firmware Release Notes
Official firmware release notes for Grandstream GWN70xx series wireless routers, detailing updates, bug fixes, and enhancements for versions 1.0.7.2 down to 1.0.5.5.
Preview Grandstream GWN70xx Wireless Router Firmware Release Notes
Official release notes for Grandstream GWN70xx series wireless routers, detailing firmware versions, updates, bug fixes, and new features for models GWN7062, GWN7052, and GWN7052F. Includes important upgrading information and download links.
Preview Grandstream GWN70xx Wireless Router Firmware Release Notes
Comprehensive release notes for Grandstream GWN70xx series wireless routers, detailing firmware versions, release dates, file information, and changes/enhancements for models GWN7062, GWN7052, and GWN7052F.