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

    Can't connect to other Vlans or Subnets After establishing a wire guard tunnel.

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 3 Posters 2.1k 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.
    • G
      Garric
      last edited by

      Hi Everyone,

      I'm still quite a newbie when it comes to this stuff. I wanted to encrypt all of my outbound wan traffic over a VPN connection. Coincidentally, my VPN provider had a guide on how to establish such a thing with PFsense found here: https://vpn.ac/knowledgebase/139/WireGuard-on-pfSense.html

      I was able to successfully route everything over the Wireguard tunnel However, I began losing access to things on other networks and vlans such as my NAS. I have a feeling it's something to do with changing the gateway, DNS, Or switching manual Outbound NAT rules.

      I've tried reviewing the documentation, however seem to be still perplexed on what to do here. I was wondering if anyone could help give me a nudge in the right direction on where exactly I should be looking to fix this?

      Thanks in advance.

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

        @Garric Post a screenshot of all your lan rules, where you are connected to.

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          @Garric said in Can't connect to other Vlans or Subnets After establishing a wire guard tunnel.:

          https://vpn.ac/knowledgebase/139/WireGuard-on-pfSense.html

          Can't access that without logging in. However I'd guess that you are policy routing all traffic over the WG tunnel which means you need another rule above that on the LAN to pass traffic to locally connected subnets without a policy route.

          Steve

          G 1 Reply Last reply Reply Quote 0
          • G
            Garric @stephenw10
            last edited by

            @stephenw10

            @Bob-Dig

            Thanks for the responses guys, here's screenshots of DNS Servers, Firewall Rules & Outbound Nat.

            I think when I switched to manual NAT, it created all these rules which I am open to suggestions on how I could clean up?

            chrome_VuwBJWCZ1C.png
            chrome_shFpAOEkj9.png chrome_xkcPnsj5n0.png

            Bob.DigB 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Outbound NAT rules do not route traffic they only translate it if it's routed out of that interface already.

              But all of your IPv4 traffic on the LAN subnet is going to hit that first firewall you have there and be policy routed via the Blakes_group gateway group.

              It's just as I speculated you need to add another rule(s) above that to pass traffic from 'LAN subnets' to 'whatever local subnets you're trying to reach' without a gateway set. That could be an alias with the local subnets in it or separate rules for each subnet.

              G 1 Reply Last reply Reply Quote 0
              • G
                Garric @stephenw10
                last edited by

                @stephenw10

                Something like this? Doesn't seem to be working, at least I can't access the other subnets.

                chrome_7zdVIXHPLw.png

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Yup exactly like that.

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

                    @Garric said in Can't connect to other Vlans or Subnets After establishing a wire guard tunnel.:

                    I think when I switched to manual NAT, it created all these rules which I am open to suggestions on how I could clean up?

                    With WireGuard you usually don't need manual Outbound NAT nor Hybrid Outbound NAT, switch it back to Automatic.

                    Kill states if your new rule is correct.

                    1 Reply Last reply Reply Quote 0
                    • G
                      Garric @stephenw10
                      last edited by

                      @stephenw10

                      Sadly, this didn't end up fixing the issue. Is there a way I could diagnose in Pfsense?

                      Sorry for my delayed response, I've been having to test this outside our office hours in the evenings and dealing with power outages as well.

                      Thank you

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Do you see the rule you added passing traffic/opening states when you try to connect to those other subnet?

                        Do you see traffic blocked in the firewall log?

                        Check the state table when you try to connect. What states are opened, where?

                        G 1 Reply Last reply Reply Quote 0
                        • G
                          Garric @stephenw10
                          last edited by

                          @stephenw10

                          Sorry about that, had /32 instead of /24 under aliases. My fault! Thanks for your help. All good now!

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