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

Cannot connect to LAN devices from Wireguard VPN

Scheduled Pinned Locked Moved WireGuard
6 Posts 2 Posters 5.7k 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
    ben9090
    last edited by Aug 9, 2022, 8:49 PM

    I have been working on this issue for a couple of days and wanted to come here for some help as I am new to PFSense.

    I have set up Wireguard and OpenVPN VPN's and have the same issue on both. I have followed multiple Wireguard walkthroughs but cannot get them to work for me. I have no issue connecting to either VPN but I cannot ping devices on the LAN network (192.168.0.0/24) except for the IP of the PFSense (192.168.0.1).
    I can also ping my client (windows PC) from a server on the remote network. So it looks like it is only going one way. My rules look to be correct from what I have seen in tutorials.

    I will attach images of most of my configuration.

    Here is my Wireguard client config:

    [Interface]
    PrivateKey = xxxxxxxxxxxxxxxxxxx
    ListenPort = 51820
    Address = 10.200.0.5/24
    DNS = 8.8.8.8

    [Peer]
    PublicKey = xxxxxxx
    AllowedIPs = 10.200.0.0/24, 192.168.0.0/24
    Endpoint = [ddnsdomain]:51820
    wireguardRules.png WanRules.png VGA_VPN Interface.png VGA_VPN Interface Rules.png Tunnel.png status.png routePrint.png peers.png LANRules.png

    J 1 Reply Last reply Aug 9, 2022, 10:16 PM Reply Quote 0
    • J
      Jarhead @ben9090
      last edited by Jarhead Aug 9, 2022, 10:32 PM Aug 9, 2022, 10:16 PM

      @ben9090 That top rule on your wireguard interface is useless because right below it you allow all on lan.
      Same on the VGA_VPN interface.

      You don't show your WG settings but if you have "Interface Group Membership" set to Only Unassigned Tunnels" (which I think is default but can't remember for sure) you don't need any rules on the WG interface since you assigned an interface to the tunnel.
      It's only using the actual interface (VGA_VPN) for rules.

      Set the destination as WAN Address for your wireguard port through WAN.
      Set MTU and MSS to 1420 on wg interface.

      Your client Interface address should be a /32 not /24.

      Your bottom LAN rule is not neccessary as everything "not allowed" is already blocked.

      In Services/DNS resolver/ ACL, is there a Wireguard ACL created?

      EDIT: Forgot, your routes are all screwy, the interface for that subnet should be the WG interface, not the .5 address, try restarting the tunnel to see if it corrects itself.

      EDIT2: 3 hours sleep since 5am yesterday.... A bit fuzzy to say the least.

      You're doing a remote access wireguard, delete the interface, assign the 10.200.0.1/24 to the wireguard tunnel. Make sure the ACL is there and you'll be good.
      All the rest in my original post still applies.

      B 1 Reply Last reply Aug 10, 2022, 12:56 PM Reply Quote 0
      • B
        ben9090 @Jarhead
        last edited by Aug 10, 2022, 12:56 PM

        @jarhead Thanks for the quick reply and sorry for my late one!

        I completed those steps and I can now access the servers file share as well being able to RDP into RDS servers. One thing that is still slightly weird is that I cant ping anything on that LAN network still. But I have everything else working so I'm at least happy with that.

        Thanks!

        J 1 Reply Last reply Aug 10, 2022, 5:04 PM Reply Quote 0
        • J
          Jarhead @ben9090
          last edited by Aug 10, 2022, 5:04 PM

          @ben9090 Can't ping anything? aren't the file servers on that network?Any software firewalls blocking it?

          B 1 Reply Last reply Aug 10, 2022, 7:49 PM Reply Quote 0
          • B
            ben9090 @Jarhead
            last edited by Aug 10, 2022, 7:49 PM

            @jarhead They have a fileserver with an IP of 192.168.0.13 as well as a good number of other devices and I cannot ping any of them when on the VPN. If I am connected to the file server, I can ping everything on the network including my VPN client. Not sure if its a firewall issue or not on the PFSense side. I did turn the Windows firewall off on a couple of devices, firewall included to see if that was blocking it but it wasn't.

            J 1 Reply Last reply Aug 10, 2022, 10:07 PM Reply Quote 0
            • J
              Jarhead @ben9090
              last edited by Aug 10, 2022, 10:07 PM

              @ben9090 Good that it's working but if you want to troubleshoot the pings, do packet captures on all relevant ports to see where they're getting lost.

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received