• routing, DrayOS 5, imported, ping_test, site_to_site_vpn, vpn_setup, vigor2136, wireguard_vpn

WireGuard VPN between Vigor Routers (DrayOS5)

WireGuard VPN between Vigor2136s

To configure the WireGuard VPN between two Vigor2136s easily, please open both routers’ Web pages simultaneously.

1. Set up the General Key on the WireGuard VPN Server

Activate WireGuard VPN service via VPN/ General Setup/ WireGuard

  • Switch on the Enabled tab.
  • Click Generate to generate the Private Key.
  • The Key Pairs in the General Setup are for the Vigor Router. The peer WireGuard VPN clients need the Vigor Router’s Public Key to create the WireGuard VPN profile. Copy the Public Key of the WireGuard VPN server.

    2. Set up the WireGuard VPN Site to Site Profile on the VPN Client Router

    Go to VPN / Site to Site VPN, click Add + to create a VPN Site to Site Profile.

    2.1 In General Settings:

  • Give a name to this Profile
  • Switch on Enabled
  • Select Dial-Out for Direction
  • Select WireGuard as VPN Protocol
  • Enter Remote VPN server’s IP or Domain Name
  • Select On Demand for Dial-Out mode
  • 2.2 In WireGuard Settings

    Interface

  • Click Generate to generate the Public Key and the Private Key for this VPN profile.
  • Copy the Public Key setting of the VPN Client. The VPN server will need the Client’s Public Key to create the WireGuard VPN profile.
  • Peer

  • Paste the WireGuard VPN Server’s Public Key (copied in step 1) here.
  • Click Generate to generate the Pre-Shared Key settings.
  • Copy the Pre-Shared Key setting of this VPN profile. The VPN server will need the same Pre-Shared Key setting to create the WireGuard VPN profile.
  • 2.3 In Network Settings

  • Enter the Local Network and Subnet Mask
  • Enter the Remote Network and Subnet Mask
  • Select Routing mode
  • Do Not Apply the settings; Go to create the VPN profile on the VPN Server then.
  • 3. Set up the WireGuard VPN Site to Site Profile on the VPN Server

    Go to VPN / Site to Site VPN, click Add + to create a VPN Site to Site Profile.

    3.1 In General Settings:

  • Give a name to this Profile
  • Select Dial-In for Direction
  • Select WireGuard as VPN Protocol
  • Select Always Allow as the Dial-In Allowed Schedule
  • 3.2 In WireGuard Settings

    Peer

  • Paste the WireGuard VPN Client’s Public Key (copied in step 2.2).
  • Paste the Pre-Shared Key setting (copied in step 2.2)
  • 3.3 In Network Settings

  • Enter the Local Network and Subnet Mask
  • Enter the Remote Network and Subnet Mask
  • Click Apply to Save the settings.
  • 4.Go back to the Client Router’s VPN Site to Site Profile Setup page and Apply the settings.

    5. Go to VPN / VPN Connection Status to check if the WireGuard Site-to-Site VPN connection is established.

    And use ping to ensure if the connection to a remote Server through the VPN works.

    When pinging the remote router’s LAN IP to check the connectivity, please enable the Ping for LAN Access option via System Maintenance / Management. Then, the remote router can reply to Ping over the VPN connection.