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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      "and that is quite common."

      I would not say that..  Its an abomination and should be avoided at all cost!!  Hairpinning is horrific for performance..

      As to to the sg300 being overkill - I don't think so, I have one in my house - for the price <200 you can not beat it!!  Saw them for 180ish, killer price!!!

      You can use the esxi with 2 nics

      wan, lan/vmkern = done!  This is much better setup than router on a freaking stick with some laptop ;)  If you want to put pfsense on its own box, then do so - don't you have a old desktop you can use and slap a dual or quad port nic in and be done.. Or for that matter a couple of 20$ nics.  You can get a intel quad nic for under 100

      Here throw this in your esxi box or some old pc
      http://www.amazon.com/HP-NC364T-Gigabit-Server-Adptr/dp/B000P0NX3G

      Much better than router on a stick!

      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
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        It's not horrible for a test/lab/learning environment as long as the tester/labber/learner knows it sucks for production.

        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
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          Prob is, oh it worked in my lab..  Sure lets leverage it in the real world ;)  Your talking pennies to get enough ports to not to hairpin.

          The switch is a great investment for your home/lab – but don't cheap out because your short a nic port so you don't have to router on stick nonsense.

          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
            veryoldgd
            last edited by

            @johnpoz:

            "and that is quite common."

            I would not say that..  Its an abomination and should be avoided at all cost!!  Hairpinning is horrific for performance..

            As to to the sg300 being overkill - I don't think so, I have one in my house - for the price <200 you can not beat it!!  Saw them for 180ish, killer price!!!

            You can use the esxi with 2 nics

            wan, lan/vmkern = done!  This is much better setup than router on a freaking stick with some laptop ;)  If you want to put pfsense on its own box, then do so - don't you have a old desktop you can use and slap a dual or quad port nic in and be done.. Or for that matter a couple of 20$ nics.  You can get a intel quad nic for under 100

            Here throw this in your esxi box or some old pc
            http://www.amazon.com/HP-NC364T-Gigabit-Server-Adptr/dp/B000P0NX3G

            Much better than router on a stick!

            OK. I know I can use an old desktop…but believe it or not, I do not have one! So it falls to my laptop :) Also, power consumption.

            Well I guess it might be a good idea to just buy an adapter to make one more NIC on the laptop then...I do not like this solution because the 2 NICs will be on the opposite side of the laptop making it...uh, you know. Even worse, I might need to do Express card->2x USB3.0->2x GbE ports, just imagine how messy it is :o

            1 Reply Last reply Reply Quote 0
            • P
              pf123user
              last edited by

              That laptop + switch idea is a disaster waiting to happen. It'll be more headache than its worth in my opinion.

              For reference…
              I have been using a Dell Optiplex GX520 to run the latest x86-RELEASE since 1.2.3-RELEASE without hiccup or issue. Yes they use a bit more power but in reality it probably isn't much more than your laptop + switch... You are probably going to use a switch regardless so the power consumption differential is between the laptop and the PC. My business partner and I have a small company with a few employees and I host two 25-u racks in my basement behind this setup. The family also uses the wifi and internet bandwidth as well. I have a second machine on cold standby but not in HA Failover.

              Specs:
              Either 3.0 or 3.2ghz Pentium 4 single core CPU (With HT)
              2.0GB of RAM
              80GB WD Raptor HDD (came OEM with the machine)
              1x Broadcom 57xx Gigabit Ethernet on motherboard (for LAN + VLANs)

              Add-in cards: (All PCI)
              2x Intel Pro 1000 GT NICs (for WAN1 and WAN2)
              1x Cisco/Aironet AIR-PI21AG-A-K9 a/b/g Wireless adapter

              The machine has a fairly small footprint and gives me everything I need to run squid + snort + two SSID's and five VLAN's.

              I've spent far too much time on this post but for further reference I went on eBay and priced it all out...

              ++Optiplex GX520 (desktop, not to be confused with the Mini-Tower form factor) machine: $40 shipped (there are active buy-it-now listings for $39.99 + free shipping)
              ++Wireless adapter: $15 shipped
              ++Intel Pro 1000 GT NIC: Less than $15 shipped, some go for as low as $6. (priced below at $30 for two)

              $85 (or less) shipped to your door

              You could use the Small Form Factor chassis (two Low Profile PCI slots vs. two full-height and one LP in the Desktop chassis) and look for one without a floppy or CD/DVD drive (less power consumption and cheaper). Those look like they can be had on eBay for closer to $20 shipped so if you get a good deal on the PCI cards you could reasonably pull it off for <$50 shipped. You would then have a proper setup AND trust me, it would be money well spent in the long run compared to the headaches of a laptop + switch. You will probably spend more than $50 mucking around with those Express Card/USB >> Ethernet adapters than buying what I listed above.

              Also, it was unclear as to whether or not you own the Cisco SG300 switch currently or not. You can get a Dell PowerConnect 2816 switch on eBay for closer to $75. Dell's management GUI is a bit of a PITA and in my opinion the Dell is inferior to the Cisco you listed... but to my knowledge that switch does support trunking (something I assume you will want for your ESXi host --2700 series DOES NOT support trunking).

              All in, for the same or less cost of the Cisco SG300 switch and the adapters you may end up with... you could have a much better setup.

              Good Luck!

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

                @pf2.0nyc:

                That laptop + switch idea is a disaster waiting to happen. It'll be more headache than its worth in my opinion.

                For reference…
                I have been using a Dell Optiplex GX520 to run the latest x86-RELEASE since 1.2.3-RELEASE without hiccup or issue. Yes they use a bit more power but in reality it probably isn't much more than your laptop + switch... You are probably going to use a switch regardless so the power consumption differential is between the laptop and the PC. My business partner and I have a small company with a few employees and I host two 25-u racks in my basement behind this setup. The family also uses the wifi and internet bandwidth as well. I have a second machine on cold standby but not in HA Failover.

                Specs:
                Either 3.0 or 3.2ghz Pentium 4 single core CPU (With HT)
                2.0GB of RAM
                80GB WD Raptor HDD (came OEM with the machine)
                1x Broadcom 57xx Gigabit Ethernet on motherboard (for LAN + VLANs)

                Add-in cards: (All PCI)
                2x Intel Pro 1000 GT NICs (for WAN1 and WAN2)
                1x Cisco/Aironet AIR-PI21AG-A-K9 a/b/g Wireless adapter

                The machine has a fairly small footprint and gives me everything I need to run squid + snort + two SSID's and five VLAN's.

                I've spent far too much time on this post but for further reference I went on eBay and priced it all out...

                ++Optiplex GX520 (desktop, not to be confused with the Mini-Tower form factor) machine: $40 shipped (there are active buy-it-now listings for $39.99 + free shipping)
                ++Wireless adapter: $15 shipped
                ++Intel Pro 1000 GT NIC: Less than $15 shipped, some go for as low as $6. (priced below at $30 for two)

                $85 (or less) shipped to your door

                You could use the Small Form Factor chassis (two Low Profile PCI slots vs. two full-height and one LP in the Desktop chassis) and look for one without a floppy or CD/DVD drive (less power consumption and cheaper). Those look like they can be had on eBay for closer to $20 shipped so if you get a good deal on the PCI cards you could reasonably pull it off for <$50 shipped. You would then have a proper setup AND trust me, it would be money well spent in the long run compared to the headaches of a laptop + switch. You will probably spend more than $50 mucking around with those Express Card/USB >> Ethernet adapters than buying what I listed above.

                Also, it was unclear as to whether or not you own the Cisco SG300 switch currently or not. You can get a Dell PowerConnect 2816 switch on eBay for closer to $75. Dell's management GUI is a bit of a PITA and in my opinion the Dell is inferior to the Cisco you listed... but to my knowledge that switch does support trunking (something I assume you will want for your ESXi host --2700 series DOES NOT support trunking).

                All in, for the same or less cost of the Cisco SG300 switch and the adapters you may end up with... you could have a much better setup.

                Good Luck!

                However not everybody lives in NA…

                I do adore the idea of using an old desktop but I do not have one nor can I easily get one cheap. Well if I spend some time looking around I can find one cheap, but that probably will not be a good looking case, and the power consumption on old desktop PC is always a concern...in short, it is too much randomness.

                And I have the laptop already, it is going to retire anyway, so why would I bother to buy another piece of equipment which is likely to die in another 2 or 3 years, makes more noise, takes more place and consumes more power? Plus the time spent online hunting for a good deal...

                Anyway, thanks for the advice and I am considering buying an adapter for my laptop to have one more NIC. Probably will use a USB3.0->RJ45 adapter and connect that one to modem. Even though I do not have USB3.0 on my laptop, USB2.0 should be fast enough just for the internet connection(no affordable 1Gbps intgernet here lol). Then the native RJ45 will be connected to the switch...hmm sounds like a plan.

                As for the switch, I choose to go with Cisco because they are sort of the standard in networking world and I want to get hands on such a switch in real life.

                1 Reply Last reply Reply Quote 0
                • 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.