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

    can only reach wg clients from pfsense not from lan

    Scheduled Pinned Locked Moved WireGuard
    2 Posts 2 Posters 31 Views 2 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.
    • M Offline
      mahla
      last edited by

      Hi

      I setup a wiregiard tunnel to connect a usb-device server with integrated wireguard supoprt to my pfsense. the connection itself works (and I do have the green handshake symbol under status) but I can only reach (that is ping) the device from the pfsense itself - from the LAN I can ping the pfsense IP in the transfer net but not the wg client.

      Heres my setup: pfsense 2.8.1 / wireguard 0.2.9_5

      pfsense LAN: 192.168.201.1/24, wan with a static ip
      I created a tunnel tun_wg0 and a peer with a dynamic endpoint
      aet the allowed IP for this endpoint to 192.168.232.2/32
      I created an interface OPT1 with MTU 1420 and a static IP of 192.168.232.1/24

      on the client I set these options:
      virtual client ip: 192.168.232.2/32
      allowed IP: 192.168.232.1/32, 192.168.201.0/24
      I have no control over the lan ip of the device (assigned by dhcp)

      as said - tunnel works. ping from pf sense to 192.168.232.2 works. ping from lan to 192.168.232.1 works but not to 232.2

      I am sure I am only missing something small - but at the moment I cant the tree in the woods anymore - any help would be greatly appreceated

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

        @mahla

        Hi,
        your client side (192.168.232.2) doesn't now the route back to your pfsense LAN: 192.168.201.1/24.
        your have to add on client site:

        route add -net 192.168.201.1/24 gw 192.168.232.1
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.