How to set up WireGuard server via AstroRelay?¶
This tutorial introduces the steps to set up a WireGuard server via AstroRelay on a GL.iNet router, which is ideal for users who need remote access to their home or office local services but do not have a public IP address from their ISP.
AstroRelay provides a secure reverse proxy tunnel, through which you can securely access resources behind NAT and firewalls.
-
Follow this guide to set up a WireGuard server on your GL.iNet router, even if you don't have a public IP address.

Then click Profiles to export the WireGuard configuration. Here is an example config file.

-
(Optional) If you need to access the VPN server's LAN remotely, enable Allow Remote Access LAN. Otherwise, skip this step.
For firmware v4.7 and earlier
On the server's web admin panel, go to VPN -> VPN Dashboard -> VPN Server section. Click the gear icon on the right side of the WireGuard server.

Enable Remote Access LAN, and click Apply.

When enabled, this router and LAN devices can be accessed remotely via the VPN.
For firmware v4.8 and later
On the server's web admin panel, go to VPN -> WireGuard Server. Click Options in the upper right corner.

Enable Allow Remote Access the LAN Subnet, and click Apply.

When enabled, this router and LAN devices can be accessed remotely via the VPN.
-
Sign up an AstroRelay account and follow this tutorial to complete first-time setup.
When adding a new domain, choose the server closest to your router.

When adding a new link, enter your router's LAN IP address into the Destination Host IP field, and enter 51820 into the Destination Port field.

You will then get a link, such as wg_server_test.arlab1.cc:33331. Click it to copy the link.

-
Open the WireGuard configuration file, replace the value after Endpoint with the link you got in the previous step, and apply the changes.

-
Install the WireGuard app on the device you want to use as a WireGuard client. Then upload the modified configuration file to the app and start the conneciton. Alternatively, upload it to another GL.iNet router so as to set it up a WireGuard client.
Once connected, you will be able to access your home or office local services remotely.
Still have questions? Visit our Community Forum or Contact us.