Slashdot Mirror


Ask Slashdot: Migrating a Router From Linux To *BSD?

An anonymous reader writes I'm in the camp that doesn't trust systemd. You can discuss the technical merits of all init solutions all you want, but if I wanted to run Windows NT I'd run Windows NT, not Linux. So I've decided to migrate my homebrew router/firewall/samba server to one of the BSDs. Question one is: which BSD? Question two: where's some good documentation regarding setting up a home router/firewall on your favorite BSD?
It's fine if the documentation is highly technical, I've written linux kernel drivers before :)
(Got a question? You can Ask Slashdot, too.)

66 of 403 comments (clear)

  1. pfsense by TheGratefulNet · · Score: 5, Informative

    subject says it all.

    runs from very small disk (I use a 4gb m-sata ssd) and has a great ui, is a superb firewall and is bsd based. used to be the old openwall code.

    --

    --
    "It is now safe to switch off your computer."
    1. Re:pfsense by IMightB · · Score: 4, Interesting

      Love PfSense doubleplus from me as well. However, I don't understand the blatant systemd misrepresentation/hatred

    2. Re:pfsense by fahrbot-bot · · Score: 3, Informative

      Pfsense is listed on these as well. If you don't want a turn-key like solution, but want something secure, use OpenBSD.

      --
      It must have been something you assimilated. . . .
    3. Re:pfsense by Anonymous Coward · · Score: 4, Insightful

      PfSense is a must if you are running ESXi topologies.

      SystemD hatred is pretty simple. A large amount of untested, potentially unsecure, unaudited code was placed at the core of Linux's userland, and forced on end users (enterprise IT shops) without any real testing or feedback by end users.

      RedHat has bet the farm on SystemD... if/when it has security issues (it has network connections, so in theory, it can be remote rooted), it can cause a mass flight from RHEL and downstreams. The gain? Little to none, from the end user point of view.

      I am keeping fingers crossed, and hoping someone forks the cash for an audit of the code... Oracle and Microsoft are waiting in the wings for mainstream Linux distros to fall on their face if something does break.

    4. Re:pfsense by Anonymous Coward · · Score: 5, Insightful

      It's because the whole systemd thing is the latest in a line of trends where entire distros are being drastically changed rather than getting forked into something new. Ubuntu's Gnome thing caused a lot of people to basically write it off and move back to Debian, only to now find the same people responsible with the crappy Gnome changes have subverted the Debian core as well. Instead of forking Debian with the new systemd paradigm, Debian is rolling it in as the default. And since systemd touches so many different things, it's not really easy to get rid of.

      One of the common defenses from systemd devs is something along the lines of "why are people so upset over it? SystemD is still new and they should give it time to play out before judging it." Which is exactly the kind of reason you *dont* put it in a live mainstream distro known for stability until after years of testing and positive results in a fork.

    5. Re:pfsense by gatkinso · · Score: 5, Informative

      >> I don't understand the blatant systemd misrepresentation/hatred

      It is a complex and fairly large chunk of code that "fixes" a nonexistent problem, it flies in the face of Unix philosophy, and the author has a pretty bad track record.

      --
      I am very small, utmostly microscopic.
    6. Re:pfsense by gmack · · Score: 5, Informative

      PfSense is a must if you are running ESXi topologies.

      SystemD hatred is pretty simple. A large amount of untested, potentially unsecure, unaudited code was placed at the core of Linux's userland, and forced on end users (enterprise IT shops) without any real testing or feedback by end users.

      RedHat has bet the farm on SystemD... if/when it has security issues (it has network connections, so in theory, it can be remote rooted), it can cause a mass flight from RHEL and downstreams. The gain? Little to none, from the end user point of view.

      I am keeping fingers crossed, and hoping someone forks the cash for an audit of the code... Oracle and Microsoft are waiting in the wings for mainstream Linux distros to fall on their face if something does break.

      You do realize that most of the systemd addon daemons run
      1. As a completely separate process
      2. With the minimum permissions need to do their job.
      3. The stuff with network connections are definitely optional..

      I know they have some network things that they optimized for containers but they don't seem general purpose so I don't run any of them on the servers I'm testing systemd on. So far the only actual Systemd issue I've had is that it screws up pulse audio on one of my machines (works fine on the laptop screws up on my desktop).

    7. Re:pfsense by Galactic+Dominator · · Score: 2, Informative

      The version of pf that ships with pfsense is positively ancient

      FreeBSD's PF is essentially an actively maintained fork which doesn't follow the upstream closely anymore. It has its own set of functionality like being SMP and VIMAGE capable.

      http://networkfilter.blogspot.com.au/2014/12/security-openbsd-vs-freebsd.html#network

      There is a good bit of misinformation on that page.

      --
      brandelf -t FreeBSD /brain
    8. Re:pfsense by Trepidity · · Score: 4, Insightful

      Considering it's the third major Unix to try fixing this problem, I don't think the problem is nonexistent or invented. Solaris came up with SMF, and OSX came up with launchd, basically to fix the same problem, which is that tangles of shell scripts are unmaintainable, buggy shit.

    9. Re:pfsense by Ol+Olsoc · · Score: 3, Funny

      You do realize that most of the systemd addon daemons run

      across their goddamned lawns, it would appear.

      --
      The shepherds did so well protecting the flock that the sheep no longer believed that wolves existed.
    10. Re:pfsense by Anonymous Coward · · Score: 4, Insightful

      Solaris lost favor due to crap like SMF because no one could really troubleshoot it when it broke as well, and OSX is no longer server friendly. If you want to talk about buggy shit, look at the two examples you just brought up. Systemd solves desktop problems, not server or embedded problems, it only causes problems in those realms.

    11. Re:pfsense by nabsltd · · Score: 3, Insightful

      Systemd is actually *really* easy to get rid of, you just have to be willing to do without Gnome and other packages that depend upon it.

      Please provide a step-by-step list of the commands needed to remove systemd from CentOS 7 "minimal install", or a pointer to such a list.

      I have now been told literally dozens of times that "you don't have to install systemd", but no one has yet to back that up with steps for an install without it, or how to remove it from an existing install.

    12. Re:pfsense by phantomfive · · Score: 2

      So far the only actual Systemd issue I've had is that it screws up pulse audio on one of my machines

      That is karma if I've ever heard of it.

      --
      "First they came for the slanderers and i said nothing."
    13. Re:pfsense by gmack · · Score: 2

      That's pretty interesting considering it was designed for servers to begin with. Servers are far more likely to have weird dependencies on boot such as root drive over the network or worse yet, boot drive over clustered file system over the network and where Debian said they are losing share due to not being able to support some of the larger server configurations.

      For the embedded space, it either uses less memory than the current setup, or you are rolling your own init and don't care about systemd at all.

    14. Re:pfsense by Cramer · · Score: 2

      Then you end up with sysvinit AND various bits of systemd installed at the same time. A lot of shit lists systemd as a requirement, thus It. Will. Be. Installed. It's like plymouth on Ubuntu (splash screen crap); it's buggered into to a thousand things so it cannot be removed. (you can choose not to run it, but it's always installed.)

    15. Re:pfsense by Cramer · · Score: 2

      SMF pre-dates the Oracle purchase. I used Solaris 10 on exactly ONE system. After a few weeks of dealing with SMF (and the lie that it replaces all the shell scripts -- hint: it doesn't; it just hides them somewhere else) I installed linux and microwaved those DVDs. Too much like the windows registry. Too easy to leave all manner of crap in it. Far too easy to "hide" shit in it. Too much bloat and always running shit.

      I know a lot of UNIX(tm) admins. None of them like what became of Solaris. SMF was an attempt to fix what wasn't broken. ("if it's not broken, break it.")

    16. Re:pfsense by igloo-x · · Score: 3, Insightful

      Out of curiousity I decided to take a look at a typical init file on this machine, running Ubuntu 14.04 LTS.

      I chose apache because it was at the top of the list. The file is 410 lines long. Within the first 5 lines of code, we're in to this cryptic, barely readable shit:

      SCRIPTNAME="${0##*/}"
      SCRIPTNAME="${SCRIPTNAME##[KS][0-9][0-9]}"

      The file also appears to be sourcing variables left, right and centre. User-editable init config options have to be spun off into files their own directory (in this case /etc/defaults/apache2). They can't go in the init file itself because they evidently have to be updated by the package manager all the time. It's hardly any wonder with gems like SCRIPTNAME="${SCRIPTNAME##[KS][0-9][0-9]}" all over the place.

      Then you've got the usual shitting of PID files out to persistent storage, and the same logic of checking them when starting or stopping the service - which is duplicated each time, in each init file for each service, along with the same basic shit each script has to do to determine it's environment.

      I'd actually proved my suspicions within about 5 minutes of opening a few files.

    17. Re:pfsense by buchanmilne · · Score: 2

      (it has network connections, so in theory, it can be remote rooted)

      [root@buchan-laptop ~]# ps auxww|grep systemd|wc -l
      12
      [root@buchan-laptop ~]# netstat -plant|grep systemd
      [root@buchan-laptop ~]#

    18. Re:pfsense by Barsteward · · Score: 2

      Out of those scripts, how many do approx the same things i.e. how much duplicated scripting across all the scripts? "Start, Stop, Restart" quickly come to mind

      --
      "The hands that help are better far than lips that pray." - Robert Ingersoll (1833-1899)
    19. Re:pfsense by unrtst · · Score: 2

      Systemd is actually *really* easy to get rid of, you just have to be willing to do without Gnome and other packages that depend upon it.

      If you aren't willing to make that choice, then you have chosen to run with it.

      Statements like this are one of the many reasons people get pissed about systemd. I can't tell if this is just a really good troll, or if you seriously believe that and are ok with it, but I suspect that latter just because of apparent mindset of pro-systemd folks. So, assuming the latter...

      You're saying systemd is easy to get rid of, if you get rid of all the things that now depend on it, and those that will in the future. Logind, for example, which means Gnome, which means other gnome stuff, and that's just one branch of the tree (though probably the most prominent at this time). That's just ridiculous for a desktop app or a display manager (gdm/xdm/kdm/etc) to depend on a specific init system (it doesn't directly, but GDM depends on logind, which depends on systemd). How about an example...

      What if KDE started depending on something similar but different than logind, and it depended on a different init system. If that happened, I couldn't have one user using gnome and another using KDE using fast user switching on the desktop. That'd require a bunch of compatibility stuff to be in place... which is actually something those two groups (and others) have been working hard at for years (ex. shared "start" menus, session management, audio multiplexing (arts/esd/pulse), etc).

      Regaring gnome+logind+system, I found this to be a good read: https://blogs.gnome.org/ovitte...
      It sort of argues that gnome doesn't need systemd. However, it acknowledges that:
      * GNOME 3.8 doesn't directly require logind
      * ... but GDM assumes (requires) an init system that will also clean up any process it started. Basically, it needs a feature that is more-or-less unique to systemd.
      * If logind is required/included, GNOME did NOT intend for this to mean systemd was also required. However, their assumption that logind was independent from systemd changed since systemd v205 due to cgroups kernel change.
      * similar stuff continues regarding session management, wayland, etc etc

      Those are, IMO, huge red flags. A very large project starts making many parts dependent on some (currently) independent project (logind). Then logind/systemd inject some dependencies, and now gnomes intent is screwed - they're essentially depending on a specific init system now. How is that a good thing?

      FWIW, I'm NOT saying that:
      * gnome shouldn't be free to develop as it wishes
      * systemd shouldn't be allowed to do what it's doing
      * users shouldn't be free to use this stuff
      * distros shouldn't be free to choose these things ... but why is it so difficult for so many people to understand why this pisses off many many people? Seems pretty obvious for many reasons.

      Personally, I think many of the distros have failed us with this integration. It shouldn't have been allowed to be the default until, at the minimum, compatibility layers were available (ex. uselessd). Maybe have some forks that made it the fully integrated default, but debian... ouch. It's parts are actually more of a problem than systemd itself... there should be a logind alternative, or it should be capable of running without systemd (same goes for all the other "modular" parts). I'm not saying the devs should be forced to do this; I'm saying distros and users shouldn't accept it as the default until that flexibility is in place.

      Sorry that this has almost nothing to do with *BSD, except that it lacks systemd.

    20. Re:pfsense by Marillion · · Score: 2

      The worry isn't the new processes. It's the systemd process itself. I'll grant that having systemd pre-reducing privileges is better than expecting the daemon process to reduce privileges on its own. At what point will running systemd without networking be essentially non-optional due to widespread community adoption? I feel many of the worries of the parent of your post are still valid.

      --
      This is a boring sig
  2. OpenBSD by Anonymous Coward · · Score: 4, Informative

    http://www.bsdnow.tv/tutorials/openbsd-router

    1. Re:OpenBSD by grub · · Score: 2

      I should have added: If you are serious about your security, move your samba service inside to another box. Keep this machine as a device to move packets securely.

      --
      Trolling is a art,
  3. Re: Uh. by Anonymous Coward · · Score: 2, Insightful

    Experience usually leads to a realization that you don't know everything... Asking others is a good way to increase your available options from the few you are comfortable with to include ones you might not know exist.

  4. Re:Uh. by GrumpySteen · · Score: 5, Funny

    He said he's written drivers. He didn't say they compiled or worked.

  5. Or Slackware, Gentoo, or Devuan by dpilot · · Score: 5, Informative

    The three distros in the Subject line do not use systemd, though Gentoo does offer it. They may well be the dig-in-the-heels distros that will stay that way, driven by people like you. Moving to one of those distros is a smaller/easier move for you, and doesn't preclude moving to a BSD in the future.

    Years back I thought about moving my server to OpenBSD, based on reputation. However after some thinking I realized that potentially the safest server is the one you know best how to administer. I was probably better off knowing how to administer Linux well across my home cluster than to divide my efforts. I know OpenBSD is supposed to be "secure by default", but don't know how I might accidentally mess that up by mis-applying Linux knowledge to it.

    --
    The living have better things to do than to continue hating the dead.
  6. Re:Uh. by Dr+J.+keeps+the+nerd · · Score: 2

    We know it's you, Linus!

  7. Re:Too stupid to understand routing, but smart eno by OzPeter · · Score: 2

    Too stupid to understand routing, but smart enough to write kernel code? Something doesn't add up here.

    Can't you recognize click-bait when you see it?

    Heaven knows slashdot needs click-bait, what with the crap they have been doing to their layout in the last 2 days. Right now it's utter crap on Safari 6.1*, but sometimes its good and other times it's worse. And sometimes its borked on Safari 8 and even IE 11. It's as if Dice has never heard of testing on a test system and not testing on production.

    *And yes I am still there because of 32 EFI, and yes I know there are ways to get >Lion running on 32 bit EFI, but it is not a priority right now.

    --
    I am Slashdot. Are you Slashdot as well?
  8. Two things by Richy_T · · Score: 5, Interesting

    1) Don't run your fileserver on your router/firewall. You're asking for problems.

    2) Not all Linuxes run Systemd (Yay Slackware). I have nothing against the BSDs and they are probably better for networking anyway.

    Personally I have Tomato on my firewall/router and use Slackware for my server needs. Serves me pretty well.

    1. Re:Two things by mlts · · Score: 2

      The ideal is to have the router on its own bare metal, perhaps sitting on a hypervisor (Xen, ESXi, pick your poison), so if the router's VM gets compromised, the bare metal hardware cannot be attacked (video cards can be reflashed, even keyboard firmware can be augmented.) Plus, if snapshots are used, it can be restored from a snapshot if need be. Modern type 1 hypervisors can be well locked down so that compromise from a VM is extremely rare, especially if the management port cannot be touched from any of the VMs on the hypervisor.

      Another possibility is to use vSwitches and have your fileserver be a VM, with the PFSense instance being connected to the VSwitch that the external Internet NIC is on, as well as an internal VSwitch for the file server, and the internal LAN. One can get fancy from there, and create three vSwitches so one can have a working DMZ. The advantage of virtualizing everything is that hardware changes are easier, and "oh shit" mistakes can be partially mitigated by wise use of snapshots.

    2. Re:Two things by steveg · · Score: 2

      Sure. No problem.

      It's 10.7.7.34

      --
      Ignorance killed the cat. Curiosity was framed.
  9. Re:Let me Google that for you.. by jedidiah · · Score: 2

    > You may have written linux kernel drivers before, but apparently you have never encountered this thing called Google?

    Yes. Google. With all kinds of things tossed together both good and bad. Just because something is on Google, it doesn't mean you can trust it. The Internet is a great conduit for spreading nonsense.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  10. and when BSD moves to systemd... by Rob+Y. · · Score: 2, Insightful

    I'm not sure why all you systemd haters feel the need to say "If I wanted Windows, I'd run Windows". I don't know the technical details, but I assume systemd as a Linux init system is nothing like Windows - except maybe for the fact that it's not based on a bunch of shell scripts. If you're a Linux fan, I'd be surprised if the only reason you like Linux is it's script-based init system.

    Anyway, I assume the various distros that are switching to systemd are doing it for a reason - and that reason isn't to make it work more like Windows. I assume it's to make it work - i.e. resume from suspend reliably, etc. And if they find that necessary, what makes you think the maintainers of BSD aren't going to run into the same walls that the systemd approach circumvents? Then what are you gonna do?

    So sure, if systemd doesn't need its 'tentacles' in an area, complain about that. Maybe your distro won't use that component. But as it stands the systemd flame wars are veering into conspiracy theory territory - and that's rarely a good thing.

    --
    Posted from my Android phone. Oh, I can change this? There, that's better...
    1. Re:and when BSD moves to systemd... by ahodgson · · Score: 5, Informative

      The comparison to Windows NT is because systemd insists on binary logs, takes over vast chunks of functionality that it has no business touching, and makes it basically impossible to debug problems. It makes the experience of administering the server much more like administering Windows than administering Linux should be.

    2. Re:and when BSD moves to systemd... by ahodgson · · Score: 2, Insightful

      Only if you're an idiot who can only point and click gui buttons and whose solution to any problem is to reboot.

    3. Re:and when BSD moves to systemd... by muep · · Score: 2

      I have very little experience of the logging functionality of windows. During the small amount of looking I did, I did not find it similar at all to using journald. And on the other hand, with journactl, the way the log content is usually presented in syslog-like plain-text form inside less. Which basically is the same as what I'd use when dealing with a system that uses plain-text logs. So I guess that someone who has not tried journalctl might get a pretty inaccurate view of how it is like, if he just hears somewhere that it is like the windows logging system.

      Also I have not really noticed systemd making things impossible to debug. I can agree that there are things that are harder, but there is also stuff that become much easier than with systemd. And in my experience, debugging problems on a systemd-using system is usually basically the same as on one that has no systemd.

      I have no actual experience of administering a windows system except in the common personal desktop system scenario. But as far as I can tell, there is little reason to claim that GNU/Linux with systemd would be closer in experience to Windows than GNU/Linux without systemd.

    4. Re:and when BSD moves to systemd... by JustNiz · · Score: 3, Insightful

      >> If you're a Linux fan, I'd be surprised if the only reason you like Linux is it's script-based init system.

      For me at least, its not the only reason but its certainly one of the big benefits. I like being able to non-ambiguously see and control exactly what is really going on, and to even be able to run those scripts individually in a sandbox if I want.

      I also really like plaintext system log files, having to now use some commandline tool to continually create them first is nothing but a giant pain in the ass.

      For me at least, Systemd takes a lot of simplicity and usability away, with nothing even close to a correspondingly sized gain in other benefits.

    5. Re:and when BSD moves to systemd... by steveha · · Score: 5, Informative

      systemd insists on binary logs

      My understanding is that SystemD makes binary logs for its own purposes, and that the binary features include indexes so it can very quickly answer queries like "what were the last ten things logged by Apache?"

      However, SystemD permits continuing to run a time-tested conventional log daemon. The current recommended way to get network logging is to run rsyslog.

      Some hard-core SystemD haters are still not happy, because the log events flow through SystemD on their way to the conventional log daemon.[1]

      takes over vast chunks of functionality that it has no business touching

      I'm not certain this really is the case. SystemD is a collection of services, and each one has a specific area of concern. The actual technical analyses I have read suggest that the basic design of SystemD is sound, and that it is doing things that people want to be done. For example, SystemD allows the graphics system (X.org) to run as a non-root user.

      One criticism of SystemD that may have some validity: that the only documentation is whatever the source code contains this week. SystemD is being developed at a rapid pace and documentation may be suffering. This is one reason I am glad for projects like UselessD... they will force the SystemD interface to settle down a bit and be documented a bit better.

      But I'll say it again: from what I have read (in technical analyses) the basic design of SystemD seems to be sound. The Debian technical committee that evaluated the situation concluded that SystemD was the best choice for Debian. (Then the politics blew up but that's another story.) Do you think that the Debian technical committee spent months evaluating SystemD and were just wrong about it? (That's not to say that SystemD is perfect. But something can be imperfect and still be the best choice for the future.)

      makes it basically impossible to debug problems

      I will not comment on this because I have no experience with SystemD yet. I have seen comments like this multiple times.

      Perhaps, even if SystemD is the future, it should be adopted slowly and carefully in the present. Debian "jessie" has SystemD as optional which seems like a very good thing to me.

      [1] I think that's probably an overreaction... if Red Hat can't get SystemD to reliably pass through log events, that would imply a level of brokenness that would preclude the widespread adoption that seems to be taking place.

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    6. Re:and when BSD moves to systemd... by mvdwege · · Score: 2

      Jordan Hubbard, you know, that guy that has a little influence in the FreeBSD project, seems to think that systemd is a pretty good idea (Slideshare transcript).

      --
      "I know I will be modded down for this": where's the option '-1, Asking for it'?
    7. Re:and when BSD moves to systemd... by walterbyrd · · Score: 5, Informative

      Below is a great explanation as to why systemd is like windows.

      From "SystemD Abomination"
      Subject Vested interest in control. RedHat and SystemD
      Date Mon, 17 Nov 2014 04:40:08 +0100

        by beaverdownunder:

      It should be obvious to anyone that RedHat has a vested interest in making the vast majority of Linux distributions dependent on technology it controls. Linux is its bread-and-butter.

      It appears RedHat has realised that, through systemd, it can readily provide preferential support for its own projects, and place roadblocks up for projects it does not control, thus extending its influence broadly and quickly. By using tenuous dependencies amongst its own projects it can speed adoption even faster.

      Once it has significant influence, and the maintainers of competing projects have drifted away either out of frustration or because they are starved of oxygen, RedHat knows that they can effectively take Linux closed-source by restricting access to documentation and fighting changes that are not in their own best interests.

      At this point, they can market themselves as the only rational choice for corporate Linux support -- and this would be perfectly reasonable because they would have effective control of the ecosystem.

      Linux (as in a full OS implementation) is an extremely complex beast and you can't just "fork it" and start your own 'distro' from scratch anymore -- you would have to leverage a small army to do it, then keep that army to maintain it. It's just not practical.

      At the same time, Linux has matured to the point of attaining some measure of corporate credibility, and from RedHat's point of view, it no longer needs its 'open source' roots to remain viable. RedHat also, understandably, fears potential competition.

      Through systemd and subsequent takeovers of other ecosystem components, RedHat can leverage its own position while stifling potential competition -- this is a best-case scenario for any corporation. It will have an advantage in the marketplace, potential customers will recognize that advantage, and buy its products and support contracts.

      I hope you can understand why many see this as an extremely compelling case. Arguing that RedHat has 'ethics' and would 'never do such a thing' is immature and silly -- RedHat is a corporation, it exists to profit from its opportunities, just like any other company. To attempt to argue that it would not do so is contrary to what we can assume is its default state.

      It's no 'conspiracy theory' to assume that a corporation will behave like a corporation; arguing that it is just makes one look like a naive child. systemd is one large step toward RedHat gaining the ability to reap what it has sewn -- for its benefit and not necessarily ours.

    8. Re:and when BSD moves to systemd... by geminidomino · · Score: 2

      I find it hard to imagine a scenario where you will have access to the file on disk but lack access to a program to unpack the log files. Sure, such a scenario can be concocted to prove a point; however, in the real world, you are going to be able to unpack the binary logs.

      If your imagination is that weak, you have no business doing server postmortems. Sadly, the systemd devs' imaginations are, apparently, no better than yours.

  11. Re:FreeBSD by unixisc · · Score: 5, Informative

    Aside from pFsense, another great alternative is TrueOS.

  12. OpenBSD by grub · · Score: 3, Insightful


    OpenBSD. Feel free to look at the others, just don't get distracted by shiny bells & whistles and GUIs and the like.
    OpenBSD does what you want and does it very well.

    --
    Trolling is a art,
  13. Info about Gentoo, for those considering it by Anonymous Coward · · Score: 5, Informative

    Like BSD, Gentoo is a source-based. So, if you're familiar with Linux, you might find Gentoo a sort of gentle introduction to a more BSD-like distro.

    I've been using Gentoo for a while, and it has done what I expected most distros to do: It offers two init systems: OpenRC (the default), and systemd. OpenRC is actually Gentoo's own. It's sysvinit-like, with a few nice enhancements. If you're familiar with Sysvinit, you don't find it hard to switch: OpenRC is lightweight, and converting a syvinit-style startup script to an OpenRC one usually requires only a few modifications. OpenRC it lets you specify dependencies and runlevels by name, rather than having to manage a bunch of symlinks and numbers by hand.

    Gentoo is not as user-friendly as, say, Ubuntu. There's no GUI installer. Instead, the Gentoo Handbook walks you through how to partition and format your disk, etc. I initially picked Gentoo because I wanted to learn more about Linux. Whenever I've gotten stuck, I have also found the online Gentoo community (wiki, forums,etc.) to be quite friendly and helpful.

    1. Re:Info about Gentoo, for those considering it by Trepidity · · Score: 2

      I don't think it's really accurate to say the BSDs are primarily source-based from a user perspective these days. FreeBSD, NetBSD, and OpenBSD all use binary packages. You can build from source, but that's true on Debian too. The various BSD and Linux distributions differ a bit mainly in how strongly encouraged each option is, e.g. OpenBSD strongly recommends installing the official binary packages, not building your own.

  14. Alpine linux? by staalmannen · · Score: 2

    Init: OpenRC Libc: musl Userland: busybox Looks like a nice alternative....

  15. Re: Good documentation by brynet · · Score: 3, Informative

    Peter N. M. Hansteen's PF tutorial and books are recommended reads, Peter remains involved with the developers and the information stays relevant and useful. He also ensures that readers using other BSD systems, especially with older versions of pf, can learn just as much from it.

    * The Book of PF, 3rd Edition, 2014 - ISBN: 978-1593275891
    * http://home.nuug.no/~peter/pf/

    Michael W Lucas is another author that writes books for both the BSD and sysadmin communities, similarly, he works closely with developers and users to release these short, yet all-encompassing tomes of information, covering a wide variety of topics.

    https://www.michaelwlucas.com/...
    * Absolute OpenBSD, 2nd Edition, 2013 - ISBN: 978-1593274764
    * SSH Mastery, 2012 - ISBN: 978-1470069711
    * Sudo Master, 2013 - ISBN: 978-1493626205

    And of course, official documentation is great. The effort of many people working to improve, Jason McIntyre improving readability and overall quality, Ingo Schwarze's amazing work on mandoc(1) tools. OpenBSD's FAQ, which is usually the first step people take to learn more about the system, is maintained by Nick Holland.

    http://www.openbsd.org/faq/
    http://www.openbsd.org/cgi-bin...

  16. Re:pfsense - aka crappy old pf by unixisc · · Score: 2

    Yeah, isn't the current version of pFsense - 2.1.5 - derived from what is in FreeBSD 8.3? And also, isn't their IPv6 support still rather primitive? It would be good to compare pFsense 2.2 vs TrueOS 10.1 vs OpenBSD 5.6 as far as their IPv6 support goes

  17. Why don't you like systemd? by Anonymous Coward · · Score: 3, Funny

    Frankly, I love it when I am forced to take a 5 minute coffee break when I can't CTRL+C out of my misconfigured network card. This is a delicious way to start the day.

  18. Re:FreeBSD by houstonbofh · · Score: 4, Informative

    Another option is the grandaddy of all the BSD based appliances, m0n0wall. It is still very lean and very solid.

  19. systemd == Windows? by kschendel · · Score: 5, Insightful

    IMO the comparison comes about because the philosophies of the two (systemd and windows) are more related to one another than they are to Unix. Unix favors a collection of interacting tools that each do something (ideally, doing that something well). Windows is a giant monolithic shroud covering a multitude of interacting moving parts that you can't see, touch, or understand unless you spend the necessary years becoming an insider. Systemd seems to be leaning in that direction, hence the comparison. It's a big collection of "stuff" that refuses to be broken up into component functional bits.

    It certainly doesn't help that the systemd authors seem to think so highly of themselves, that I feel no need to add to their aggrandizement by thinking highly of them myself.

    1. Re:systemd == Windows? by geminidomino · · Score: 2

      So is this all just people acting on some philosophical principle, rather than picking the best tool to complete the job they want?

      No. That's just how it's presented to minimize the functional shortcomings and design flaws on which many people, myself included, base the decision not to use systemd for practical reasons.

      e.g.

      * It's in "rapid development.": Presumably, this is thrown out by proponents to counter that the crufty old init systems are stagnant and old. To anyone responsible for maintaining production servers, this is likely a huge red flag. It's not for dramatic reasons that the "rapid development" version of Debian is called "unstable," for instance. I don't want to provision 3 servers with the same Linux distro over a 3 week period and find that they have 3 different versions of systemd on them. Add to that the fact that the devs behind the project don't have the best reputation for stable, well-functioning software, and you don't have an ad hominem, as much as the systemd salesmen might try to claim so; you have people who don't want another pulseaudio debacle that lives in the startup process now.

      * SysV init/initd/upstart/etc.. all suck: No argument here, but using this dodge to handwave away the design flaws of systemd feels like the Congress Fallacy.
      i.e. "Something must be done to improve the init system." "Adopting systemd is something, therefore adopting systemd must be done." It completely ignores the fact that systemd sucks, too, and it sucks in new, exciting, and unpredictable ways, without actually solving any of the *actual* problems with the old way of doing things (changing the format are just changing one arcane incantation for another) and just adding "solutions" hoping they find a problem to go with.

      * "My skill set/use case/worldview doesn't see X as a problem, so X isn't a problem": The devs are just as (or more) guilty of this even than the proponents are. Binary logs, everyone's favorite dipshit stick in the whole mess falls here. The problem isn't that it's "like Windows" (it's not), and not that those who dislike it are "afraid of change" (we're not). The problem is that a system log facility that only works when nothing goes wrong is tits-on-a-bull useless. System compromised and the intruder corrupts the log? Oh, that's a feature, because otherwise he could edit the log and feed you misinformation -- that kind of reasoning suggests that the developers understand neither security (if it's trivial for the admin to unpack the log, it's trivial for the intruder - binary storage != encryption) nor system administration. It doesn't help that you run the same risk if a UPS or thermal sensor fails and the server powers down ungracefully -- the kind of situation where you'd damn sure WANT access to your log files. It seems none of the devs have ever worked on the other side of the switch.

      * "I AM TRAPPER KEEPER": At best, systemd's ever-expanding feeping creaturism demonstrates an especially solipsistic "NIH" mindset. More cynically, I'm led to to wonder if the thought process isn't more along the lines of the devs being sloppy or incompetent and unable to figure out a "neat" way to work alongside the rest of the system, so they just roll their own network stack, DHCP client, and even console into what was, ostensibly, an init replacement. Either way, I'm not willing to risk my systems to RedHat's whim nor Lennart&Co's track record.

      There's just a few of my personal, completely pragmatic reasons to eschew systemd and any distribution that includes it by default - the latter not out of principle or dogma, but because there's no telling when they'll let their package manager require systemd for some software I'll actually need.(Ian's GR tried to address that possibility for Debian, and had it passed, I would be transitioning to Debian rather than FreeBSD).

  20. Article is wrong... by MMC+Monster · · Score: 3, Funny

    The article should say: I used to write Linux kernel drivers and hate the direction systemd is taking it. Please support me by clicking on my rant and joining me in installing BSD on your router.

    Seriously, I'm barely familiar with Linux as I'm just an end user, and I know well enough that I don't need an ask slashdot to figure out which OS I can put on a router which doesn't include systemd.

    --
    Help! I'm a slashdot refugee.
  21. Migration by phorm · · Score: 2

    You don't even need to blow away the Linux partition. Just install to a 4GB USB stick and set that to be the first boot-device.

  22. A few answers from the original AC by Anonymous Coward · · Score: 5, Informative

    I'm the original AC who asked the question. Or someone pretending to be him, you have no way of knowing.

    1. Not trusting systemd.
    Because it can't be troubleshooted if all you have is something to read text files with. When all you have is a single user shell, for example. Or you've put the hard drive in a different system, which is whatever you had on hand and could even be Windows with an ext3 plugin.
    Because it comes from the author of PulseAudio, who is world renowned for the stability of his products. And low CPU consumption, when they work.
    Because it contradicts the Unix philosophy of having a lot of little utilities that each do one thing. It may not be a big deal for a full time sysadmin, but if your main job isn't that it's a lot easier to just read about the small parts that interest you and disable the rest.

    2. If he can write Linux kernel drivers, why does he need to ask Slashdot, or why doesn't he google it?
    Because I don't know anything about BSD, and I'm not looking for "learn BSD in 10 easy mouse clicks". Although the signal to noise ratio on here sometimes approaches zero, there is the occasional informed opinion, and with a bit of luck, there will be some pointer to some actual pertinent information.

    3. Use pfSense
    If i use pfSense I won't learn anything. I've installed it before, it took about zero BSD knowledge. Also, I want the file serving part, see 4.

    4. Move your Samba server to another machine for security reasons.
    The router doesn't have any important files on it. It has the usual torrents, and it runs a private http server. I update the http server's pages through samba because it's the most convenient. It's not worth running this on a separate machine as there's nothing on there that I can't afford to lose. The real data is on other machines, and backed up properly.

    Looking forward to the next batch of flame posts now :)

    1. Re:A few answers from the original AC by Sesostris+III · · Score: 2

      Text files might take too long to read (and that's a value judgement), but even if true, that's better than not being able to read them at all.

      So what software is available for reading systemd binary journal files on Windows? Saying "write your own" is a cop-out.

      Plenty of applications for reading text files though. Notepad++ is my favourite. (I've even got it running in Linus using Wine!)

      For systemd to truly replace existing init systems, it needs stand-alone journal-readers for other (non-systemd) systems. Ideally, the systemd people should write these - they're the ones forcing through the binary logs.

      --
      You never know what is enough unless you know what is more than enough. - Blake
  23. BSD not likely to go systemd by unixisc · · Score: 3, Interesting

    Solaris uses SMF and OS-X uses launchd, as was discussed yesterday in the thread about the new networking features in systemd. If BSD leaves SysV and adapts something, it's more likely to be launchd, rather than systemd. Also, systemd is under GNU LGPL 2.1, and the BSD projects have tended to seek out BSDL alternatives wherever possible. Which is why launchd is more likely to be used than systemd

  24. systemd hatred by Foresto · · Score: 4, Insightful

    I don't understand the blatent systemd pushing. Reasons for disliking it vary but don't really matter, because its adoption will force a *lot* of people who don't want it to either suffer through it or suffer through migration to another OS. That is reason enough not to adopt it. Trying to discredit people's reasons for disliking it is presumptuous, pointless, and rather stupid.

    1. Re:systemd hatred by rahvin112 · · Score: 2

      There are over 100 Linux distributions. I can guarantee with absolute certainty that not everyone one of them has switched to systemd. You don't like the new car Ford released so you switch to a boat, makes perfect sense.

  25. GNOME, systemd & BSDs by unixisc · · Score: 3

    But both GNOME and GNOME classic are available on PC-BSD 10.x. How does it work here, if it requires systemd or logind? The BSDs don't have that

  26. OpenBSD & PF are your only sane choice by B5_geek · · Score: 2

    I have learned this the hard way so please take heed;

    NB! most of the guides online have the syntax (order of wording) wrong for pf.conf included the beloved OBSD FAQ.
    This is accurate and works on OBSD v5.6
    99% of the online howto & guides will get your firewall almost working.

    Use this as an example from my working pf.conf

    pass in log on egress inet proto { tcp, udp } to $pub_ip port { ssh } rdr-to $workstation

    You can spot the variables. Use 'LOG' for all of your entries and keep a "tcpdump -nettti em0 host 192.168.0.x" running while testing your setup.

    --
    "The price good men pay for indifference to public affairs is to be ruled by evil men." ~Plato (427-347 BC)
  27. Re:Uh. by Anrego · · Score: 3, Informative

    I'm in a similar boat. I recently (a few months ago) migrated from Gentoo to FreeBSD.

    The problem with systemd, and probably why so many people are running from it, is that it's not as simple as just not using systemd, or even not using a distro with systemd as a default.

    A lot of packages are gaining direct or indirect dependencies on systemd, and it is becoming a huge pain to run a systemd free system. I found myself having to use portage's blacklist for the first time because simply specifying -systemd as a use flag wasn't enough. I also had to uninstall a bunch of packages and fix the associated breakage. I don't use gnome, but enough gnome packages ended up installed as dependencies of various things that it was a real headache. Slackware has straight up dropped gnome because it's too hard to have it without systemd. And of course you have systemd as an indirect requirement for gimp. Yes friends, when a graphics editing tool depends on a specific init system, it's time to get the hell out of there!

    Systemd isn't the only factor, but it's certainly a major one and I think it's pushing a lot of people (like myself) who have kinda been disillusioned with Linux for some time over the edge. At some point mainstream adoption became the big goal, and this mindset where it was better to have a less flexible but easier to use system started destroying a lot of what drew us to Linux in the first place. Linux is basically morphing into a more open version of Windows for the sake of mass appeal, which may be great for humanity, but it's not why I got interested in Linux.

  28. Re:More info by merky1 · · Score: 2

    I run gentoo for my home server so that I don't have to worry about a major upgrade every few years. That "package churn" is what happens when you want the latest code running the latest fixes.

    Yeah, some of the upgrades get dicey, but I laid out my current root filesystem in 2008, and haven't reinstalled anything since. Yes, every once in a while I need to spend a weekend fixing package collisions, but that is the ticket I paid for when I chose not to use a package based distro.

    So in a nutshell, Gentoo will nickle and dime you to death to keep current, where RHEL/Ubuntu will combine all of that fun into a a few days every 2-3 years.

    --
    --WooooHoooo--
  29. Re:Uh. by Anrego · · Score: 2

    Or just run Ubuntu.. or maybe Windows?

    This is a terrible argument and totally against everything that drove me to Linux in the first place. If I don't like the way something works, I can and am encouraged to roll my own. Systemd is the culmination of this new mindset of "lets all just standardize so it's more presentable to the masses and business". Projects are becoming their own little ecosystems rather than a set of useful utilities that can be used somewhat independently. Gnome is kind of the extreme version of this, but everything seems to be heading in this direction, and now the core system functionality is becoming similar.

    We are heading towards a Linux where doing your own thing is becoming less supported and discouraged, and this I find depressing. Sure we may actually have a year of the Linux desktop, but that desktop may as well be Windows.

  30. It's hatred of change to something 90% finished by dbIII · · Score: 2

    You will understand when something on a new system doesn't work and you have to fuck about for ages to find out what's going on because of the differences and features that are not implemented yet. Suddenly that experienced IT pro has to hit the books to get around what used to have a trivial solution because it's all different - hence anger.
    It's just a case of unfinished software replacing something that was rock solid and "the way we always did it". Anger, embarrassment and blaming the new tool that doesn't quite do what the old one did are a common response to having it fuckup on you or trying to setup something non-standard that used to all just go in a trivial rc.local file. Now it's all different and the docs don't all exist yet.

    So it's a reaction to hitting the rough edges of immature software and change in general.
    I have to admit it pisses me off at times too but I'm getting used to it on some dev boxes and my home machine. I don't think it's ready for use everywhere yet, but it's the catch22 that without wide deployment it's never going to be ready for use everywhere. With more use, more developers and a more practical instead of empire building approach to the project (some developers want it to be an octopus with tentacles into everything instead of being an init system) it may become more useful and less annoying, even if some design choices appear to have been make on crack (eg. you don't want fucking binary logs to read on a system that's got stuck halfway to a usable environment).

  31. grep '[3-6]:[0-9][0-9]' by raymorris · · Score: 2

    Finding 3:00 to 6:DD in ANY file or device, not just a specific type of log:

    grep '[3-6]:[0-9][0-9]

    Note we've been doing it that way since the late seventies, so there's nothing for the sysadmins to learn. All files, disks, etc are searched with the same command, and the same one you've always used, on any *nix.