Correct calculation of WireGuard client IP?

Wait… are you trying to put the DHCP subnet and the VPN WG Server on the same LAN segment? That’s not going to work if you are. Quick & dirty:

  • Set your LAN to to the default 192.168.8.0/24 . That’ll give you 255 (256 minus the router’s) IPs to assign behind the router.
  • Set your VPN WG Server to whatever the defaults are.
  • Connect up the conf & test a WG client (eg: iPhone) communicates to the Web
  • VPN WG Server is going to have a wholly different IP range & subnet for the VPN than your LAN
  • GL GUI has other options for allowing inter-LAN resources to communicate to WG Clients via the WG Server

LAN Network Defaults

GL GUI → Network → LAN:

  • Router IP Address: 192.168.8.1
  • Maximum Number of User: 150
  • Start IP Address: 192.168.8.100
  • End IP Address: 192.168.249
  • DHCP Gateway: Optional # ie: no value

(Assumes firmware 4.2.1-release4)