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

    upgraded to 25.11 now inbound wireguard connection don't work.

    Scheduled Pinned Locked Moved General pfSense Questions
    34 Posts 5 Posters 945 Views 5 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
      mikek
      last edited by

      This was all working with the exact same configuration prior to upgrade. (forget version but was latest update like 25.07.x or something like that.)

      I have 3 tunnels configured.

      1. outbound tunnel with static endpoint to commercial vpn provider. ( works great before and after)
      2. inbound tunnel with dynamic endpoint used by my devices/phones. (works before but not after update)
      3. inbound tunnel with dynamic endpoint used to connect with a remote router (works before but not after update)

      The rest of this will relate to configurations for tunnel 2 and 3 which are experiencing identical issues.

      First. if i do a packet capture, i do see traffic trying to initiate a connection. but i see no responses.
      aca3cb26-e55a-4bec-b93d-3e7974f42578-image.png

      My wan rule is set to log successful traffic:
      f7d0fda1-7385-4713-9a97-055f7f4c225e-image.png

      i have no nat rules related to port 51821 (tunnel 2) or 51822 (tunnel 3)

      But i do not see any traffic in logs->firewall
      c5230a7c-a320-4084-aa70-5a703ef59ba8-image.png

      I really don't understand what is happening at this point. the update definitely changed how something works. but i don't believe i actually understand what is happening. my understanding is that if i receive a udp packet on my internet interface and have a wan rule to accept it. well, it should accept and log it. Even if the wireguard package doesn't see it.

      What am i missing? If i can't figure this out guess i need to try and figure out how to downgrade a netgate 4200. i would love to understand how this is possible and fix it instead though.

      chpalmerC 1 Reply Last reply Reply Quote 0
      • chpalmerC Offline
        chpalmer @mikek
        last edited by

        @mikek If you go to package manager is there an update? My WG connections are working here after the upgrade..

        Triggering snowflakes one by one..
        Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          mikek @chpalmer
          last edited by

          @chpalmer 8111a625-0d8a-47fc-89cd-868ea6b08803-image.png

          and patches show:
          1ca687e3-0665-4fc2-90a0-afe9fafb1b4b-image.png

          1 Reply Last reply Reply Quote 0
          • M Offline
            mikek @chpalmer
            last edited by

            @chpalmer said in upgraded to 25.11 now inbound wireguard connection don't work.:

            @mikek If you go to package manager is there an update? My WG connections are working here after the upgrade..

            question are any of your WG configurations set with a dynamic endpoint, my commercial vpn with a static endpoint works. it's all the rest that are jacked

            71a5c87b-385c-460d-ba47-6bd02cff2752-image.png

            chpalmerC 1 Reply Last reply Reply Quote 0
            • chpalmerC Offline
              chpalmer @mikek
              last edited by

              @mikek Yes. Dynamic for both.

              Im still weaning off OpenVPN for the rest but all working at this point.

              Triggering snowflakes one by one..
              Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mikek @chpalmer
                last edited by

                @chpalmer it is an upgrade issue for sure, just rolled back to boot enviornment 25.07.1 and all my stuff started working again.

                chpalmerC 1 Reply Last reply Reply Quote 0
                • chpalmerC Offline
                  chpalmer @mikek
                  last edited by

                  @mikek Are you using dynamic DNS or is your end box on a static?

                  Triggering snowflakes one by one..
                  Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    mikek @chpalmer
                    last edited by

                    @chpalmer said in upgraded to 25.11 now inbound wireguard connection don't work.:

                    @mikek Are you using dynamic DNS or is your end box on a static?

                    The "server" is using dyndns to track the ip used by the "clients". The "clients" are using random unknown addresses.

                    So on the "server" i set the pier to dynamic
                    and on the "client" i set the endpoint to the "server" dns name and port.

                    Which means the connection can only be initiated by the client config since the endpoint is configured with a static entry.

                    chpalmerC 1 Reply Last reply Reply Quote 0
                    • chpalmerC Offline
                      chpalmer @mikek
                      last edited by

                      @mikek Im curious if your "Server" Dynamic DNS updated correctly.. One can assume that your IP address probably did not change but you never know.. just trying to rule out the easy..

                      Triggering snowflakes one by one..
                      Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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

                        No problem here either so my guess is @chpalmer is right.

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          mikek @Bob.Dig
                          last edited by

                          @Bob.Dig
                          b1ab52d6-15f8-48bf-b071-d9523500354e-image.png

                          the packet capture show that the traffic made it to the server. that means it is not a dns issue.

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

                            @mikek True. You seem the only one with that problem though. Also you should reduce the MTU to 1420 on all of the WireGuard-Interfaces.

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              mikek @Bob.Dig
                              last edited by

                              @Bob.Dig I KNOW! it sucks to be me right now.

                              what i can't wrap my head around is this. ignore wireguard completely.

                              i have udp traffic going to the wan interface on port 51821, i can see the traffic hit the interface. yet the rule which is set to log never logs that it accepted a packet. it's like the traffic is being intercepted by something else before it gets to the first rule on the wan interface.

                              so i think self what could do that.

                              1. a nat would change the traffic. there are no nat rules for that port.
                              2. a floating rule would execute first. there are no floating rules that have that port configured on it. except this one:
                                it's a match rule for qos. so should not stop or change the traffic as it relates to the wan rule
                                4639efb7-2cd6-47a4-bb5c-8bc512c96b61-image.png

                              that's it. if there is something else that could intercept a packet between entry on the interface and the first wan rule. i don't know about it.

                              the exact config with the exact same rules works in 24.07.1 i would really like to know what bone headed thing i did to cause this. because like you state, i seem to be the only one reporting this. so it has to be something that happens automagically in 07 that no longer happens in 11. something that is "helping me out" before but not after.

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

                                @mikek Disable that match rule and see how everything is working again. Then check the changelog in regards to match-rules. If you are not satisfied, create a bug report regarding match-rules. 😉

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mikek @Bob.Dig
                                  last edited by

                                  i am in a rolled back state on 27.07.1 right now, i am going to try the upgrade again sometime next week. i will try disabling the qos matching rule and see what happens. it's the only thing so far that i don't remember trying.

                                  Thanks

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

                                    @mikek I guess it is this.
                                    https://redmine.pfsense.org/issues/16475

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mikek @Bob.Dig
                                      last edited by

                                      @Bob.Dig awesome! that sounds like exactly what i am experiencing.

                                      seems that the bug is resolved with a statement that it is fixed in 25.11

                                      41f35b12-6daf-47a4-a6d4-f24994d6de28-image.png

                                      I am not a network engineer by trade or anything like that, any hint on how to test this in a way to prove it is the same issue.
                                      My guess would be to do the upgrade again, turn off quick match if it all works then turn it back on and it breaks would be enough.

                                      In light of this information, i may upgrade again this afternoon and do some testing see if this has an effect.
                                      Any pointers on what type of information would be good to collect?

                                      thanks a lot for your help on this.

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        mikek @mikek
                                        last edited by

                                        figured it out, for some reason i had my floating match rule set to any direction. which worked on <= 25.07.1 but with 25.11 somehow that just eats the traffic, it never makes it to the wan rule chain to be accepted. not sure if that is by design or a bug. Set the rule to wan interface out stops that behavior.

                                        likely need to review/learn how to setup qos properly. i mean it seems to work, but if i found that what else do i have jacked up.

                                        thanks for the help
                                        Mike

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

                                          Did you have 'quick' set on the match rule? That should almost never be set on a match rule IMO.

                                          M 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mikek @stephenw10
                                            last edited by

                                            @stephenw10 i did have quick set. but adding or removing quick had no effect.

                                            changing the direction from "any" to "out" fixed it.
                                            all things the same. having direction any on the rule works on 25.07 and below version.
                                            on 25.11 version, with the rule set to any on the matching rule. the traffic stops.
                                            i say it stops, cause i really don't understand what happens to it. but it never hits the wan accept rule.

                                            Really, I should not have direction any, and I don't think there is a need for quick match either on my floating rules. but because i was doing bonehead stuff. i discovered this.

                                            I don't believe that having direction "any" should have actually caused an issue. and since this is a "less than optimal" configuration, not sure many people will see this behavior.

                                            What i don't understand is why it broke, while it is not a "correct" configuration from a best practice perspective, i don't understand why technically setting the direction to any caused it to stop working.

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