BSD Now

BSD Now

Download on the App Store

All BSD Now episodes

  • 100: Straight from the Src

    We've finally reached a hundred episodes, and this week we'll be talking to Sebastian Wiedenroth about pkgsrc. Though originally a NetBSD project, now it runs pretty much everywhere, and he even runs a conference about it!

    This episode was brought to you by

    Headlines
    Remote DoS in the TCP stack
    • A pretty devious bug in the BSD network stack has been making its rounds for a while now, allowing remote attackers to exhaust the resources of a system with nothing more than TCP connections
    • While in the LAST_ACK state, which is one of the final stages of a connection's lifetime, the connection can get stuck and hang there indefinitely
    • This problem has a slightly confusing history that involves different fixes at different points in time from different people
    • Juniper originally discovered the bug and announced a fix for their proprietary networking gear on June 8th
    • On June 29th, FreeBSD caught wind of it and fixed the bug in their -current branch, but did not issue a security notice or MFC the fix back to the -stable branches
    • On July 13th, two weeks later, OpenBSD fixed the issue in their -current branch with a slightly different patch, citing the FreeBSD revision from which the problem was found
    • Immediately afterwards, they merged it back to -stable and issued an errata notice for 5.7 and 5.6
    • On July 21st, three weeks after their original fix, FreeBSD committed yet another slightly different fix and issued a security notice for the problem (which didn't include the first fix)
    • After the second fix from FreeBSD, OpenBSD gave them both another look and found their single fix to be sufficient, covering the timer issue in a more general way
    • NetBSD confirmed they were vulnerable too, and applied another completely different fix to -current on July 24th, but haven't released a security notice yet
    • DragonFly is also investigating the issue now to see if they're affected as well
    • ***
      c2k15 hackathon reports
      • Reports from OpenBSD's latest hackathon, held in Calgary this time, are starting to roll in (there were over 40 devs there, so we might see a lot more of these)
      • The first one, from Ingo Schwarze, talks about some of the mandoc work he did at the event
      • He writes, "Did you ever look at a huge page in man, wanted to jump to the definition of a specific term - say, in ksh, to the definition of the "command" built-in command - and had to step through dozens of false positives with the less '/' and 'n' search keys before you finally found the actual definition?"
      • With mandoc's new internal jump targets, this is a problem of the past now
      • Jasper also sent in a report, doing his usual work with Puppet (and specifically "Facter," a tool used by Puppet to gather various bits of system information)
      • Aside from that and various ports-related work, Jasper worked on adding tame support to some userland tools, fixing some Octeon stuff and introduced something that OpenBSD has oddly lacked until now: an "-i" flag for sed (hooray!)
      • Antoine Jacoutot gave a report on what he did at the hackathon as well, including improvements to the rcctl tool (for configuring startup services)
      • It now has an "ls" subcommand with status parsing, allowing you to list running services, stopped services or even ones that failed to start or are supposed to be running (he calls this "the poor man's service monitoring tool")
      • He also reworked some of the rc.d system to allow smoother operation of multiple instances of the same daemon to run (using tor with different config files as an example)
      • His list also included updating ports, updating ports documentation, updating the hotplug daemon and laying out some plans for automatic sysmerge for future upgrades
      • Foundation director Ken Westerback was also there, getting some disk-related and laptop work done
      • He cleaned up and committed the 4k sector softraid code that he'd been working on, as well as fixing some trackpad issues
      • Stefan Sperling, OpenBSD's token "wireless guy," had a lot to say about the hackathon and what he did there (and even sent in his write-up before he got home)
      • He taught tcpdump about some new things, including 802.11n metadata beacons (there's a lot more specific detail about this one in the report)
      • Bringing a bag full of USB wireless devices with him, he set out to get the unsupported ones working, as well as fix some driver bugs in the ones that already did work
      • One quote from Stefan's report that a lot of people seem to be talking about: "Partway through the hackathon tedu proposed an old diff of his to make our base ls utility display multi-byte characters. This led to a long discussion about how to expand UTF-8 support in base. The conclusion so far indicates that single-byte locales (such as ISO-8859-1 and KOI-8) will be removed from the base OS after the 5.8 release is cut. This simplifies things because the whole system only has to care about a single character encoding. We'll then have a full release cycle to bring UTF-8 support to more base system utilities such as vi, ksh, and mg. To help with this plan, I started organizing a UTF-8-focused hackathon for some time later this year."
      • Jeremy Evans wrote in to talk about updating lots of ports, moving the ruby ports up to the latest version and also creating perl and ruby wrappers for the new tame subsystem
      • While he's mainly a ports guy, he got to commit fixes to ports, the base system and even the kernel during the hackathon
      • Rafael Zalamena, who got commit access at the event, gives his very first report on his networking-related hackathon activities
      • With Rafael's diffs and help from a couple other developers, OpenBSD now has support for VPLS
      • Jonathan Gray got a lot done in the area of graphics, working on OpenGL and Mesa, updating libdrm and even working with upstream projects to remove some GNU-specific code
      • As he's become somewhat known for, Jonathan was also busy running three things in the background: clang's fuzzer, cppcheck and AFL (looking for any potential crashes to fix)
      • Martin Pieuchot gave an write-up on his experience: "I always though that hackathons were the best place to write code, but what's even more important is that they are the best (well actually only) moment where one can discuss and coordinate projects with other developers IRL. And that's what I did."
      • He laid out some plans for the wireless stack, discussed future plans for PF, made some routing table improvements and did various other bits to the network stack
      • Unfortunately, most of Martin's secret plans seem to have been left intentionally vague, and will start to take form in the next release cycle
      • We're still eagerly awaiting a report from one of OpenBSD's newest developers, Alexandr Nedvedicky (the Oracle guy who's working on SMP PF and some other PF fixes)
      • OpenBSD 5.8's "beta" status was recently reverted, with the message "take that as a hint," so that may mean more big changes are still to come...
      • ***
        FreeBSD quarterly status report
        • FreeBSD has published their quarterly status report for the months of April to June, citing it to be the largest one so far
        • It's broken down into a number of sections: team reports, projects, kernel, architectures, userland programs, ports, documentation, Google Summer of Code and miscellaneous others
        • Starting off with the cluster admin, some machines were moved to the datacenter at New York Internet, email services are now more resilient to failure, the svn mirrors (now just "svn.freebsd.org") are now using GeoGNS with official SSL certs and general redundancy was increased
        • In the release engineering space, ARM and ARM64 work continues to improve on the Cavium ThunderX, more focus is being put into cloud platforms and the 10.2-RELEASE cycle is reaching its final stages
        • The core team has been working on phabricator, the fancy review system, and is considering to integrate oauth support soon
        • Work also continues on bhyve, and more operating systems are slowly gaining support (including the much-rumored Windows Server 2012)
        • The report also covers recent developments in the Linux emulation layer, and encourages people using 11-CURRENT to help test out the 64bit support
        • Multipath TCP was also a hot topic, and there's a brief summary of the current status on that patch (it will be available publicly soon)
        • ZFSguru, a project we haven't talked about a lot, also gets some attention in the report - version 0.3 is set to be completed in early August
        • PCIe hotplug support is also mentioned, though it's still in the development stages (basic hot-swap functions are working though)
        • The official binary packages are now built more frequently than before with the help of additional hardware, so AMD64 and i386 users will have fresher ports without the need for compiling
        • Various other small updates on specific areas of ports (KDE, XFCE, X11...) are also included in the report
        • Documentation is a strong focus as always, a number of new documentation committers were added and some of the translations have been improved a lot
        • Many other topics were covered, including foundation updates, conference plans, pkgsrc support in pkgng, ZFS support for UEFI boot and much more
        • ***
          The OpenSSH bug that wasn't
          • There's been a lot of discussion about a supposed flaw in OpenSSH, allowing attackers to substantially amplify the number of password attempts they can try per session (without leaving any abnormal log traces, even)
          • There's no actual exploit to speak of; this bug would only help someone get more bruteforce tries in with a fewer number of connections
          • FreeBSD in its default configuration, with PAM and ChallengeResponseAuthentication enabled, was the only one vulnerable to the problem - not upstream OpenSSH, nor any of the other BSDs, and not even the majority of Linux distros
          • If you disable all forms of authentication except public keys, like you're supposed to, then this is also not a big deal for FreeBSD systems
          • Realistically speaking, it's more of a PAM bug than anything else
          • OpenSSH added an additional check for this type of setup that will be in 7.0, but simply changing your sshd_config is enough to mitigate the issue for now on FreeBSD (or you can run freebsd-update)
          • ***
            Interview - Sebastian Wiedenroth - [email protected] / @wied0r

            pkgsrc and pkgsrcCon

            News Roundup
            Now served by OpenBSD
            • We've mentioned that you can also install OpenBSD on DO droplets, and this blog post is about someone who actually did it
            • The use case for the author was for a webserver, so he decided to try out the httpd in base
            • Configuration is ridiculously simple, and the config file in his example provides an HTTPS-only webserver, with plaintext requests automatically redirecting
            • TLS 1.2 by default, strong ciphers with LibreSSL and HSTS combined give you a pretty secure web server
            • ***
              FreeBSD laptop playbooks
              • A new project has started up on Github for configuring FreeBSD on various laptops, unsurprisingly named "freebsd-laptops"
              • It's based on ansible, and uses the playbook format for automatic set up and configuration
              • Right now, it's only working on a single Lenovo laptop, but the plan is to add instructions for many more models
              • Check the Github page for instructions on how to get started, and maybe get involved if you're running FreeBSD on a laptop
              • ***
                NetBSD on the NVIDIA Jetson TK1
                • If you've never heard of the Jetson TK1, we can go ahead and spoil the secret here: NetBSD runs on it
                • As for the specs, it has a quad-core ARMv7 CPU at 2.3GHz, 2 gigs of RAM, gigabit ethernet, SATA, HDMI and mini-PCIE
                • This blog post shows which parts of the board are working with NetBSD -current (which seems to be almost everything)
                • You can even run X11 on it, pretty sweet
                • ***
                  DragonFly power mangement options
                  • DragonFly developer Sepherosa, who we've had on the show, has been doing some ACPI work over there
                  • In this email, he presents some of DragonFly's different power management options: ACPI P-states, C-states, mwait C-states and some Intel-specific bits as well
                  • He also did some testing with each of them and gave his findings about power saving
                  • If you've been thinking about running DragonFly on a laptop, this would be a good one to read
                  • ***
                    OpenBSD router under FreeBSD bhyve
                    • If one BSD just isn't enough for you, and you've only got one machine, why not run two at once
                    • This article talks about taking a FreeBSD server running bhyve and making a virtualized OpenBSD router with it
                    • If you've been considering switching over your router at home or the office, doing it in a virtual machine is a good way to test the waters before committing to real hardware
                    • The author also includes a little bit of history on how he got into both operating systems
                    • There are lots of mixed opinions about virtualizing core network components, so we'll leave it up to you to do your research
                    • Of course, the next logical step is to put that bhyve host under Xen on NetBSD...
                    • ***
                      Feedback/Questions
                      • Kevin writes in
                      • Logan writes in
                      • Peter writes in
                      • Randy writes in
                      • ***
                        1 hr 14 min
                      • 99: BSD Gnow

                        This week we'll be talking with Ryan Lortie and Baptiste Daroussin about GNOME on BSD. Upstream development is finally treating the BSDs as a first class citizen, so we'll hear about how the recent porting efforts have been since.

                        This episode was brought to you by

                        Headlines
                        OpenBSD presents tame
                        • Theo de Raadt sent out an email detailing OpenBSD's new "tame" subsystem, written by Nicholas Marriott and himself, for restricting what processes can and can't do
                        • When using tame, programs will switch to a "restricted-service operating mode," limiting them to only the things they actually need to do
                        • As for the background: "Generally there are two models of operation. The first model requires a major rewrite of application software for effective use (ie. capsicum). The other model in common use lacks granularity, and allows or denies an operation throughout the entire lifetime of a process. As a result, they lack differentiation between program 'initialization' versus 'main servicing loop.' systrace had the same problem. My observation is that programs need a large variety of calls during initialization, but few in their main loops."
                        • Some initial categories of operation include: computation, memory management, read-write operations on file descriptors, opening of files and, of course, networking
                        • Restrictions can also be stacked further into the lifespan of the process, but removed abilities can never be regained (obviously)
                        • Anything that tries to access resources outside of its in-place limits gets terminated with a SIGKILL or, optionally, a SIGABRT (which can produce useful core dumps for investigation)
                        • Also included are 29 examples of userland programs that get additional protection with very minimal changes to the source - only 2 or 3 lines needing changed in the case of binaries like cat, ps, dmesg, etc.
                        • This is an initial work-in-progress version of tame, so there may be more improvements or further control options added before it hits a release (very specific access policies can sometimes backfire, however)
                        • The man page, also included in the mail, provides some specifics about how to integrate tame properly into your code (which, by design, was made very easy to do - making it simple means third party programs are more likely to actually use it)
                        • Kernel bits are in the tree now, with userland changes starting to trickle in too
                        • Combined with a myriad of memory protections, tight privilege separation and (above all else) good coding practices, tame should further harden the OpenBSD security fortress
                        • Further discussion can be found in the usual places you'd expect
                        • ***
                          Using Docker on FreeBSD
                          • With the experimental Docker port landing in FreeBSD a few weeks ago, some initial docs are starting to show up
                          • This docker is "the real thing," and isn’t using a virtual machine as the backend - as such, it has some limitations
                          • The FreeBSD wiki has a page detailing how it works in general, as well as more info about those limitations
                          • When running Linux containers, it will only work as well as the Linux ABI compat layer for your version of FreeBSD (11.0, or -CURRENT when we're recording this, is where all the action is for 64bit support)
                          • For users on 10.X, there's also a FreeBSD container available, which allows you to use Docker as a fancy jail manager (it uses the jail subsystem internally)
                          • Give it a try, let us know how you find it to be compared to other solutions
                          • ***
                            OpenBSD imports doas, removes sudo
                            • OpenBSD has included the ubiquitous "sudo" utility for many years now, and the current maintainer of sudo (Todd C. Miller) is also a long-time OpenBSD dev
                            • The version included in the base system was much smaller than the latest current version used elsewhere, but was based on older code
                            • Some internal discussion lead to the decision that sudo should probably be moved to ports now, where it can be updated easily and offer all the extra features that were missing in base (LDAP and whatnot)
                            • Ted Unangst conjured up with a rewritten utility to replace it in the base system, dubbed "do as," with the aim of being more simple and compact
                            • There were concerns that sudo was too big and too complicated, and a quick 'n' dirty check reveals that doas is around 350 lines of code, while sudo is around 10,000 - which would you rather have as a setuid root binary?
                            • After the initial import, a number of developers began reviewing and improving various bits here and there
                            • You can check out the code now if you're interested
                            • Command usage and config syntax seem pretty straightforward
                            • More discussion on HN
                            • ***
                              What would you like to see in FreeBSD
                              • Adrian Chadd started a reddit thread about areas in which FreeBSD could be improved, asking the community what they'd like to see
                              • There are over 200 comments that span a wide range of topics, so we'll just cover a few of the more popular requests - check the very long thread if you're interested in more
                              • The top comment says things don't "just work," citing failover link aggregation of LACP laggs, PPPoE issues, disorganized jail configuration options, unclear CARP configuration and userland dtrace being unstable
                              • Another common one was that there are three firewalls in the base system, with ipfilter and pf being kinda dead now - should they be removed, and more focus put into ipfw?
                              • Video drivers also came up frequently, with users hoping for better OpenGL support and support for newer graphics cards from Intel and AMD - similar comments were made about wireless chipsets as well
                              • Some other replies included more clarity with pkgng output, paying more attention to security issues, updating PF to match the one in OpenBSD, improved laptop support, a graphical installer, LibreSSL in base, more focus on embedded MIPS devices, binary packages with different config options, steam support and lots more
                              • At least one user suggested better "marketing" for FreeBSD, with more advocacy and (hopefully) more business adoption
                              • That one really applies to all the BSDs, and regular users (that's you listening to this) can help make it happen for whichever ones you use right now
                              • Maybe Adrian can singlehandedly do all the work and make all the users happy
                              • ***
                                Interview - Ryan Lortie & Baptiste Daroussin

                                Porting the latest GNOME code to FreeBSD

                                News Roundup
                                Introducing resflash
                                • If you haven't heard of resflash before, it's "a tool for building OpenBSD images for embedded and cloud environments in a programmatic, reproducible way"
                                • One of the major benefits to images like this is the read-only filesystem, so there's no possibility of filesystem corruption if power is lost
                                • There's an optional read-write partition as well, used for any persistent changes you want to make
                                • You can check out the source code on Github or read the main site for more info
                                • ***
                                  Jails with iocage
                                  • There are a growing number of FreeBSD jail management utilities: ezjail, cbsd, warden and a few others
                                  • After looking at all the different choices, the author of this blog post eventually settled on iocage for the job
                                  • The post walks you through the basic configuration and usage of iocage for creating managing jails
                                  • If you've been unhappy with ezjail or some of the others, iocage might be worth giving a try instead (it also has really good ZFS integration)
                                  • ***
                                    DragonFly GPU improvements
                                    • DragonFlyBSD continues to up their graphics game, this time with Intel's ValleyView series of CPUs
                                    • These GPUs are primarily used in the newer Atom CPUs and offer much better performance than the older ones
                                    • A git branch was created to hold the fixes for now while the last remaining bugs get fixed
                                    • Fully-accelerated Broadwell support and an update to newer DRM code are also available in the git branch, and will be merged to the main tree after some testing
                                    • ***
                                      Branchless development
                                      • Ted Unangst has a new blog post up, talking about software branches and the effects of having (or not having) them
                                      • He covers integrating and merging code, and the versioning problems that can happen with multiple people contributing at once
                                      • "For an open source project, branching is counter intuitively antisocial. For instance, I usually tell people I’m running OpenBSD, but that’s kind of a lie. I’m actually running teduBSD, which is like OpenBSD but has some changes to make it even better. Of course, you can’t have teduBSD because I’m selfish. I’m also lazy, and only inclined to make my changes work for me, not everyone else."
                                      • The solution, according to him, is bringing all the code the developers are using closer together
                                      • One big benefit is that WIP code gets tested much faster (and bugs get fixed early on)
                                      • ***
                                        Feedback/Questions
                                        • Matthew writes in
                                        • Chris writes in
                                        • Anonymous writes in
                                        • Bill writes in
                                        • ***
                                          1 hr 20 min
                                        • 98: Our Code is Your Code

                                          Coming up this time on the show, we'll be talking with the CTO of Xinuos, David Meyer, about their adoption of FreeBSD. We also discuss the BSD license model for businesses and the benefits of contributing changes back.

                                          This episode was brought to you by

                                          Headlines
                                          Enabling FreeBSD on AArch64
                                          • One of the things the FreeBSD foundation has been dumping money into lately is ARM64 support, but we haven't heard too much about it - this article should change that
                                          • Since it's on a mainstream ARM site, the article begins with a bit of FreeBSD history, leading up to the current work on ARM64
                                          • There's also a summary of some of the ARM work done at this year's BSDCan, including details about running it on the Cavium ThunderX platform (which has 48 cores)
                                          • As of just a couple months ago, dtrace is even working on this new architecture
                                          • Come 11.0-RELEASE, the plan is for ARM64 to get the same "tier 1" treatment as X86, which would imply binary updates for base and ports - something Raspberry Pi users often complain about not having
                                          • ***
                                            OpenBSD's tcpdump detailed
                                            • Most people are probably familiar with tcpdump, a very useful packet sniffing and capturing utility that's included in all the main BSD base systems
                                            • This video guide is specifically about the version in OpenBSD, which has gone through some major changes (it's pretty much a fork with no version number anymore)
                                            • Unlike on the other platforms, OpenBSD's tcpdump will always run in a chroot as an unprivileged user - this has saved it from a number of high-profile exploits
                                            • It also has support for the "pf.os" system, allowing you to filter out operating system fingerprints in the packet captures
                                            • There's also PF (and pflog) integration, letting you see which line in your ruleset triggered a specific match
                                            • Being able to run tcpdump directly on your router is pretty awesome for troubleshooting
                                            • ***
                                              More FreeBSD foundation at BSDCan
                                              • The FreeBSD foundation has another round of trip reports from this year's BSDCan
                                              • First up is Kamil Czekirda, who gives a good summary of some of the devsummit, FreeBSD-related presentations, some tutorials, getting freebsd-update bugs fixed and of course eating cake
                                              • A second post from Christian Brueffer, who cleverly planned ahead to avoid jetlag, details how he got some things done during the FreeBSD devsummit
                                              • Their third report is from our buddy Warren Block, who (unsurprisingly) worked on a lot of documentation-related things, including getting more people involved with writing them
                                              • In true doc team style, his report is the most well-written of the bunch, including lots of links and a clear separation of topics (doc lounge, contributing to the wiki, presentations...)
                                              • Finally, the fourth one comes to us from Shonali Balakrishna, who also gives an outline of some of the talks
                                              • "Not only does a BSD conference have way too many very smart people in one room, but also some of the nicest."
                                              • ***
                                                DragonFly on the Chromebook C720
                                                • If you've got one of the Chromebook laptops and weren't happy with the included OS, DragonFlyBSD might be worth a go
                                                • This article is a "mini-report" on how DragonFly functions on the device as a desktop, and
                                                • While the 2GB of RAM proved to be a bit limiting, most of the hardware is well-supported
                                                • DragonFly's wiki has a full guide on getting set up on one of these devices as well
                                                • ***
                                                  Interview - David Meyer - [email protected] / @xinuos

                                                  Xinuos, BSD license model vs. others, community interaction

                                                  News Roundup
                                                  Introducing LiteBSD
                                                  • We definitely don't talk about 4.4BSD a lot on the show
                                                  • LiteBSD is "a variant of [the] 4.4BSD operating system adapted for microcontrollers"
                                                  • If you've got really, really old hardware (or are working in the embedded space) then this might be an interesting hobby project to look info
                                                  • ***
                                                    HardenedBSD announces ASLR completion
                                                    • HardenedBSD, now officially a full-on fork of FreeBSD, has declared their ASLR patchset to be complete
                                                    • The latest and last addition to the work was VDSO (Virtual Dynamic Shared Object) randomization, which is now configurable with a sysctl
                                                    • This post gives a summary of the six main features they've added since the beginning
                                                    • Only a few small things are left to do - man page cleanups, possibly shared object load order improvements
                                                    • ***
                                                      Unlock the reaper
                                                      • In the ongoing quest to make more of OpenBSD SMP-friendly, a new patch was posted that unlocks the reaper in the kernel
                                                      • When there's a zombie process causing a resource leak, it's the reaper's job to deallocate their resources (and yes we're still talking about computers, not horror movies)
                                                      • Initial testing has yielded positive results and no regressions
                                                      • They're looking for testers, so you can install a -current snapshot and get it automatically
                                                      • An updated version of the patch is coming soon too
                                                      • A hackathon is going on right now, so you can expect more SMP improvements in the near future
                                                      • ***
                                                        The importance of mentoring
                                                        • Adrian Chadd has a blog post up about mentoring new users, and it tells the story of how he originally got into FreeBSD
                                                        • He tells the story of, at age 11, meeting someone else who knew about making crystal sets that became his role model
                                                        • Eventually we get to his first FreeBSD 1.1 installation (which he temporarily abandoned for Linux, since it didn't have a color "ls" command) and how he started using the OS
                                                        • Nowadays, there's a formal mentoring system in FreeBSD
                                                        • While he talks about FreeBSD in the post, a lot of the concepts apply to all the BSDs (or even just life in general)
                                                        • ***
                                                          Feedback/Questions
                                                          • Sean writes in
                                                          • Herminio writes in
                                                          • Stuart writes in
                                                          • Richard writes in
                                                          • ***
                                                            1 hr 14 min
                                                          • 97: Big Network, SmallWall

                                                            Coming up this time on the show, we'll be chatting with Lee Sharp. He's recently revived the m0n0wall codebase, now known as SmallWall, and we'll find out what the future holds for this new addition to the BSD family. Answers to your emails and all this week's news, on BSD Now - the place to B.. SD.

                                                            This episode was brought to you by

                                                            Headlines
                                                            BSDCan and pkgsrcCon videos
                                                            • Even more BSDCan 2015 videos are slowly but surely making their way to the internet
                                                            • Nigel Williams, Multipath TCP for FreeBSD
                                                            • Stephen Bourne, Early days of Unix and design of sh
                                                            • John Criswell, Protecting FreeBSD with Secure Virtual Architecture
                                                            • Shany Michaely, Expanding RDMA capability over Ethernet in FreeBSD
                                                            • John-Mark Gurney, Adding AES-ICM and AES-GCM to OpenCrypto
                                                            • Sevan Janiyan, Adventures in building open source software
                                                            • And finally, the BSDCan 2015 closing
                                                            • Some videos from this year's pkgsrcCon are also starting to appear online
                                                            • Sevan Janiyan, A year of pkgsrc 2014 - 2015
                                                            • Pierre Pronchery, pkgsrc meets pkg-ng
                                                            • Jonathan Perkin, pkgsrc at Joyent
                                                            • Jörg Sonnenberger, pkg_install script framework
                                                            • Benny Siegert, New Features in BulkTracker
                                                            • This is the first time we've ever seen recordings from the conference - hopefully they continue this trend
                                                            • ***
                                                              OPNsense 15.7 released
                                                              • The OPNsense team has released version 15.7, almost exactly six months after their initial debut
                                                              • In addition to pulling in the latest security fixes from upstream FreeBSD, 15.7 also includes new integration of an intrusion detection system (and new GUI for it) as well as new blacklisting options for the proxy server
                                                              • Taking a note from upstream PF's playbook, ALTQ traffic shaping support has finally been retired as of this release (it was deprecated from OpenBSD a few years ago, and the code was completely removed just over a year ago)
                                                              • The LibreSSL flavor has been promoted to production-ready, and users can easily migrate over from OpenSSL via the GUI - switching between the two is simple; no commitment needed
                                                              • Various third party ports have also been bumped up to their latest versions to keep things fresh, and there's the usual round of bug fixes included
                                                              • Shortly afterwards, 15.7.1 was released with a few more small fixes
                                                              • ***
                                                                NetBSD at Open Source Conference 2015 Okinawa
                                                                • If you liked last week's episode then you'll probably know what to expect with this one
                                                                • The NetBSD users group of Japan hit another open source conference, this time in Okinawa
                                                                • This time, they had a few interesting NetBSD machines on display that we didn't get to see in the interview last week
                                                                • We'd love to see something like this in North America or Europe too - anyone up for installing BSD on some interesting devices and showing them off at a Linux con?
                                                                • ***
                                                                  OpenBSD BGP and VRFs
                                                                  • "VRFs, or in OpenBSD rdomains, are a simple, yet powerful (and sometimes confusing) topic"
                                                                  • This article aims to explain both BGP and rdomains, using network diagrams, for some network isolation goodness
                                                                  • With multiple rdomains, it's also possible to have two upstream internet connections, but lock different groups of your internal network to just one of them
                                                                  • The idea of a "guest network" can greatly benefit from this separation as well, even allowing for the same IP ranges to be used without issues
                                                                  • Combining rdomains with the BGP protocol allows for some very selective and precise blocking/passing of traffic between networks, which is also covered in detail here
                                                                  • The BSDCan talk on rdomains expands on the subject a bit more if you haven't seen it, as well as a few related posts
                                                                  • ***
                                                                    Interview - Lee Sharp - [email protected]

                                                                    SmallWall, a continuation of m0n0wall

                                                                    News Roundup
                                                                    Solaris adopts more BSD goodies
                                                                    • We mentioned a while back that Oracle developers have begun porting a current version of OpenBSD's PF firewall to their next version, even contributing back patches for SMP and other bug fixes
                                                                    • They recently published an article about PF, talking about what's different about it on their platform compared to others - not especially useful for BSD users, but interesting to read if you like firewalls
                                                                    • Darren Moffat, who was part of originally getting an SSH implementation into Solaris, has a second blog post up about their "SunSSH" fork
                                                                    • Going forward, their next version is going to offer a completely vanilla OpenSSH option as well, with the plan being to phase out SunSSH after that
                                                                    • The article talks a bit about the history of getting SSH into the OS, forking the code and also lists some of the differences between the two
                                                                    • In a third blog post, they talk about a new system call they're borrowing from OpenBSD, getentropy(2), as well as the addition of arc4random to their libc
                                                                    • With an up-to-date and SMP-capable PF, ZFS with native encryption, jail-like Zones, unaltered OpenSSH and secure entropy calls… is Solaris becoming better than us?
                                                                    • Look forward to the upcoming "Solaris Now" podcast (not really)
                                                                    • ***
                                                                      EuroBSDCon 2015 talks and tutorials
                                                                      • This year's EuroBSDCon is set to be held in Sweden at the beginning of October, and the preliminary list of accepted presentations has been published
                                                                      • The list looks pretty well-balanced between the different BSDs, something Paul would be happy to see if he was still with us
                                                                      • It even includes an interesting DragonFly talk and a couple talks from NetBSD developers, in addition to plenty of FreeBSD and OpenBSD of course
                                                                      • There are also a few tutorials planned for the event, some you've probably seen already and some you haven't
                                                                      • Registration for the event will be opening very soon (likely this week or next)
                                                                      • ***
                                                                        Using ZFS replication to improve offsite backups
                                                                        • If you take backups seriously, you're probably using ZFS and probably keeping an offsite copy of the data
                                                                        • This article covers doing just that, but with a focus on making use of the replication capability
                                                                        • It'll walk you through taking a snapshot of your pool and then replicating it to another remote system, using "zfs send" and SSH - this has the benefit of only transferring the files that have changed since the last time you did it
                                                                        • Steps are also taken to allow a regular user to take and manage snapshots, so you don't need to be root for the SSH transfer
                                                                        • Data integrity is a long process - filesystem-level checksums, resistance to hardware failure, ECC memory, multiple copies in different locations... they all play a role in keeping your files secure; don't skip out on any of them
                                                                        • One thing the author didn't mention in his post: having an offline copy of the data, ideally sealed in a safe place, is also important
                                                                        • ***
                                                                          Block encryption in OpenBSD
                                                                          • We've covered ways to do fully-encrypted installations of OpenBSD (and FreeBSD) before, but that requires dedicating a whole drive or partition to the sensitive data
                                                                          • This blog post takes you through the process of creating encrypted containers in OpenBSD, à la TrueCrypt - that is, a file-backed virtual device with an encrypted filesystem
                                                                          • It goes through creating a file that looks like random data, pointing vnconfig at it, setting up the crypto and finally using it as a fake storage device
                                                                          • The encrypted container method offers the advantage of being a bit more portable across installations than other ways
                                                                          • ***
                                                                            Docker hits FreeBSD ports
                                                                            • The inevitable has happened, and an early FreeBSD port of docker is finally here
                                                                            • Some details and directions are available to read if you'd like to give it a try, as well as a list of which features work and which don't
                                                                            • There was also some Hacker News discussion on the topic
                                                                            • ***
                                                                              Microsoft donates to OpenSSH
                                                                              • We've talked about big businesses using BSD and contributing back before, even mentioning a few other large public donations - now it's Microsoft's turn
                                                                              • With their recent decision to integrate OpenSSH into an upcoming Windows release, Microsoft has donated a large sum of money to the OpenBSD foundation, making them a gold-level sponsor
                                                                              • They've also posted some contract work offers on the OpenSSH mailing list, and say that their changes will be upstreamed if appropriate - we're always glad to see this
                                                                              • ***
                                                                                Feedback/Questions
                                                                                • Joe writes in
                                                                                • Mike writes in
                                                                                • Randy writes in
                                                                                • Tony writes in
                                                                                • Kevin writes in
                                                                                • ***
                                                                                  1 hr 19 min
                                                                                • 96: Lost Technology

                                                                                  Coming up this week, we'll be talking with Jun Ebihara about some lesser-known CPU architectures in NetBSD. He'll tell us what makes these old (and often forgotten) machines so interesting. As usual, we've also got answers to your emails and all this week's news on BSD Now - the place to B.. SD.

                                                                                  This episode was brought to you by

                                                                                  Headlines
                                                                                  Out with the old, in with the less
                                                                                  • Our friend Ted Unangst has a new article up, talking about "various OpenBSD replacements and reductions"
                                                                                  • "Instead of trying to fix known bugs, we’re trying to fix unknown bugs. It’s not based on the current buggy state of the code, but the anticipated future buggy state of the code. Past bugs are a bigger factor than current bugs."
                                                                                  • In the post, he goes through some of the bigger (and smaller) examples of OpenBSD rewriting tools to be simpler and more secure
                                                                                  • It starts off with a lesser-known SCSI driver that "tried to do too much" being replaced with three separate drivers
                                                                                  • "Each driver can now be modified in isolation without unintentional side effects on other hardware, or the need to consider if and where further special cases need to be added. Despite the fact that these three drivers duplicate all the common boilerplate code, combined they only amount to about half as much code as the old driver."
                                                                                  • In contrast to that example, he goes on to cite mandoc as taking a very non "unixy" direction, but at the same time being smaller and simpler than all the tools it replaced
                                                                                  • The next case is the new http daemon, and he talks a bit about the recently-added rewrite support being done in a simple and secure way (as opposed to regex and its craziness)
                                                                                  • He also talks about the rewritten "file" utility: "Almost by definition, its sole input will be untrusted input. Perversely, people will then trust what file tells them and then go about using that input, as if file somehow sanitized it."
                                                                                  • Finally, sudo in OpenBSD's base system is moving to ports soon, and the article briefly describes a new tool that may or may not replace it, called "doas"
                                                                                  • There's also a nice wrap-up of all the examples at the end, and the "Pruning and Polishing" talk is good complementary reading material
                                                                                  • ***
                                                                                    More OpenZFS and BSDCan videos
                                                                                    • We mentioned last week that some of the videos from the second OpenZFS conference in Europe were being uploaded - here's some more
                                                                                    • Matt Ahrens did a Q&A session and talked about ZFS send and receive, as well as giving an overview of OpenZFS
                                                                                    • George Wilson talked about a performance retrospective
                                                                                    • Toshiba, Syneto and HGST also gave some talks about their companies and how they're using ZFS
                                                                                    • As for BSDCan, more of their BSD presentations have been uploaded too...
                                                                                    • Ryan Stone, PCI SR-IOV on FreeBSD
                                                                                    • George Neville-Neil, Measure Twice, Code Once
                                                                                    • Kris Moore, Unifying jail and package management for PC-BSD, FreeNAS and FreeBSD
                                                                                    • Warner Losh, I/O Scheduling in CAM
                                                                                    • Kirk McKusick, An Introduction to the Implementation of ZFS
                                                                                    • Midori Kato, Extensions to FreeBSD Datacenter TCP for Incremental Deployment Support
                                                                                    • Baptiste Daroussin, Packaging FreeBSD's base system
                                                                                    • Matt Ahrens, New OpenZFS features supporting remote replication
                                                                                    • Ed Schouten, CloudABI Cloud computing meets fine-grained capabilities
                                                                                    • The audio of Ingo Schwarze's talk "mandoc: becoming the main BSD manual toolbox" got messed up, but there's an alternate recording here, and the slides are here
                                                                                    • ***
                                                                                      SMP steroids for PF
                                                                                      • An Oracle employee that's been porting OpenBSD's PF to an upcoming Solaris release has sent in an interesting patch for review
                                                                                      • Attached to the mail was what may be the beginnings of making native PF SMP-aware
                                                                                      • Before you start partying, the road to SMP (specifically, giant lock removal) is a long and very complicated one, requiring every relevant bit of the stack to be written with it in mind - this is just one piece of the puzzle
                                                                                      • The initial response has been quite positive though, with some back and forth between developers and the submitter
                                                                                      • For now, let's be patient and see what happens
                                                                                      • ***
                                                                                        DragonFly 4.2.0 released
                                                                                        • DragonFlyBSD has released the next big update of their 4.x branch, complete with a decent amount of new features and fixes
                                                                                        • i915 and Radeon graphics have been updated, and DragonFly can claim the title of first BSD with Broadwell support in a release
                                                                                        • Sendmail in the base system has been replaced with their homegrown DragonFly Mail Agent, and there's a wiki page about configuring it
                                                                                        • They've also switched the default compiler to GCC 5, though why they've gone in that direction instead of embracing Clang is a mystery
                                                                                        • The announcement page also contains a list of kernel changes, details on the audio and graphics updates, removal of the SCTP protocol, improvements to the temperature sensors, various userland utility fixes and a list of updates to third party tools
                                                                                        • Work is continuing on the second generation HAMMER filesystem, and Matt Dillon provides a status update in the release announcement
                                                                                        • There was also some hacker news discussion you can check out, as well as upgrade instructions
                                                                                        • ***
                                                                                          OpenSMTPD 5.7.1 released
                                                                                          • The OpenSMTPD guys have just released version 5.7.1, a major milestone version that we mentioned recently
                                                                                          • Crypto-related bits have been vastly improved: the RSA engine is now privilege-separated, TLS errors are handled more gracefully, ciphers and curve preferences can now be specified, the PKI interface has been reworked to allow custom CAs, SNI and certificate verification have been simplified and the DH parameters are now 2048 bit by default
                                                                                          • The long-awaited filter API is now enabled by default, though still considered slightly experimental
                                                                                          • Documentation has been improved quite a bit, with more examples and common use cases (as well as exotic ones)
                                                                                          • Many more small additions and bugfixes were made, so check the changelog for the full list
                                                                                          • Starting with 5.7.1, releases are now cryptographically signed to ensure integrity
                                                                                          • This release has gone through some major stress testing to ensure stability - Gilles regularly asks their Twitter followers to flood a test server with thousands of emails per second, even offering prizes to whoever can DDoS them the hardest
                                                                                          • OpenSMTPD runs on all the BSDs of course, and seems to be getting pretty popular lately
                                                                                          • Let's all encourage Kris to stop procrastinating on switching from Postfix
                                                                                          • ***
                                                                                            Interview - Jun Ebihara (蛯原純) - [email protected] / @ebijun

                                                                                            Lesser-known CPU architectures, embedded NetBSD devices

                                                                                            News Roundup
                                                                                            FreeBSD foundation at BSDCan
                                                                                            • The FreeBSD foundation has posted a few BSDCan summaries on their blog
                                                                                            • The first, from Steven Douglas, begins with a sentiment a lot of us can probably identify with: "Where I live, there are only a handful of people that even know what BSD is, let alone can talk at a high level about it. That was one of my favorite things, being around like minded people."
                                                                                            • He got to meet a lot of the people working on big-name projects, and enjoyed being able to ask them questions so easily
                                                                                            • Their second trip report is from Ahmed Kamal, who flew in all the way from Egypt
                                                                                            • A bit starstruck, he seems to have enjoyed all the talks, particularly Andrew Tanenbaum's about MINIX and NetBSD
                                                                                            • There are also two more wrap-ups from Zbigniew Bodek and Vsevolod Stakhov, so you've got plenty to read
                                                                                            • ***
                                                                                              OpenBSD from a veteran Linux user perspective
                                                                                              • In a new series of blog posts, a self-proclaimed veteran Linux user is giving OpenBSD a try for the first time
                                                                                              • "For the first time I installed a BSD box on a machine I control. The experience has been eye-opening, especially since I consider myself an 'old-school' Linux admin, and I've felt out of place with the latest changes on the system administration."
                                                                                              • The post is a collection of his thoughts about what's different between Linux and BSD, what surprised him as a beginner - admittedly, a lot of his knowledge carried over, and there were just minor differences in command flags
                                                                                              • One of the things that surprised him (in a positive way) was the documentation: "OpenBSD's man pages are so nice that RTFMing somebody on the internet is not condescending but selfless."
                                                                                              • He also goes through some of the basics, installing and updating software, following different branches
                                                                                              • It concludes with "If you like UNIX, it will open your eyes to the fact that there is more than one way to do things, and that system administration can still be simple while modern."
                                                                                              • ***
                                                                                                FreeBSD on the desktop, am I crazy
                                                                                                • Similar to the previous article, the guy that wrote the SSH two factor authentication post we covered last week has another new article up - this time about FreeBSD on the desktop
                                                                                                • He begins with a bit of forewarning for potential Linux switchers: "It certainly wasn't an easy journey, and I'm tempted to say do not try this at home to anybody who isn't going to leverage any of FreeBSD's strong points. Definitely don't try FreeBSD on the desktop if you haven't used it on servers or virtual machines before. It's got less in common with Linux than you might think."
                                                                                                • With that out of the way, the list of positives is pretty large: a tidy base system, separation between base and ports, having the option to choose binary packages or ports, ZFS, jails, licensing and of course the lack of systemd
                                                                                                • The rest of the post talks about some of the hurdles he had to overcome, namely with graphics and the infamous Adobe Flash
                                                                                                • Also worth noting is that he found jails to be not only good for isolating daemons on a server, but pretty useful for desktop applications as well
                                                                                                • In the end, he says it was worth all the trouble, and is even planning on converting his laptop to FreeBSD soon too
                                                                                                • ***
                                                                                                  OpenIKED and Cisco CSR 1000v IPSEC
                                                                                                  • This article covers setting up a site-to-site IPSEC tunnel between a Cisco CSR 1000v router and an OpenBSD gateway running OpenIKED
                                                                                                  • What kind of networking blog post would be complete without a diagram where the internet is represented by a big cloud
                                                                                                  • There are lots of details (and example configuration files) for using IKEv2 and OpenBSD's built-in IKE daemon
                                                                                                  • It also goes to show that the BSDs generally play well with existing network infrastructure, so if you were a business that's afraid to try them… don't be
                                                                                                  • ***
                                                                                                    HardenedBSD improves stack randomization
                                                                                                    • The HardenedBSD guys have improved their FreeBSD ASLR patchset, specifically in the stack randomization area
                                                                                                    • In their initial implementation, the stack randomization was a random gap - this update makes the base address randomized as well
                                                                                                    • They're now stacking the new on top of the old as well, with the goal being even more entropy
                                                                                                    • This change triggered an ABI and API incompatibility, so their major version has been bumped
                                                                                                    • ***
                                                                                                      OpenSSH 6.9 released
                                                                                                      • The OpenSSH team has announced the release of a new version which, following their tick/tock major/minor release cycle, is focused mainly on bug fixes
                                                                                                      • There are a couple new things though - the "AuthorizedKeysCommand" config option now takes custom arguments
                                                                                                      • One very notable change is that the default cipher has changed as of this release
                                                                                                      • The traditional pairing of AES128 in counter mode with MD5 HMAC has been replaced by the ever-trendy ChaCha20-Poly1305 combo
                                                                                                      • Their next release, 7.0, is set to get rid a number of legacy items: PermitRootLogin will be switched to "no" by default, SSHv1 support will be totally disabled, the 1024bit diffie-hellman-group1-sha1 KEX will be disabled, old ssh-dss and v00 certs will be removed, a number of weak ciphers will be disabled by default (including all CBC ones) and RSA keys will be refused if they're under 1024 bits
                                                                                                      • Many small bugs fixes and improvements were also made, so check the announcement for everything else
                                                                                                      • The native version is in OpenBSD -current, and an update to the portable version should be hitting a ports or pkgsrc tree near you soon
                                                                                                      • ***
                                                                                                        Feedback/Questions
                                                                                                        • Brad writes in
                                                                                                        • Mason writes in
                                                                                                        • Jochen writes in
                                                                                                        • Simon writes in
                                                                                                        • ***
                                                                                                          1 hr 14 min
                                                                                                        • 95: Bitrot Group Therapy

                                                                                                          This time on the show, we'll be talking some ZFS with Sean Chittenden. He's been using it on FreeBSD at Groupon, and has some interesting stories about how it's saved his data. Answers to your emails and all of this week's headlines, on BSD Now - the place to B.. SD.

                                                                                                          This episode was brought to you by

                                                                                                          Headlines
                                                                                                          More BSDCan 2015 videos
                                                                                                          • Almost as if we said it would happen last week, more BSD-related presentation videos have been uploaded
                                                                                                          • Alexander Motin, Feature-rich and fast SCSI target with CTL and ZFS
                                                                                                          • Daichi Goto, FreeBSD for High Density Servers
                                                                                                          • Ken Moore, Lumina-DE
                                                                                                          • Kevin Bowling, FreeBSD Operations at Limelight Networks
                                                                                                          • Maciej Pasternacki, Jetpack, a container runtime for FreeBSD
                                                                                                          • Ray Percival, Networking with OpenBSD in a virtualized environment
                                                                                                          • Reyk Floeter, Introducing OpenBSD's new httpd
                                                                                                          • Still more to come, hopefully
                                                                                                          • ***
                                                                                                            OpenBSD httpd rewrite support
                                                                                                            • One of the most-requested features of OpenBSD's new HTTP daemon (in fact, you can hear someone asking about it in the video just above) is rewrite support
                                                                                                            • There were concerns about regex code being too complicated and potentially allowing another attack surface, so that was out
                                                                                                            • Instead, Reyk ported over an implementation of lua pattern matching while on the flight back from BSDCan, turning it into a C API without the lua bindings
                                                                                                            • In the mailing list post, he shows an example of how to use it for redirects and provides the diff if you'd like to give it a try now
                                                                                                            • It's since been committed to -current, so you can try it out with a snapshot too
                                                                                                            • ***
                                                                                                              SSH 2FA on FreeBSD
                                                                                                              • We've discussed different ways to lock down SSH access to your BSD boxes before - use keys instead of passwords, whitelist IPs, or even use two-factor authentication
                                                                                                              • This article serves as a sort of "roundup" on different methods to set up two-factor authentication on FreeBSD
                                                                                                              • It touches on key pairs with a server-side password, google authenticator and a few other variations
                                                                                                              • While the article is focused on FreeBSD, a lot of it can be easily applied to the others too
                                                                                                              • OpenSSH has a great security record, but two-factor authentication is always a good thing to have for the most important systems
                                                                                                              • ***
                                                                                                                NetBSD 7.0-RC1 released
                                                                                                                • NetBSD has just announced the first release candidate for the 7.0 branch, after a long delay since the initial beta (11 months ago)
                                                                                                                • Some of the standout features include: improved KMS/DRM with support for modern GPUs, SMP support on ARM, lots of new ARM boards officially supported, GPT support in the installer, Lua kernel scripting, a multiprocessor USB stack, improvements to NPF (their firewall) and, optionally, Clang 3.6.1
                                                                                                                • They're looking for as much testing as possible, so give it a try and report your findings to the release engineering team
                                                                                                                • ***
                                                                                                                  Interview - Sean Chittenden - [email protected] / @seanchittenden

                                                                                                                  FreeBSD at Groupon, ZFS

                                                                                                                  News Roundup
                                                                                                                  OpenSMTPD and Dovecot
                                                                                                                  • We've covered a number of OpenSMTPD mail server guides on the show, each with just a little something different to offer than the last
                                                                                                                  • This blog post about it has something not mentioned before: virtual domains and virtual users
                                                                                                                  • This means you can easily have "[email protected]" and "[email protected]" both go to a local user on the box (or a different third address)
                                                                                                                  • It also covers SSL certificates, blocking spam and setting up IMAP access, the usual
                                                                                                                  • Now might also be a good time to test out OpenSMTPD 5.7.1-rc1, which we'll cover in more detail when it's released...
                                                                                                                  • ***
                                                                                                                    OctoPkg, a QT frontend to pkgng
                                                                                                                    • A PC-BSD user has begun porting over a graphical package management utility from Arch linux called Octopi
                                                                                                                    • Obviously, it needed to be rewritten to use FreeBSD's pkg system instead of pacman
                                                                                                                    • There are some basic instructions on how to get it built and running on the github page
                                                                                                                    • After some testing, it'll likely make its way to the FreeBSD ports tree
                                                                                                                    • Tools like this might make it easier for desktop users (who are used to similar things in Ubuntu or related distros) to switch over
                                                                                                                    • ***
                                                                                                                      AFL vs. mandoc, a quantitative analysis
                                                                                                                      • Ingo Schwarze has written a pretty detailed article about how he and other OpenBSD developers have been fuzzing mandoc with AFL
                                                                                                                      • It's meant to be accompanying material to his BSDCan talk, which already covered nine topics
                                                                                                                      • mandoc is an interesting example to stress test with fuzzing, since its main job is to take and parse some highly varying input
                                                                                                                      • The article breaks down the 45 different bugs that were found, based on their root cause
                                                                                                                      • If you're interested in secure coding practices, this'll be a great one to read
                                                                                                                      • ***
                                                                                                                        OpenZFS conference videos
                                                                                                                        • Videos from the second OpenZFS conference have just started to show up
                                                                                                                        • The first talk is by, you guessed it, Matt Ahrens
                                                                                                                        • In it, he covers some ZFS history, the Oracle takeover, the birth of illumos and OpenZFS, some administration basics and also some upcoming features that are being worked on
                                                                                                                        • There are also videos from Nexenta and HGST, talking about how they use and contribute to OpenZFS
                                                                                                                        • ***
                                                                                                                          Feedback/Questions
                                                                                                                          • Bryson writes in
                                                                                                                          • Kevin writes in
                                                                                                                          • ***
                                                                                                                            1 hr 16 min
                                                                                                                          • 94: Builder's Insurance

                                                                                                                            This week on the show, we'll be chatting with Marc Espie. He's recently added some additional security measures to dpb, OpenBSD's package building tool, and we'll find out why they're so important. We've also got all this week's news, answers to your emails and even a BSDCan wrap-up, coming up on BSD Now - the place to B.. SD.

                                                                                                                            This episode was brought to you by

                                                                                                                            Headlines
                                                                                                                            BSDCan 2015 videos
                                                                                                                            • BSDCan just ended last week, but some of the BSD-related presentation videos are already online
                                                                                                                            • Allan Jude, UCL for FreeBSD
                                                                                                                            • Andrew Cagney, What happens when a dwarf and a daemon start dancing by the light of the silvery moon?
                                                                                                                            • Andy Tanenbaum, A reimplementation of NetBSD using a MicroKernel
                                                                                                                            • Brooks Davis, CheriBSD: A research fork of FreeBSD
                                                                                                                            • Giuseppe Lettieri, Even faster VM networking with virtual passthrough
                                                                                                                            • Joseph Mingrone, Molecular Evolution, Genomic Analysis and FreeBSD
                                                                                                                            • Olivier Cochard-Labbe, Large-scale plug&play x86 network appliance deployment over Internet
                                                                                                                            • Peter Hessler, Using routing domains / routing tables in a production network
                                                                                                                            • Ryan Lortie, a stitch in time: jhbuild
                                                                                                                            • Ted Unangst, signify: Securing OpenBSD From Us To You
                                                                                                                            • Many more still to come...
                                                                                                                            • ***
                                                                                                                              Documenting my BSD experience
                                                                                                                              • Increasingly common scenario: a long-time Linux user (since the mid-90s) decides it's finally time to give BSD a try
                                                                                                                              • "That night I came home, I had been trying to find out everything I could about BSD and I watched many videos, read forums, etc. One of the shows I found was BSD Now. I saw that they helped people and answered questions, so I decided to write in."
                                                                                                                              • In this ongoing series of blog posts, a user named Michael writes about his initial experiences with trying different BSDs for some different tasks
                                                                                                                              • The first post covers ZFS on FreeBSD, used to build a file server for his house (and of course he lists the hardware, if you're into that)
                                                                                                                              • You get a glimpse of a brand new user trying things out, learning how great ZFS-based RAID arrays are and even some of the initial hurdles someone could run into
                                                                                                                              • He's also looking to venture into the realm of replacing some of his VMs with jails and bhyve soon
                                                                                                                              • His second post explores replacing the firewall on his self-described "over complicated home network" with an OpenBSD box
                                                                                                                              • After going from ipfwadmin to ipchains to iptables, not even making it to nftables, he found the simple PF syntax to be really refreshing
                                                                                                                              • All the tools for his networking needs, the majority of which are in the base system, worked quickly and were easy to understand
                                                                                                                              • Getting to hear experiences like this are very important - they show areas where all the BSD developers' hard work has paid off, but can also let us know where we need to improve
                                                                                                                              • ***
                                                                                                                                PC-BSD tries HardenedBSD builds
                                                                                                                                • The PC-BSD team has created a new branch of their git repo with the HardenedBSD ASLR patches integrated
                                                                                                                                • They're not the first major FreeBSD-based project to offer an alternate build - OPNsense did that a few weeks ago - but this might open the door for more projects to give it a try as well
                                                                                                                                • With Personacrypt, OpenNTPD, LibreSSL and recent Tor integration through the tools, these additional memory protections will offer PC-BSD users even more security that a default FreeBSD install won't have
                                                                                                                                • Time will tell if more projects and products like FreeNAS might be interested too
                                                                                                                                • ***
                                                                                                                                  C-states in OpenBSD
                                                                                                                                  • People who run BSD on their notebooks, you'll want to pay attention to this one
                                                                                                                                  • OpenBSD has recently committed some ACPI improvements for deep C-states, enabling the processor to enter a low-power mode
                                                                                                                                  • According to a few users so far, the change has resulted in dramatically lower CPU temperatures on their laptops, as well as much better battery life
                                                                                                                                  • If you're running OpenBSD -current on a laptop, try out the latest snapshot and report back with your findings
                                                                                                                                  • ***
                                                                                                                                    NetBSD at Open Source Conference 2015 Hokkaido
                                                                                                                                    • The Japanese NetBSD users group never sleeps, and they've hit yet another open source conference
                                                                                                                                    • As is usually the case, lots of strange machines on display were running none other than NetBSD (though it was mostly ARM this time)
                                                                                                                                    • We'll be having one of these guys on the show next week to discuss some of the lesser-known NetBSD platforms
                                                                                                                                    • ***
                                                                                                                                      Interview - Marc Espie - [email protected] / @espie_openbsd

                                                                                                                                      Recent improvements to OpenBSD's dpb tool

                                                                                                                                      News Roundup
                                                                                                                                      Introducing xhyve, bhyve on OS X
                                                                                                                                      • We've talked about FreeBSD's "bhyve" hypervisor a lot on the show, and now it's been ported to another OS
                                                                                                                                      • As the name "xhyve" might imply, it's a port of bhyve to Mac OS X
                                                                                                                                      • Currently it only has support for virtualizing a few Linux distributions, but more guest systems can be added in the future
                                                                                                                                      • It runs entirely in userspace, and has no extra requirements beyond OS X 10.10 or newer
                                                                                                                                      • There are also a few examples on how to use it
                                                                                                                                      • ***
                                                                                                                                        4K displays on DragonFlyBSD
                                                                                                                                        • If you've been using DragonFly as a desktop, maybe with those nice Broadwell graphics, you'll be pleased to know that 4K displays work just fine
                                                                                                                                        • Matthew Dillon wrote up a wiki page about some of the specifics, including a couple gotchas
                                                                                                                                        • Some GUI applications might look weird on such a huge resolution,
                                                                                                                                        • HDMI ports are mostly limited to a 30Hz refresh rate, and there are slightly steeper hardware requirements for a smooth experience
                                                                                                                                        • ***
                                                                                                                                          Sandboxing port daemons on OpenBSD
                                                                                                                                          • We talked about different containment methods last week, and mentioned that a lot of the daemons in OpenBSD's base as chrooted by default - things from ports or packages don't always get the same treatment
                                                                                                                                          • This blog post uses a mumble server as an example, but you can apply it to any service from ports that doesn't chroot by default
                                                                                                                                          • It goes through the process of manually building a sandbox with all the libraries you'll need to run the daemon, and this setup will even wipe and refresh the chroot every time you restart it
                                                                                                                                          • With a few small changes, similar tricks could be done on the other BSDs as well - everybody has chroots
                                                                                                                                          • ***
                                                                                                                                            SmallWall 1.8.2 released
                                                                                                                                            • SmallWall is a relatively new BSD-based project that we've never covered before
                                                                                                                                            • It's an attempt to keep the old m0n0wall codebase going, and appears to have started around the time m0n0wall called it quits
                                                                                                                                            • They've just released the first official version, so you can give it a try now
                                                                                                                                            • If you're interested in learning more about SmallWall, the lead developer just might be on the show in a few weeks...
                                                                                                                                            • ***
                                                                                                                                              Feedback/Questions
                                                                                                                                              • David writes in
                                                                                                                                              • Brian writes in
                                                                                                                                              • Dan writes in
                                                                                                                                              • Joel writes in
                                                                                                                                              • Steve writes in
                                                                                                                                              • ***
                                                                                                                                                1 hr 26 min
                                                                                                                                              • 93: Stacked in Our Favor

                                                                                                                                                We're at BSDCan this week, but fear not! We've got a great interview with Sepherosa Ziehau, a DragonFly developer, about their network stack. After that, we'll be discussing different methods of containment and privilege separation. Assuming no polar bears eat us, we'll be back next week with more BSD Now - the place to B.. SD.

                                                                                                                                                This episode was brought to you by

                                                                                                                                                Interview - Sepherosa Ziehau - [email protected]

                                                                                                                                                Features of DragonFlyBSD's network stack

                                                                                                                                                Discussion
                                                                                                                                                Comparing containment methods and privilege separation
                                                                                                                                                • chroot, jails, systrace, capsicum, filesystem permissions, separating users
                                                                                                                                                • ***
                                                                                                                                                  Feedback/Questions
                                                                                                                                                  • Brad writes in
                                                                                                                                                  • Anonymous writes in
                                                                                                                                                  • Benjamin writes in
                                                                                                                                                  • Jeroen writes in
                                                                                                                                                  • ***
                                                                                                                                                    1 hr 9 min
                                                                                                                                                  • 92: BSD After Midnight

                                                                                                                                                    Coming up this week, we'll be chatting with Lucas Holt, founder of MidnightBSD. It's a slightly lesser-known fork of FreeBSD, with a focus on easy desktop use. We'll find out what's different about it and why it was created. Answers to your emails and all this week's news, on BSD Now - the place to B.. SD.

                                                                                                                                                    This episode was brought to you by

                                                                                                                                                    Headlines
                                                                                                                                                    Zocker, it's like docker on FreeBSD
                                                                                                                                                    • Containment is always a hot topic, and docker has gotten a lot of hype in Linux land in the last couple years - they're working on native FreeBSD support at the moment
                                                                                                                                                    • This blog post is about a docker-like script, mainly for ease-of-use, that uses only jails and ZFS in the base system
                                                                                                                                                    • In total, it's 1,500 lines of shell script
                                                                                                                                                    • The post goes through the process of using the tool, showing off all the subcommands and explaining the configuration
                                                                                                                                                    • In contrast to something like ezjail, Zocker utilizes the jail.conf system in the 10.x branch
                                                                                                                                                    • ***
                                                                                                                                                      Patrol Read in OpenBSD
                                                                                                                                                      • OpenBSD has recently imported some new code to support the Patrol Read function of some RAID controllers
                                                                                                                                                      • In a nutshell, Patrol Read is a function that lets you check the health of your drives in the background, similar to a zpool "scrub" operation
                                                                                                                                                      • The goal is to protect file integrity by detecting drive failures before they can damage your data
                                                                                                                                                      • It detects bad blocks and prevents silent data corruption, while marking any bad sectors it finds
                                                                                                                                                      • ***
                                                                                                                                                        HAMMER 2 improvements
                                                                                                                                                        • DragonFly BSD has been working on the second generation HAMMER FS
                                                                                                                                                        • It now uses LZ4 compression by default, which we've been big fans of in ZFS
                                                                                                                                                        • They've also switched to a faster CRC algorithm, further improving HAMMER's performance, especially when using iSCSI
                                                                                                                                                        • ***
                                                                                                                                                          FreeBSD foundation May update
                                                                                                                                                          • The FreeBSD foundation has published another update newsletter, detailing some of the things they've been up to lately
                                                                                                                                                          • In it, you'll find some development status updates: notably more ARM64 work and the addition of 64 bit Linux emulation
                                                                                                                                                          • Some improvements were also made to FreeBSD's release building process for non-X86 architectures
                                                                                                                                                          • There's also an AsiaBSDCon recap that covers some of the presentations and the dev events
                                                                                                                                                          • They also have an accompanying blog post where Glen Barber talks about more sysadmin and clusteradm work at NYI
                                                                                                                                                          • ***
                                                                                                                                                            Interview - Lucas Holt - [email protected] / @midnightbsd

                                                                                                                                                            MidnightBSD

                                                                                                                                                            News Roundup
                                                                                                                                                            The launchd on train is never coming
                                                                                                                                                            • Replacement of init systems has been quite controversial in the last few years
                                                                                                                                                            • Fortunately, the BSDs have avoided most of that conflict thus far, but there have been a few efforts made to port launchd from OS X
                                                                                                                                                            • This blog post details the author's opinion on why he thinks we're never going to have launchd in any of the BSDs
                                                                                                                                                            • Email us your thoughts on the matter
                                                                                                                                                            • ***
                                                                                                                                                              Native SSH comes to… Windows
                                                                                                                                                              • In what may be the first (and last) mention of Microsoft on BSD Now...
                                                                                                                                                              • They've just recently announced that PowerShell will get native SSH support in the near future
                                                                                                                                                              • It's not based on the commercial SSH either, it's the same one from OpenBSD that we already use everywhere
                                                                                                                                                              • Up until now, interacting between BSD and Windows has required something like PuTTY, WinSCP, FileZilla or Cygwin - most of which are based on really outdated versions
                                                                                                                                                              • The announcement also promises that they'll be working with the OpenSSH community, so we'll see how many Microsoft-submitted patches make it upstream (or how many donations they make)
                                                                                                                                                              • ***
                                                                                                                                                                Moving to FreeBSD
                                                                                                                                                                • This blog post describes a long-time Linux user's first BSD switching experience
                                                                                                                                                                • The author first talks about his Linux journey, eventually coming to love the more customization-friendly systems, but the journey ended with systemd
                                                                                                                                                                • After doing a bit of research, he gave FreeBSD a try and ended up liking it - the rest of the post mostly covers why that is
                                                                                                                                                                • He also plans to write about his experience with other BSDs, and is writing some tutorials too - we'll check in with him again later on
                                                                                                                                                                • ***
                                                                                                                                                                  Feedback/Questions
                                                                                                                                                                  • Adam writes in
                                                                                                                                                                  • Dan writes in
                                                                                                                                                                  • Ivan writes in
                                                                                                                                                                  • Josh writes in
                                                                                                                                                                  • ***
                                                                                                                                                                    1 hr 8 min
                                                                                                                                                                  • 91: Vox Populi

                                                                                                                                                                    This week on the show, we've got something pretty different. We went to a Linux convention and asked various people if they've ever tried BSD and what they know about it. Stay tuned for that, all this week's news and, of course, answers to your emails, on BSD Now - the place to B.. SD.

                                                                                                                                                                    This episode was brought to you by

                                                                                                                                                                    Headlines
                                                                                                                                                                    LUKS in OpenBSD
                                                                                                                                                                    • Last week, we were surprised to find out that DragonFlyBSD has support for dm-crypt, sometimes referred to as LUKS (Linux Unified Key Setup)
                                                                                                                                                                    • It looks like they might not be the only BSD with support for it for much longer, as OpenBSD is currently reviewing a patch for it as well
                                                                                                                                                                    • LUKS would presumably be an additional option in OpenBSD's softraid system, which already provides native disk encryption
                                                                                                                                                                    • Support hasn't been officially committed yet, it's still going through testing, but the code is there if you want to try it out and report your findings
                                                                                                                                                                    • If enabled, this might pave the way for the first (semi-)cross platform encryption scheme since the demise of TrueCrypt (and maybe other BSDs will get it too in time)
                                                                                                                                                                    • ***
                                                                                                                                                                      FreeBSD gets 64bit Linux emulation
                                                                                                                                                                      • For those who might be unfamiliar, FreeBSD has an emulation layer to run Linux-only binaries (as rare as they may be)
                                                                                                                                                                      • The most common use case is for desktop users, enabling them to run proprietary applications like Adobe Flash or Skype
                                                                                                                                                                      • Similar systems can also be found in NetBSD and OpenBSD (though disabled by default on the latter)
                                                                                                                                                                      • However, until now, it's only supported binaries compiled for the i386 architecture
                                                                                                                                                                      • This new update, already committed to -CURRENT, will open some new possibilities that weren't previously possible
                                                                                                                                                                      • Meanwhile, HardenedBSD considers removing the emulation layer entirely
                                                                                                                                                                      • ***
                                                                                                                                                                        BSD at Open Source Conference 2015 Nagoya
                                                                                                                                                                        • We've covered the Japanese NetBSD users group setting up lots of machines at various conferences in the past, but now they're expanding
                                                                                                                                                                        • Their latest report includes many of the NetBSD things you'd expect, but also a couple OpenBSD machines
                                                                                                                                                                        • Some of the NetBSD ones included a Power Mac G4, SHARP NetWalker, Cubieboard2 and the not-so-foreign Raspberry Pi
                                                                                                                                                                        • One new addition of interest is the OMRON LUNA88k, running the luna88k port of OpenBSD
                                                                                                                                                                        • There was even an old cell phone running Windows games on NetBSD
                                                                                                                                                                        • Check the mailing list post for some links to all of the nice pictures
                                                                                                                                                                        • ***
                                                                                                                                                                          LLVM introduces OpenMP support
                                                                                                                                                                          • One of the things that has kept some people in the GCC camp is the lack of OpenMP support in LLVM
                                                                                                                                                                          • According to the blog post, it "enables Clang users to harness full power of modern multi-core processors with vector units"
                                                                                                                                                                          • With Clang being the default in FreeBSD, Bitrig and OS X, and with some other BSDs exploring the option of switching, the need for this potential speed boost was definitely there
                                                                                                                                                                          • This could also open some doors for more BSD in the area of high performance computing, putting an end to the current Linux monopoly
                                                                                                                                                                          • ***
                                                                                                                                                                            Interview - Eric, FSF, John, Jose, Kris and Stewart

                                                                                                                                                                            Various "man on the street" style mini-interviews

                                                                                                                                                                            News Roundup
                                                                                                                                                                            BSD-licensed gettext replacement
                                                                                                                                                                            • If you've ever installed ports on any of the BSDs, you've probably had GNU's gettext pulled in as a dependency
                                                                                                                                                                            • Wikipedia says "gettext is an internationalization and localization (i18n) system commonly used for writing multilingual programs on Unix-like computer operating systems"
                                                                                                                                                                            • A new BSD-licensed rewrite has begun, with the initial version being for NetBSD (but it's likely to be portable)
                                                                                                                                                                            • If you've got some coding skills, get involved with the project - the more freely-licensed replacements, the better
                                                                                                                                                                            • ***
                                                                                                                                                                              Unix history git repo
                                                                                                                                                                              • A git repository was recently created to show off some Unix source code history
                                                                                                                                                                              • The repository contains 659 thousand commits and 2306 merges
                                                                                                                                                                              • You can see early 386BSD commits all the way up to some of the more modern FreeBSD code
                                                                                                                                                                              • If you want to browse through the giant codebase, it can be a great history lesson
                                                                                                                                                                              • ***
                                                                                                                                                                                PCBSD 10.1.2 and Lumina updates
                                                                                                                                                                                • We mentioned 10.1.1 being released last week (and all the cool features a couple weeks before) but now 10.1.2 is out
                                                                                                                                                                                • This minor update contained a few hotfixes: RAID-Z installation, cache and log devices and the text-only installer in UEFI mode
                                                                                                                                                                                • There's also a new post on the PCBSD blog about Lumina, answering some frequently asked questions and giving a general status update
                                                                                                                                                                                • ***
                                                                                                                                                                                  Feedback/Questions
                                                                                                                                                                                  • Jake writes in
                                                                                                                                                                                  • Van writes in
                                                                                                                                                                                  • Anonymous writes in
                                                                                                                                                                                  • Dominik writes in (text answer)
                                                                                                                                                                                  • Chris writes in
                                                                                                                                                                                  • ***
                                                                                                                                                                                    Mailing List Gold
                                                                                                                                                                                    • Death by chocolate
                                                                                                                                                                                    • ***
                                                                                                                                                                                      1 hr 13 min