Overview
This article explains how to configure clients to connect to WireGuard (WG) VPN server on an Alta Labs Route10 router over IPv6. By default, the WireGuard server listens on both IPv4 and IPv6, so which protocol is used is dependent upon the client and its configuration.
The dynamic DNS hostname in the exported configuration is registered with both an A record for the IPv4 WAN IP and an AAAA record for the IPv6 WAN IP. If Route10 is IPv6-enabled and the client has IPv6 connectivity and prefers IPv6, the VPN will automatically use IPv6 without any configuration changes on the client. It's possible to force IPv6-only connectivity for clients which prefer IPv4 over IPv6 by changing the hostname in the configuration. Sites with private IPv4 and public IPv6 on their WAN may require this to establish VPN connectivity, since connectivity over IPv4 cannot function over the internet in that circumstance.
Prerequisites
- An Alta Labs Route10 router with working IPv6 connectivity.
- A publicly-reachable IPv6 address for the VPN server.
- The WireGuard application installed on the remote client device.
- IPv6 connectivity on the remote client device.
Configuration Steps
Step 1: Configure the WireGuard server
- Log in to the Alta Labs Control on manage.alta.inc.
- Click the Route10 and then Click on the VPN tab.
- Click on Open in front of the WireGuard and Configure the WireGuard server.
- Specify the subnet to be used for the VPN clients.
- Configure the required listening port.
- Save the configuration.
Step 2: Add a WireGuard user
- Click the Route10 and then Click on the AUTH tab.
- Click Enable and set a password for authentications.
- Click Add User to create a new WireGuard user.
- Input the Username and password for the user.
- Save the user configuration.
Step 3: Download the user configuration
- Locate the newly created WireGuard user.
- Click Show for the WireGuard user.
- Download the generated WireGuard configuration file (
.conf).
Step 4: Edit the WireGuard configuration file
- Open the downloaded configuration file in a text editor.
- Locate the
Endpointparameter in the[Peer]section. - Append
v6.to the beginning of the dynamic DNS hostname afterEndpointin the configuration.
Example of an IPv6-only endpoint:
[Peer] PublicKey = <server-public-key> Endpoint = v6.xxxxxx.ddns.manage.alta.inc:51820 AllowedIPs = 192.168.88.0/24
In this example:
v6.xxxxxx.ddns.manage.alta.incis the example IPv6-only hostname of the VPN server.51820is the configured WireGuard listening port.192.168.88.0/24is an illustrative value for the traffic routed through the VPN. Retain the appropriateAllowedIPsvalue from the generated configuration unless a change is required.
Important: If using an IPv6 address directly rather than a hostname pointing to IPv6, the endpoint must follow this format:
Endpoint = [IPv6_ADDRESS]:PORT
The square brackets are required to separate the IPv6 address from the port number.
Step 5: Import the configuration into the WireGuard client
- Save the modified configuration file.
- Open the WireGuard application on the remote client device.
- Import the edited configuration file.
- Activate the VPN tunnel.
Step 6: Verify the connection
- Confirm that the VPN tunnel is activated.
- Verify that a WireGuard handshake is established.
- Test access to the required internal network resources.
Troubleshooting
If the VPN connection does not establish, verify the following:
- The IPv6 hostname or address entered in the endpoint is correct and reachable from the client network.
- The endpoint uses square brackets around the IPv6 address if not using a hostname.
- The UDP port matches the port configured on the WireGuard server.
- IPv6 connectivity is available both on the client and Route10 WAN interface.
- Any upstream firewall permits traffic to the WireGuard server on the configured UDP port. Route10's firewall rules automatically permit traffic to the WireGuard server.
Summary
To configure a WireGuard VPN server over IPv6 on Alta Labs Route10:
- Configure the WireGuard server, VPN subnet, and listening port.
- Add a WireGuard user.
- Click Setup for the user and download the configuration file.
- Edit the configuration file to specify the server's IPv6 address in square brackets, followed by the port number.
- Import the modified file into the WireGuard client and verify connectivity.
Comments
0 comments
Please sign in to leave a comment.