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

    - help- how i can block access to webgui manager from interface wireless?

    Scheduled Pinned Locked Moved Firewalling
    22 Posts 4 Posters 4.5k 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.
    • R Offline
      robertog
      last edited by

      hello to everybody
      i need to block access from interface wireless to pfsense i explain better:

      my pfsense is 192.168.2.1
      wireless client dhcp (192.168.2.2-254)

      so i want to block from any client wireless to access pfsense (192.168.2.1)

      thanks in advances

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG Offline
        GruensFroeschli
        last edited by

        I assume you have a rule on your WLAN interface looking something like:
        allow; source: wlan-subnet, destination: any

        change this rule to three rules:
        #1: allow, source: any, destination: WLAN-interface, destination-port: 68-69
        #2: allow, source: wlan-subnet, destination: WLAN-interface, destination-port: 53
        #3: allow, source: wlan-subnet, destination: !WLAN-interface
        –> destination: NOT WLAN-interface

        With rule 3 you allow access to everywhere (internet) except the WLAN-interface.
        With the rules 1 and 2 you allow DHCP and DNS to the pfSense.
        You can combine the rules 1 and 2 if you use aliases.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • R Offline
          robertog
          last edited by

          thanks a lot GruensFroeschli I will try this evening

          1 Reply Last reply Reply Quote 0
          • R Offline
            robertog
            last edited by

            hello GruensFroeschli,
            my setup is this:
            allow, tcp/udp, wireless net, any, any, 53
            allow tcp, wireless net, any, any 80
            allow tcp, wireless net, any, any, 443

            so in this case, from any wireless is possible to see pfsense (192.168.2.1).
            I dont know how I can block it.
            Can u help me?
            thanks

            1 Reply Last reply Reply Quote 0
            • GruensFroeschliG Offline
              GruensFroeschli
              last edited by

              change the destination of your rules with ports 80 and 443 from any to !WLAN-interface

              We do what we must, because we can.

              Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

              1 Reply Last reply Reply Quote 0
              • R Offline
                robertog
                last edited by

                thanks a lot I will try later

                1 Reply Last reply Reply Quote 0
                • R Offline
                  robertog
                  last edited by

                  hello GruensFroeschli,
                  sorry i continue to have problems.. :(
                  can u help me if I dont disturb?

                  thanks!

                  1 Reply Last reply Reply Quote 0
                  • pttP Offline
                    ptt Rebel Alliance
                    last edited by

                    Please post a Screenshot of your LAN Rules

                    (You can attach the IMG directly to the forum,in "post reply" just use the "Advanced options" –> Attach)

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      robertog
                      last edited by

                      hello ptt!
                      I did screenshot so I hope now better…

                      thanks

                      firewall_wireless.png
                      firewall_wireless.png_thumb

                      1 Reply Last reply Reply Quote 0
                      • pttP Offline
                        ptt Rebel Alliance
                        last edited by

                        Just add a rule (on top of all others):

                        Action: Block

                        Proto: TCP

                        SRC: Wireless Net

                        Port: Any ( * )

                        Destination: Wireless Address

                        Port: 80

                        PS: from where you are ?

                        1 Reply Last reply Reply Quote 0
                        • GruensFroeschliG Offline
                          GruensFroeschli
                          last edited by

                          well yeah that would work too.
                          but a more elegant solution is to simply change the third rule in your screenshot.
                          change the destination from "any" to "WLAN-interface" and check the "NOT" checkbox.

                          We do what we must, because we can.

                          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            robertog
                            last edited by

                            Thanks!
                            I did following instructions GruensFroeschi and now is working!!!

                            thanks again!

                            1 Reply Last reply Reply Quote 0
                            • Y Offline
                              yottabyte
                              last edited by

                              @GruensFroeschli:

                              well yeah that would work too.
                              but a more elegant solution is to simply change the third rule in your screenshot.
                              change the destination from "any" to "WLAN-interface" and check the "NOT" checkbox.

                              GruensFroeschli,

                              There is no "WLAN-interface" option from the destination type dropdown.  Please explain what it is that you're talking about as I would like to try your method.  Thanks.

                              1 Reply Last reply Reply Quote 0
                              • pttP Offline
                                ptt Rebel Alliance
                                last edited by

                                Which name have your WLAN interface ?

                                1 Reply Last reply Reply Quote 0
                                • Y Offline
                                  yottabyte
                                  last edited by

                                  What?

                                  1 Reply Last reply Reply Quote 0
                                  • pttP Offline
                                    ptt Rebel Alliance
                                    last edited by

                                    You should choose your assigned interface name as destination of the rule

                                    You never will see "WLAN-interface" unless you give that name to your WLAN interface…

                                    1 Reply Last reply Reply Quote 0
                                    • Y Offline
                                      yottabyte
                                      last edited by

                                      @ptt:

                                      You should choose your assigned interface name as destination of the rule

                                      You never will see "WLAN-interface" unless you give that name to your WLAN interface…

                                      My wireless interface is named WAP.  The only options that I get from the "destination type" dropdown are: any, Single host or alias, Network, PPTP clients, PPPoE clients, L2TP clients, WAN subnet, WAN address, LAN subnet, LAN address, WAP subnet, and WAP address.  No option is given to select the WAP interface.

                                      1 Reply Last reply Reply Quote 0
                                      • pttP Offline
                                        ptt Rebel Alliance
                                        last edited by

                                        WLAN-interface = WAP address

                                        wlan-subnet = WAP subnet

                                        1 Reply Last reply Reply Quote 0
                                        • Y Offline
                                          yottabyte
                                          last edited by

                                          Thanks ptt, but if that is so then why GruensFroeschli not just say so?  Why use ambiguous terminology?  He said "change the destination from "any" to "WLAN-interface" and check the "NOT" checkbox," and that is what confused me to no end.  Anyhow, I'll give this a try and see if it works.  I'd rather have allow rules than block rules.

                                          1 Reply Last reply Reply Quote 0
                                          • pttP Offline
                                            ptt Rebel Alliance
                                            last edited by

                                            Maybe he should say "WLAN-address " instead of "WLAN-interface"

                                            change the destination from "any"

                                            to "WLAN-address" and check the "NOT" checkbox

                                            Using the "NOT" you have a "2in1" rule, it "Allow" and also "Block" at the same time ;)

                                            But, anyway it is understandable, IMHO

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