Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    WireGuard to LAN access - How to accomplish via static route?

    Scheduled Pinned Locked Moved WireGuard
    3 Posts 3 Posters 1.0k Views 3 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.
    • T Offline
      tibere86
      last edited by tibere86

      Hi all - I run a pretty simple network with a single LAN and WireGuard interface.
      LAN network = 10.0.0.0/24
      WireGuard network = 172.16.70.0/24

      My WireGuard clients can connect to my pfSense instance fine and fully access the internet. Where I am having trouble is with accessing a LAN network device (Pihole instance) from a WireGuard client. In the WireGuard rule set, I have an allow all rule already that should, in theory, allow all WireGuard clients to access any network and the internet.

      I believe I need to set up a static route between the two networks, I am just unsure how to accomplish this under the pfSense Static Route settings.

      For Destination Network, do I use 172.16.70.0/24 or 10.0.0.0/24?

      For Gateway, what do I create and use, 172.16.70.1 or 10.0.0.1?

      28e16cbe-bff1-4bb8-a754-31b72a6c871e-image.png

      luckman212L 1 Reply Last reply Reply Quote 0
      • luckman212L Offline
        luckman212 LAYER 8 @tibere86
        last edited by

        You do not need to declare static routes for networks that are directly connected to your pfSense gateway, such as the LAN or any VLANs you've set up (none in your case).

        You do need firewall rules to allow the traffic (sounds like you've done that although a screenshot wouldn't hurt) and-

        In your WG Peer setup, what do you have entered for Allowed IPs? And, on the actual WG client, what do you define as AllowedIPs in the [Peer] config? Using 0.0.0.0/0 there will route "everything" via the tunnel, or you can supply a comma separated list of networks (split-tunneling) which is usually preferred.

        1 Reply Last reply Reply Quote 0
        • G Offline
          giuliafw70
          last edited by

          For a Pi-hole on the same LAN, the missing piece is often not a pfSense static route. The LAN is directly connected, so pfSense already knows both 10.0.0.0/24 and 172.16.70.0/24. I would check two things: the WireGuard client AllowedIPs includes 10.0.0.0/24 if you are split tunneling, and the Pi-hole either uses pfSense as its default gateway or has a route back to 172.16.70.0/24. If the Pi-hole's gateway is something else, replies can go the wrong way even though the pfSense rule is wide open.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy