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

    Preventing to access pfSense login page on IoT VLAN

    Scheduled Pinned Locked Moved Firewalling
    44 Posts 6 Posters 6.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.
    • KOMK
      KOM @johnpoz
      last edited by

      @johnpoz Much better

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @KOM
        last edited by

        Touch of the OCD, yeah I get that sometimes as well ;) heheh

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • K
          keesdek @johnpoz
          last edited by

          @johnpoz Hi John, thank you for your input
          I inserted a test VLAN (192.168.30.0/24) and put in the firewall rules you suggested. However I can still access the pfsense web gui at 192.168.30.1
          Any other ideas?
          TIA, Kees

          KOMK 1 Reply Last reply Reply Quote 0
          • KOMK
            KOM @keesdek
            last edited by

            @keesdek Reset your states via Diagnostics - States.

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @KOM
              last edited by johnpoz

              ^ exactly. States are evaluated before rules. If you access something that is allowed, a state is created. Until that state expires or is deleted, that state will continue to allow traffic. Even if you create a rule that now should block said traffic.

              Other things that could cause you problems - you have a floating rule that is allowing the traffic. Floating are evaluated before interface rules.

              Your rules are not in correct order, rules are evaluated top down, first rule to trigger wins, no other rules are evaluated.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              K 1 Reply Last reply Reply Quote 0
              • K
                keesdek @johnpoz
                last edited by

                @johnpoz Resetting States did the trick. But now I cannot connect to the internet from the Test VLAN. I tried changing the order of the rule -> still no internet...

                KOMK johnpozJ 2 Replies Last reply Reply Quote 0
                • KOMK
                  KOM @keesdek
                  last edited by

                  @keesdek Be more specific. Can you ping pfSense itself (assuming you allow pings in your rules)? Can you ping 8.8.8.8? If so, can you resolve a domain name?

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @keesdek
                    last edited by

                    If you want help with your rules - your going to have to post them.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • K
                      keesdek
                      last edited by

                      @kom Unable to ping anything. Computer is not able to acquire a DHCP address, while the DHCP server is active on the test VLAN

                      KOMK 1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM @keesdek
                        last edited by

                        @keesdek Post a screen of your rules for that interface.

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          keesdek @KOM
                          last edited by

                          @kom 202105 Screenshot pfSense Test-VLAN Rules.png

                          KOMK 1 Reply Last reply Reply Quote 0
                          • KOMK
                            KOM @keesdek
                            last edited by KOM

                            @keesdek Rules are processed top-down first match (except floating rules which are last-match unless you have the Quick option selected.) All your rules are out of order since the top rule allows everything. That rule should be last, not first. Your problem isn't your rules.

                            K 1 Reply Last reply Reply Quote 0
                            • K
                              keesdek @KOM
                              last edited by

                              @kom Thanks again for your help!
                              I tried 'johnpoz' (above) order first, but since it didn't work then, I started changing the order...

                              KOMK 1 Reply Last reply Reply Quote 0
                              • KOMK
                                KOM @keesdek
                                last edited by

                                @keesdek Can you confirm that your test client is on test_vlan30?

                                K 1 Reply Last reply Reply Quote 0
                                • K
                                  keesdek @KOM
                                  last edited by

                                  @kom Yes, the test client is on test_vlan30. And in the mean time my computer has acquired an IP address. But still no internet

                                  KOMK 1 Reply Last reply Reply Quote 0
                                  • KOMK
                                    KOM @keesdek
                                    last edited by

                                    @keesdek In the meantime? Getting an address via DHCP should be almost instantaneous. What is this client? PC, phone? Physical, virtual? Windows, Mac, Linux? Any hardware like a switch between client and pfSense? What do your outbound NAT rules look like?

                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      keesdek @KOM
                                      last edited by

                                      @kom Well... initially I configured the test_vlan30 interface incorrectly. But that is fixed. Attached a screenshot of the outbound NAT rules202105 pfSense NAT Outbound Rules.jpg

                                      KOMK 1 Reply Last reply Reply Quote 0
                                      • KOMK
                                        KOM @keesdek
                                        last edited by

                                        @keesdek What is this client? PC, phone? Physical, virtual? Windows, Mac, Linux? Any hardware like a switch between client and pfSense?

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          keesdek @KOM
                                          last edited by

                                          @kom Client is a Mac, connected via UniFy switch and wireless access point

                                          KOMK 1 Reply Last reply Reply Quote 0
                                          • KOMK
                                            KOM @keesdek
                                            last edited by KOM

                                            @keesdek So lots in between to cause problems. I'm not a Mac guy. Can you confirm that it gets an IP address in the correct range, has the correct mask, gateway and DNS?

                                            Troubleshooting Network Connectivity

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