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

    Building my lan: do I need a managed switch for my VLANs?

    Scheduled Pinned Locked Moved General pfSense Questions
    51 Posts 6 Posters 10.6k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      For example - the unifi switches, all L2.. But the cost is inline with a sg350.. Why would I get that L2 vs a switch that can do L3 and more..

      The USW-24 is $225 has 26 ports total, and 2 of those you have to use sfp module (extra cost)
      The sg350-28 is $229 has 28 ports total, and can use up to 4 sfps (combo ports)

      Why would you not get the L3 capable switch. And 2 more ports for $4 ;)

      But hey if you can find say a 24 port L2 that does all that you want currently. And is half the cost of 24 port that can do L3.. Then you might want to do that - but to be honest you find prob not all that much difference in cost.

      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
      • bingo600B
        bingo600
        last edited by

        The 28 (24 plus 4 Dual) port DGS-1210-28 is $138 incl. shipping on Amazon.de

        https://www.amazon.de/D-Link-DGS-1210-28-1000Mbit-SFP-Slots-l%C3%BCfterlos/dp/B008R7114W/

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

          @bingo600 said in Building my lan: do I need a managed switch for my VLANs?:

          DGS-1210-28

          That good price... I show it as 193 here

          goodprice.png

          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
          • V
            valepe69
            last edited by

            Just bought a DLink DGS-1210-28.
            Where can I find some tutorials how to setup it?

            Thanks

            bingo600B 1 Reply Last reply Reply Quote 0
            • bingo600B
              bingo600 @valepe69
              last edited by

              @valepe69 said in Building my lan: do I need a managed switch for my VLANs?:

              Just bought a DLink DGS-1210-28.
              Where can I find some tutorials how to setup it?

              Thanks

              Google is your friend here.

              The D-Links come with a default ip :
              10.90.90.90 , and i think admin/admin for login.

              If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

              pfSense+ 23.05.1 (ZFS)

              QOTOM-Q355G4 Quad Lan.
              CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
              LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

              V 1 Reply Last reply Reply Quote 0
              • V
                valepe69 @bingo600
                last edited by

                @bingo600 ok thanks.
                Any tips about what to do and not to do setting up the switch? My LAN is composed by few VLANs.
                Router will assign DHCP to the devices in these VLANs and it will allow or deny inter-vlan traffico.
                Thanks again

                bingo600B JKnottJ 3 Replies Last reply Reply Quote 0
                • bingo600B
                  bingo600 @valepe69
                  last edited by

                  @valepe69 said in Building my lan: do I need a managed switch for my VLANs?:

                  @bingo600 ok thanks.
                  Any tips about what to do and not to do setting up the switch? My LAN is composed by few VLANs.
                  Router will assign DHCP to the devices in these VLANs and it will allow or deny inter-vlan traffico.
                  Thanks again

                  It might be smart to define the L2 vlans early.
                  The you can set the switch management ip to belong to a Vlan

                  During the initial management ip setup - Do NOT save the config , until it works.
                  That way you can always reboot , and get back to factory defaults.

                  I seem to remember you can factorydefault the switch , by pressing a thin thing into the little reset hole , and wait for all switchport leds to lihht up yellow.

                  If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                  pfSense+ 23.05.1 (ZFS)

                  QOTOM-Q355G4 Quad Lan.
                  CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                  LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

                    @valepe69

                    First off, you have to decide what's going on the VLANs and then plan from there. For example, I use a VLAN for guest WiFi and the 2nd SSID connects via a VLAN. In offices, VLANs are often used for VoIP phones, etc..

                    Then, once you've done that you have to ensure you use the same VLANs throughout, from pfsense to the switches, to whatever devcie, such as AP, etc..

                    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
                    • bingo600B
                      bingo600 @valepe69
                      last edited by

                      @valepe69
                      How is it going , with the switch & Vlans

                      If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                      pfSense+ 23.05.1 (ZFS)

                      QOTOM-Q355G4 Quad Lan.
                      CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                      LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        valepe69 @bingo600
                        last edited by

                        @bingo600 Sorry, I haven't do anything yet. My times are stretching sometimes due to four little kids

                        bingo600B D 2 Replies Last reply Reply Quote 0
                        • bingo600B
                          bingo600 @valepe69
                          last edited by

                          @valepe69 said in Building my lan: do I need a managed switch for my VLANs?:

                          @bingo600 Sorry, I haven't do anything yet. My times are stretching sometimes due to four little kids

                          Whoaa
                          Configuring a few Vlans should be easy, compared to 4 small kids
                          Take care 😊

                          /Bingo

                          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                          pfSense+ 23.05.1 (ZFS)

                          QOTOM-Q355G4 Quad Lan.
                          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                          V 1 Reply Last reply Reply Quote 0
                          • V
                            valepe69 @bingo600
                            last edited by

                            @bingo600 yeah, I think so but some evenings I prefer the sofa to the pfSense box... 😁

                            After VLANs, my next goal is to set the hairpin equivalent: DNS resolver (I read that I can't use forwarder because resolver is used by pfblockerng).

                            Luckily holidays are coming...

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

                              @valepe69 said in Building my lan: do I need a managed switch for my VLANs?:

                              set the hairpin equivalent: DNS resolver

                              huh? Resolver works and is the default out of box - there is nothing to do really. What do you mean by hairpin?

                              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

                              V 1 Reply Last reply Reply Quote 0
                              • V
                                valepe69 @johnpoz
                                last edited by

                                @johnpoz now I have an edgerouter. The hairpin Nat allows the clients to reach an internal server using the public domain.
                                I read that I should use DNS resolver to do that in pfSense. Am I right?

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

                                  ah you mean nat reflection..

                                  You can continue to do nat reflection if you want. But better solution is just split dns, ie a host override. This can be done with unbound or the forwarder.

                                  BTW, while unbound resolves out of the box. If you really have your heart set on forwarding - unbound can be set to forward as well.

                                  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

                                  V 1 Reply Last reply Reply Quote 0
                                  • V
                                    valepe69 @johnpoz
                                    last edited by

                                    @johnpoz well, I went to Nat reflection due a edgeos constraint.
                                    Which is the best solution in pfSense?

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

                                      Best solution is always split dns.. No matter what your using as your router.

                                      How would it ever be optimal to hairpin any traffic? It gets you nothing.. The only time it makes sense as a work around to do nat reflection. Is when the client on the same network as the services is forced to use some external dns. Or for whatever reason the IP your trying to access is hardcoded in some app your using or something.

                                      If what your trying to access is via a fqdn, and whatever it is accessing it is using your local dns - then split dns and pointing the client to the local IP vs the public is the better solution.

                                      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 2
                                      • D
                                        dstacey147 @valepe69
                                        last edited by

                                        @valepe69 Have a look at the Netgear GS350 Series of Smart Managed Pro switches. I've used the GS308T, GS310TP and the GS324T. All solid. And the price is right. I have some spare GS308T's (I consolidated several switches) if that's all you need and are interested.

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