Building a Site-2-Site network manually using two GL.iNet routers(SDK 4.X)

To elaborate on the situation for three GL.inet routers Site-2-Site:
wireguard server firmware >=4.5 is required

Topology:

Steps:

  1. wgserver: add two profiles on admin panel of wgserver, and export conf file for wgclient’s usage.

  1. wgclient: import conf file, connect to wgserver, and turn on ”Allow Remote Access LAN”

  2. wgserver: enable ”Client to Client“


image

Now:

PC 192.168.172.2 can access 10.0.0.3

PC 192.168.173.2 can access 10.0.0.2

  1. wgserver: add custom routes

Now:

PC 192.168.172.2 and 192.168.172.3 can communicate, ie, site-to-site network is done.

Add more wgclient to join more sites, just as 10.0.0.2 and 10.0.0.3.