Skip to content

How to set up OpenVPN server via AstroRelay?

Scenario: If you want to set up OpenVPN server in GL.iNet router at home/office to remote access your local service, but your ISP doesn't provide a public IP address.

AstroRelay provides a secure reverse proxy tunnel, through which you can securely access resources behind NAT and firewalls.

  1. Follow the guide here to set up OpenVPN server even if you don't have a public IP address. Please enable Allow Access Local Network.

    set up openvpnd server

    Then export an OpenVPN configuration. The image below is an example.

    openvpn config

  2. Sign up an AstroRelay account and follow this tutorial to complete first-time setup.

    When adding a new domain, please choose the server closest to your router.

    astrorelay add a new domain

    When adding a new link, input your router's LAN IP address into the Destination Host IP box. Input 1194 into the Destination Port box.

    link for openvpn server

    Then you will get a link, such as testforx3000.arlab1.cc:37202. Click on it to copy the link.

    astrorelay link

  3. Open the OpenVPN configuration, replace the data after Remote with the link you got in previous step. In the example below, we replace the "42.200.00.00 1194" with the link "testforx3000.arlab1.cc:37202".

    Then replace the colon ":" with a space, e.g. "testforx3000.arlab1.cc 37202".

    openvpn config

    replace link

    Then you will be able to use the modified config file in OpenVPN client app.

  4. When you are not at home/office, you can upload the modified config file into the OpenVPN client app to access your home/office local service as you are at home/office.

    openvpn up


Still have questions? Visit our Community Forum or Contact us.