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

    Nat issue after 20211220 version

    Scheduled Pinned Locked Moved CE 2.6.0 Development Snapshots (Retired)
    19 Posts 4 Posters 2.0k 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.
    • ?
      A Former User @netblues
      last edited by

      @netblues, I simply cannot understand that a rule says the following :::

      WAN :: ALL :: ALL :: ALL :: WAN ADDRESS :: ALL :: ALL

      It is a totally non-logical rule for me, but if it helps you, I recommend you use pfsense packet capture and verify where the traffic goes when you have this rule enabled.

      Diagnostics > Packet Capture

      N 1 Reply Last reply Reply Quote 0
      • N
        netblues @A Former User
        last edited by

        @silence Are you aware how nat rules work?
        nat is applied only when the packet reaches the interface.
        So what the rule says is that when a packet reaches the internet (wan ) interface, it should be natted using the ip of the wan interface.

        As a matter of fact this works nicely (apart from the issue mentioned)
        35b4f2af-f48d-4dc0-a1c6-70893c9373f0-image.png

        ? 2 Replies Last reply Reply Quote 0
        • ?
          A Former User @netblues
          last edited by

          @netblues, all seems to be fine until you put any in source

          Please consider doing the above test or just use a wider netmask to specify your "Source" range.

          Example: Source = 192.168.0.0/16

          N 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @netblues
            last edited by

            @netblues said in Nat issue after 20211220 version:

            @silence Are you aware how nat rules work?

            in the past I never had any problem using Nat on pfsense or other firewalls.

            you just have to create rules with logic.

            and always try to avoid using "Any"

            1 Reply Last reply Reply Quote 0
            • N
              netblues @A Former User
              last edited by

              @silence I have already said that aggregates could also work.
              But this is not the issue.

              I'm not looking for a solution, there are many workarounds now that I know what the curlpit is.
              The question is what changed in the builds that created this corner situation.
              Many things change between snapshots, and some times changes create regression issues.
              Devs should be notified when this happens

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @netblues
                last edited by

                @netblues to know what change, I asked you to do the packet capture in both version 2.60 and 2.52

                this way you can find the change yourself and publish it.

                It would be a great help.

                N 1 Reply Last reply Reply Quote 0
                • N
                  netblues @A Former User
                  last edited by

                  @silence nope.
                  2.5.2 is on freebsd 12.2
                  2.6.0 changed to freebsd 12.3
                  Many things can be different.

                  Please, give some time to the devs to acknowledge the issue.
                  When the issue can be replicated, a redmine ticket will be created.

                  1 Reply Last reply Reply Quote 0
                  • viktor_gV viktor_g referenced this topic on
                  • viktor_gV viktor_g referenced this topic on
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by stephenw10

                    Mmm, generally speaking your should not have a rule like that because it will cause pfSense to NAT all it's own traffic. That breaks some things completely, like IPSec.

                    However most traffic should continue to work.

                    We are tracking a similar issue internally for traffic from localhost which seems likely related. Traffic must be NAT'd in that case.

                    Steve

                    N 1 Reply Last reply Reply Quote 2
                    • N
                      netblues @stephenw10
                      last edited by

                      @stephenw10
                      Yes, I agree that this rule is a bit ugly
                      I have no ipsec configured.
                      openvpn client worked however (udp)

                      It was quite difficult to pinpoint though.

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

                        Indeed, we are still pinning it down. It was not shown immediately after the Dec 20th changes because it only affects edge cases. Most pfSense installs never NAT their own traffic.
                        I'm confident the localhost case will match this also. A redmine entry should be up soon.

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • viktor_gV
                          viktor_g Netgate
                          last edited by

                          Redmine issue created:
                          https://redmine.pfsense.org/issues/12654

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

                            Should now be fixed in the current snapshots.

                            N 1 Reply Last reply Reply Quote 1
                            • N
                              netblues @stephenw10
                              last edited by

                              @stephenw10
                              Will check. Bug status remains open though.

                              1 Reply Last reply Reply Quote 0
                              • N
                                netblues
                                last edited by

                                2.6.0.b.20220103.0600

                                I can confirm that with outbound nat "any", system can nat itself and reach the Internet.

                                Regards

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