Hi everyone, I’m looking for help with a WireGuard routing issue on my GL.iNet router.

https://docs.gl-inet.com/router/en/4/tutorials/wireguard_server_access_to_client_lan_side/#how-to-access-wireguard-client-lan-side-from-server

  • I set the Target Address to 192.168.8.0/24.
  • I set the Gateway to 10.1.0.1.
  • After applying this, devices can still connect to the GL.iNet Wi-Fi, but there is no internet access.
  • The router’s admin panel at http://192.168.8.1/ is no longer accessible.

Has anyone experienced this before, or can explain what went wrong and how to recover access without a full reset?

Thanks in advance for any help.

  • tychosmoose@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    That rule is supposed to be set on the “server” at the other end of the wg connection, using its own wg address as gateway. Not on the router for the lan you’re trying to access. That seems like a pretty easy mistake to make given that documentation.

    You could try a short reset of just the network configuration. Hold reset for like 5 seconds. Might need to do a full reset (10+ seconds) if that doesn’t get you back in.

    • tatoko556@reddthat.comOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Thank you, a short reset worked!

      But how do I set up the routing correctly on the WireGuard router? What should the Target Address and Gateway be if my LAN is under 192.168.8.0/24, and my mobile client with the WireGuard client has a client IP of 10.0.0.2/24?

      • tychosmoose@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        So you have a single mobile device connecting via wg, correct? Not a second network?

        If so the only configuration you should need on the router are firewall rules to allow forwarding from wg to lan. I am guessing that’s what the second step in the GL-iNet help accomplishes. That’s what I would recommend trying.

        If I was doing this on “normal” OpenWRT I would create a firewall zone wg, and allow traffic to/from it and lan.

        On the client device you should be good to go without changes if AllowedIPs is set to 0.0.0.0/, ::/0 (sending all traffic through wg).