Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    The service show not running but client can connect to wireguard server.

    Scheduled Pinned Locked Moved WireGuard
    4 Posts 4 Posters 2.0k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      akong77
      last edited by

      Please see pic
      c64f94d3-337e-407c-bac3-fc3b3752a445-圖片.png
      But I click status have show user connect and I have test connect wireguard it's ok.
      661c289e-5b58-410d-985d-98d28eedfa17-圖片.png
      How to fix it?
      I have see log.Just show

      /usr/local/pkg/wireguard/includes/wg_service.inc: Gateway, NONE AVAILABLE
      
      1 Reply Last reply Reply Quote 0
      • I Offline
        IonutIT
        last edited by

        Same issue for me as well. Just came to check if others have the same problem.

        I have 3 wireguard interfaces, one is a client VPN, other two are gateways for site to site VPN. When booting up, pfsense says the service is not running, but all tunnels work just fine.

        If I click to start the service sometimes it works and it shows up, other times it still fails and shows not running. Either way, all wireguard interfaces work just fine.

        1 Reply Last reply Reply Quote 0
        • lvrmscL Offline
          lvrmsc
          last edited by lvrmsc

          Same here. It started after I installed 25.07.
          Then it settled down by itself after a few days.
          It started again after upgrading to 25.07.1.
          WireGuard works fine (it merely connects to the remote site from this one).
          However, I am refraining from upgrading the remote, because if the 'service' does not start, I fear it will not listen to incoming connections, which would leave me in a difficult situation.

          The other topic I had opened before finding this:
          https://forum.netgate.com/topic/198449/25.07-release-amd64-wireguard-service-reported-stopped-yet-tunnel-trafic-clearly-is-ok

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            Bronko @lvrmsc
            last edited by

            @lvrmsc said in The service show not running but client can connect to wireguard server.:

            Same here. It started after I installed 25.07.

            Same here too, came from fresh 2.8.1 installation and restored 2.7.2 config.

            The other topic I had opened before finding this:
            https://forum.netgate.com/topic/198449/25.07-release-amd64-wireguard-service-reported-stopped-yet-tunnel-trafic-clearly-is-ok

            (checked, have Watchdog Service disabled temporarily too)

            My wg_0 worked directly after reboot, wg_1 takes some minutes to established, but Wireguard Service marked as stopped (red) all the time.

            Some static routes defined on pfsense for wg_1 interface with gateway on the remote side, but still missing in system routing table after wg_1 established (ex.):

            ...
            php_wg[24929]: /usr/local/pkg/wireguard/includes/wg_service.inc: Static Routes: Gateway IP could not be found for 10.0.30.0/24
            ...
            

            Therefore wg_1 isn't usable regarding related routes are missing.

            My work around currently:
            Disabling Peer assigned to wg_1 by GUI
            --> pfsense means (by error message) Wireguard not running ;-) and disables wg_0 related Peer too and Wireguard Service stopped in real
            --> Re-enable wg_1 related Peer
            --> Start Wireguard Service via GUI and it goes to green
            --> form now on all wg_1 related routes are in the routing table

            It seems behavior could routing table related because the error messages (above) starts at boot time before Wireguard Service is started...

            What is the situation on your sides?

            (Will check the situation with temporarily disabled static routes before next reboot)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.