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

    advice on physical layout plans for new PFSsense router setup

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 6 Posters 1.8k Views 6 Watching
    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 Offline
      KOM @alexeymohr
      last edited by

      @alexeymohr If you're using physical interfaces, why bother with vlans at all? It's extra complexity for no real benefit.

      How many devices on your network are cabled versus wifi?

      1 Reply Last reply Reply Quote 0
      • A Offline
        alexeymohr
        last edited by

        First I want the VLANs to span the wired and wireless networks. Also, I’d like to establish a few firewall rules to allow select traffic across them (for instance I keep my printer on the IoT VLAN but want systems on the safe network to be able to print).

        I have probably 20 wired clients and around 25 wireless clients in total.

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

          @alexeymohr You don't need vlans to do any of that.

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            alexeymohr @KOM
            last edited by

            @kom How can I safely keep IoT devices from seeing systems on my safe network without VLANs, particularly when I do need some devices to be able to have limited access between the IoT network and Safe network?

            1 Reply Last reply Reply Quote 0
            • stephenw10S Online
              stephenw10 Netgate Administrator
              last edited by

              You don't need VLANs in pfSense is I think what was implied here.

              If you are using separate interfaces for each subnet you do not need any VLANs there. You may well still need VLANs across your switches and/or access points etc. It depends how you have these things physically distributed.

              If you are using VLANs there you may be better off using VLANs in pfSense and not using separate interfaces. It's common to use a LAGG from pfSense to the switch and just run all the VLANs across that.

              Steve

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                alexeymohr @stephenw10
                last edited by

                @stephenw10 Okay I understand that, but this requires at least one L3 switch right? Someone somewhere still has to do inter-VLAN routing right? Unfortunately I do not have any L3 switches in my setup.

                1 Reply Last reply Reply Quote 0
                • stephenw10S Online
                  stephenw10 Netgate Administrator
                  last edited by

                  No you can use a managed L2 switch as long as it is VLAN capable. Trunk all the VLANs to pfSense and route between them there.

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    alexeymohr @stephenw10
                    last edited by

                    @stephenw10 So in that case pfSense does need to have the VLANs set up, but you recommend just trunking them all through a single interface instead of dedicating individual interfaces per VLAN?

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S Online
                      stephenw10 Netgate Administrator
                      last edited by

                      Either you setup VLANs in pfSense and use those as interfaces to route / filter between.

                      Or you use separate interfaces for each subnet. In which case any VLANs you might have would be all be handled in the switch.

                      If you have multiple switches and access points and are carrying multiple VLANs across them I would choose the VLANs in pfSense option. You only need one link between the switch and pfSense to carry all the trunked VLANs but that could be a LAGG of multiple Ethernet connections.

                      Steve

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        alexeymohr @stephenw10
                        last edited by

                        @stephenw10 Yeah I've got two Unifi USW-24-POE switches, a U6-Lite access point, and a U6-LR access point (all managed by a CloudKey Gen2) - the plan is to have all VLANs be available on each of those devices. None is an L3 device.

                        My initial plan was to have each NIC on the Protectli pfSense router dedicated to an individual VLAN, but it seems like maybe I'd be better off just aggregating a few of those ports and then trunking all the VLANs at once?

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • stephenw10S Online
                          stephenw10 Netgate Administrator
                          last edited by

                          Yup, that's what I would do. Use two ports there to create an LACP LAGG to the first switch and trunk all the VLANs across that.

                          Steve

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

                            @alexeymohr said in advice on physical layout plans for new PFSsense router setup:

                            but it seems like maybe I'd be better off just aggregating a few of those ports and then trunking all the VLANs at once?

                            You loose control of which physical interface is actually used for traffic - and "depending" you could end up with hairpin traffic over the same physical interface for intervlan traffic.

                            I personally prefer more control and like placing vlans on specific physical interfaces so I am sure that intervlan traffic where there is a lot of it not possible to hairpin over the same physical interface.

                            If you have the ports not a problem doing this... Only thing lagg/lacp gets you is if 1 of the interfaces fail, cable fails or unplugged etc you don't loose connectivity.. I like control more than redundancy for interface failure..

                            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 25.07 | Lab VMs 2.8, 25.07

                            1 Reply Last reply Reply Quote 0
                            • MarinSNBM Offline
                              MarinSNB
                              last edited by

                              Does anyone have any links/references to a step-by-step guide on how to achieve this setup using switches for VLANs (with/without LAGG)? Thanks!

                              Netgate 6100 Max pfSense+
                              —>Unifi Aggregation/24 Pro PoE/24 PoE Enterprise switches
                              —> UCK2+
                              —> 3x U6E APs

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S Online
                                stephenw10 Netgate Administrator
                                last edited by

                                There are a bunch of video walk throughs on YouTube. Tom Lawrence's probably the best. For example his LAGG tutorial: https://www.youtube.com/watch?v=VULKulpXBYU

                                johnpozJ MarinSNBM 2 Replies Last reply Reply Quote 1
                                • johnpozJ Offline
                                  johnpoz LAYER 8 Global Moderator @stephenw10
                                  last edited by

                                  @stephenw10 dude - bet you beer that is spammer.. Look at his other posts..

                                  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 25.07 | Lab VMs 2.8, 25.07

                                  MarinSNBM JKnottJ 2 Replies Last reply Reply Quote 0
                                  • stephenw10S Online
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Meh, could be. 😉

                                    1 Reply Last reply Reply Quote 0
                                    • MarinSNBM Offline
                                      MarinSNB @stephenw10
                                      last edited by

                                      @stephenw10 thank you so much!

                                      Netgate 6100 Max pfSense+
                                      —>Unifi Aggregation/24 Pro PoE/24 PoE Enterprise switches
                                      —> UCK2+
                                      —> 3x U6E APs

                                      1 Reply Last reply Reply Quote 0
                                      • MarinSNBM Offline
                                        MarinSNB @johnpoz
                                        last edited by

                                        @johnpoz Was this intended for me?

                                        Netgate 6100 Max pfSense+
                                        —>Unifi Aggregation/24 Pro PoE/24 PoE Enterprise switches
                                        —> UCK2+
                                        —> 3x U6E APs

                                        1 Reply Last reply Reply Quote 0
                                        • JKnottJ Offline
                                          JKnott @johnpoz
                                          last edited by

                                          @johnpoz said in advice on physical layout plans for new PFSsense router setup:

                                          stephenw10 dude - bet you beer that is spammer.. Look at his other posts.

                                          Just his question made me wonder if he's serious. Physical layout? Really?

                                          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...

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