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

    Allow Any Any question regarding guest network

    Scheduled Pinned Locked Moved Firewalling
    27 Posts 5 Posters 874 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.
    • GertjanG
      Gertjan @SteveITS
      last edited by

      @SteveITS said in Allow Any Any question regarding guest network:

      That is how pfSense and most firewalls work. That's why I asked, "What are you trying to accomplish/allow/block on this network?"

      LAN by default allows to any.

      Thanks ... it came just now to my mind that I misread the initial post/question.

      The pfSense LAN is meant to be used for the trusted devices, like the admin access, and so on.
      The default LAN rules are pass-all.
      All others - let's say less trusted users - should go on another interface.

      I've such an interface, network : my captive portal used for a hotel :

      c1cba92a-948f-494e-91df-f783837fa4db-image.png

      and I use pfBlockerng to block the most obvious "no-no-don't go" hosts.

      05cd2f4e-41f7-4cf6-bcb5-e298c0da61fd-image.png

      and all these :

      056d5f17-3b98-4f8e-b060-b7358686d91e-image.png

      and

      8b53b1c7-04be-4e78-a5b4-b24717207ebe-image.png

      Don't ask why I add "Astrology", I'm not sure what it is ^^

      The first list, as I'm a hotel, isn't really important ๐Ÿ˜Š
      Activating it also demands way more RAM as what my 4100 has.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • wgstarksW
        wgstarks
        last edited by wgstarks

        This is just a network for visitors to my house and a few IoT devices. They only need access to DHCP, DNS, NTP perhaps (all provided by the firewall) and the internet. Home Assistant needs access to some of the IoT devices so I have created a pass rule from the HA device on LAN to the Guest network. None of the devices on Guest should have access to LAN or any other local networks and I donโ€™t really see a reason to allow access from local networks to the guest network other than the specific instance mentioned. Am I missing something?

        Box: SG-4200

        S 1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @wgstarks
          last edited by

          @wgstarks Ok so:

          • block what you want to block
          • allow any will let devices on this subnet get to the Internet

          Did you ever say what 10.1.0.23 is? If that's not an IP on this guest network the rule is pointless since traffic will never arrive on this interface from an IP that isn't behind this interface. Note it shows 0/0 so has never been triggered/matched.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote ๐Ÿ‘ helpful posts!

          wgstarksW 1 Reply Last reply Reply Quote 0
          • wgstarksW
            wgstarks @SteveITS
            last edited by wgstarks

            @SteveITS said in [Allow Any Any question regarding guest network]

            Did you ever say what 10.1.0.23 is? If that's not an IP on this guest network the rule is pointless since traffic will never arrive on this interface from an IP that isn't behind this interface. Note it shows 0/0 so has never been triggered/matched.

            10.0.1.23 is the LAN address for Home Assistant. Obviously I have not set this rule up correctly. How should I setup a rule to allow this LAN address to connect to the Guest network?

            Box: SG-4200

            S 1 Reply Last reply Reply Quote 0
            • S
              SteveITS Galactic Empire @wgstarks
              last edited by

              @wgstarks said in Allow Any Any question regarding guest network:

              How should I setup a rule to allow this LAN address to connect to the Guest network?

              You would need to create it on LAN.

              Though if LAN still has its "allow to any" rule then another one for this IP is not actually necessary.

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote ๐Ÿ‘ helpful posts!

              1 Reply Last reply Reply Quote 0
              • the otherT
                the other
                last edited by the other

                hey there,
                I solved this by adding a rule like "reject / guest_network / RFC1918 (alias)".
                Followed by "pass guest_network / any / Port collection to allow https, android playstore, mail..." the typical "can I use your internet for a moment?" moments...

                My IoT stuff has its own subnet, here only home assistant is granted internet access (updates), the rest ("smart TV, IoT devices) are ususally blocked. Once every few months I allow that for updates.

                In case you want ALL LAN clients to reach guest...stick with it. Otherwise define your rules more specific. :)

                the other

                pure amateur home user, no business or professional background
                please excuse poor english skills and typpoz :)

                1 Reply Last reply Reply Quote 0
                • wgstarksW
                  wgstarks
                  last edited by

                  I removed the allow any rule from the guest network but now that network no longer has access to WAN. What ALLOW rules do I need to add to give users on this network access to WAN, DHCP, DNS, NTP?

                  Box: SG-4200

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @wgstarks
                    last edited by SteveITS

                    @wgstarks So to be clear you want VLAN1003_GUEST to access the WAN network but not the Internet?

                    I would start by just writing down what you want them to access, and where it is. Then the rules are apparent.

                    If you are using pfSense for DHCP, pfSense automatically adds rules on an interface so DHCP works, when DHCP server is enabled. So in that one case you don't need a rule.

                    If you are using pfSense for DNS then you need a rule to allow VLAN1003_GUEST Networks to "VLAN1003_GUEST Address" on pfSense, port 53, TCP/UDP.

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote ๐Ÿ‘ helpful posts!

                    1 Reply Last reply Reply Quote 0
                    • wgstarksW
                      wgstarks
                      last edited by

                      I want anyone using the guest network to be able to access the internet. I thought that that would be the same as WAN but allowing access to WAN didnโ€™t work.

                      Do I also need to create a rule to allow access to NTP provided by pfsense?

                      Box: SG-4200

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        SteveITS Galactic Empire @wgstarks
                        last edited by

                        @wgstarks "WAN network" is the network of the pfSense WAN interface. the /29 or /24 or whatever it is.

                        Since you don't know what IPs they will access out in the world, it's normal to allow access to "any." So:

                        • allow what you want to allow (e.g. guest to VLAN1003_GUEST Address for DNS, NTP)
                        • block what you want to block (e.g. guest to This Firewall, guest to LAN)
                        • allow to any

                        The rules are processed in order top down.

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote ๐Ÿ‘ helpful posts!

                        wgstarksW 1 Reply Last reply Reply Quote 0
                        • wgstarksW
                          wgstarks @SteveITS
                          last edited by

                          @SteveITS
                          Block rules on top right and then the pass rules?

                          Box: SG-4200

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            SteveITS Galactic Empire @wgstarks
                            last edited by

                            @wgstarks I don't know, it depends.

                            https://docs.netgate.com/pfsense/en/latest/solutions/netgate-4200/opt-lan.html#apply-changes

                            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                            Upvote ๐Ÿ‘ helpful posts!

                            wgstarksW 1 Reply Last reply Reply Quote 1
                            • wgstarksW
                              wgstarks @SteveITS
                              last edited by

                              @SteveITS
                              Thanks for all your help. I think I've finally gotten, or at least I'm getting close.

                              Here is the current rules-
                              Screenshot 2025-04-11 at 8.37.58โ€ฏPM.png

                              I used the LOCAL_SUBNETS alias because I already had it setup. I think it's the same as RFC 1918-
                              Screenshot 2025-04-11 at 8.39.08โ€ฏPM.png

                              If you see any problems or anything I've missed please let me know.

                              Box: SG-4200

                              GertjanG 1 Reply Last reply Reply Quote 1
                              • GertjanG
                                Gertjan @wgstarks
                                last edited by

                                @wgstarks

                                Suggestion : like your first rule : local (VLAN1003_GUEST) devices are allowed to use the local (pfSense) DNS.
                                You could add also NTP (port 123 UDP) so devices can use pfSense to sync their time, if they want to.

                                No "help me" PM's please. Use the forum, the community will thank you.
                                Edit : and where are the logs ??

                                wgstarksW 1 Reply Last reply Reply Quote 1
                                • wgstarksW
                                  wgstarks @Gertjan
                                  last edited by

                                  @Gertjan
                                  Done thanks. ๐Ÿ‘

                                  Box: SG-4200

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