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

    PfSense - VLAN (Layer 2 or Layer 3 Switch)

    Scheduled Pinned Locked Moved Routing and Multi WAN
    6 Posts 4 Posters 4.2k 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.
    • D
      damir
      last edited by

      Hello all,

      coming from this thread (deciding which switch to buy - Layer 2 or Layer 3)
      https://forum.pfsense.org/index.php?topic=109755.30

      I would like to clear some things in my head, to help me decide what exactly i should purchase in the end. (Right now i ordered 10 port SG300-10, but its going back, actually, as in the end i will need more ports) (Decision is between SG200-18 or SG300-20)

      I am thinking of having 2-3 VLANs.

      Right now my pfSense is set to 192.168.1.1/24

      I am thinking about creating another 2 VLAN for/as:

      VLAN10: 192.168.2.1/24 for WiFI (To isolite it from Local Network (Windows HomeGroup)
      VLAN20: 192.168.3.1/24 for NAS (To block outside traffic, completely, but, to be able to access it from PCs from 192.168.1.1/24 only, and not from 192.168.2.1/24 (VLAN10).

      From my understanding, to be able to access VLAN20 from 192.168.1.1/24 i need Layer 3 Switch? (idea is to get Cisco SG300-20)

      Also, in the future, i am planing to add my childrens PCs to separate VLAN, so i can use some blocking features + OpenDNS (which will probably end up being VLAN30 192.168.4.1/24)

      In that case, i am looking to be able to access NAS (VLAN20) as well from VLAN30 (children's PCs), so, they can stream Cartoons/whatever.

      Maybe, not sure if its recommended to have another VLAN for VOIP / Printers, etc.

      Does this require a lot of configuration? Would somebody please point me to right direction.
      I am new to VLAN thing / Layer2 / Layer3 routing, but, i am willing to learn / test / try and hopefully make it work, so i can have "safe network" , properly setup-ed.

      Thank you for your time / input!

      All help / suggestions are very much appreciated.

      1 Reply Last reply Reply Quote 0
      • jahonixJ
        jahonix
        last edited by

        https://forum.pfsense.org/index.php?topic=109755.msg629952#msg629952

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

          "to access VLAN20 from 192.168.1.1/24 i need Layer 3 Switch?"

          Where did you get that idea?  You do not need a layer 3 switch to access different vlans.  You need something to route between the vlans yet - but that would be pfsense in a typical setup.

          As to breaking out stuff to different vlans.  Depends on what your wanting to accomplish.  If you want to firewall from network A to network B, then sure you put some devices in A and some in B and then use pfsense to limit/control access between these segments.

          I have multiple vlans in my setup.  I have 3 different networks for wifi, my normal wifi, my guest wifi and then wifi for devices that do not support eap-tls that my normal wifi uses.  Stuff like my nest thermostat and protect and my harmony hub, my roku, etc.  Are on this wifi.

          I also then have a few different wired vlans.  My directv dvr for example, a dmz segment where I Play with stuff.  My normal lan, etc.

          You do not need layer 3 switch to do this, since pfsense is your router/firewall between your vlans.  While the sg300 does do layer 3, I have mine in just layer 2 mode I have no need for layer 3 switch (router) downstream from my pfsense.

          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
          • D
            damir
            last edited by

            Thank you for responding.

            It makes sense now to me.

            I am just waiting for confirmation on customs from one of US companies, as this switch appears to be cheaper in US (Even after converting CAD to US), so, i can finally order :)

            1 Reply Last reply Reply Quote 0
            • W
              Wolf666
              last edited by

              @johnpoz:

              "to access VLAN20 from 192.168.1.1/24 i need Layer 3 Switch?"

              Where did you get that idea?  You do not need a layer 3 switch to access different vlans.  You need something to route between the vlans yet - but that would be pfsense in a typical setup.

              As to breaking out stuff to different vlans.  Depends on what your wanting to accomplish.  If you want to firewall from network A to network B, then sure you put some devices in A and some in B and then use pfsense to limit/control access between these segments.

              I have multiple vlans in my setup.  I have 3 different networks for wifi, my normal wifi, my guest wifi and then wifi for devices that do not support eap-tls that my normal wifi uses.  Stuff like my nest thermostat and protect and my harmony hub, my roku, etc.  Are on this wifi.

              I also then have a few different wired vlans.  My directv dvr for example, a dmz segment where I Play with stuff.  My normal lan, etc.

              You do not need layer 3 switch to do this, since pfsense is your router/firewall between your vlans.  While the sg300 does do layer 3, I have mine in just layer 2 mode I have no need for layer 3 switch (router) downstream from my pfsense.

              Hi,
              can I ask you what brand and model you are using as WiFi AP? Looking around for something supporting VLAN in a setup similar to yours.

              Modem Draytek Vigor 130
              pfSense 2.4 Supermicro A1SRi-2558 - 8GB ECC RAM - Intel S3500 SSD 80GB - M350 Case
              Switch Cisco SG350-10
              AP Netgear R7000 (Stock FW)
              HTPC Intel NUC5i3RYH
              NAS Synology DS1515+
              NAS Synology DS213+

              1 Reply Last reply Reply Quote 0
              • D
                damir
                last edited by

                Sure thing! :)

                I've used R7000 in AP, but, recently i purchased/ordered UAP-AC-PRO.

                UAP-AC-PRO should support VLAN configuraiton.

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