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

    Firewall rules issues

    Scheduled Pinned Locked Moved Firewalling
    8 Posts 3 Posters 736 Views 3 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.
    • G Offline
      Grindey
      last edited by

      I have the latest stable version of PFsense working Lan to Wan but only if the default permit anything rules for ipv4 and ipv6 are also enabled even though they are not passing traffic.The other rules are above them

      If I disable the or add an implicit deny rule above them everything stops working until they are re-enabled . As this is a firewall that can't be correct so please someone tell me what am I doing wrong.I have experience of Fortigate/cisco and they have an implicit deny as default after the last rule.

      Please point me in the right direction I am not sure what to look for

      1 Reply Last reply Reply Quote 0
      • A Offline
        akuma1x
        last edited by

        You're going to need to take a screenshot of your LAN firewall rules and either post it directly into the thread here, or post it online somewhere and provide a link to the image. We can't help fix it if we don't know what you've got setup in there.

        Also, why don't you go back to the basics. You mention "other rules are above them" and not passing traffic. You should turn these off temporarily - disable them, then see if you can get anything working. If so, the problem lies somewhere in the rules you have added above the default "allow any rule" on the LAN interface.

        Jeff

        1 Reply Last reply Reply Quote 0
        • kiokomanK Offline
          kiokoman LAYER 8
          last edited by

          the default for the LAN and only for the LAN interface is to permit all
          rules are evaluated from top to bottom, the first rule that match the traffic will apply the other are discarded/ignored

          that said, post a screenshot of what you are doing eventualy

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 0
          • G Offline
            Grindey
            last edited by

            Screenshot_20200225_174244.jpg

            Hi,I am aware that the rules are top down as with most firewalls but when I disable the 2 default rules (ipv4 and ipv6) at the bottom of the list the firewall stops passing traffic LAN to Wan.If I re-enable them it works again.

            I want an explicit deny at the bottom of all the rules for obvious reasons,if I put one in that also breaks things.I feels like "nating" stops working.

            With the default rules enabled everything works and due to top down nature of firewall rules the other rules are passing the traffic as you would expect.

            The firewall is work in progress but I want it to become my main firewall eventually, which is why I cant leave the default allows in place.

            thia

            1 Reply Last reply Reply Quote 0
            • kiokomanK Offline
              kiokoman LAYER 8
              last edited by kiokoman

              you don't have a rule for udp 53
              probably dns stop working if you remove the last 2 entry

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

              1 Reply Last reply Reply Quote 1
              • A Offline
                akuma1x
                last edited by akuma1x

                Exactly, DNS can either be TCP or UDP or a combo of both. I don't know exactly, but the linked article at the bottom spells it out.

                Change rules number 5 and 8 to be both TCP and UDP protocols and see if traffic moves like normal.

                screenshot3592628.jpg

                DNS or other Services works on both TCP and UDP:
                https://support.microsoft.com/en-us/help/556000

                Jeff

                1 Reply Last reply Reply Quote 1
                • G Offline
                  Grindey
                  last edited by

                  Thanks guys that's the issue made the DNS entries tcp/udp all is now working including the default
                  deny rule. This is very embarrassing, I am a retired Cisco engineer with 20 years of networking experience and I did not notice that.

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    akuma1x @Grindey
                    last edited by

                    @Grindey said in Firewall rules issues:

                    This is very embarrassing, I am a retired Cisco engineer with 20 years of networking experience and I did not notice that.

                    Well, that's it then... off to the stocks with you! LOL

                    4513678.jpg

                    Jeff

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