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

    Need suggestions for topology

    Scheduled Pinned Locked Moved DHCP and DNS
    14 Posts 5 Posters 1.1k 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.
    • P
      PM_13
      last edited by

      Hi,

      I am in process of adding few IoTs (cameras, sensors, doorbells etc) in my house and have following needs:

      • Add 25+ IoTs that have a total of about 35 MAC addresses as few devices have wired and wireless interfaces
      • Each IoT device will be assigned a static IP on IoT-LAN
      • Not allow IoTs to get on Guest LAN

      So it seems I will have to add 35 MAC addresses for the IoTs as “MAC Deny” for Guest-LAN and that too via a single text box (MAC addresses separated by commas).

      What makes it worse is that more IoTs may come in future and few would need to be taken off from the list.

      Is there a better way to manage such topology or at the very least capture some metadata (like description etc) with MAC Deny list?
      Thanks,

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

        Why would you not just put all your iot devices on a iot vlan, and then firewall how ever you want. Not sure why your dealing with mac addresses.

        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

        P 1 Reply Last reply Reply Quote 0
        • P
          PM_13 @johnpoz
          last edited by

          @johnpoz Thanks for your recommendation on VLAN.

          Currently I do not have a managed switch but perhaps it is time to buy one, I will dig into it and get back.
          Thanks.

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

            Not sure how else you would do it really - pfsense has no control over what talks to what on the same network..

            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
            • JKnottJ
              JKnott @PM_13
              last edited by

              @PM_13 said in Need suggestions for topology:

              Currently I do not have a managed switch but perhaps it is time to buy one,

              Avoid TP-Link. They may have problems with VLANs.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              P 1 Reply Last reply Reply Quote 1
              • P
                PM_13 @JKnott
                last edited by

                @jknott @johnpoz So another question, if I purchase a L2 or L3 switch such as this one - https://www.ebay.com/itm/RCT4M-S60-44T-AC-R-752-00588-03-DELL-FORCE10-S60-44P-4-MINI-GBIC-SWITCH-W-EARS/132632596291?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

                Which of the two configurations would be better?

                1. Switch running with VLAN and DHCP behind pfSense
                2. Pfsense running DHCP and switch behind pfSense (with VLAN configured)

                Thoughts?

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

                  How are those different?

                  Running dhcp on the switch vs pfsense? Pfsense dhcp is prob going to be be easier to manage and more robust than any dhcp server on a switch.. Which are normally very very limited.

                  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
                  • kiokomanK
                    kiokoman LAYER 8
                    last edited by

                    I think it's asking if it's better to run the switch L3 or L2
                    usually, you get better performance with L3 switch, if you have a lot of traffic and stuff connected but for home usage, I prefer to use it as L2 and let pfSense manage everything

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    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.

                    V 1 Reply Last reply Reply Quote 1
                    • V
                      vesalius @kiokoman
                      last edited by

                      @kiokoman said in Need suggestions for topology:

                      I think it's asking if it's better to run the switch L3 or L2
                      usually, you get better performance with L3 switch, if you have a lot of traffic and stuff connected but for home usage, I prefer to use it as L2 and let pfSense manage everything

                      Yes if you need hardware speed switching between vlans then pfsense can't match that. For reasons I have never understood pfsense has never allowed their ISC dhcp server to function fully and hand out IP addresses to multiple subnets over a single link. This means if your switch handles the vlans then you have to spin up a separate DHCP server or use the switches often than less than stellar varient, instead of just allowing pfsense to do it.

                      1 Reply Last reply Reply Quote 1
                      • P
                        PM_13
                        last edited by

                        @johnpoz & @kiokoman - thanks for your comments. Yes I was little confused so apologies that question did not come out clearly but your comments were helpful. So here is more background.

                        • This is for a home network and IoTs (cameras & sensors) are most of the network, also part of the reason why I want to isolate IoTs from rest of the machines.

                        So seems like following topology would be ideal:

                        1. All devices (including wireless APs) feeding into switch (likely L2)
                        2. The switch can tag traffic & segments devices using VLANs
                        3. Switch connects to pfSense (running DHCP)
                        4. PfSense connects to WAN

                        Does this topology makes sense?

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

                          @pm_13
                          yes,
                          3) pfSense will also trunk the vlan to the switch

                          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                          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.

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            PM_13 @kiokoman
                            last edited by PM_13

                            @kiokoman Correct, still learning VLAN on switches 😄

                            Last week, I spent about an hour to figure out that "trunk" on Cisco switch is same as "Uplink" on Dell switches!!

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

                              @pm_13
                              uhm idk but i don't think it's the same same thing i don't own a dell but
                              usually trunk is trunk and uplink is uplink 🙄
                              Often an uplink is a trunk but a trunk can be any port

                              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                              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
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by

                                Unless you have some need for wire speed, that pfsense can not handle? I have no issues with full gig between interface on my sg4860..

                                Its easier to route at pfsense than at some downstream router (L3 switch).

                                Its going to be way easier to route and dhcp and firewall if you just let pfsense do it all and use your switch as only L2 to handle the vlans.

                                If your pfsense has ports you can always leverage multiple interfaces as uplinks for your different vlans that need lots of intervlan bandwidth where you don't want to hairpin that traffic over a single trunk interface.

                                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 1
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.