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

    Block all ports just allow port 80/443/

    Scheduled Pinned Locked Moved Firewalling
    6 Posts 5 Posters 11.4k 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.
    • S Offline
      schtebo
      last edited by

      hallo community,

      sorry for this noob question but i tried now over 3 hours ….. :-/

      how can i block all ports from lan to wan but allow port 80 and 443?

      thanks

      1 Reply Last reply Reply Quote 0
      • D Offline
        danswartz
        last edited by

        You would go to the outbound NAT section and add your port 80 and port 443 rules at the beginning, and then change the existing allow all outbound to a deny all.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bcepulo
          last edited by

          @schtebo:

          hallo community,

          sorry for this noob question but i tried now over 3 hours ….. :-/

          how can i block all ports from lan to wan but allow port 80 and 443?

          thanks

          use firewall rules on lan
          you should think about to allow port 53 for dns

          1 Reply Last reply Reply Quote 0
          • S Offline
            schtebo
            last edited by

            my head meets chair

            thanks! now it works …

            "You're looking for a needle in a haystack." ;-(

            thanks to all

            1 Reply Last reply Reply Quote 0
            • J Offline
              jigpe
              last edited by

              Use firewall Rule. add 80,443 and 53

              1 Reply Last reply Reply Quote 0
              • J Offline
                jlepthien
                last edited by

                You do not need to allow DNS. Just use your pfSense Box as an dns forwarder…

                | apple fanboy | music lover | network and security specialist | in love with cisco systems |

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