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

    PfSense with 1 NIC + managed switch = ?

    Scheduled Pinned Locked Moved General pfSense Questions
    28 Posts 8 Posters 8.4k 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.
    • DerelictD
      Derelict LAYER 8 Netgate
      last edited by

      Hairpinning with a switch is better than USB NICs.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • V
        veryoldgd
        last edited by

        @Derelict:

        Hairpinning with a switch is better than USB NICs.

        The reason being?

        I never played with a USB NIC before…

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

          usb nics pretty much blow, and its a OLD laptop you ay - so highly doubt usb 3 ;)

          Why can you not leverage your esxi box??  Would make it cleaner, would make it less power, etc..  You can get a dual or quad nic for it cheap..

          While I love my sg300, keep in mind it is not the typical enterprise ios that runs on their enterprise line - this ios is different.  While many of the commands are the same - there are differences to be sure.

          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
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            USB NICs, under FreeBSD at least, are unpredictable. A quick look through the forum will show the many, many threads with people having problems with USB. I would choose a router-on-a-stick setup over USB.
            There are people running both types of setup without any issues.

            There are several reasons not to use a router-on-a-stick configuration:
            If you're completely unfamiliar with VLANs then setting it up may prove frustrating depending on what switch you use.
            The bandwidth through pfSense will be reduced as all your traffic has to travel in both directions along a single ethernet connection. However if your WAN connection is relatively low speed and the connection to the switch is gigabit this is unlikely to be a restriction.
            There's a security risk. If your switch should forget its settings for some reason you could end up with the WAN connected directly to the LAN. This is a pretty minimal risk in my opinion, i've never seen of heard of it happening, but you need to consider it yourself.

            There are much cheaper switches you can use.

            Steve

            1 Reply Last reply Reply Quote 0
            • V
              veryoldgd
              last edited by

              @johnpoz:

              usb nics pretty much blow, and its a OLD laptop you ay - so highly doubt usb 3 ;)

              As I said, I do not have USB3.0 but USB2.0 should be enough for WAN. Then the native GbE connection can be used to route intranet traffic.

              Why can you not leverage your esxi box??

              Because I want to run pfSense in a separate box.

              it is not the typical enterprise ios that runs on their enterprise line - this ios is different.  While many of the commands are the same

              Hmm that could be a deal breaker. Will keep it in mind.

              1 Reply Last reply Reply Quote 0
              • V
                veryoldgd
                last edited by

                @stephenw10:

                USB NICs, under FreeBSD at least, are unpredictable. A quick look through the forum will show the many, many threads with people having problems with USB. I would choose a router-on-a-stick setup over USB.
                There are people running both types of setup without any issues.

                There are several reasons not to use a router-on-a-stick configuration:
                If you're completely unfamiliar with VLANs then setting it up may prove frustrating depending on what switch you use.
                The bandwidth through pfSense will be reduced as all your traffic has to travel in both directions along a single ethernet connection. However if your WAN connection is relatively low speed and the connection to the switch is gigabit this is unlikely to be a restriction.
                There's a security risk. If your switch should forget its settings for some reason you could end up with the WAN connected directly to the LAN. This is a pretty minimal risk in my opinion, i've never seen of heard of it happening, but you need to consider it yourself.

                There are much cheaper switches you can use.

                Steve

                Is it a compatibility issue or something?

                I am still considering which switch to buy and watching for good deals.

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

                  Is what a compatibility thing? USB?

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    Yes, its a compatibility thing.  Drivers.

                    BSD and Linux doesn't work well with manufacturers who change chipsets like people change underwear.

                    And even when you get lucky, its still USB, so still not great compared to everything else.

                    1 Reply Last reply Reply Quote 0
                    • O
                      oasis_nl
                      last edited by

                      we've build a pfsense on a old desktop ( HP sf5000 or something) only one nic.

                      in our case we were able to install the free version of ESXi on the desktop and installed Pfsense as an vm.

                      connected the NIC to a managed switch (HP procurve 1810-24g)

                      added 3 vlans
                      vlan 4 ( WAN)
                      vlan 10 (LAN) ip 192.168.17.254
                      vlan 20 (OPT1) ip 10.0.10.254

                      connected a switch port to hour modem and untagged it vlan4
                      the desktop connected to the switch port, tagged vlan 4, 10 and 20

                      other switch ports untagged vlan 10 or vlan 20

                      all works fine using 2 different dhcp scopes on vlan 10 and 20

                      hope this helps.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kejianshi
                        last edited by

                        Exactly.

                        1 Reply Last reply Reply Quote 0
                        • V
                          veryoldgd
                          last edited by

                          @oasis_nl:

                          we've build a pfsense on a old desktop ( HP sf5000 or something) only one nic.

                          in our case we were able to install the free version of ESXi on the desktop and installed Pfsense as an vm.

                          connected the NIC to a managed switch (HP procurve 1810-24g)

                          added 3 vlans
                          vlan 4 ( WAN)
                          vlan 10 (LAN) ip 192.168.17.254
                          vlan 20 (OPT1) ip 10.0.10.254

                          connected a switch port to hour modem and untagged it vlan4
                          the desktop connected to the switch port, tagged vlan 4, 10 and 20

                          other switch ports untagged vlan 10 or vlan 20

                          all works fine using 2 different dhcp scopes on vlan 10 and 20

                          hope this helps.

                          I am still not quite clear about how the router talks to the modem via a switch, just put them in the same VLAN and things just magically work?

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

                            Yes.  ;)

                            There's nothing special about the modem-router connection it's standard ethernet.

                            Steve

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