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

    WireGuard routing error

    Scheduled Pinned Locked Moved WireGuard
    3 Posts 2 Posters 548 Views
    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.
    • B
      barni
      last edited by

      Hello there,

      How to check WireGuard routes from the command line?

      It looks like one of the allowed IPs net range not routing
      properly. I checked the routes with the netstat -rWn command
      but the subnet is missing only the WG network appears.
      Looks like the packages going out on default route instead
      what I set up.

      Do you have any idea what's wrong?

      Comments appreciated.

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @barni
        last edited by Bob.Dig

        @barni WireGuard on pfSense doesn't set routes, it is up to you. So you have to do it twice for a Subnet not directly connected to pfSense.

        1 Reply Last reply Reply Quote 2
        • B
          barni
          last edited by

          Thank you so much!

          I created an Interface for the WG tunnel
          set a Gateway to WG peer address via this Interface
          and created a static route to opposite
          network through this new GW.

          It is working fine now!

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