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

    Another PFSense+FreeNAS argument

    Scheduled Pinned Locked Moved General pfSense Questions
    36 Posts 15 Posters 14.8k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      @aarcane:

      Furthermore, virtualizing a full fledged NAS service (Providing large scale data storage to the network) is a VERY BAD idea, especially for home users as it requires expensive special hardware to do it properly.

      Perhaps you could elaborate on that. What sort of performance do you require that can't be achieved by a virtalised solution? It seems there are plenty of pfSense users doing exactly that, running it as a VM together with a NAS VM, and seeing good results.

      Steve

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        A "very bad" idea solution of using a VM is still more secure than the "atrocious horrendous ghastly abhorrent lurid terrible horrible no good very bad" idea of putting a storage server on your firewall.

        If you want to shoot your own foot, we won't be handing you the gun.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • S
          serialdie
          last edited by

          @jimp:

          A "very bad" idea solution of using a VM is still more secure than the "atrocious horrendous ghastly abhorrent lurid terrible horrible no good very bad" idea of putting a storage server on your firewall.

          If you want to shoot your own foot, we won't be handing you the gun.

          LOL.

          Well said.

          1 Reply Last reply Reply Quote 0
          • A
            aarcane
            last edited by

            @jimp:

            A "very bad" idea solution of using a VM is still more secure than the "atrocious horrendous ghastly abhorrent lurid terrible horrible no good very bad" idea of putting a storage server on your firewall.

            If you want to shoot your own foot, we won't be handing you the gun.

            I apparently haven't said loudly enough that I don't actually want any of my edge routers to also be NAS devices, and some people apparently can't read.

            1 Reply Last reply Reply Quote 0
            • A
              aarcane
              last edited by

              @stephenw10:

              @aarcane:

              Furthermore, virtualizing a full fledged NAS service (Providing large scale data storage to the network) is a VERY BAD idea, especially for home users as it requires expensive special hardware to do it properly.

              Perhaps you could elaborate on that. What sort of performance do you require that can't be achieved by a virtalised solution? It seems there are plenty of pfSense users doing exactly that, running it as a VM together with a NAS VM, and seeing good results.

              Steve

              Any sufficiently competent NAS needs access to RAW disks, not encapsulated disks, or disks behind a translation layer, but for optimal error recovery the NAS needs access to raw disks.  This usually means direct access to the associated controller, such that either the NAS OS is on bare metal, or the Controller is passed through to the Virtual Machine.  Passing the Controller through to a virtual machine requires expensive controllers, expensive motherboards, and either Limits the user to an AMD processor, or requires a Xeon processor.

              As for performance, passing your NAS RAW DISKS is not about performance, it's about reliability.  Certainly any data you don't care about can be on a virtualized disk NAS.  Make sure you take good backups.

              As for defining "Fully Fledged", a fully fledged NAS is one that's providing the primary storage for a network.  The system with the massive storage that hosts the backups and large scale multimedia.  The system that hosts VM images and exports them to VM hosts.  It's the Fully Fledged NAS, as opposed to the lightweight NAS that someone might virtualize to provide a limited amount of space to something that needs to be available more easily.  I'm picturing, well, Pictures, or a website, or a UPNP media server…

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

                There is an issue here that I've talked about before (as have others) but probably worth going into again.
                pfSense has become sufficiently popular and is sufficiently flexible that it's install base encompasses a very wide range deployment scenarios. For example it was originally conceived as a direct replacement for Cisco ASA boxes but it's now installed in maybe greater numbers as a SOHO router where a WRT54 would once have been. Think about the difference between those two pieces of equipment and how wildly your expectations would vary between them. Users are coming to pfSense expecting everything both of those can provide.
                Now think about adding NAS capability. In the world of the SOHO router this already exists. There are numerous NAS type add-on packages for OpenWRT for instance and you don't see people complaining about it. However if you went to Cisco complaining about not having file sharing capability on your new firewall you'd get short shrift.
                Now you could argue that having it as a package allows both requirements to be satisfied but the fact is that if it were possible to do it someone would install a full NAS package on a perimeter firewall. That may then get hacked and that would be very bad for the project.

                I might suggest that if you are setting up a fairly serious NAS as you describe then why not just run a separate machine?

                I hadn't considered that direct disk access was such an issue though. Do you have a link to any discussion on that?

                Steve

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  Some of us can read fine and still don't buy the arguments.

                  If you cared at all about speed/resilience/security then you would not be combining a firewall with a NAS. You're talking about making a compromise to have them both on the same unit, and compromises mean sacrifices. You'll sacrifice a bit of everything to shoehorn them into the same device.

                  But that's the problem with Bikeshed arguments, everyone wants them to be different colors.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

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

                    "Any sufficiently competent NAS needs access to RAW disks"

                    And who said my NAS didn't have raw access to the disks?

                    Raw Device Mapping is simple enough in esxi that anyone can do it.  You don't need exp controllers either.
                    http://www.vm-help.com/esx40i/SATA_RDMs.php

                    So yes my nas creates the file system on these disks, they are not vmdks that are given too the vm..  But even so - that could also be done as well.  Sorry but you DONT need raw access to provide access to storage.

                    My nas also has access to the smart info on the disks, etc. etc.

                    Your trying to overcomplicate a simple thing like access to storage over a network.

                    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.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • M
                      MikeX
                      last edited by

                      jimp,

                      Any chance you can port pfsense to be a Windows based appliance? I want to play Solitaire.

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

                        Ha!  ;D

                        https://github.com/qpleple/solitaire/tree/master/src/Cli

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • P
                          phil.davis
                          last edited by

                          @stephenw10:

                          Ha!  ;D

                          https://github.com/qpleple/solitaire/tree/master/src/Cli

                          Steve

                          I guess this might not be appropriate to build into the base system  :-\ but maybe somebody will make it package  ;)

                          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                          1 Reply Last reply Reply Quote 0
                          • A
                            aarcane
                            last edited by

                            So obviously nobody cares about the benefits that I've identified and pointed out..  Improved security, reliability, and reduced attack footprint.  I'm forced to question the strength of those attributes when the community diverts attention away from the subject at hand when those issues are challenged.

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

                              It's not that people don't care about those things obviously security and reliability are high priorities for pfSense users.

                              I could imagine a product that was configurable as either a firewall or a NAS at install using a shared base. It should not be possible to install both on one system IMHO. I don't know how FreeNAS people would feel about that but presumably there is a reason they haven't included any firewall/router features.
                              I cannot imagine combining the two projects at this stage though. It may have been possible when both projects were in their infancy but the work required to do it now would be huge. Would it be worth it?
                              The other thing is that if you ran a diff against both projects to find the commonality between them what is left is pretty much just FreeBSD. Just how much code could be combined between the two usefully? Webgui? Package system? Both projects contribute code back to FreeBSD so code is shared that way.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • L
                                l3lu3
                                last edited by

                                I can understand where you're coming from. I've beeen a pfsense user since early 2.0.x and also run a local NAS. I would never think of combining my firewall/router w/ my NAS as many others have said. That being said, I understand that you think combining pfsense and a Nas appliance into one would allow multiple deployable scenarios. While true there would have to be a common base, as someone pointed out, and lord knows what that would mean, not only security wise or otherwise. Yes having both on 1 iso to choose from would be convenient, but the old saying goes - security or convenience, pick one. 
                                  I will say though, your proposal was nice. Try to take some of what everyone has said to heart - they're all very knowledgable people with good points. Look around, there aren't any other top notch fw/router appliances with a file server onboard - that has to tell you something.

                                1 Reply Last reply Reply Quote 0
                                • jimpJ
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by

                                  @aarcane:

                                  So obviously nobody cares about the benefits that I've identified and pointed out..  Improved security, reliability, and reduced attack footprint.  I'm forced to question the strength of those attributes when the community diverts attention away from the subject at hand when those issues are challenged.

                                  The problem is the gains are all one sided. For a NAS, they are all gains – improved security from having a firewall, reliability is questionable but possible.

                                  For pfSense, they are all losses. Security is reduced by having more services. Reliability is reduced. Attack footprint is increased.

                                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

                                  1 Reply Last reply Reply Quote 0
                                  • BBcan177B
                                    BBcan177 Moderator
                                    last edited by

                                    I would rather see a pfCenter application that will allow multiple pfSense boxes to be managed and configured from one application/appliance

                                    My two cents.

                                    "Experience is something you don't get until just after you need it."

                                    Website: http://pfBlockerNG.com
                                    Twitter: @BBcan177  #pfBlockerNG
                                    Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      Finger79
                                      last edited by

                                      I mean, Windows Server 2008 R2 can host both a Domain Controller role and an Exchange Server role, but it'd be silly to combine the two.

                                      Regarding firewalling FreeNAS, I plan on using a dedicated "Server" interface to connect all internal servers to pfSense, separate from my "LAN" interface which I'm only using for clients.  That way FreeNAS still has a network-based firewall (pfSense) it just doesn't have an onboard host-based firewall.  There might be a way to use the FreeBSD pf firewall (sans pfSense), but not sure how that would work.

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

                                        That is not even close to the same thing - and yes many companies use DC as their exchange box - SBS is designed to do that.

                                        Lets talk apples to apples here for gosh sake.

                                        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.7.2, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          Fevan
                                          last edited by

                                          I loved the idea of pfsense + freenas since it kills 2 birds with one stone, but even I have to admit pfsense requires to be simple and kept as a firewall.

                                          Adding features like Nas or further addons can complicate it and no doubt leave it more open to attacks and instability.

                                          Pfsense is best kept as Pfsense

                                          If people require a Nas, freenas is free or take a look at XPEnology which is a free version of synology nas os, and combine it with the HP G7-N54L which you can still get good cash back deals on I think roughly around £130. The unit can take a modded bios to uncap the satas to full speed and accept 3tb or 4tb hdds I hear also.

                                          Beats paying £500 for synology nas and job done in £130, so fraction of the cost.

                                          1 Reply Last reply Reply Quote 0
                                          • E
                                            efk
                                            last edited by

                                            I'm late to the party, and I'm a nobody but I think the idea of combining projects is a terrible one.

                                            1. In a firewall / router type situation, wasting all that ram/CPU on ZFS seems like a dumb idea. I want nothing to do with ZFS on my firewall. I want all resources dedicated to providing network services, and as fast as possible.
                                            2. doesn't FreeNAS allow jails now? Seems like you could attack this problem a lot easier from the other direction.
                                            3. combining projects does not guarantee everyone will stay. Some of the people working on FreeNAS probably want nothing to do with network services, and may see the combination OS as a dilution, and therefore leave.

                                            It seems the idea of combining projects is appealing to people having to run two VM's at home. Those of us not using these projects in a home setting do not want them combined.

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