BSD Now

BSD Now

Download on the App Store

All BSD Now episodes

  • 201: Skip grep, use awk

    In which we interview a unicorn, FreeNAS 11.0 is out, show you how to run Nextcloud in a FreeBSD jail, and talk about the connection between oil changes and software patches.

    This episode was brought to you by

    Headlines
    FreeNAS 11.0 is Now Here
    • The FreeNAS blog informs us:
    • After several FreeNAS Release Candidates, FreeNAS 11.0 was released today. This version brings new virtualization and object storage features to the World’s Most Popular Open Source Storage Operating System. FreeNAS 11.0 adds bhyve virtual machines to its popular SAN/NAS, jails, and plugins, letting you use host web-scale VMs on your FreeNAS box. It also gives users S3-compatible object storage services, which turns your FreeNAS box into an S3-compatible server, letting you avoid reliance on the cloud.

      FreeNAS 11.0 also introduces the beta version of a new administration GUI. The new GUI is based on the popular Angular framework and the FreeNAS team expects the GUI to be themeable and feature complete by 11.1. The new GUI follows the same flow as the existing GUI, but looks better. For now, the FreeNAS team has released it in beta form to get input from the FreeNAS community. The new GUI, as well as the classic GUI, are selectable from the login screen.
      Also new in FreeNAS 11 is an Alert Service page which configures the system to send critical alerts from FreeNAS to other applications and services such as Slack, PagerDuty, AWS, Hipchat, InfluxDB, Mattermost, OpsGenie, and VictorOps. FreeNAS 11.0 has an improved Services menu that adds the ability to manage which services and applications are started at boot.
      The FreeNAS community is large and vibrant. We invite you to join us on the FreeNAS forum and the #freenas IRC channel on Freenode. To download FreeNAS and sign-up for the FreeNAS Newsletter, visit freenas.org/download.

      Building an IPsec Gateway With OpenBSD
      • Pierre-Yves Ritschard wrote the following blog article:
      • With private networks just released on Exoscale, there are now more options to implement secure access to Exoscale cloud infrastructure. While we still recommend the bastion approach, as detailed in this article, there are applications or systems which do not lend themselves well to working this way.

        In these cases, the next best thing is building IPsec gateways. IPsec is a protocol which works directly at layer 3. It uses its configuration to determine which network flows should be sent encrypted on the wire. Once IPsec is correctly configured, selected network flows are transparently encrypted and applications do not need to modify anything to benefit from secured traffic.

        • In addition to encryption, IPSec also authenticates the end points, so you can be sure you are exchanging packets with a trusted host
        • For the purposes of this article we will work under the following assumptions: We want a host to network setup, providing access to cloud-hosted infrastructure from a desktop environment.

          Only stock tooling should be used on desktop environment, no additional VPN client should be needed.
          In this case, to ensure no additional software is needed on the client, we will configure an L2TP/IPsec gateway. This article will use OpenBSD as the operating system to implement the gateway. While this choice may sound surprising, OpenBSD excels at building gateways of all sorts thanks to its simple configuration formats and inclusion of all necessary software and documentation to do so in the base system.

          • The tutorial assumes you have setup a local network between the hosts in the cloud, and walks through the configuration of an OpenBSD host as a IPsec gateway
          • On the OpenBSD host, all necessary software is already installed. We will configure the system, as well as pf, npppd, and ipsec

            • Configure L2TP
            • Configure IPsec
            • Configure NAT
            • Enabled services: ipsec isakmpd npppd
              • The tutorial then walks through configuring a OS X client, but other desktops will be very similar
              • ***
                Running Nextcloud in a jail on FreeBSD

                I recently setup Nextcloud 12 inside a FreeBSD jail in order to allow me access to files i might need while at University. I figured this would be a optimal solution for files that I might need access to unexpectedly, on computers where I am not in complete control. My Nextcloud instance is externally accessible, and yet if someone were to get inside my Jail, I could rest easy knowing they still didn’t have access to the rest of my host server. I chronicled the setup process including jail setup using iocage, https with Lets Encrypt, and full setup of the web stack.

                Nextcloud has a variety of features such as calendar synchronization, email, collaborative editing, and even video conferencing. I haven’t had time to play with all these different offerings and have only utilized the file synchronization, but even if file sync is not needed, Nextcloud has many offerings that make it worth setting up.

                • MariaDB, PHP 7.0, and Apache 2.4
                • To manage my jails I’m using iocage. In terms of jail managers it’s a fairly new player in the game of jail management and is being very actively developed. It just had a full rewrite in Python, and while the code in the background might be different, the actual user interface has stayed the same.

                  Iocage makes use of ZFS clones in order to create “base jails”, which allow for sharing of one set of system packages between multiple jails, reducing the amount of resources necessary. Alternatively, jails can be completely independent from each other; however, using a base jail makes it easier to update multiple jails as well.

                  • pkg install iocage
                  • sysrc iocage_enable=YES
                  • iocage fetch -r 11.0-RELEASE
                  • iocage create tag="stratus" jail_zfs=on vnet=off boot=on ip4_addr="sge0|172.20.0.100/32" -r 11.0-RELEASE
                  • iocage start stratus
                  • iocage console stratus
                  • I have chosen to provide storage to the Nextcloud Jail by mounting a dataset over NFS on my host box. This means my server can focus on serving Nextcloud and my storage box can focus on housing the data. The Nextcloud Jail is not even aware of this since the NFS Mount is simply mounted by the host server into the jail. The other benefit of this is the Nextcloud jail doesn’t need to be able to see my storage server, nor the ability to mount the NFS share itself.

                    Using a separate server for storage isn’t necessary and if the storage for my Nextcloud server was being stored on the same server I would have created a ZFS dataset on the host and mounted it into the jail.
                    Next I set up a dataset for the database and delegated it into the jail. Using a separate dataset allows me to specify certain properties that are better for a database, it also makes migration easier in case I ever need to move or backup the database.
                    With most of the requirements in place it was time to start setting up Nextcloud. The requirements for Nextcloud include your basic web stack of a web server, database, and PHP.

                    • Also covers the setup of acme.sh for LetsEncrypt. This is now available as a package, and doesn’t need to be manually fetched
                    • Install a few more packages, and do a bit of configuration, and you have a NextCloud server
                    • ***
                      Historical: My first OpenBSD Hackathon
                      • This is a blog post by our friend, and OpenBSD developer: Peter Hessler
                      • This is a story about encouragement. Every time I use the word "I", you should think "I as in me, not I as in the author".

                        In 2003, I was invited to my first OpenBSD Hackathon. Way before I was into networking, I was porting software to my favourite OS. Specifically, I was porting games.
                        On the first night most of the hackathon attendees end up at the bar for food and beer, and I'm sitting next to Theo de Raadt, the founder of OpenBSD. At some point during the evening, he's telling me about all of these "crazy" ideas he has about randomizing libraries, and protections that can be done in ld.so. (ld.so is the part of the OS that loads the libraries your program needs. It's, uh, kinda important.) Theo is encouraging me to help implement some of these ideas! At some point I tell Theo "I'm just a porter, I don't know C."
                        Theo responds with "It isn't hard, I'll have Dale (Rahn) show you how ld.so works, and you can do it." I was hoping that all of this would be forgotten by the next day, but sure enough Dale comes by. "Hey, are you Peter? Theo wanted me to show you how ld.so works" Dale spends an hour or two showing me how it works, the code structure, and how to recover in case of failure.
                        At first I had lots of failures. Then more failures. And even more failures. Once, I broke my machine so badly I had to reinstall it. I learned a lot about how an OS works during this. But, I eventually started doing changes without it breaking. And some even did what I wanted! By the end of the hackathon I had came up with a useful patch, that was committed as part of a larger change.
                        I was a nobody. With some encouragement, enough liquid courage to override my imposter syndrome, and a few hours of mentoring, I'm now doing big projects. The next time you're sitting at a table with someone new to your field, ask yourself: how can you encourage them? You just might make the world better.
                        Thank you Dale. And thank you Theo.

                        • Everyone has to start somewhere.
                        • One of the things that sets the BSDs apart from certain other open source operating systems, is the welcoming community, and the tradition of mentorship.
                        • Sure, someone else in the OpenBSD project could have done the bits that Peter did, likely a lot more quickly, but then OpenBSD wouldn’t have gained a new committer.
                        • So, if you are interested in working on one of the BSDs, reach out, and we’ll try to help you find a mentor.
                        • What part of the system do you want to work on?
                        • ***
                          Interview - Dan McDonald - [email protected] (danboid)
                          News Roundup
                          FreeBSD 11.1-RC1 Available
                          • 11.1-RC1 Installation images are available for:
                            • amd64, i386
                            • powerpc, powerpc64
                            • sparc64
                            • armv6 BANANAPI, BEAGLEBONE, CUBIEBOARD, CUBIEBOARD2, CUBOX-HUMMINGBOARD, GUMSTIX, RPI-B, RPI2, PANDABOARD, WANDBOARD
                            • aarch64 (aka arm64), including the RPI3, Pine64, OverDrive 1000, and Cavium Server
                            • A summary of changes since BETA3 includes:
                              • Several build toolchain related fixes.
                              • A use-after-free in RPC client code has been corrected.
                              • The ntpd(8) leap-seconds file has been updated.
                              • Various VM subsystem fixes.
                              • The '_' character is now allowed in newfs(8) labels.
                              • A potential sleep while holding a mutex has been corrected in the sa(4) driver.
                              • A memory leak in an ioctl handler has been fixed in the ses(4) driver.
                              • Virtual Machine Disk Images are available for the amd64 and i386 architectures.
                              • Amazon EC2 AMI Images of FreeBSD/amd64 EC2 AMIs are available
                                • The freebsd-update(8) utility supports binary upgrades of amd64 and i386 systems running earlier FreeBSD releases. Systems running earlier FreeBSD releases can upgrade as follows:
                                • freebsd-update upgrade -r 11.1-RC1

                                  • During this process, freebsd-update(8) may ask the user to help by merging some configuration files or by confirming that the automatically performed merging was done correctly.
                                  • freebsd-update install

                                    • The system must be rebooted with the newly installed kernel before continuing.
                                    • shutdown -r now

                                      • After rebooting, freebsd-update needs to be run again to install the new userland components:
                                      • freebsd-update install

                                        • It is recommended to rebuild and install all applications if possible, especially if upgrading from an earlier FreeBSD release, for example, FreeBSD 10.x. Alternatively, the user can install misc/compat10x and other compatibility libraries, afterwards the system must be rebooted into the new userland:
                                        • shutdown -r now

                                          • Finally, after rebooting, freebsd-update needs to be run again to remove stale files:
                                          • freebsd-update install

                                            Oil changes, safety recalls, and software patches

                                            Every few months I get an email from my local mechanic reminding me that it's time to get my car's oil changed. I generally ignore these emails; it costs time and money to get this done (I'm sure I could do it myself, but the time it would cost is worth more than the money it would save) and I drive little enough — about 2000 km/year — that I'm not too worried about the consequences of going for a bit longer than nominally advised between oil changes. I do get oil changes done... but typically once every 8-12 months, rather than the recommended 4-6 months. From what I've seen, I don't think I'm alone in taking a somewhat lackadaisical approach to routine oil changes.

                                            On the other hand, there's another type of notification which elicits more prompt attention: Safety recalls. There are two good reasons for this: First, whether for vehicles, food, or other products, the risk of ignoring a safety recall is not merely that the product will break, but rather that the product will be actively unsafe; and second, when there's a safety recall you don't have to pay for the replacement or fix — the cost is covered by the manufacturer.
                                            I started thinking about this distinction — and more specifically the difference in user behaviour — in the aftermath of the "WannaCry" malware. While WannaCry attracted widespread attention for its "ransomware" nature, the more concerning aspect of this incident is how it propagated: By exploiting a vulnerability in SMB for which Microsoft issued patches two months earlier. As someone who works in computer security, I find this horrifying — and I was particularly concerned when I heard that the NHS was postponing surgeries because they couldn't access patient records. Think about it: If the NHS couldn't access patient records due to WannaCry, it suggests WannaCry infiltrated systems used to access patient records — meaning that someone else exploiting the same vulnerabilities could have accessed those records. The SMB subsystem in Windows was not merely broken; until patches were applied, it was actively unsafe.
                                            I imagine that most people in my industry would agree that security patches should be treated in the same vein as safety recalls — unless you're certain that you're not affected, take care of them as a matter of urgency — but it seems that far more users instead treat security patches more like oil changes: something to be taken care of when convenient... or not at all, if not convenient. It's easy to say that such users are wrong; but as an industry it's time that we think about why they are wrong rather than merely blaming them for their problems.
                                            There are a few factors which I think are major contributors to this problem. First, the number of updates: When critical patches occur frequently enough to become routine, alarm fatigue sets in and people cease to give the attention updates deserve, even if on a conscious level they still recognize the importance of applying updates.

                                            • Colin also talks about his time as the FreeBSD Security Officer, and the problems in ensuring the patches are correct and do not break the system when installed
                                            • He also points out the problem of systems like Windows Update, the combines optional updates, and things like its license checking tool, in the same interface that delivers important updates. Or my recent machines, that gets constant popups about how some security updates will not be delivered because my processor is too new.
                                            • My bank sends me special offers in the mail but phones if my credit card usage trips fraud alarms; this is the sort of distinction in intrusiveness we should see for different types of software updates

                                              Finally, I think there is a problem with the mental model most people have of computer security. Movies portray attackers as geniuses who can break into any system in minutes; journalists routinely warn people that "nobody is safe"; and insurance companies offer insurance against "cyberattacks" in much the same way as they offer insurance against tornados. Faced with this wall of misinformation, it's not surprising that people get confused between 400 pound hackers sitting on beds and actual advanced persistent threats. Yes, if the NSA wants to break into your computer, they can probably do it — but most attackers are not the NSA, just like most burglars are not Ethan Hunt. You lock your front door, not because you think it will protect you from the most determined thieves, but because it's an easy step which dramatically reduces your risk from opportunistic attack; but users don't see applying security updates as the equivalent of locking their front door when they leave home.

                                              SKIP grep, use AWK
                                              • This is a tip from Jonathan Palardy in a series of blog posts about awk. It is especially helpful for people who write a lot of shell scripts or are using a lot of pipes with awk and grep.
                                              • Over the years, I’ve seen many people use this pattern (filter-map):

                                                $ [data is generated] | grep something | awk '{print $2}'

                                                but it can be shortened to:

                                                $ [data is generated] | awk '/something/ {print $2}'

                                                • AWK can take a regular expression (the part between the slashes) and matches that to the input. Anything that matches is being passed to the print $2 action (to print the second column).
                                                • Why would I do this?

                                                  I can think of 4 reasons:

                                                  *it’s shorter to type
                                                  *it spawns one less process
                                                  *awk uses modern (read “Perl”) regular expressions, by default – like grep -E
                                                  *it’s ready to “augment” with more awk

                                                  • How about matching the inverse (search for patterns that do NOT match)?
                                                  • But “grep -v” is OK…

                                                    Many people have pointed out that “grep -v” can be done more concisely with:

                                                    $ [data is generated] | awk '! /something/'

                                                    • See if you have such combinations of grep piped to awk and fix those in your shell scripts. It saves you one process and makes your scripts much more readable. Also, check out the other intro links on the blog if you are new to awk.
                                                    • ***
                                                      vim Adventures
                                                      • This website, created by Doron Linder, will playfully teach you how to use vim.
                                                      • Hit any key to get started and follow the instructions on the playing field by moving the cursor around.
                                                      • There is also a menu in the bottom left corner to save your game.
                                                      • Try it out, increase your vim-fu, and learn how to use a powerful text editor more efficiently.
                                                      • ***
                                                        Beastie Bits
                                                        • Slides from PkgSrcCon
                                                        • OpenBSD’s doas adds systemd compat shim
                                                        • Deadlock Empire -- “Each challenge below is a computer program of two or more threads. You take the role of the Scheduler - and a cunning one! Your objective is to exploit flaws in the programs to make them crash or otherwise malfunction.”
                                                        • EuroBSDcon 2017 Travel Grant Application Now Open
                                                        • Registration for vBSDCon is open - Registration is only $100 if you register before July 31. Discount hotel rooms arranged at the Hyatt for only $100/night while supplies last.
                                                        • BSD Taiwan call for papers opens, closes July 31stWindows Application Versand
                                                        • ***
                                                          Feedback/Questions
                                                          • Joseph - Server Monitoring
                                                          • Paulo - Updating Jails
                                                          • Kevin - openvpn server
                                                          • Todd - several questions
                                                          • ***
                                                            2 hr 24 min
                                                          • 200: Getting Scrubbed to Death

                                                            The NetBSD 8.0 release process is underway, we try to measure the weight of an electron, and look at stack clashing.

                                                            This episode was brought to you by

                                                            Headlines
                                                            NetBSD 8.0 release process underway
                                                            • Soren Jacobsen writes on NetBSD-announce:
                                                            • If you've been reading source-changes@, you likely noticed the recent creation of the netbsd-8 branch. If you haven't been reading source-changes@, here's some news: the netbsd-8 branch has been created, signaling the beginning of the release process for NetBSD 8.0.

                                                              We don't have a strict timeline for the 8.0 release, but things are looking pretty good at the moment, and we expect this release to happen in a shorter amount of time than the last couple major releases did.
                                                              At this point, we would love for folks to test out netbsd-8 and let us know how it goes. A couple of major improvements since 7.0 are the addition of USB 3 support and an overhaul of the audio subsystem, including an in-kernel mixer. Feedback about these areas is particularly desired.
                                                              To download the latest binaries built from the netbsd-8 branch, head to
                                                              [http://daily-builds.NetBSD.org/pub/NetBSD-daily/netbsd-8/(]http://daily-builds.NetBSD.org/pub/NetBSD-daily/netbsd-8/)
                                                              Thanks in advance for helping make NetBSD 8.0 a stellar release!

                                                              OpenIndiana Hipster 2017.04 is here
                                                              • Desktop software and libraries
                                                                • Xorg was updated to 1.18.4, xorg libraries and drivers were updated.
                                                                • Mate was updated to 1.16
                                                                • Intel video driver was updated, the list of supported hardware has significantly extended
                                                                • libsmb was updated to 4.4.6
                                                                • gvfs was updated to 1.26.0
                                                                • gtk3 was updated to 3.18.9
                                                                • Major text editors were updated (we ship vim 8.0.104, joe 4.4, emacs 25.2, nano 2.7.5
                                                                • pulseaudio was updated to 10.0
                                                                • firefox was updated to 45.9.0
                                                                • thunderbird was updated to 45.8.0
                                                                • critical issue in enlightenment was fixed, now it's operational again
                                                                • privoxy was updated to 3.0.26
                                                                • Mesa was updated to 13.0.6
                                                                • Nvidia driver was updated to 340.102
                                                                • Development tools and libraries
                                                                  • GCC 6 was added. Patches necessary to compile illumos-gate with GCC 6 were added (note, compiling illumos-gate with version other than illumos-gcc-4.4.4 is not supported)
                                                                  • GCC 7.1 added to Hipster
                                                                  • Bison was updated to 3.0.4
                                                                  • Groovy 2.4 was added
                                                                  • Ruby 1.9 was removed, Ruby 2.3 is the default Ruby now
                                                                  • Perl 5.16 was removed. 64-bit Perl 5.24 is shipped.
                                                                  • 64-bit OpenJDK 8 is the default OpenJDK version now.
                                                                  • Mercurial was updated to 4.1.3
                                                                  • Git was updated to 2.12.2
                                                                  • ccache was updated to 3.3.3
                                                                  • QT 5.8.0 was added
                                                                  • Valgrind was updated to 3.12.0
                                                                  • Server software
                                                                    • PostgreSQL 9.6 was added, PostgreSQL 9.3-9.5 were updated to latest minor versions
                                                                    • MongoDB 3.4 was added
                                                                    • MariaDB 10.1 was added
                                                                    • NodeJS 7 was added
                                                                    • Percona Server 5.5/5.6/5.7 and MariaDB 5.5 were updated to latest minor versions
                                                                    • OpenVPN was updated to 2.4.1
                                                                    • ISC Bind was updated to 9.10.4-P8
                                                                    • Squid was updated to 3.5.25
                                                                    • Nginx was updated to 1.12.0
                                                                    • Apache 2.4 was updated to 2.4.25. Apache 2.4 is the default Apache server now. Apache 2.2 will be removed before the next snapshot.
                                                                    • ISC ntpd was updated to 4.2.8p10
                                                                    • OpenSSH was updated to 7.4p1
                                                                    • Samba was updated to 4.4.12
                                                                    • Tcpdump was updated to 4.9.0
                                                                    • Snort was updated to 2.9.9.0
                                                                    • Puppet was updated to 3.8.6
                                                                    • A lot of other bug fixes and minor software updates included.
                                                                    • ***
                                                                      PKGSRC at The University of Wisconsin–Milwaukee
                                                                      • This piece is from the University of Wisconsin, Milwaukee
                                                                      • Why Use Package Managers?

                                                                        Why Pkgsrc?

                                                                        Portability

                                                                        Flexibility
                                                                        Modernity
                                                                        Quality and Security
                                                                        Collaboration
                                                                        Convenience
                                                                        Growth

                                                                        Binary Packages for Research Computing

                                                                        The University of Wisconsin — Milwaukee provides binary pkgsrc packages for selected operating systems as a service to the research computing community.
                                                                        Unlike most package repositories, which have a fixed prefix and frequently upgraded packages, these packages are available for multiple prefixes and remain unchanged for a given prefix. Additional packages may be added and existing packages may be patched to fix bugs or security issues, but the software versions will not be changed. This allows researchers to keep older software in-place indefinitely for long-term studies while deploying newer software in later snapshots.
                                                                        Contributing to Pkgsrc
                                                                        Building Your Own Binary Packages

                                                                        • Check out the full article and consider using pkgsrc for your own research purposes.
                                                                        • PKGSrc Con is this weekend!
                                                                        • ***
                                                                          Measuring the weight of an electron
                                                                          • An interesting story of the struggles of one person, aided only by their pet Canary, porting Electron to OpenBSD.
                                                                          • This is a long rant. A rant intended to document lunacy, hopefully aid others in the future and make myself feel better about something I think is crazy. It may seem like I am making an enemy of electron, but keep in mind that isn’t my intention! The enemy here, is complexity! My friend Henry, a canary, is coming along for the ride!

                                                                            • Getting the tools
                                                                            • At first glance Electron seems like a pretty solid app, it has decent docs, it’s consolidated in a single repository, has a lot of visibility, porting it shouldn’t be a big deal, right?

                                                                              • After cloning the repo, trouble starts:
                                                                              • Reading through the doc, right off the bat there are a few interesting things: At least 25GB disk space. Huh, OK, some how this ~47M repository is going to blow up to 25G?

                                                                                Continuing along with the build, I know I have two versions of clang installed on OpenBSD, one from ports and one in base. Hopefully I will be able to tell the build to use one of these versions.

                                                                                • Next, it’s time to tell the bootstrap that OpenBSD exists as a platform. After that is fixed, the build-script runs.

                                                                                • Even though cloning another git repo fails, the build happily continues.

                                                                                • Wait. Another repository failed to clone? At least this time the build failed after trying to clone boto.. again. I am guessing it tried twice because something might have changed between now and the last clone? Off in the distance we catch a familiar tune, it almost sounds like Gnarls Barkley’s song Crazy, can’t tell for sure.

                                                                                  As it turns out, if you are using git-fsck, you are unable to clone boto and requests. Obviously the proper fix for his is to not care about the validity of the git objects! So we die a little inside and comment out fsckobjects in our ~/.gitconfig.

                                                                                  • Next up, chromium-58 is downloaded…
                                                                                  • Out of curiosity we look at vendor/libchromiumcontent/script/update, it seems its purpose is to download / extract chromium clang and node, good thing we already specified --clang_dir or it might try to build clang again!

                                                                                    544 dots and 45 minutes later, we have an error! The chromium-58.0.3029.110.tar.xz file is mysteriously not there anymore.. Interesting. Wut. “Updating Clang…”. Didn’t I explicitly say not to build clang? At this point we have to shift projects, no longer are we working on Electron.. It’s libchromiumcontent that needs our attention.

                                                                                    • Fixing sub-tools
                                                                                    • Ahh, our old friends the dots! This is the second time waiting 45+ minutes for a 500+ MB file to download. We are fairly confident it will fail, delete the file out from under itself and hinder the process even further, so we add an explicit exit to the update script. This way we can copy the file somewhere safe!

                                                                                      • Another 45 minute chrome build and saving the downloaded executable to a save space seems in order. Fixing another 50 occurrences of error conditions let’s the build continue - to another clang build.
                                                                                      • We remove the call to update_clang, because.. well.. we have two copies of it already and the Electron doc said everything would be fine if we had >= clang 3.4!

                                                                                        • More re-builds and updates of clang and chromium are being commented out, just to get somewhere close to the actual electron build.

                                                                                        • Fixing sub-sub-tools

                                                                                        • Ninja needs to be build and the script for that needs to be told to ignore this “unsupported OS” to continue.

                                                                                        • No luck. At this point we are faced with a complex web of python scripts that execute gn on GN files to produce ninja files… which then build the various components and somewhere in that cluster, something doesn’t know about OpenBSD…

                                                                                          I look at Henry, he is looking a photo of his wife and kids. They are sitting on a telephone wire, the morning sun illuminating their beautiful faces. Henry looks back at me and says “It’s not worth it.” We slam the laptop shut and go outside.

                                                                                          Interview - Dan McDonald - [email protected] (danboid)
                                                                                          News Roundup
                                                                                          g4u 2.6 (ghosting for unix) released 18th birthday
                                                                                          • Hubert Feyrer writes in his mail to netbsd-users:
                                                                                          • After a five-year period for beta-testing and updating, I have finally released g4u 2.6. With its origins in 1999, I'd like to say: Happy 18th Birthday, g4u!

                                                                                            • About g4u:
                                                                                            • g4u ("ghosting for unix") is a NetBSD-based bootfloppy/CD-ROM that allows easy cloning of PC harddisks to deploy a common setup on a number of PCs using FTP. The floppy/CD offers two functions. The first is to upload the compressed image of a local harddisk to a FTP server, the other is to restore that image via FTP, uncompress it and write it back to disk. Network configuration is fetched via DHCP. As the harddisk is processed as an image, any filesystem and operating system can be deployed using g4u. Easy cloning of local disks as well as partitions is also supported.

                                                                                              • The past:
                                                                                              • When I started g4u, I had the task to install a number of lab machines with a dual-boot of Windows NT and NetBSD. The hype was about Microsoft's "Zero Administration Kit" (ZAK) then, but that did barely work for the Windows part - file transfers were slow, depended on the clients' hardware a lot (requiring fiddling with MS DOS network driver disks), and on the ZAK server the files for installing happened do disappear for no good reason every now and then. Not working well, and leaving out NetBSD (and everything else), I created g4u. This gave me the (relative) pain of getting things working once, but with the option to easily add network drivers as they appeared in NetBSD (and oh they did!), plus allowed me to install any operating system.

                                                                                                • The present:
                                                                                                • We've used g4u successfully in our labs then, booting from CDROM. I also got many donations from public and private institutions plus companies from many sectors, indicating that g4u does make a difference.

                                                                                                  In the meantime, the world has changed, and CDROMs aren't used that much any more. Network boot and USB sticks are today's devices of choice, cloning of a full disk without knowing its structure has both advantages but also disadvantages, and g4u's user interface is still command-line based with not much space for automation. For storage, FTP servers are nice and fast, but alternatives like SSH/SFTP, NFS, iSCSI and SMB for remote storage plus local storage (back to fun with filesystems, anyone? avoiding this was why g4u was created in the first place!) should be considered these days. Further aspects include integrity (checksums), confidentiality (encryption). This leaves a number of open points to address either by future releases, or by other products.

                                                                                                  • The future:
                                                                                                  • At this point, my time budget for g4u is very limited. I welcome people to contribute to g4u - g4u is Open Source for a reason. Feel free to get back to me for any changes that you want to contribute!

                                                                                                    • The changes:
                                                                                                    • Major changes in g4u 2.6 include:

                                                                                                      • Make this build with NetBSD-current sources as of 2017-04-17 (shortly before netbsd-8 release branch), binaries were cross-compiled from Mac OS X 10.10
                                                                                                      • Many new drivers, bugfixes and improvements from NetBSD-current (see beta1 and beta2 announcements)
                                                                                                      • Go back to keeping the disk image inside the kernel as ramdisk, do not load it as separate module. Less error prone, and allows to boot the g4u (NetBSD) kernel from a single file e.g. via PXE (Testing and documentation updates welcome!)
                                                                                                      • Actually DO provide the g4u (NetBSD) kernel with the embedded g4u disk image from now on, as separate file, g4u-kernel.gz
                                                                                                      • In addition to MD5, add SHA512 checksums

                                                                                                        • Congratulation, g4u. Check out the g4u website and support the project if you are using it.
                                                                                                        • ***
                                                                                                          Fixing FreeBSD Networking on Digital Ocean
                                                                                                          • Most cloud/VPS providers use some form of semi-automated address assignment, rather than just regular static address configuration, so that newly created virtual machines can configure themselves.
                                                                                                          • Sometimes, especially during the upgrade process, this can break. This is the story of one such user:
                                                                                                          • I decided it was time to update my FreeBSD Digital Ocean droplet from the end-of-life version 10.1 (shame on me) to the modern version 10.3 (good until April 2018), and maybe even version 11 (good until 2021). There were no sensitive files on the VM, so I had put it off.

                                                                                                            Additionally, cloud providers tend to have shoddy support for BSDs, so breakages after messing with the kernel or init system are rampant, and I had been skirting that risk.
                                                                                                            The last straw for me was a broken pkg: /usr/local/lib/libpkg.so.3: Undefined symbol "openat"

                                                                                                            • So the user fires up freebsd-update and upgrades to FreeBSD 10.3
                                                                                                            • I rebooted, and of course, it happened: no ssh access after 30 seconds, 1 minute, 2 minutes…I logged into my Digital Ocean account and saw green status lights for the instance, but something was definitely wrong.

                                                                                                              Fortunately, Digital Ocean provides console access (albeit slow, buggy, and crashes my browser every time I run ping). ifconfig revealed that the interfaces vtnet0 (public) and vtnet1 (private) haven’t been configured with IP addresses.
                                                                                                              Combing through files in /etc/rc.*, I found a file called /etc/rc.digitalocean.d/${DROPLET_ID}.conf containing static network settings for this droplet (${DROPLET_ID} was something like 1234567).
                                                                                                              It seemed that FreeBSD wasn’t picking up the Digital Ocean network settings config file. The quick and dirty way would have been to messily append the contents of this file to /etc/rc.conf, but I wanted a nicer way. Reading the script in /etc/rc.d/digitalocean told me that /etc/rc.digitalocean.d/${DROPLET_ID}.conf was supposed to have a symlink at /etc/rc.digitalocean.d/droplet.conf. It was broken and pointed to /etc/rc.digitalocean.d/.conf, which could happen when the curl command in /etc/rc.d/digitalocean fails

                                                                                                              • Maybe the curl binary was also in need for an upgrade so failed to fetch the droplet ID
                                                                                                              • Using grep to fish for files containing droplet.conf, I discovered that it was hacked into the init system via load_rc_config() in /etc/rc.subr

                                                                                                                • I would prefer if Digital Ocean had not customized the version of FreeBSD they ship quite so much

                                                                                                                • I could fix that symlink and restart the services:

                                                                                                                • set DROPLET_ID=$(curl -s http://169.254.169.254/metadata/v1/id)
                                                                                                                  ln -s -f /etc/rc.digitalocean.d/${DROPLET_ID}.conf /etc/rc.digitalocean.d/droplet.conf
                                                                                                                  /etc/rc.d/netif restart
                                                                                                                  /etc/rc.d/routing restart

                                                                                                                  Networking was working again, and I could then ssh into my server and run the following to finish the upgrade:

                                                                                                                  freebsd-update install

                                                                                                                  At this point, I decided that I didn’t want to deal with this mess again until at least 2021, so I decided to go for 11.0-RELEASE

                                                                                                                  freebsd-update -r 11.0-RELEASE update
                                                                                                                  freebsd-update install
                                                                                                                  reboot
                                                                                                                  freebsd-update install
                                                                                                                  pkg-static install -f pkg
                                                                                                                  pkg update
                                                                                                                  pkg upgrade
                                                                                                                  uname -a

                                                                                                                  FreeBSD hostname 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9

                                                                                                                  pkg -v

                                                                                                                  1.10.1

                                                                                                                  The problem was solved correctly, and my /etc/rc.conf remains free of generated cruft.
                                                                                                                  The Digital Ocean team can make our lives easier by having their init scripts do more thorough system checking, e.g., catching broken symlinks and bad network addresses. I’m hopeful that collaboration of the FreeBSD team and cloud providers will one day result in automatic fixing of these situations, or at least a correct status indicator.

                                                                                                                  • The Digital Ocean team didn’t really know many FreeBSD people when they made the first 10.1 images, they have improved a lot, but they of course could always use more feedback from BSD users
                                                                                                                  • **
                                                                                                                    Stack Clash

                                                                                                                    A 12-year-old question: "If the heap grows up, and the stack grows down, what happens when they clash? Is it exploitable? How?

                                                                                                                    In 2005, Gael Delalleau presented "Large memory management vulnerabilities" and the first stack-clash exploit in user-space (against mod_php 4.3.0 on Apache 2.0.53)
                                                                                                                    In 2010, Rafal Wojtczuk published "Exploiting large memory management vulnerabilities in Xorg server running on Linux", the second stack-clash exploit in user-space (CVE-2010-2240)
                                                                                                                    Since 2010, security researchers have exploited several stack-clashes in the kernel-space, In user-space, however, this problem has been greatly underestimated; the only public exploits are Gael Delalleau's and Rafal Wojtczuk's, and they were written before Linux introduced a protection against stack-clashes (a "guard-page" mapped below the stack)
                                                                                                                    In this advisory, we show that stack-clashes are widespread in user-space, and exploitable despite the stack guard-page; we discovered multiple vulnerabilities in guard-page implementations, and devised general methods for:
                                                                                                                    "Clashing" the stack with another memory region: we allocate memory until the stack reaches another memory region, or until another memory region reaches the stack;
                                                                                                                    "Jumping" over the stack guard-page: we move the stack-pointer from the stack and into the other memory region, without accessing the stack guard-page;
                                                                                                                    "Smashing" the stack, or the other memory region: we overwrite the stack with the other memory region, or the other memory region with the stack.

                                                                                                                    • So this advisory itself, is not a security vulnerability. It is novel research showing ways to work around the mitigations against generic vulnerability types that are implemented on various operating systems.
                                                                                                                    • While this issue with the mitigation feature has been fixed, even without the fix, successful exploitation requires another application with its own vulnerability in order to be exploited. Those vulnerabilities outside of the OS need to be fixed on their own.
                                                                                                                    • FreeBSD-Security post
                                                                                                                    • The issue under discussion is a limitation in a vulnerability mitigation technique. Changes to improve the way FreeBSD manages stack growth, and mitigate the issue demonstrated by Qualys' proof-of-concept code, are in progress by FreeBSD developers knowledgeable in the VM subsystem.

                                                                                                                      • FreeBSD address space guards
                                                                                                                      • HardenedBSD Proof of Concept for FreeBSD
                                                                                                                      • HardenedBSD implementation: https://github.com/HardenedBSD/hardenedBSD/compare/de8124d3bf83d774b66f62d11aee0162d0cd1031...91104ed152d57cde0292b2dc09489fd1f69ea77c & https://github.com/HardenedBSD/hardenedBSD/commit/00ad1fb6b53f63d6e9ba539b8f251b5cf4d40261
                                                                                                                      • Qualys PoC: freebsd_cve-2017-fgpu.c
                                                                                                                      • Qualys PoC: freebsd_cve-2017-fgpe.c
                                                                                                                      • Qualys PoC: freebsd_cve-2017-1085.c
                                                                                                                      • Qualys PoC: OpenBSD
                                                                                                                      • Qualys PoC: NetBSD
                                                                                                                      • ***
                                                                                                                        Will ZFS and non-ECC RAM kill your data?
                                                                                                                        • TL;DR: ECC is good, but even without, having ZFS is better than not having ZFS.
                                                                                                                        • What’s ECC RAM? Is it a good idea?

                                                                                                                          What’s ZFS? Is it a good idea?
                                                                                                                          Is ZFS and non-ECC worse than not-ZFS and non-ECC?
                                                                                                                          What about the Scrub of Death?

                                                                                                                          • The article walks through ZFS folk lore, and talks about what can really go wrong, and what is just the over-active imagination of people on the FreeNAS forums
                                                                                                                          • But would using any other filesystem that isn’t ZFS have protected that data? ‘Cause remember, nobody’s arguing that you can lose data to evil RAM – the argument is about whether evil RAM is more dangerous with ZFS than it would be without it.

                                                                                                                            I really, really want to use the Scrub Of Death in a movie or TV show. How can I make it happen?
                                                                                                                            I don’t care about your logic! I wish to appeal to authority!
                                                                                                                            OK. “Authority” in this case doesn’t get much better than Matthew Ahrens, one of the cofounders of ZFS at Sun Microsystems and current ZFS developer at Delphix. In the comments to one of my filesystem articles on Ars Technica, Matthew said “There’s nothing special about ZFS that requires/encourages the use of ECC RAM more so than any other filesystem.”

                                                                                                                            Beastie Bits
                                                                                                                            • EuroBSDcon 2017 Travel Grant Application Now Open
                                                                                                                            • FreeBSD 11.1-BETA3 is out, please give it a test
                                                                                                                            • Allan and Lacey let us know the video to the Postgresql/ZFS talk is online
                                                                                                                            • Trapsleds
                                                                                                                            • BSD User group in North Rhine-Westphalia, Germany
                                                                                                                            • ***
                                                                                                                              Feedback/Questions
                                                                                                                              • Joe - Home Server Suggestions
                                                                                                                              • Stephen - general BSD
                                                                                                                              • Eduardo - ZFS Encryption
                                                                                                                              • Joseph - BGP Kernel Error
                                                                                                                              • ***
                                                                                                                                1 hr 35 min
                                                                                                                              • 199: Read the source, KARL

                                                                                                                                FreeBSD 11.1-Beta1 is out, we discuss Kernel address randomized link (KARL), and explore the benefits of daily OpenBSD source code reading

                                                                                                                                This episode was brought to you by

                                                                                                                                Headlines
                                                                                                                                FreeBSD 11.1-Beta1 now available
                                                                                                                                • Glen Barber, of the FreeBSD release engineering team has announced that FreeBSD 11.1-Beta1 is now available for the following architectures:
                                                                                                                                • 11.1-BETA1 amd64 GENERIC

                                                                                                                                  11.1-BETA1 i386 GENERIC
                                                                                                                                  11.1-BETA1 powerpc GENERIC
                                                                                                                                  11.1-BETA1 powerpc64 GENERIC64
                                                                                                                                  11.1-BETA1 sparc64 GENERIC
                                                                                                                                  11.1-BETA1 armv6 BANANAPI
                                                                                                                                  11.1-BETA1 armv6 BEAGLEBONE
                                                                                                                                  11.1-BETA1 armv6 CUBIEBOARD
                                                                                                                                  11.1-BETA1 armv6 CUBIEBOARD2
                                                                                                                                  11.1-BETA1 armv6 CUBOX-HUMMINGBOARD
                                                                                                                                  11.1-BETA1 armv6 GUMSTIX
                                                                                                                                  11.1-BETA1 armv6 RPI-B
                                                                                                                                  11.1-BETA1 armv6 RPI2
                                                                                                                                  11.1-BETA1 armv6 PANDABOARD
                                                                                                                                  11.1-BETA1 armv6 WANDBOARD
                                                                                                                                  11.1-BETA1 aarch64 GENERIC
                                                                                                                                  Note regarding arm/armv6 images: For convenience for those without console access to the system, a freebsd user with a password of freebsd is available by default for ssh(1) access. Additionally, the root user password is set to root. It is strongly recommended to change the password for both users after gaining access to the system.

                                                                                                                                  • The full schedule for 11.1-RELEASE is here, the final release is expected at the end of July
                                                                                                                                  • It was also announced there will be a 10.4-RELEASE scheduled for October
                                                                                                                                  • ***
                                                                                                                                    KARL – kernel address randomized link

                                                                                                                                    Over the last three weeks I've been working on a new randomization feature which will protect the kernel.

                                                                                                                                    The situation today is that many people install a kernel binary from OpenBSD, and then run that same kernel binary for 6 months or more. We have substantial randomization for the memory allocations made by the kernel, and for userland also of course.
                                                                                                                                    Previously, the kernel assembly language bootstrap/runtime locore.S was compiled and linked with all the other .c files of the kernel in a deterministic fashion. locore.o was always first, then the .c files order specified by our config(8) utility and some helper files.
                                                                                                                                    In the new world order, locore is split into two files: One chunk is bootstrap, that is left at the beginning. The assembly language runtime and all other files are linked in random fashion. There are some other pieces to try to improve the randomness of the layout.
                                                                                                                                    As a result, every new kernel is unique. The relative offsets between functions and data are unique.
                                                                                                                                    It still loads at the same location in KVA. This is not kernel ASLR! ASLR is a concept where the base address of a module is biased to a random location, for position-independent execution. In this case, the module itself is perturbed but it lands at the same location, and
                                                                                                                                    does not need to use position-independent execution modes.

                                                                                                                                    LLDB: Sanitizing the debugger's runtime
                                                                                                                                    • The good
                                                                                                                                    • Besides the greater enhancements this month I performed a cleanup in the ATF ptrace(2) tests again. Additionally I have managed to unbreak the LLDB Debug build and to eliminate compiler warnings in the NetBSD Native Process Plugin. It is worth noting that LLVM can run tests on NetBSD again, the patch in gtest/LLVM has been installed by Joerg Sonnenberg and a more generic one has been submitted to the upstream googletest repository. There was also an improvement in ftruncate(2) on the LLVM side (authored by Joerg).

                                                                                                                                      Since LLD (the LLVM linker) is advancing rapidly, it improved support for NetBSD and it can link a functional executable on NetBSD. I submitted a patch to stop crashing it on startup anymore. It was nearly used for linking LLDB/NetBSD and it spotted a real linking error... however there are further issues that need to be addressed in the future. Currently LLD is not part of the mainline LLDB tasks - it's part of improving the work environment. This linker should reduce the linking time - compared to GNU linkers - of LLDB by a factor of 3x-10x and save precious developer time. As of now LLDB linking can take minutes on a modern amd64 machine designed for performance.

                                                                                                                                      • Kernel correctness
                                                                                                                                      • I have researched (in pkgsrc-wip) initial support for multiple threads in the NetBSD Native Process Plugin. This code revealed - when running the LLDB regression test-suite - new kernel bugs. This unfortunately affects the usability of a debugger in a multithread environment in general and explains why GDB was never doing its job properly in such circumstances. One of the first errors was asserting kernel panic with PT_*STEP, when a debuggee has more than a single thread. I have narrowed it down to lock primitives misuse in the do_ptrace() kernel code. The fix has been committed.

                                                                                                                                        • The bad
                                                                                                                                        • Unfortunately this is not the full story and there is further mandatory work.

                                                                                                                                          LLDB acceleration
                                                                                                                                          The EV_SET() bug broke upstream LLDB over a month ago, and during this period the debugger was significantly accelerated and parallelized. It is difficult to declare it definitely, but it might be the reason why the tracer's runtime broke due to threading desynchronization. LLDB behaves differently when run standalone, under ktruss(1) and under gdb(1) - the shared bug is that it always fails in one way or another, which isn't trivial to debug.

                                                                                                                                          • The ugly
                                                                                                                                          • There are also unpleasant issues at the core of the Operating System.

                                                                                                                                            Kernel troubles
                                                                                                                                            Another bug with single-step functions that affects another aspect of correctness - this time with reliable execution of a program - is that processes die in non-deterministic ways when single-stepped. My current impression is that there is no appropriate translation between process and thread (LWP) states under a debugger. These issues are sibling problems to unreliable PT_RESUME and PT_SUSPEND.
                                                                                                                                            In order to be able to appropriately address this, I have diligently studied this month the Solaris Internals book to get a better image of the design of the NetBSD kernel multiprocessing, which was modeled after this commercial UNIX.

                                                                                                                                            • Plan for the next milestone
                                                                                                                                            • The current troubles can be summarized as data races in the kernel and at the same time in LLDB. I have decided to port the LLVM sanitizers, as I require the Thread Sanitizer (tsan). Temporarily I have removed the code for tracing processes with multiple threads to hide the known kernel bugs and focus on the LLDB races.

                                                                                                                                              Unfortunately LLDB is not easily bisectable (build time of the LLVM+Clang+LLDB stack, number of revisions), therefore the debugging has to be performed on the most recent code from upstream trunk.

                                                                                                                                              d2K17 Hackathon Reports
                                                                                                                                              • d2k17 Hackathon Report: Ken Westerback on XS_NO_CCB removal and dhclient link detection
                                                                                                                                              • d2k17 Hackathon Report: Antoine Jacoutot on rc.d, syspatch, and more
                                                                                                                                              • d2k17 Hackathon Report: Florian Obser on slaacd(8)
                                                                                                                                              • d2k17 Hackathon Report: Stefan Sperling on USB audio, WiFi Progress
                                                                                                                                              • News Roundup
                                                                                                                                                Multi-tenant router or firewall with FreeBSD
                                                                                                                                                • Setting-up a virtual lab
                                                                                                                                                • Downloading BSD Router Project images
                                                                                                                                                • Download BSDRP serial image (prevent to have to use an X display) on Sourceforge.
                                                                                                                                                • Download Lab scripts
                                                                                                                                                • More information on these BSDRP lab scripts available on How to build a BSDRP router lab.

                                                                                                                                                  • Start the lab with full-meshed 5 routers and one shared LAN, on this example using bhyve lab script on FreeBSD:
                                                                                                                                                  • [root@FreeBSD]~# tools/BSDRP-lab-bhyve.sh -i BSDRP-1.71-full-amd64-serial.img.xz -n 5 -l 1

                                                                                                                                                    • Configuration
                                                                                                                                                    • Router 4 (R4) hosts the 3 routers/firewalls for each 3 customers.
                                                                                                                                                    • Router 1 (R1) belongs to customer 1, router 2 (R2) to customer 2 and router 3 (R3) to customer 3.
                                                                                                                                                    • Router 5 (R5) simulates a simple Internet host
                                                                                                                                                    • Using pf firewall in place of ipfw
                                                                                                                                                    • pf need a little more configuration because by default /dev/pf is hidden from jail. Then, on the host we need to:

                                                                                                                                                      • In place of loading the ipfw/ipfw-nat modules we need to load the pf module (but still disabling pf on our host for this example)
                                                                                                                                                      • Modify default devd rules for allowing jails to see /dev/pf (if you want to use tcpdump inside your jail, you should use bpf device too)
                                                                                                                                                      • Replacing nojail tag by nojailvnet tag into /etc/rc.d/pf (already done into BSDRP)
                                                                                                                                                      • Under the hood: jails-on-nanobsd
                                                                                                                                                      • BSDRP's tenant shell script creates jail configuration compliant with a host running nanobsd. Then these jails need to be configured for a nanobsd:
                                                                                                                                                      • Being nullfs based for being hosted on a read-only root filesystem
                                                                                                                                                      • Have their /etc and /var into tmpfs disks (then we need to populate these directory before each start)
                                                                                                                                                      • Configuration changes need to be saved with nanobsd configuration tools, like “config save” on BSDRP
                                                                                                                                                      • And on the host:
                                                                                                                                                      • autosave daemon need to be enabled: Each time a customer will issue a “config save” inside a jail, his configuration diffs will be save into host's /etc/jails/. And this directory is a RAM disk too, then we need to automatically save hosts configuration on changes.
                                                                                                                                                      • ***
                                                                                                                                                        OpenBSD Daily Source Reading
                                                                                                                                                        • Adam Wołk writes:
                                                                                                                                                        • I made a new year's resolution to read at least one C source file from OpenBSD daily. The goal was to both get better at C and to contribute more to the base system and userland development. I have to admit that initially I wasn’t consistent with it at all. In the first quarter of the year I read the code of a few small base utilities and nothing else. Still, every bit counts and it’s never too late to get better.

                                                                                                                                                          Around the end of May, I really started reading code daily - no days skipped. It usually takes anywhere between ten minutes (for small base utils) and one and a half hour (for targeted reads). I’m pretty happy with the results so far. Exploring the system on a daily basis, looking up things in the code that I don’t understand and digging as deep as possible made me learn a lot more both about C and the system than I initially expected.
                                                                                                                                                          There’s also one more side effect of reading code daily - diffs. It’s easy to spot inconsistencies, outdated code or an incorrect man page. This results in opportunities for contributing to the project. With time it also becomes less opportunitstic and more goal oriented. You might start with a [https://marc.info/?l=openbsd-tech&m=149591302814638&w=2](drive by diff to kill) optional compilation of an old compatibility option in chown that has been compiled in by default since 1995.
                                                                                                                                                          Soon the contributions become more targeted, for example using a new API for encrypting passwords in the htpasswd utility after reading the code of the utility and the code for htpasswd handling in httpd. Similarly it can take you from discussing a doas feature idea with a friend to implementing it after reading the code.
                                                                                                                                                          I was having a lot of fun reading code daily and started to recommend it to people in general discussions. There was one particular twitter thread that ended up starting something new.
                                                                                                                                                          This is still a new thing and the format is not yet solidified. Generally I make a lot of notes reading code, instead of slapping them inside a local file I drop the notes on the IRC channel as I go. Everyone on the channel is encouraged to do the same or share his notes in any way he/she seems feasable.

                                                                                                                                                          • Check out the logs from the IRC discussions.
                                                                                                                                                          • Start reading code from other BSD projects and see whether you can replicate their results!
                                                                                                                                                          • ***
                                                                                                                                                            Become FreeBSD User: Find Useful Tools
                                                                                                                                                            • BSD Mag has the following article by David Carlier:
                                                                                                                                                            • If you’re usually programming on Linux and you consider a potential switch to FreeBSD, this article will give you an overview of the possibilities.

                                                                                                                                                              • How to Install the Dependencies
                                                                                                                                                              • FreeBSD comes with either applications from binary packages or compiled from sources (ports). They are arranged according to software types (programming languages mainly in lang (or java specifically for Java), libraries in devel, web servers in www …) and the main tool for modern FreeBSD versions is pkg, similar to Debian apt tools suite. Hence, most of the time if you are looking for a specific application/library, simply

                                                                                                                                                                pkg search

                                                                                                                                                                without necessarily knowing the fully qualified name of the package. It is somehow sufficient. For example pkg search php7 will display php7 itself and the modules. Furthermore, php70 specific version and so on.

                                                                                                                                                                • Web Development
                                                                                                                                                                • Basically, this is the easiest area to migrate to. Most Web languages do not use specific platform features. Thus, most of the time, your existing projects might just be “drop-in” use cases.

                                                                                                                                                                  If your language of choice is PHP, you are lucky as this scripting language is workable on various operating systems, on most Unixes and Windows. In the case of FreeBSD, you have even many different ports or binary package versions (5.6 to 7.1). In this case, you may need some specific PHP modules enabled, luckily they are available atomically, or if the port is the way you chose, it is via the www/php70-extensions’s one.
                                                                                                                                                                  Of course developing with Apache (both 2.2 and 2.4 series are available, respectively www/apache22 and www/apache24 packages), or even better with Nginx (the last stable or the latest development versions could be used, respectively www/nginx and www/nginx-devel packages) via php-fpm is possible.
                                                                                                                                                                  In terms of databases, we have the regular RDMBS like MySQL and PostgreSQL (client and server are distinct packages … databases/(mysql/portgresql)-client, and databases/(mysql/postgresql)-server). Additionally, a more modern concept of NoSQL with CouchDB, for example (databases/couchdb), MongoDB (databases/mongodb), and Cassandra (databases/cassandra), to name but a few.

                                                                                                                                                                  • Low-level Development
                                                                                                                                                                  • The BSDs are shipped with C and C++ compilers in the base. In the case of FreeBSD 11.0, it is clang 3.8.0 (in x86 architectures) otherwise, modern versions of gcc exist for developing with C++11. Examples are of course available too (lang/gcc … until gcc 7.0 devel).

                                                                                                                                                                    Numerous libraries for various topics are also present, web services SOAP with gsoap through User Interfaces with GTK (x11-toolkits/gtk), QT4 or QT 5 (devel/qt), malware libraries with Yara (security/yara), etc.

                                                                                                                                                                    • Android / Mobile Development
                                                                                                                                                                    • To be able to do Android development, to a certain degree, the Linux’s compatibility layer (aka linuxulator) needs to be enabled. Also, x11-toolkits/swt and linux-f10-gtk2 port/package need to be installed (note that libswt-gtk-3550.so and libswt-pi-gtk-3550.so are necessary. The current package is versioned as 3557 and can be solved using symlinks). In the worst case scenario, remember that bhyve (or Virtualbox) is available, and can run any Linux distribution efficiently.

                                                                                                                                                                      • Source Control Management
                                                                                                                                                                      • FreeBSD comes in base with a version of subversion. As FreeBSD source is in a subversion repository, a prefixed svnlite command prevents conflicts with the package/port.

                                                                                                                                                                        Additionally, Git is present but via the package/port system with various options (with or without a user interface, subversion support).

                                                                                                                                                                        • Conclusion
                                                                                                                                                                        • FreeBSD has made tremendous improvements over the years to fill the gap created by Linux. FreeBSD still maintains its interesting specificities; hence there will not be too much blockers if your projects are reasonably sized to allow a migration to FreeBSD.

                                                                                                                                                                          Notes from project Aeronix, part 10
                                                                                                                                                                          • Prologue
                                                                                                                                                                          • It is almost two years since I finished building Aeronix and it has served me well during that time. Only thing that ever broke was Noctua CPU fan, which I have replaced with the same model. However, for long time, I wanted to run Aeronix on OpenBSD instead of GNU/Linux Debian.

                                                                                                                                                                            • Preparation
                                                                                                                                                                            • I first experimented with RAID1 OpenBSD setup in VirtualBox, plugging and unplugging drives and learned that OpenBSD RAID1 is really smooth. When I finally got the courage, I copied all the data on two drives outside of Aeronix. One external HDD I regulary use to backup Aeronix and second internal drive in my desktop computer. Copying the data took about two afternoons. Aeronix usually has higher temperatures (somewhere around 55°C or 65°C depending on time of the year), and when stressed, it can go really high (around 75°C). During full speed copy over NFS and to external drive it went as high as 85°C, which made me a bit nervous. After the data were copied, I temporarily un-configured computers on local network to not touch Aeronix, plugged keyboard, display and OpenBSD 6.1 thumb drive. Installing OpenBSD 6.1 on full disk RAID1 was super easy.

                                                                                                                                                                              • Configuring NFS
                                                                                                                                                                              • Aeronix serves primarily as NAS, which means NFS and SMB. NFS is used by computers in local network with persistent connection (via Ethernet). SMB is used by other devices in local network with volatile connection (via WiFi). When configuring NFS, I expected similar configuration to what I had in Debian, but on OpenBSD, it is very different. However, after reading through exports(5), it was really easy to put it together.

                                                                                                                                                                                • Putting the data back
                                                                                                                                                                                • Copying from the external drive took few days, since the transfer speed was something around 5MB/s. I didn't really mind. It was sort of a good thing, because Aeronix wasn't overheating that way. I guess I need to figure new backup strategy though.

                                                                                                                                                                                  One interesting thing happened with one of my local desktops. It was connecting Aeronix with default NFS mount options (on Archlinux) and had really big troubles with reading anything. Basically it behaved as if the network drive had horrible access times. After changing the default mount options, it started working perfectly.

                                                                                                                                                                                  • Conclusion
                                                                                                                                                                                  • Migrating to OpenBSD was way easier than I anticipated. There are various benefits like more security, realiable RAID1 setup (which I know how will work when drive dies), better documentation and much more. However, the true benefit for me is just the fact I like OpenBSD and makes me happy to have one more OpenBSD machine. On to the next two years of service!

                                                                                                                                                                                    Beastie Bits
                                                                                                                                                                                    • Running OpenBSD on Azure
                                                                                                                                                                                    • Mondieu - portable alternative for freebsd-update
                                                                                                                                                                                    • Plan9-9k: 64-bit Plan 9
                                                                                                                                                                                    • Installing OpenBSD 6.1 on your laptop is really hard (not)
                                                                                                                                                                                    • UbuntuBSD is dead
                                                                                                                                                                                    • OPNsense 17.1.8 released
                                                                                                                                                                                    • ***
                                                                                                                                                                                      Feedback/Questions
                                                                                                                                                                                      • Patrick - Operating System Textbooks
                                                                                                                                                                                      • Brian - snapshot retention
                                                                                                                                                                                      • Randy - FreeNAS to FreeBSD
                                                                                                                                                                                      • Florian - Bootloader Resolution
                                                                                                                                                                                      • ***
                                                                                                                                                                                        1 hr 23 min
                                                                                                                                                                                      • 198: BSDNorth or You can’t handle the libtruth

                                                                                                                                                                                        This episode gives you the full dose of BSDCan 2017 recap as well as a blog post on conference speaking advice.

                                                                                                                                                                                        Headlines
                                                                                                                                                                                        Pre-conference activities: Goat BoF, FreeBSD Foundation Board Meeting, and FreeBSD Journal Editorial Board Meeting
                                                                                                                                                                                        • The FreeBSD Foundation has a new President as Justin Gibbs is busy this year with building a house, so George Neville-Neil took up the task to serve as President, with Justin Gibbs as Secretary. Take a look at the updated Board of Directors.
                                                                                                                                                                                        • We also have a new staff member: Scott Lamons joined the Foundation team as senior program manager.
                                                                                                                                                                                        • Scott’s work for the Foundation will focus on managing and evangelizing programs for advanced technologies in FreeBSD including preparing project plans, coordinating resources, and facilitating interactions between commercial vendors, the Foundation, and the FreeBSD community.

                                                                                                                                                                                          • The Foundation also planned various future activities, visits of upcoming conferences, and finding new ways to support and engage the community.
                                                                                                                                                                                          • The Foundation now has interns in the form of co-op students from the University of Waterloo, Canada. This is described further in the May 2017 Development Projects Update. Both students (Siva and Charlie) were also the conference, helping out at the Foundation table, demonstrating the tinderbox dashboard. Follow the detailed instructions to build one of your own.
                                                                                                                                                                                          • The Foundation put out a call for Project Proposal Solicitation for 2017. If you think you have a good proposal for work relating to any of the major subsystems or infrastructure for FreeBSD, we’d be happy to review it.
                                                                                                                                                                                          • Don’t miss the deadlines for travel grants to some of the upcoming conferences. You can find the necessary forms and deadlines at the Travel Grant page on the Foundation website.

                                                                                                                                                                                          • Pictures from the Goat BoF can be found on Keltia.net

                                                                                                                                                                                          • Overlapping with the GoatBoF, members of the FreeBSD Journal editorial board met in a conference room in the Novotel to plan the upcoming issues. Topics were found, authors identified, and new content was discussed to appeal to even more readers. Check out the FreeBSD Journal website and subscribe if you like to support the Foundation in that way.

                                                                                                                                                                                          • FreeBSD Devsummit Day 1 & 2
                                                                                                                                                                                            • The first day of the Devsummit began with introductory slides by Gordon Tetlow, who organized the devsummit very well.
                                                                                                                                                                                            • Benno Rice of the FreeBSD core team presented the work done on the new Code of Conduct, which will become effective soon. A round of Q&A followed, with positive feedback from the other devsummit attendees supporting the new CoC.
                                                                                                                                                                                            • After that, Allan Jude joined to talk about the new FreeBSD Community Proposal (FCP) process. Modelled after IETF RFCs, Joyent RFDs, and Python PEP, it is a new way for the project to reach consensus on the design or implementation of new features or processes. The FCP repo contains FCP#0 that describes the process, and a template for writing a proposal.
                                                                                                                                                                                            • Then, the entire core team (except John Baldwin, who could not make it this year) and core secretary held a core Q&A session, Answering questions, gathering feedback and suggestions.
                                                                                                                                                                                            • After the coffee break, we had a presentation about Intel’s QAT integration in FreeBSD.
                                                                                                                                                                                            • When the lunch was over, people spread out into working groups about BearSSL, Transport (TCP/IP), and OpenZFS.
                                                                                                                                                                                            • OpenZFS working group:
                                                                                                                                                                                              • Matt Ahrens lead the group, and spent most of the first session providing a status update about what features have been recently committed, are out for review, on the horizon, or in the design phase.
                                                                                                                                                                                              • Existing Features
                                                                                                                                                                                                • Compressed ARC
                                                                                                                                                                                                • Compressed Send/Recv
                                                                                                                                                                                                • Recently Upstreamed
                                                                                                                                                                                                • A recent commit improved RAID-Z write speeds by declaring writes to padding blocks to be optional, and to always write them if they can be aggregated with the next write. Mostly impacts large record sizes.
                                                                                                                                                                                                • ABD (ARC buffer scatter/gather)
                                                                                                                                                                                                • Upstreaming In Progress
                                                                                                                                                                                                  • Native Encryption
                                                                                                                                                                                                  • Channel Programs
                                                                                                                                                                                                  • Device Removal (Mirrors and Stripes)
                                                                                                                                                                                                  • Redacted Send/recv
                                                                                                                                                                                                  • Native TRIM Support (FreeBSD has its own, but this is better and applies to all ZFS implementations)
                                                                                                                                                                                                  • Faster (mostly sequential) scrub/resilver
                                                                                                                                                                                                  • DRAID (A great deal of time was spent explaining how this works, with diagrams on the chalk board)
                                                                                                                                                                                                  • vdev metadata classes (store metadata on SSDs with data is on HDDs, or similar setups. Could also be modified to do dedup to SSD)
                                                                                                                                                                                                  • Multi-mount protection (“safe import”, for dual-headed storage shelves)
                                                                                                                                                                                                  • zpool checkpoint (rollback an entire pool, including zfs rename and zfs destroy)
                                                                                                                                                                                                  • Further Out
                                                                                                                                                                                                    • Import improvements
                                                                                                                                                                                                    • Import with missing top-level vdevs (some blocks unreadable, but might let you get some data)
                                                                                                                                                                                                    • Improved allocator performance -- vdev spacemap log
                                                                                                                                                                                                    • ZIL performance
                                                                                                                                                                                                    • Persistent L2ARC
                                                                                                                                                                                                    • ZSTD Compression
                                                                                                                                                                                                    • Day 2
                                                                                                                                                                                                      • Day two started with the Have/Want/Need session for FreeBSD 12.0. A number of features that various people have or are in the process of building, were discussed with an eye towards upstreaming them. Features we want to have in time for 12.0 (early 2019) were also discussed.
                                                                                                                                                                                                      • After the break was the Vendor summit, which continued the discussion of how FreeBSD and its vendors can work together to make a better operating system, and better products based on it
                                                                                                                                                                                                      • After lunch, the group broke up into various working groups: Testing/CI, Containers, Hardening UFS, and GELI Improvements
                                                                                                                                                                                                      • Allan lead the GELI Improvements session. The main thrust of the discussions was fixing an outstanding bug in GELI when using both key slots with passphrases. To solve this, and make GELI more extensible, the metadata format will be extended to allow it to store more than 512 bytes of data (currently 511 bytes are used).
                                                                                                                                                                                                      • The new format will allow arbitrarily large metadata, defined at creation time by selecting the number of user key slots desired.
                                                                                                                                                                                                      • The new extended metadata format will contain mostly the same fields, except the userkey will no longer be a byte array of IV-key, Data-key, HMAC, but a struct that will contain all data about that key
                                                                                                                                                                                                      • This new format will store the number of pkcs5v2 iterations per key, instead of only having a single location to store this number for all keys (the source of the original bug)
                                                                                                                                                                                                      • A new set of flags per key, to control some aspects of the key (does it require a keyfile, etc), as well as possibly the role of the key.
                                                                                                                                                                                                      • An auxdata field related to the flags, this would allow a specific key with a specific flag set, to boot a different partition, rather than decrypt the main partition.
                                                                                                                                                                                                      • A URI to external key material is also stored per key, allowing GELI to uniquely identify the correct data to load to be able to use a specific decryption key
                                                                                                                                                                                                      • And the three original parts of the key are stored in separate fields now. The HMAC also has a type field, allowing for a different HMAC algorithm to be used in the future.
                                                                                                                                                                                                      • The main metadata is also extended to include a field to store the number of user keys, and to provide an overall HMAC of the metadata, so that it can be verified using the master key (provide any of the user keys)
                                                                                                                                                                                                      • Other topics discussed:

                                                                                                                                                                                                        • Ken Merry presented sedutil, a tool for managing Self Encrypting Drives, as may be required by certain governments and other specific use cases.
                                                                                                                                                                                                        • Creating a deniable version of GELI, where the metadata is also encrypted
                                                                                                                                                                                                        • The work to implemented GELI in the UEFI loader was discussed, and a number of developers volunteered to review and test the code
                                                                                                                                                                                                        • Following the end of the Dev Summit, the “Newcomers orientation and mentorship” session was run by Michael W. Lucas, which attempts to pair up first time attendees with oldtimers, to make sure they always know a few people they can ask if they have questions, or if they need help getting introduced to the right people.

                                                                                                                                                                                                        • News Roundup
                                                                                                                                                                                                          Conference Day 1
                                                                                                                                                                                                          • The conference opened with some short remarks from Dan Langille, and then the opening keynote by Dr Michael Geist, a law professor at the University of Ottawa where he holds the Canada Research Chair in Internet and E-commerce Law. The keynote focused on what some of the currently issues are, and how the technical community needs to get involved at all levels. In Canada especially, contacting your representatives is quite effective, and when it does not happen, they only hear the other side of the story, and often end up spouting talking points from lobbyists as if they were facts.
                                                                                                                                                                                                          • The question period for the keynote ran well overtime because of the number of good questions the discussion raised, including how do we fight back against large telcos with teams of lawyers and piles of money.
                                                                                                                                                                                                          • Then the four tracks of talks started up for the day
                                                                                                                                                                                                          • The day wrapped up with the Work In Progress (WIP) session.
                                                                                                                                                                                                            • Allan Jude presented work on ZSTD compression in ZFS
                                                                                                                                                                                                            • Drew Gallatin presented about work at Netflix on larger mbufs, to avoid the need for chaining and to allow more data to be pushed at once. Results in an 8% CPU time reduction when pushing 90 gbps of TLS encrypted traffic
                                                                                                                                                                                                            • Dan Langille presented about letsencrypt (the acme.sh tool specifically), and bacula
                                                                                                                                                                                                            • Samy Al Bahra presented about Concurrency Kit
                                                                                                                                                                                                            • ***
                                                                                                                                                                                                              Conference Day 2
                                                                                                                                                                                                              • Because Dan is a merciful soul, BSDCan starts an hour later on the second day
                                                                                                                                                                                                              • Another great round of talks and BoF sessions over lunch
                                                                                                                                                                                                              • The hallway track was great as always, and I spent most of the afternoon just talking with people
                                                                                                                                                                                                              • Then the final set of talks started, and I was torn between all four of them
                                                                                                                                                                                                              • Then there was the auction, and the closing party
                                                                                                                                                                                                              • ***
                                                                                                                                                                                                                BSDCan 2017 Auction Swag
                                                                                                                                                                                                                • Groff Fundraiser Pins: During the conference, You could get a unique Groff pin, by donating more than the last person to either the FreeBSD or OpenBSD foundation
                                                                                                                                                                                                                • Michael W. Lucas and his wife Liz donated some interesting home made and local items to the infamous Charity Auction
                                                                                                                                                                                                                • I donated the last remaining copy of the “Canadian Edition” of “FreeBSD Mastery: Advanced ZedFS”, and a Pentium G4400 (Skylake) CPU (Supports ECC or non-ECC)
                                                                                                                                                                                                                • Peter Hessler donated his pen (Have you read “Git Commit Murder” yet?)
                                                                                                                                                                                                                • Theo De Raadt donated his autographed conference badge
                                                                                                                                                                                                                • David Maxwell donated a large print of the group photo from last years FreeBSD Developers Summit, which was purchased by Allan
                                                                                                                                                                                                                • There was also a FreeBSD Dev Summit T-Shirt (with the Slogan: What is Core doing about it?) autographed by all of the attending members of core, with a forged jhb@ signature.
                                                                                                                                                                                                                • Lastly, someone wrote “I <3 FreeBSD” on a left over conference t-shirt with magic marker, and the bidding began to make OpenBSD developer Henning Brauer wear it to the closing party. The top bid was $150 by Kristof Provost, the FreeBSD pf maintainer.
                                                                                                                                                                                                                • ***
                                                                                                                                                                                                                  Henning Brauer loves FreeBSD
                                                                                                                                                                                                                  • In addition to the $150 donation that resulted in Henning wearing the I love FreeBSD t-shirt, he also took selfies with people in exchange for an additional donation of $10. A total of over $500 was raised.
                                                                                                                                                                                                                  • Michael W. Lucas
                                                                                                                                                                                                                  • Michael Dexter
                                                                                                                                                                                                                  • FreeBSD Foundation Interns + Ed Maste + Eric Joyner
                                                                                                                                                                                                                  • Pierre Ponchery
                                                                                                                                                                                                                  • Nick Danger
                                                                                                                                                                                                                  • Michael Shirk
                                                                                                                                                                                                                  • Calvin Hendryx-Parker
                                                                                                                                                                                                                  • Reyk Floeter
                                                                                                                                                                                                                  • Rod Grimes
                                                                                                                                                                                                                  • Jim Thompson
                                                                                                                                                                                                                  • Sean Chittenden and Sam Gwydir, Henning wearing Theo de Raadt’s badge
                                                                                                                                                                                                                  • David Duncan
                                                                                                                                                                                                                  • ***
                                                                                                                                                                                                                    libtrue
                                                                                                                                                                                                                    • At the hacker lounge, a joke email was sent to the FreeBSD developers list, making it look like a change to true(1)’s manpage had been committed to “document that true(1) supports libxo”
                                                                                                                                                                                                                    • While the change was not actually made, as you might expect this started a discussion about if this was really necessary.
                                                                                                                                                                                                                    • This spawned a new github repo
                                                                                                                                                                                                                    • While this all started as a joke, it then became an example of how rapid collaboration can happen, and an example of implementing a number of modern technologies in FreeBSD, including libxo (json output), and capsicum (security sandboxing)
                                                                                                                                                                                                                    • The project has an large number of open issues and enhancement suggestions, and a number of active pull requests including:
                                                                                                                                                                                                                      • Add Vagrantfile and Ansible playbooks for VM
                                                                                                                                                                                                                      • DTrace Support (Add the trueprov provider to allow tracing of true.
                                                                                                                                                                                                                      • A Code of Conduct
                                                                                                                                                                                                                      • libtrue.xyz website as a git submodule
                                                                                                                                                                                                                      • a false binary
                                                                                                                                                                                                                      • Python and Go bindings
                                                                                                                                                                                                                      • ***
                                                                                                                                                                                                                        On Conference Speaking
                                                                                                                                                                                                                        • Phase 1: Idea
                                                                                                                                                                                                                        • Until now I’ve never had to sit down and ponder what I could speak about. Over the year, I run into at least one topic I know something about that appears to be interesting to the wider public. I’m positive that’s true for almost anyone if they keep their minds open and keep looking for it.

                                                                                                                                                                                                                          • Phase 2: Call for Proposals
                                                                                                                                                                                                                          • In the end I have to come up with a good pitch that speaks to as many people as possible and with a speculative outline. Since there are always many more submissions than talk slots, this is the first critical point. There are many reasons why a proposal can be refused, so put effort into not giving the program committee any additional, that are entirely avoidable.

                                                                                                                                                                                                                            • Phase 3: Waiting for the CFP Result
                                                                                                                                                                                                                            • ...do passive research: if I see something relevant, I add it to my mind map. At this point my mind map looks atypical though: it has a lot of unordered root nodes. I just throw in everything that looks interesting and add some of my own thoughts to it. In the case of the reliability topic, I spend a lot of time to stay on top it anyway so a lot of material emerged.

                                                                                                                                                                                                                              • Phase 4: The Road to an Outline
                                                                                                                                                                                                                              • Once the talk is accepted, research intensifies. Books and articles I’ve written down for further research are read and topics extracted. In 2017, this started on January 23. But before I start writing, I get the mind map into a shape that makes sense and that will support me. This is the second critical point: I have to come up with a compelling story using the material I’ve collected. Just enumerating facts and wisdom a good talk doesn’t make. It has to have a good flow that makes sense and that keeps people engaged.

                                                                                                                                                                                                                                • Phase 5: Slides
                                                                                                                                                                                                                                • I have a very strong opinion on slides: use few, big words. Don’t make people read your slides unless it’s code samples. Otherwise they’ll be distracted from what you say. You’ll see me rarely use fonts smaller than 100pt (code ~40–60pt) which is readable from everywhere and forces me to be as brief as possible.

                                                                                                                                                                                                                                  • Phase 6: Polishing
                                                                                                                                                                                                                                  • I firmly believe that this phase makes or breaks a talk. Only by practicing again and again you’ll notice rough spots, weak transitions, and redundancies. Each iteration makes the talk a bit better both regarding the slides and my ability to present it. Each iteration adds impressions that my subconscious mind chews on and makes things fall in place and give me inspiration in unlikely moments.

                                                                                                                                                                                                                                    • Phase 7: Sneak Preview
                                                                                                                                                                                                                                    • In the past years I was blessed with the opportunity to test my talks in front of a smaller audiences. Interestingly, I’ve come to take smaller events more seriously than the big ones. If a small conference pays for my travels and gives me a prominent slot, I have both more responsibility and attention than if I paid my way to an event where I’m one of many speakers.

                                                                                                                                                                                                                                      • Phase 8: Refinement and More Polishing
                                                                                                                                                                                                                                      • The first session is always just going through all slides, reacquainting myself with my deck. Then it always takes quite a bit of willpower until I do a full practice run again: the first time always pretty brutal because I tend to forget pretty fast. On the other hand, it rather quickly comes back too. Which makes it even harder to motivate myself to start. Ideally I’d have access to a video recording from phase 7 to have a closer look at what work could be improved. But since it’s usually smaller conferences, I don’t.

                                                                                                                                                                                                                                        • Phase 9: Travel
                                                                                                                                                                                                                                        • Whenever I travel to conferences I bring everything I need for my talk and then some. To make sure I don’t forget anything essential, I have a packing list for my business trips (and vacations too – the differences are so minimal that I use a unified list). My epic packing list for business trips. I print it out the day before departure and cross stuff off as I pack. I highly recommend to anyone to emulate this since packing is a lot less stressful if you just follow a checklist.

                                                                                                                                                                                                                                          • Phase 10: Showtime!
                                                                                                                                                                                                                                          • So this is it. The moment everything else led to. People who suffer from fear of public speaking think this is the worst part. But if you scroll back you’ll realize: this is the payoff! This is what you worked toward. This is the fun, easy part. Once you stand in front of the audience, the work is done and you get to enjoy the ride.

                                                                                                                                                                                                                                            Beastie Bits
                                                                                                                                                                                                                                            • Kris and Ken Moore - TrueOS Q&A
                                                                                                                                                                                                                                            • New home for the repository conversions (NetBSD Git mirror is now on GitHub.com/NetBSD)
                                                                                                                                                                                                                                            • Tab completion in OpenBSD's ksh
                                                                                                                                                                                                                                            • pkgsrcCon July 1&2
                                                                                                                                                                                                                                            • OpenBSD 6.1 syspatch installed SP kernel on MP system
                                                                                                                                                                                                                                            • KNOXBug meeting this Friday
                                                                                                                                                                                                                                            • ***
                                                                                                                                                                                                                                              Feedback/Questions
                                                                                                                                                                                                                                              • Rob - FreeNAS Corral
                                                                                                                                                                                                                                              • Brad - ZFS snapshot strategy
                                                                                                                                                                                                                                              • Phil - ZFS Send via Snail Mail
                                                                                                                                                                                                                                              • Phillip - Network Limits for Public NTP Server

                                                                                                                                                                                                                                              • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]

                                                                                                                                                                                                                                              • 2 hr 15 min
                                                                                                                                                                                                                                              • 197: Relaying the good news

                                                                                                                                                                                                                                                We’re at BSDCan, but we have an interview with Michael W. Lucas which you don’t want to miss.

                                                                                                                                                                                                                                                This episode was brought to you by

                                                                                                                                                                                                                                                Headlines

                                                                                                                                                                                                                                                We are off to BSDCan but we have an interview and news roundup for you.

                                                                                                                                                                                                                                                Interview - Michael W. Lucas - [email protected] / @mwlauthor
                                                                                                                                                                                                                                                • Books, conferences & how these two combine
                                                                                                                                                                                                                                                • ***
                                                                                                                                                                                                                                                  News Roundup
                                                                                                                                                                                                                                                  In The Name Of Sane Email: Setting Up OpenBSD's spamd(8) With Secondary MXes In Play
                                                                                                                                                                                                                                                  • “The Grumpy BSD Guy”, Peter Hansteen is at it again, they have produced an updated version of a full recipe for OpenBSD’s spamd for your primary AND secondary mail servers
                                                                                                                                                                                                                                                  • Recipes in our field are all too often offered with little or no commentary to help the user understand the underlying principles of how a specific configuration works. To counter the trend and offer some free advice on a common configuration, here is my recipe for a sane mail setup.

                                                                                                                                                                                                                                                    Mailing lists can be fun. Most of the time the discussions on lists like openbsd-misc are useful, entertaining or both. But when your battle with spam fighting technology ends up blocking your source of information and entertainment (like in the case of the recent thread titled "spamd greylisting: false positives" - starting with this message), frustration levels can run high, and in the process it emerged that some readers out there place way too much trust in a certain site offering barely commented recipes (named after a rare chemical compound Cl-Hg-Hg-Cl).

                                                                                                                                                                                                                                                    • 4 easy steps:
                                                                                                                                                                                                                                                      • Make sure your MXes (both primary and secondary) are able to receive mail for your domains
                                                                                                                                                                                                                                                      • Set set up content filtering for all MXes, since some spambots actually speak SMTP
                                                                                                                                                                                                                                                      • Set up spamd in front of all MXes
                                                                                                                                                                                                                                                      • Set up synchronization between your spamds
                                                                                                                                                                                                                                                      • These are the basic steps. If you want to go even further, you can supplement your greylisting and publicly available blacklists with your own greytrapping, but greytrapping is by no means required.

                                                                                                                                                                                                                                                        Once you have made sure that your mail exchangers will accept mail for your domains (checking that secondaries do receive and spool mail when you stop the SMTP service on the primary), it's time to start setting up the content filtering.

                                                                                                                                                                                                                                                        • The post provides links if you need help getting the basic mail server functionality going
                                                                                                                                                                                                                                                        • At this point you will more likely than not discover that any differences in filtering setups between the hosts that accept and deliver mail will let spam through via the weakest link. Tune accordingly, or at least until you are satisfied that you have a fairly functional configuration.

                                                                                                                                                                                                                                                          As you will have read by now in the various sources I cited earlier, you need to set up rules to redirect traffic to your spamd as appropriate. Now let's take a peek at what I have running at my primary site's gateway.

                                                                                                                                                                                                                                                          • The articles provides a few different sets of rules
                                                                                                                                                                                                                                                          • The setup includes running all outgoing mail through spamd to auto-populate the whitelists, allowing replies to your emails to get through without greylisting
                                                                                                                                                                                                                                                          • At this point, you have seen how to set up two spamds, each running in front of a mail exchanger. You can choose to run with the default spamd.conf, or you can edit in your own customizations.

                                                                                                                                                                                                                                                            • There is also a link to Peter’s spamd.conf if you want to use “what works for me”
                                                                                                                                                                                                                                                            • The fourth and final required step for a spamd setup with backup mail exchangers it to set up synchronization between the spamds. The synchronization keeps your greylists in sync and transfers information on any greytrapped entries to the partner spamds. As the spamd man page explains, the synchronization options -y and -Y are command line options to spamd.

                                                                                                                                                                                                                                                              • The articles steps through the process of configuring spamd to listen for synchronization, and to send synchronization messages to its peer
                                                                                                                                                                                                                                                              • With these settings in place, you have more or less completed step four of our recipe.

                                                                                                                                                                                                                                                                • The article also shows you how to configure spamd to log to a separate log file, to make the messages easier to find and consolidate between your mail servers
                                                                                                                                                                                                                                                                • After noting the system load on your content filtering machines, restart your spamds. Then watch the system load values on the content filterers and take a note of them from time to time, say every 30 minutes or so

                                                                                                                                                                                                                                                                  Step 4) is the last required step for building a multi-MX configuration. You may want to just leave the system running for a while and watch any messages that turn up in the spamd logs or the mail exchanger's logs
                                                                                                                                                                                                                                                                  The final embellishment is to set up local greytrapping. The principle is simple: If you have one or more addresses in your domain that you know will never be valid, you add them to your list of trapping addresses
                                                                                                                                                                                                                                                                  any host that tries to deliver mail to [email protected] will be added to the local blacklist spamd-greytrap to be stuttered at for as long as it takes.
                                                                                                                                                                                                                                                                  Greytrapping can be fun, you can search for posts here tagged with the obvious keywords. To get you started, I offer up my published list of trap addresses, built mainly from logs of unsuccessful delivery attempts here, at The BSDly.net traplist page, while the raw list of trap email addresses is available here. If you want to use that list in a similar manner for your site, please do, only remember to replace the domain names with one or more that you will be receiving mail for.

                                                                                                                                                                                                                                                                  • Let us know how this affects your inbox
                                                                                                                                                                                                                                                                  • ***
                                                                                                                                                                                                                                                                    Beastie Bits
                                                                                                                                                                                                                                                                    • Status of FreeBSD’s capsicum on Linux
                                                                                                                                                                                                                                                                    • How to build a gateway, from 1979
                                                                                                                                                                                                                                                                    • Linux escapee Hamza Sheikh on “Why FreeBSD?”
                                                                                                                                                                                                                                                                    • UNIX is still as relevant as ever
                                                                                                                                                                                                                                                                    • Upcoming Summer 2017 FreeBSD Foundation Events
                                                                                                                                                                                                                                                                    • ***
                                                                                                                                                                                                                                                                      1 hr 44 min
                                                                                                                                                                                                                                                                    • 196: PostgreZFS

                                                                                                                                                                                                                                                                      This week on BSD Now, we review the EuroBSDcon schedule, we explore the mysteries of Docker on OpenBSD, and show you how to run PostgreSQL on ZFS.

                                                                                                                                                                                                                                                                      This episode was brought to you by

                                                                                                                                                                                                                                                                      Headlines
                                                                                                                                                                                                                                                                      EuroBSDcon 2017 - Talks & Schedule published
                                                                                                                                                                                                                                                                      • The EuroBSDcon website was updated with the tutorial and talk schedule for the upcoming September conference in Paris, France.
                                                                                                                                                                                                                                                                      • Tutorials on the 1st day: Kirk McKusick - An Introduction to the FreeBSD Open-Source Operating System, George Neville-Neil - DTrace for Developers, Taylor R Campbell - How to untangle your threads from a giant lock in a multiprocessor system
                                                                                                                                                                                                                                                                      • Tutorials on the 2nd day: Kirk continues his Introduction lecture, Michael Lucas - Core concepts of ZFS (half day), Benedict Reuschling - Managing BSD systems with Ansible (half day), Peter Hessler - BGP for developers and sysadmins
                                                                                                                                                                                                                                                                      • Talks include 3 keynotes (2 on the first day, beginning and end), another one at the end of the second day by Brendan Gregg
                                                                                                                                                                                                                                                                      • Good mixture of talks of the various BSD projects
                                                                                                                                                                                                                                                                      • Also, a good amount of new names and faces
                                                                                                                                                                                                                                                                      • Check out the full talk schedule.
                                                                                                                                                                                                                                                                      • Registration is not open yet, but will be soon.
                                                                                                                                                                                                                                                                      • ***
                                                                                                                                                                                                                                                                        OpenBSD on the Xiaomi Mi Air 12.5"

                                                                                                                                                                                                                                                                        The Xiaomi Mi Air 12.5" is a basic fanless 12.5" Ultrabook with good build quality and decent hardware specs, especially for the money: while it can usually be had for about $600, I got mine for $489 shipped to the US during a sale about a month ago.

                                                                                                                                                                                                                                                                        Xiaomi offers this laptop in silver and gold. They also make a 13" version but it comes with an NVidia graphics chip. Since these laptops are only sold in China, they come with a Chinese language version of Windows 10 and only one or two distributors that carry them ship to the US. Unfortunately that also means they come with practically no warranty or support.
                                                                                                                                                                                                                                                                        Hardware

                                                                                                                                                                                                                                                                        > The Mi Air 12.5" has a fanless, 6th generation (Skylake) Intel Core m3 processor, 4Gb of soldered-on RAM, and a 128Gb SATA SSD (more on that later). It has a small footprint of 11.5" wide, 8" deep, and 0.5" thick, and weighs 2.3 pounds.
                                                                                                                                                                                                                                                                        > A single USB-C port on the right-hand side is used to charge the laptop and provide USB connectivity. A USB-C ethernet adapter I tried worked fine in OpenBSD. Whether intentional or not, a particular design touch I appreciated was that the USB-C port is placed directly to the right of the power button on the keyboard, so you don't have to look or feel around for the port when plugging in the power cable.
                                                                                                                                                                                                                                                                        > A single USB 3 type-A port is also available on the right side next to the USB-C port. A full-size HDMI port and a headphone jack are on the left-hand side. It has a soldered-on Intel 8260 wireless adapter and Bluetooth. The webcam in the screen bezel attaches internally over USB.
                                                                                                                                                                                                                                                                        > The chassis is all aluminum and has sufficient rigidity in the keyboard area. The 12.5" 1920x1080 glossy IPS screen has a fairly small bezel and while its hinge is properly weighted to allow opening the lid with one hand (if you care about that kind of thing), the screen does have a bit of top-end wobble when open, especially when typing on another laptop on the same desk.
                                                                                                                                                                                                                                                                        > The keyboard has a roomy layout and a nice clicky tactile with good travel. It is backlit, but with only one backlight level. When enabled via Fn+F10 (which is handled by the EC, so no OpenBSD support required), it will automatically shut off after not typing for a short while, automatically turning back once a key is pressed.

                                                                                                                                                                                                                                                                        Upgrades

                                                                                                                                                                                                                                                                        > An interesting feature of the Mi Air is that it comes with a 128Gb SATA SSD but also includes an open PCI-e slot ready to accept an NVMe SSD.
                                                                                                                                                                                                                                                                        > I upgraded mine with a Samsung PM961 256Gb NVMe SSD (left), and while it is possible to run with both drives in at the same time, I removed the Samsung CM871a 128Gb SATA (right) drive to save power.
                                                                                                                                                                                                                                                                        > The bottom case can be removed by removing the seven visible screws, in addition to the one under the foot in the middle back of the case, which just pries off. A spudger tool is needed to release all of the plastic attachment clips along the entire edge of the bottom cover.
                                                                                                                                                                                                                                                                        > Unfortunately this upgrade proved to be quite time consuming due to the combination of the limited UEFI firmware on the Mi Air and a bug in OpenBSD.

                                                                                                                                                                                                                                                                        A Detour into UEFI Firmware Variables

                                                                                                                                                                                                                                                                        > Unlike a traditional BIOS where one can boot into a menu and configure the boot order as well as enabling and disabling options such as "USB Hard Drive", the InsydeH2O UEFI firmware on the Xiaomi Air only provides the ability to adjust the boot order of existing devices. Any change or addition of boot devices must be done from the operating system, which is not possible under OpenBSD.
                                                                                                                                                                                                                                                                        > I booted to a USB key with OpenBSD on it and manually partitioned the new NVME SSD, then rsynced all of the data over from the old drive, but the laptop would not boot to the new NVME drive, instead showing an error message that there was no bootable OS.
                                                                                                                                                                                                                                                                        > Eventually I figured out that the GPT table that OpenBSD created on the NVMe disk was wrong due to a [one-off bug in the nvme driver](https://github.com/openbsd/src/commit/dc8298f669ea2d7e18c8a8efea509eed200cb989) which was causing the GPT table to be one sector too large, causing the backup GPT table to be written in the wrong location (and other utilities under Linux to write it over the OpenBSD area). I'm guessing the UEFI firmware would fail to read the bad GPT table on the disk that the boot variable pointed to, then declare that disk as missing, and then remove any variables that pointed to that disk.

                                                                                                                                                                                                                                                                        OpenBSD Support

                                                                                                                                                                                                                                                                        > The Mi Air's soldered-on Intel 8260 wireless adapter is supported by OpenBSD's iwm driver, including 802.11n support. The Intel sound chip is recognized by the azalia driver.
                                                                                                                                                                                                                                                                        > The Synaptics touchpad is connected via I2C, but is not yet supported. I am actively hacking on my dwiic driver to make this work and the touchpad will hopefully operate as a Windows Precision Touchpad via imt so I don't have to write an entirely new Synaptics driver.
                                                                                                                                                                                                                                                                        > Unfortunately since OpenBSD's inteldrm support that is ported from Linux is lagging quite a bit behind, there is no kernel support for Skylake and Kaby Lake video chips. Xorg works at 1920x1080 through efifb so the machine is at least usable, but X is not very fast and there is a noticeable delay when doing certain redrawing operations in xterm. Screen backlight can be adjusted through my OpenBSD port of intel_backlight. Since there is no hardware graphics support, this also means that suspend and resume do not work because nothing is available to re-POST the video after resume. Having to use efifb also makes it impossible to adjust the screen gamma, so for me, I can't use redshift for comfortable night-time hacking.

                                                                                                                                                                                                                                                                        Flaws

                                                                                                                                                                                                                                                                        > Especially taking into account the cheap price of the laptop, it's hard to find faults with the design. One minor gripe is that the edges of the case along the bottom are quite sharp, so when carrying the closed laptop, it can feel uncomfortable in one's hands.
                                                                                                                                                                                                                                                                        > While all of those things could be overlooked, unfortunately there is also a critical flaw in the rollover support in the keyboard/EC on the laptop. When typing certain combinations of keys quickly, such as holding Shift and typing "NULL", one's fingers may actually hold down the Shift, N, and U keys at the same time for a very brief moment before releasing N. Normally the keyboard/EC would recognize U being pressed after N is already down and send an interrupt for the U key. Unfortunately on this laptop, particular combinations of three keys do not interrupt for the third key at all until the second key is lifted, usually causing the third key not to register at all if typed quickly.

                                                                                                                                                                                                                                                                        I've been able to reproduce this problem in OpenBSD, Linux, and Windows, with the combinations of at least Shift+N+U and Shift+D+F. Holding Shift and typing the two characters in sequence quickly enough will usually fail to register the final character. Trying the combinations without Shift, using Control or Alt instead of Shift, or other character pairs does not trigger the problem.

                                                                                                                                                                                                                                                                        This might be a problem in the firmware on the Embedded Controller, or a defect in the keyboard circuitry itself. As I mentioned at the beginning, getting technical support for this machine is difficult because it's only sold in China.

                                                                                                                                                                                                                                                                        Docker on OpenBSD 6.1-current
                                                                                                                                                                                                                                                                        • Dave Voutila writes:
                                                                                                                                                                                                                                                                        • So here’s the thing. I’m normally a macOS user…all my hardware was designed in Cupertino, built in China. But I’m restless and have been toying with trying to switch my daily machine over to a non-macOS system sort of just for fun. I find Linux messy, FreeBSD not as Apple-laptop-friendly as it should be, and Windows a non-starter. Luckily, I found a friend in Puffy. Switching some of my Apple machines over to dual-boot OpenBSD left a gaping hole in my workflow. Luckily, all the hard work the OpenBSD team has done over the last year seems to have plugged it nicely!

                                                                                                                                                                                                                                                                          OpenBSD’s hypervisor support officially made it into the 6.1 release, but after some experimentation it was rather time consuming and too fragile to get a Linux guest up and running (i.e. basically the per-requisite for Docker). Others had reported some success starting with QEMU and doing lots of tinkering, but after a wasted evening I figured I’d grab the latest OpenBSD snapshot and try what the openbsd-misc list suggested was improved Linux support in active development.

                                                                                                                                                                                                                                                                          • 10 (11) Steps to docker are provided
                                                                                                                                                                                                                                                                            • Step 0 — Install the latest OpenBSD 6.1 snapshot (-current)
                                                                                                                                                                                                                                                                            • Step 1 — Configure VMM/VMD
                                                                                                                                                                                                                                                                            • Step 2 — Grab an Alpine Linux ISO
                                                                                                                                                                                                                                                                            • Step 3 — Make a new virtual disk image
                                                                                                                                                                                                                                                                            • Step 4 — Boot Alpine’s ISO
                                                                                                                                                                                                                                                                            • Step 5 — Inhale that fresh Alpine air
                                                                                                                                                                                                                                                                            • Step 6 — Boot Alpine for Reals
                                                                                                                                                                                                                                                                            • Step 7 — Install Docker
                                                                                                                                                                                                                                                                            • Step 8 — Make a User
                                                                                                                                                                                                                                                                            • Step 9 — Ditch the Serial Console
                                                                                                                                                                                                                                                                            • Step 10 — Test out your Docker instance
                                                                                                                                                                                                                                                                            • I haven’t done it yet, but I plan on installing docker-compose via Python’s pip package manager. I prefer defining containers in the compose files.

                                                                                                                                                                                                                                                                              PostgreSQL + ZFS Best Practices and Standard Procedures
                                                                                                                                                                                                                                                                              • Slides from Sean Chittenden’s talk about PostgreSQL and ZFS at Scale 15x this spring
                                                                                                                                                                                                                                                                              • Slides start with a good overview of Postgres and ZFS, and how to use them together
                                                                                                                                                                                                                                                                              • To start, it walks through the basics of how PostgreSQL interacts with the filesystem (any filesystem)
                                                                                                                                                                                                                                                                              • Then it shows the steps to take a good backup of PostgreSQL, then how to do it even better with ZFS
                                                                                                                                                                                                                                                                              • Then an intro to ZFS, and how Copy-on-Write changes host PostgreSQL interacts with the filesystem
                                                                                                                                                                                                                                                                              • Overview of how ZFS works
                                                                                                                                                                                                                                                                              • ZFS Tuning tips: Compression, Recordsize, atime, when to use mostly ARC vs shared_buffer, plus pg_repack
                                                                                                                                                                                                                                                                              • Followed by a discussion of the reliability of SSDs, and their Bit Error Rate (BER)
                                                                                                                                                                                                                                                                              • A good SSD has a 4%/year chance of returning the wrong data. A cheap SSD 34%
                                                                                                                                                                                                                                                                              • If you put 20 SSDs in a database server, that means 58% (Good SSDs) to 99.975% (Lowest quality commercially viable SSD) chance of an error per year
                                                                                                                                                                                                                                                                              • Luckily, ZFS can detect and correct these errors
                                                                                                                                                                                                                                                                              • This applies to all storage, not just SSDs, every device fails
                                                                                                                                                                                                                                                                              • More Advice:
                                                                                                                                                                                                                                                                                • Use quotas and reservations to avoid running out of space
                                                                                                                                                                                                                                                                                • Schedule Periodic Scrubs
                                                                                                                                                                                                                                                                                • One dataset per database
                                                                                                                                                                                                                                                                                • Backups: Live demo of rm -rf’ing the database and getting it back
                                                                                                                                                                                                                                                                                • Using clones to test upgrades on real data
                                                                                                                                                                                                                                                                                • Naming Conventions:
                                                                                                                                                                                                                                                                                  • Use a short prefix not on the root filesystem (e.g. /db)
                                                                                                                                                                                                                                                                                  • Encode the PostgreSQL major version into the dataset name
                                                                                                                                                                                                                                                                                  • Give each PostgreSQL cluster its own dataset (e.g. pgdb01)
                                                                                                                                                                                                                                                                                  • Optional but recommended: one database per cluster
                                                                                                                                                                                                                                                                                  • Optional but recommended: one app per database
                                                                                                                                                                                                                                                                                  • Optional but recommended: encode environment into DB name
                                                                                                                                                                                                                                                                                  • Optional but recommended: encode environment into DB username
                                                                                                                                                                                                                                                                                  • using ZFS Replication
                                                                                                                                                                                                                                                                                  • Check out the full detailed PDF and implement a similar setup for your database needs
                                                                                                                                                                                                                                                                                  • ***
                                                                                                                                                                                                                                                                                    News Roundup
                                                                                                                                                                                                                                                                                    TrueOS Evolving Its "Stable" Release Cycle
                                                                                                                                                                                                                                                                                    • TrueOS is reformulating its Stable branch based on feedback from users. The goal is to have a “release” of the stable branch every 6 months, for those who do not want to live on the edge with the rapid updates of the full rolling release
                                                                                                                                                                                                                                                                                    • Most of the TrueOS developers work for iX Systems in their Tennessee office. Last month, the Tennessee office was moved to a different location across town. As part of the move, we need to move all our servers. We’re still getting some of the infrastructure sorted before moving the servers, so please bear with us as we continue this process.

                                                                                                                                                                                                                                                                                      As we’ve continued working on TrueOS, we’ve heard a significant portion of the community asking for a more stable “STABLE” release of TrueOS, maybe something akin to an old PC-BSD version release. In order to meet that need, we’re redefining the TrueOS STABLE branch a bit. STABLE releases are now expected to follow a six month schedule, with more testing and lots of polish between releases. This gives users the option to step back a little from the “cutting edge” of development, but still enjoy many of the benefits of the “rolling release” style and the useful elements of FreeBSD Current.
                                                                                                                                                                                                                                                                                      Critical updates like emergency patches and utility bug fixes are still expected to be pushed to STABLE on a case-by-case basis, but again with more testing and polish. This also applies to version updates of the Lumina and SysAdm projects. New, released work from those projects will be tested and added to STABLE outside the 6 month window as well.
                                                                                                                                                                                                                                                                                      The UNSTABLE branch continues to be our experimental “cutting edge” track, and users who want to follow along with our development and help us or FreeBSD test new features are still encouraged to follow the UNSTABLE track by checking that setting in their TrueOS Update Manager.

                                                                                                                                                                                                                                                                                      • With boot environments, it will be easy to switch back and forth, so you can have the best of both worlds. Use the latest bleeding edge features, but knowing you can fall back to the stable branch with just a reboot
                                                                                                                                                                                                                                                                                      • As TrueOS evolves, it is becoming clearer that one role of the system is to function as a “test platform” for FreeBSD. In order to better serve this role, TrueOS will support both OpenRC and the FreeBSD RC init systems, giving users the choice to use either system. While the full functionality isn’t quite ready for the next STABLE update, it is planned for addition after the last bit of work and testing is complete. Stay tuned for an upcoming blog post with all the details of this change, along with instructions how to switch between RC and OpenRC.

                                                                                                                                                                                                                                                                                        • This is the most important change for me. I used TrueOS as an easy way to run the latest version of -CURRENT on my laptop, to use it as a user, but also to do development. When TrueOS deviates from FreeBSD too much, it lessens the power of my expertise, and complicates development and debugging.
                                                                                                                                                                                                                                                                                        • Being able to switch back to RC, even if it takes another minute to boot, will bring TrueOS back to being FreeBSD + GUI and more by default, instead of a science project.
                                                                                                                                                                                                                                                                                        • We need both of those things, so having the option, while more work for the TrueOS team, I think will be better for the entire community
                                                                                                                                                                                                                                                                                        • ***
                                                                                                                                                                                                                                                                                          Logical Domains on SunFire T2000 with OpenBSD/sparc64

                                                                                                                                                                                                                                                                                          A couple of years ago, I picked up a Sun Fire T2000. This is a 2U rack mount server. Mine came with four 146GB SAS drives, a 32-core UltraSPARC T1 CPU and 32GB of RAM.

                                                                                                                                                                                                                                                                                          Sun Microsystems incorporated Logical Domains (LDOMs) on this class of hardware. You don't often need 32 threads and 32GB of RAM in a single server. LDOMs are a kind of virtualization technology that's a bit closer to bare metal than vmm, Hyper-V, VirtualBox or even Xen. It works a bit like Xen, though. You can allocate processor, memory, storage and other resources to virtual servers on-board, with a blend of firmware that supports the hardware allocation, and some software in userland (on the so-called primary or control domain, similar to Xen DomU) to control it.
                                                                                                                                                                                                                                                                                          LDOMs are similar to what IBM calls Logical Partitions (LPARs) on its Mainframe and POWER series computers. My day job from 2006-2010 involved working with both of these virtualization technologies, and I've kind of missed it.
                                                                                                                                                                                                                                                                                          While upgrading OpenBSD to 6.1 on my T2000, I decided to delve into LDOM support under OpenBSD. This was pretty easy to do, but let's walk through it

                                                                                                                                                                                                                                                                                          • Resources:
                                                                                                                                                                                                                                                                                            • The ldomctl(8) man page
                                                                                                                                                                                                                                                                                            • tedu@'s write-up on Flak (for a different class of server)
                                                                                                                                                                                                                                                                                            • A Google+ post by bmercer@
                                                                                                                                                                                                                                                                                            • Once you get comfortable with the fact that there's a little-tiny computer (the ALOM) powered by VXWorks inside that's acting as the management system and console (there's no screen or keyboard/mouse input), Installing OpenBSD on the base server is pretty straightforward. The serial console is an RJ-45 jack, and, yes, the ubiquitous blue-colored serial console cables you find for certain kinds of popular routers will work fine.

                                                                                                                                                                                                                                                                                              OpenBSD installs quite easily, with the same installer you find on amd64 and i386. I chose to install to /dev/sd0, the first SAS drive only, leaving the others unused. It's possible to set them up in a hardware RAID configuration using tools available only under Solaris, or use softraid(4) on OpenBSD, but I didn't do this.
                                                                                                                                                                                                                                                                                              I set up the primary LDOM to use the first ethernet port, em0. I decided I wanted to bridge the logical domains to the second ethernet port. You could also use a bridge and vether interface, with pf and dhcpd to create a NAT environment, similar to how I networked the vmm(4) systems.
                                                                                                                                                                                                                                                                                              Create an LDOM configuration file. You can put this anywhere that's convenient. All of this stuff was in a "vm" subdirectory of my home. I called it ldom.conf:
                                                                                                                                                                                                                                                                                              domain primary {
                                                                                                                                                                                                                                                                                              vcpu 8
                                                                                                                                                                                                                                                                                              memory 8G
                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                              domain puffy {
                                                                                                                                                                                                                                                                                              vcpu 8
                                                                                                                                                                                                                                                                                              memory 4G
                                                                                                                                                                                                                                                                                              vdisk "/home/axon/vm/ldom1"
                                                                                                                                                                                                                                                                                              vnet
                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                              Make as many disk images as you want, and make as many additional domain clauses as you wish. Be mindful of system resources. I couldn't actually allocate a full 32GB of RAM across all the LDOMs

                                                                                                                                                                                                                                                                                              I eventually provisioned seven LDOMs (in addition to the primary) on the T2000, each with 3GB of RAM and 4 vcpu cores. If you get creative with use of network interfaces, virtual ethernet, bridges and pf rules, you can run a pretty complex environment on a single chassis, with services that are only exposed to other VMs, a DMZ segment, and the internal LAN.

                                                                                                                                                                                                                                                                                              • A nice tutorial, and an interesting look at an alternative platform that was ahead of its time
                                                                                                                                                                                                                                                                                              • ***
                                                                                                                                                                                                                                                                                                documentation is thoroughly hard
                                                                                                                                                                                                                                                                                                • Ted Unangst has a new post this week about documentation:
                                                                                                                                                                                                                                                                                                • Documentation is good, so therefore more documentation must be better, right? A few examples where things may have gotten out of control

                                                                                                                                                                                                                                                                                                  A fine example is the old OpenBSD install instructions. Once you’ve installed OpenBSD once or twice, the process is quite simple, but you’d never know this based on reading the instructions. Compare the files for 4.8 INSTALL and 5.8 INSTALL. Both begin with a brief intro to the project. Then 4.8 has an enormous list of mirrors, which seems fairly redundant if you’ve already found the install file. Followed by an enormous list of every supported variant of every supported device. Including a table of IO port configurations for ISA devices. Finally, after 1600 lines of introduction we get to the actual installation instructions. (Compared to line 231 for 5.8.) This includes a full page of text about how to install from tape, which nobody ever does. It took some time to recognize that all this documentation was actually an impediment to new users. Attempting to answer every possible question floods the reader with information for questions they were never planning to ask.
                                                                                                                                                                                                                                                                                                  Part of the problem is how the information is organized. Theoretically it makes sense to list supported hardware before instructions. After all, you can’t install anything if it’s not supported, right? I’m sure that was considered when the device list was originally inserted above the install instructions. But as a practical matter, consulting a device list is neither the easiest nor fastest way to determine what actually works.

                                                                                                                                                                                                                                                                                                  • In the FreeBSD docs tree, we have been doing a facelift project, trying to add ‘quick start’ sections to each chapter to let you get to the more important information first. It is also helpful to move data in the forms of lists and tables to appendices or similar, where they can easily be references, but are not blocking your way to the information you are actually hunting for
                                                                                                                                                                                                                                                                                                  • An example of nerdview signage. “They have in effect provided a sign that will tell you exactly what the question is provided you can already supply the answer.”

                                                                                                                                                                                                                                                                                                    • That is, the logical minds of technical people often decide to order information in an order that makes sense to them, rather than in the order that will be most useful to the reader
                                                                                                                                                                                                                                                                                                    • In the end, I think “copy diskimage to USB and follow prompts” is all the instructions one should need, but it’s hard to overcome the unease of actually making the jump. What if somebody is confused or uncertain? Why is this paragraph more redundant than that paragraph? (And if we delete both, are we cutting too much?)

                                                                                                                                                                                                                                                                                                      Sometimes we don’t need to delete the information. Just hide it. The instructions to upgrade to 4.8 and upgrade to 5.8 are very similar, with a few differences because every release is a little bit different. The pages look very different, however, because the not at all recommended kernel free procedure, which takes up half the page, has been hidden from view behind some javascript and only expanded on demand. A casual browser will find the page and figure the upgrade process will be easy, as opposed to some long ordeal.

                                                                                                                                                                                                                                                                                                      • This is important as well, it was my original motivation for working on the FreeBSD Handbook’s ZFS chapter. The very first section of the chapter was the custom kernel configuration required to run ZFS on i386. That scared many users away. I moved that to the very end, and started with why you might want to use ZFS. Much more approachable.
                                                                                                                                                                                                                                                                                                      • Sometimes it’s just a tiny detail that’s overspecified. The apmd manual used to explain exactly which CPU idle time thresholds were used to adjust frequency. Those parameters, and the algorithm itself, were adjusted occasionally in response to user feedback, but sometimes the man page lagged behind. The numbers are of no use to a user. They’re not adjustable without recompiling. Knowing that the frequency would be reduced at 85% idle vs 90% idle doesn’t really offer much guidance as to whether to enable auto scaling or not. Deleting this detail ensured the man page was always correct and spares the user the cognitive load of trying to solve an unnecessary math problem.

                                                                                                                                                                                                                                                                                                        • For fun:
                                                                                                                                                                                                                                                                                                        • For another humorous example, it was recently observed that the deja-dup package provides man page translations for Australia, Canada, and Great Britain. I checked, the pages are in fact not quite identical. Some contain typo fixes that didn’t propagate to other translations. Project idea: attempt to identify which country has the most users, or most fastidious users, by bug fixes to localized man pages.

                                                                                                                                                                                                                                                                                                          lldb on BeagleBone Black

                                                                                                                                                                                                                                                                                                          I reliably managed to build (lldb + clang/lld) from the svn trunk of LLVM 5.0.0 on my Beaglebone Black running the latest snapshot (May 20th) of FreeBSD 12.0-CURRENT, and the lldb is working very well, and this includes single stepping and ncurses-GUI mode, while single stepping with the latest lldb 4.0.1 from the ports does not work.

                                                                                                                                                                                                                                                                                                          In order to reliably build LLVM 5.0.0 (svn), I set up a 1 GB swap partition for the BBB on a NFSv4 share on a FreeBSD fileserver in my network - I put a howto of the procedure on my BLog: https://obsigna.net/?p=659

                                                                                                                                                                                                                                                                                                          • The prerequesites on the Beaglebone are:
                                                                                                                                                                                                                                                                                                          • # pkg install tmux
                                                                                                                                                                                                                                                                                                            # pkg install cmake
                                                                                                                                                                                                                                                                                                            # pkg install python
                                                                                                                                                                                                                                                                                                            # pkg install libxml2
                                                                                                                                                                                                                                                                                                            # pkg install swig30
                                                                                                                                                                                                                                                                                                            # pkg install ninja
                                                                                                                                                                                                                                                                                                            # pkg install subversion
                                                                                                                                                                                                                                                                                                            • On the FreeBSD fileserver:
                                                                                                                                                                                                                                                                                                            • # /path_to_the/bbb_share
                                                                                                                                                                                                                                                                                                              # svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
                                                                                                                                                                                                                                                                                                              # cd llvm/tools
                                                                                                                                                                                                                                                                                                              # svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
                                                                                                                                                                                                                                                                                                              # svn co http://llvm.org/svn/llvm-project/lld/trunk lld
                                                                                                                                                                                                                                                                                                              # svn co http://llvm.org/svn/llvm-project/lldb/trunk lldb
                                                                                                                                                                                                                                                                                                              • On the Beaglebone Black:
                                                                                                                                                                                                                                                                                                              • # mount_nfs -o noatime,readahead=4,intr,soft,nfsv4 server:/path_to_the/bbb_share /mnt
                                                                                                                                                                                                                                                                                                                # cd /mnt
                                                                                                                                                                                                                                                                                                                # mkdir build
                                                                                                                                                                                                                                                                                                                # cmake -DLLVM_TARGETS_TO_BUILD="ARM" -DCMAKE_BUILD_TYPE="MinSizeRel" \
                                                                                                                                                                                                                                                                                                                -DLLVM_PARALLEL_COMPILE_JOBS="1" -DLLVM_PARALLEL_LINK_JOBS="1" -G Ninja ..

                                                                                                                                                                                                                                                                                                                I execute the actual build command from within a tmux session, so I may disconnect during the quite long (40 h) build:

                                                                                                                                                                                                                                                                                                                # tmux new "ninja lldb install"

                                                                                                                                                                                                                                                                                                                When debugging in GUI mode using the newly build lldb 5.0.0-svn, I see only a minor issue, namely UTF8 strings are not displayed correctly. This happens in the ncurses-GUI only, and this is an ARM issue, since it does not occur on x86 machines. Perhaps this might be related to the signed/unsigned char mismatch between ARM and x86.

                                                                                                                                                                                                                                                                                                                Beastie Bits
                                                                                                                                                                                                                                                                                                                • Triangle BSD Meetup on June 27th
                                                                                                                                                                                                                                                                                                                • Support for Controller Area Networks (CAN) in NetBSD
                                                                                                                                                                                                                                                                                                                • Notes from Monday's meeting
                                                                                                                                                                                                                                                                                                                • RunBSD - A site about the BSD family of operating systems
                                                                                                                                                                                                                                                                                                                • BSDCam(bridge) 2017 Travel Grant Application Now Open
                                                                                                                                                                                                                                                                                                                • New BSDMag has been released
                                                                                                                                                                                                                                                                                                                • ***
                                                                                                                                                                                                                                                                                                                  Feedback/Questions
                                                                                                                                                                                                                                                                                                                  • Philipp - A show about byhve
                                                                                                                                                                                                                                                                                                                  • Jake - byhve Support on AMD
                                                                                                                                                                                                                                                                                                                  • CY - Pledge and Capsicum
                                                                                                                                                                                                                                                                                                                  • CY - OpenSSL relicense Issue
                                                                                                                                                                                                                                                                                                                  • Andy - Laptops
                                                                                                                                                                                                                                                                                                                  • ***
                                                                                                                                                                                                                                                                                                                    1 hr 47 min
                                                                                                                                                                                                                                                                                                                  • 195: I don’t WannaCry

                                                                                                                                                                                                                                                                                                                    A pledge of love to OpenBSD, combating ransomware like WannaCry with OpenZFS, and using PFsense to maximize your non-gigabit Internet connection

                                                                                                                                                                                                                                                                                                                    This episode was brought to you by

                                                                                                                                                                                                                                                                                                                    Headlines
                                                                                                                                                                                                                                                                                                                    ino64 project committed to FreeBSD 12-CURRENT
                                                                                                                                                                                                                                                                                                                    • The ino64 project has been completed and merged into FreeBSD 12-CURRENT
                                                                                                                                                                                                                                                                                                                    • Extend the ino_t, dev_t, nlink_t types to 64-bit ints. Modify struct dirent layout to add d_off, increase the size of d_fileno to 64-bits, increase the size of d_namlen to 16-bits, and change the required alignment. Increase struct statfs f_mntfromname[] and f_mntonname[] array length MNAMELEN to 1024

                                                                                                                                                                                                                                                                                                                      • This means the length of a mount point (MNAMELEN) has been increased from 88 byte to 1024 bytes. This allows longer ZFS dataset names and more nesting, and generally improves the usefulness of nested jails
                                                                                                                                                                                                                                                                                                                      • It also allow more than 4 billion files to be stored in a single file system (both UFS and ZFS). It also deals with a number of NFS problems, such as Amazon’s EFS (cloud NFS), which uses 64 bit IDs even with small numbers of files.
                                                                                                                                                                                                                                                                                                                      • ABI breakage is mitigated by providing compatibility using versioned symbols, ingenious use of the existing padding in structures, and by employing other tricks. Unfortunately, not everything can be fixed, especially outside the base system. For instance, third-party APIs which pass struct stat around are broken in backward and forward incompatible ways.

                                                                                                                                                                                                                                                                                                                        • A bug in poudriere that may cause some packages to not rebuild is being fixed. Many packages like perl will need to be rebuilt after this change
                                                                                                                                                                                                                                                                                                                        • Update note: strictly follow the instructions in UPDATING. Build and install the new kernel with COMPAT_FREEBSD11 option enabled, then reboot, and only then install new world.

                                                                                                                                                                                                                                                                                                                          • So you need the new GENERIC kernel with the COMPAT_FREEBSD11 option, so that your old userland will work with the new kernel, and you need to build, install, and reboot onto the new kernel before attempting to install world. The usual process of installing both and then rebooting will NOT WORK
                                                                                                                                                                                                                                                                                                                          • Credits: The 64-bit inode project, also known as ino64, started life many years ago as a project by Gleb Kurtsou (gleb). Kirk McKusick (mckusick) then picked up and updated the patch, and acted as a flag-waver. Feedback, suggestions, and discussions were carried by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles), and Rick Macklem (rmacklem). Kris Moore (kmoore) performed an initial ports investigation followed by an exp-run by Antoine Brodin (antoine). Essential and all-embracing testing was done by Peter Holm (pho). The heavy lifting of coordinating all these efforts and bringing the project to completion were done by Konstantin Belousov (kib).

                                                                                                                                                                                                                                                                                                                            Sponsored by: The FreeBSD Foundation (emaste, kib)

                                                                                                                                                                                                                                                                                                                            Why I love OpenBSD
                                                                                                                                                                                                                                                                                                                            • Jeroen Janssen writes:
                                                                                                                                                                                                                                                                                                                            • I do love open source software. Oh boy, I really do love open source software. It’s extendable, auditable, and customizable. What’s not to love?

                                                                                                                                                                                                                                                                                                                              I’m astonished by the idea that tens, hundreds, and sometimes even thousands of enthusiastic, passionate developers collaborate on an idea. Together, they make the world a better place, bit by bit.
                                                                                                                                                                                                                                                                                                                              And this leads me to one of my favorite open source projects: the 22-year-old OpenBSD operating system.
                                                                                                                                                                                                                                                                                                                              The origins of my love affair with OpenBSD
                                                                                                                                                                                                                                                                                                                              From Linux to *BSD
                                                                                                                                                                                                                                                                                                                              The advantages of OpenBSD

                                                                                                                                                                                                                                                                                                                              It’s extremely secure

                                                                                                                                                                                                                                                                                                                              It’s well documented
                                                                                                                                                                                                                                                                                                                              It’s open source
                                                                                                                                                                                                                                                                                                                              > It’s neat and clean

                                                                                                                                                                                                                                                                                                                              My take on OpenBSD

                                                                                                                                                                                                                                                                                                                              ** DO **

                                                                                                                                                                                                                                                                                                                              Combating WannaCry and Other Ransomware with OpenZFS Snapshots

                                                                                                                                                                                                                                                                                                                              Ransomware attacks that hold your data hostage using unauthorized data encryption are spreading rapidly and are particularly nefarious because they do not require any special access privileges to your data. A ransomware attack may be launched via a sophisticated software exploit as was the case with the recent “WannaCry” ransomware, but there is nothing stopping you from downloading and executing a malicious program that encrypts every file you have access to. If you fail to pay the ransom, the result will be indistinguishable from your simply deleting every file on your system. To make matters worse, ransomware authors are expanding their attacks to include just about any storage you have access to. The list is long, but includes network shares, Cloud services like DropBox, and even “shadow copies” of data that allow you to open previous versions of files.

                                                                                                                                                                                                                                                                                                                              To make matters even worse, there is little that your operating system can do to prevent you or a program you run from encrypting files with ransomware just as it can’t prevent you from deleting the files you own. Frequent backups are touted as one of the few effective strategies for recovering from ransomware attacks but it is critical that any backup be isolated from the attack to be immune from the same attack. Simply copying your files to a mounted disk on your computer or in the Cloud makes the backup vulnerable to infection by virtue of the fact that you are backing up using your regular permissions. If you can write to it, the ransomware can encrypt it. Like medical workers wearing hazmat suits for isolation when combating an epidemic, you need to isolate your backups from ransomware.
                                                                                                                                                                                                                                                                                                                              OpenZFS snapshots to the rescue
                                                                                                                                                                                                                                                                                                                              OpenZFS is the powerful file system at the heart of every storage system that iXsystems sells and of its many features, snapshots can provide fast and effective recovery from ransomware attacks at both the individual user and enterprise level as I talked about in 2015. As a copy-on-write file system, OpenZFS provides efficient and consistent snapshots of your data at any given point in time. Each snapshot only includes the precise delta of changes between any two points in time and can be cloned to provide writable copies of any previous state without losing the original copy. Snapshots also provide the basis of OpenZFS replication or backing up of your data to local and remote systems. Because an OpenZFS snapshot takes place at the block level of the file system, it is immune to any file-level encryption by ransomware that occurs over it. A carefully-planned snapshot, replication, retention, and restoration strategy can provide the low-level isolation you need to enable your storage infrastructure to quickly recover from ransomware attacks.
                                                                                                                                                                                                                                                                                                                              OpenZFS snapshots in practice
                                                                                                                                                                                                                                                                                                                              While OpenZFS is available on a number of desktop operating systems such as TrueOS and macOS, the most effective way to bring the benefits of OpenZFS snapshots to the largest number of users is with a network of iXsystems TrueNAS, FreeNAS Certified and FreeNAS Mini unified NAS and SAN storage systems. All of these can provide OpenZFS-backed SMB, NFS, AFP, and iSCSI file and block storage to the smallest workgroups up through the largest enterprises and TrueNAS offers available Fibre Channel for enterprise deployments. By sharing your data to your users using these file and block protocols, you can provide them with a storage infrastructure that can quickly recover from any ransomware attack thrown at it. To mitigate ransomware attacks against individual workstations, TrueNAS and FreeNAS can provide snapshotted storage to your VDI or virtualization solution of choice. Best of all, every iXsystems TrueNAS, FreeNAS Certified, and FreeNAS Mini system includes a consistent user interface and the ability to replicate between one another. This means that any topology of individual offices and campuses can exchange backup data to quickly mitigate ransomware attacks on your organization at all levels.
                                                                                                                                                                                                                                                                                                                              Join us for a free webinar with iXsystems Co-Founder Matt Olander and learn more about why businesses everywhere are replacing their proprietary storage platforms with TrueNAS then email us at [email protected] or call 1-855-GREP-4-IX (1-855-473-7449), or 1-408-493-4100 (outside the US) to discuss your storage needs with one of our solutions architects.

                                                                                                                                                                                                                                                                                                                              Interview - Michael W. Lucas - [email protected] / @twitter

                                                                                                                                                                                                                                                                                                                              Books, conferences, and how these two combine

                                                                                                                                                                                                                                                                                                                              • BR: Welcome back. Tell us what you’ve been up to since the last time we interviewed you regarding books and such.
                                                                                                                                                                                                                                                                                                                              • AJ: Tell us a little bit about relayd and what it can do.
                                                                                                                                                                                                                                                                                                                              • BR: What other books do you have in the pipeline?
                                                                                                                                                                                                                                                                                                                              • AJ: What are your criteria that qualifies a topic for a mastery book?
                                                                                                                                                                                                                                                                                                                              • BR: Can you tell us a little bit about these writing workshops that you attend and what happens there?
                                                                                                                                                                                                                                                                                                                              • AJ: Without spoiling too much: How did you come up with the idea for git commit murder?
                                                                                                                                                                                                                                                                                                                              • BR: Speaking of BSDCan, can you tell the first timers about what to expect in the [http://www.bsdcan.org/2017/schedule/events/890.en.html](Newcomers orientation and mentorship) session on Thursday?
                                                                                                                                                                                                                                                                                                                              • AJ: Tell us about the new WIP session at BSDCan. Who had the idea and how much input did you get thus far?
                                                                                                                                                                                                                                                                                                                              • BR: Have you ever thought about branching off into a new genre like children’s books or medieval fantasy novels?
                                                                                                                                                                                                                                                                                                                              • AJ: Is there anything else before we let you go?
                                                                                                                                                                                                                                                                                                                              • ***
                                                                                                                                                                                                                                                                                                                                News Roundup
                                                                                                                                                                                                                                                                                                                                Using LLDP on FreeBSD

                                                                                                                                                                                                                                                                                                                                LLDP, or Link Layer Discovery Protocol allows system administrators to easily map the network, eliminating the need to physically run the cables in a rack. LLDP is a protocol used to send and receive information about a neighboring device connected directly to a networking interface. It is similar to Cisco’s CDP, Foundry’s FDP, Nortel’s SONMP, etc. It is a stateless protocol, meaning that an LLDP-enabled device sends advertisements even if the other side cannot do anything with it. In this guide the installation and configuration of the LLDP daemon on FreeBSD as well as on a Cisco switch will be introduced.

                                                                                                                                                                                                                                                                                                                                If you are already familiar with Cisco’s CDP, LLDP won’t surprise you. It is built for the same purpose: to exchange device information between peers on a network. While CDP is a proprietary solution and can be used only on Cisco devices, LLDP is a standard: IEEE 802.3AB. Therefore it is implemented on many types of devices, such as switches, routers, various desktop operating systems, etc. LLDP helps a great deal in mapping the network topology, without spending hours in cabling cabinets to figure out which device is connected with which switchport. If LLDP is running on both the networking device and the server, it can show which port is connected where. Besides physical interfaces, LLDP can be used to exchange a lot more information, such as IP Address, hostname, etc.
                                                                                                                                                                                                                                                                                                                                In order to use LLDP on FreeBSD, net-mgmt/lldpd has to be installed. It can be installed from ports using portmaster: #portmaster net-mgmt/lldpd Or from packages: #pkg install net-mgmt/lldpd By default lldpd sends and receives all the information it can gather , so it is advisable to limit what we will communicate with the neighboring device.
                                                                                                                                                                                                                                                                                                                                The configuration file for lldpd is basically a list of commands as it is passed to lldpcli. Create a file named lldpd.conf under /usr/local/etc/ The following configuration gives an example of how lldpd can be configured. For a full list of options, see %man lldpcli
                                                                                                                                                                                                                                                                                                                                To check what is configured locally, run #lldpcli show chassis detail
                                                                                                                                                                                                                                                                                                                                To see the neighbors run #lldpcli show neighbors details

                                                                                                                                                                                                                                                                                                                                • Check out the rest of the article about enabling LLDP on a Cisco switch
                                                                                                                                                                                                                                                                                                                                • experiments with prepledge
                                                                                                                                                                                                                                                                                                                                  • Ted Unangst takes a crack at a system similar to the one being designed for Capsicum, Oblivious Sandboxing (See the presentation at BSDCan), where the application doesn’t even know it is in the sandbox

                                                                                                                                                                                                                                                                                                                                  • MP3 is officially dead, so I figure I should listen to my collection one last time before it vanishes entirely. The provenance of some of these files is a little suspect however, and since I know one shouldn’t open files from strangers, I’d like to take some precautions against malicious malarkey. This would be a good use for pledge, perhaps, if we can get it working.

                                                                                                                                                                                                                                                                                                                                    At the same time, an occasional feature request for pledge is the ability to specify restrictions before running a program. Given some untrusted program, wrap its execution in a pledge like environment. There are other system call sandbox mechanisms that can do this (systrace was one), but pledge is quite deliberately designed not to support this. But maybe we can bend it to our will.
                                                                                                                                                                                                                                                                                                                                    Our pledge wrapper can’t be an external program. This leaves us with the option of injecting the wrapper into the target program via LD_PRELOAD. Before main even runs, we’ll initialize what needs initializing, then lock things down with a tight pledge set. Our eventual target will be ffplay, but hopefully the design will permit some flexibility and reuse.

                                                                                                                                                                                                                                                                                                                                  • So the new code is injected to override the open syscall, and reads a list of files from an environment variable. Those files are opened and the path and file descriptor are put into a linked list, and then pledge is used to restrict further access to the file system. The replacement open call now searches just that linked list, returning the already opened file descriptors.

                                                                                                                                                                                                                                                                                                                                  • So as long as your application only tries to open files that you have preopened, it can function without modification within the sandbox. Or at least that is the goal...

                                                                                                                                                                                                                                                                                                                                  • ffplay tries to dlopen() some things, and because of the way dlopen() works, it doesn’t go via the libc open() wrapper, so it doesn’t get overridden

                                                                                                                                                                                                                                                                                                                                  • ffplay also tries to call a few ioctl’s, not allowed

                                                                                                                                                                                                                                                                                                                                  • After stubbing both of those out, it still doesn’t work and it is just getting worse

                                                                                                                                                                                                                                                                                                                                  • Ted switches to a new strategy, using ffmpeg to convert the .mp3 to a .wav file and then just cat it to /dev/audio

                                                                                                                                                                                                                                                                                                                                  • A few more stubs for ffmpeg, including access(), and adding tty access to the list of pledges, and it finally works

                                                                                                                                                                                                                                                                                                                                  • This point has been made from the early days, but I think this exercise reinforces it, that pledge works best with programs where you understand what the program is doing. A generic pledge wrapper isn’t of much use because the program is going to do something unexpected and you’re going to have a hard time wrangling it into submission.

                                                                                                                                                                                                                                                                                                                                    Software is too complex. What in the world is ffplay doing? Even if I were working with the source, how long would it take to rearrange the program into something that could be pledged? One can try using another program, but I would wager that as far as multiformat media players go, ffplay is actually on the lower end of the complexity spectrum. Most of the trouble comes from using SDL as an abstraction layer, which performs a bunch of console operations.
                                                                                                                                                                                                                                                                                                                                    On the flip side, all of this early init code is probably the right design. Once SDL finally gets its screen handle setup, we could apply pledge and sandbox the actual media decoder. That would be the right way to things.
                                                                                                                                                                                                                                                                                                                                    Is pledge too limiting? Perhaps, but that’s what I want. I could have just kept adding permissions until ffplay had full access to my X socket, but what kind of sandbox is that? I don’t want naughty MP3s scraping my screen and spying on my keystrokes. The sandbox I created had all the capabilities one needs to convert an MP3 to audible sound, but the tool I wanted to use wasn’t designed to work in that environment. And in its defense, these were new post hoc requirements. Other programs, even sed, suffer from less than ideal pledge sets as well. The best summary might be to say that pledge is designed for tomorrow’s programs, not yesterday’s (and vice versa).
                                                                                                                                                                                                                                                                                                                                    There were a few things I could have done better. In particular, I gave up getting audio to work, even though there’s a nice description of how to work with pledge in the sio_open manual. Alas, even going back and with a bit more effort I still haven’t succeeded. The requirements to use libsndio are more permissive than I might prefer.

                                                                                                                                                                                                                                                                                                                                    How I Maximized the Speed of My Non-Gigabit Internet Connection
                                                                                                                                                                                                                                                                                                                                    • We have a new post from Brennen Smith, who is the Lead Systems Engineer at Ookla, the company that runs Speedtest.net, explaining how he used pfSense to maximize his internet connection
                                                                                                                                                                                                                                                                                                                                    • I spend my time wrangling servers and internet infrastructure. My daily goals range from designing high performance applications supporting millions of users and testing the fastest internet connections in the world, to squeezing microseconds from our stack —so at home, I strive to make sure that my personal internet performance is running as fast as possible.

                                                                                                                                                                                                                                                                                                                                      I live in an area with a DOCSIS ISP that does not provide symmetrical gigabit internet — my download and upload speeds are not equal. Instead, I have an asymmetrical plan with 200 Mbps download and 10 Mbps upload — this nuance considerably impacted my network design because asymmetrical service can more easily lead to bufferbloat.
                                                                                                                                                                                                                                                                                                                                      We will cover bufferbloat in a later article, but in a nutshell, it’s an issue that arises when an upstream network device’s buffers are saturated during an upload. This causes immense network congestion, latency to rise above 2,000 ms., and overall poor quality of internet. The solution is to shape the outbound traffic to a speed just under the sending maximum of the upstream device, so that its buffers don’t fill up. My ISP is notorious for having bufferbloat issues due to the low upload performance, and it’s an issue prevalent even on their provided routers.

                                                                                                                                                                                                                                                                                                                                      • They walk through a list of router devices you might consider, and what speeds they are capable of handling, but ultimately ended up using a generic low power x86 machine running pfSense 2.3
                                                                                                                                                                                                                                                                                                                                      • In my research and testing, I also evaluated IPCop, VyOS, OPNSense, Sophos UTM, RouterOS, OpenWRT x86, and Alpine Linux to serve as the base operating system, but none were as well supported and full featured as PFSense.

                                                                                                                                                                                                                                                                                                                                        • The main setting to look at is the traffic shaping of uploads, to keep the pipe from getting saturated and having a large buffer build up in the modem and further upstream. This build up is what increases the latency of the connection
                                                                                                                                                                                                                                                                                                                                        • As with any experiment, any conclusions need to be backed with data. To validate the network was performing smoothly under heavy load, I performed the following experiment:

                                                                                                                                                                                                                                                                                                                                          • Ran a ping6 against speedtest.net to measure latency.
                                                                                                                                                                                                                                                                                                                                          • Turned off QoS to simulate a “normal router”.
                                                                                                                                                                                                                                                                                                                                          • Started multiple simultaneous outbound TCP and UDP streams to saturate my outbound link.
                                                                                                                                                                                                                                                                                                                                          • Turned on QoS to the above settings and repeated steps 2 and 3.
                                                                                                                                                                                                                                                                                                                                          • As you can see from the plot below, without QoS, my connection latency increased by ~1,235%. However with QoS enabled, the connection stayed stable during the upload and I wasn’t able to determine a statistically significant delta.

                                                                                                                                                                                                                                                                                                                                            That’s how I maximized the speed on my non-gigabit internet connection. What have you done with your network?

                                                                                                                                                                                                                                                                                                                                            FreeBSD on 11″ MacBook Air
                                                                                                                                                                                                                                                                                                                                            • Sevan Janiyan writes in his tech blog about his experiences running FreeBSD on an 11’’ MacBook Air
                                                                                                                                                                                                                                                                                                                                            • This tiny machine has been with me for a few years now, It has mostly run OS X though I have tried OpenBSD on it. Besides the screen resolution I’m still really happy with it, hardware wise. Software wise, not so much. I use an external disk containing a zpool with my data on it. Among this data are several source trees. CVS on a ZFS filesystem on OS X is painfully slow. I dislike that builds running inside Terminal.app are slow at the expense of a responsive UI. The system seems fragile, at the slightest push the machine will either hang or become unresponsive. Buggy serial drivers which do not implement the break signal and cause instability are frustrating.

                                                                                                                                                                                                                                                                                                                                              Last week whilst working on Rump kernel builds I introduced some new build issues in the process of fixing others, I needed to pick up new changes from CVS by updating my copy of the source tree and run builds to test if issues were still present.
                                                                                                                                                                                                                                                                                                                                              I was let down on both counts, it took ages to update source and in the process of cross compiling a NetBSD/evbmips64-el release, the system locked hard. That was it, time to look what was possible elsewhere. While I have been using OS X for many years, I’m not tied to anything exclusive on it, maybe tweetbot, perhaps, but that’s it.
                                                                                                                                                                                                                                                                                                                                              On the BSDnow podcast they’ve been covering changes coming in to TrueOS (formerly PC-BSD – a desktop focused distro based on FreeBSD), their experiments seemed interesting, the project now tracks FreeBSD-CURRENT, they’ve replaced rcng with OpenRC as the init system and it comes with a pre-configured desktop environment, using their own window manager (Lumina). Booting the USB flash image it made it to X11 without any issue. The dock has a widget which states the detected features, no wifi (Broadcom), sound card detected and screen resolution set to 1366×768. I planned to give it a try on the weekend. Friday, I made backups and wiped the system. TrueOS installed without issue, after a short while I had a working desktop, resuming from sleep worked out of the box. I didn’t spend long testing TrueOS, switching out NetBSD-HEAD only to realise that I really need ZFS so while I was testing things out, might as well give stock FreeBSD 11-STABLE a try (TrueOS was based on -CURRENT).
                                                                                                                                                                                                                                                                                                                                              Turns out sleep doesn’t work yet but sound does work out of the box and with a few invocations of pkg(8) I had xorg, dwm, firefox, CVS and virtuabox-ose installed from binary packages. VirtualBox seems to cause the system to panic (bug 219276) but I should be able to survive without my virtual machines over the next few days as I settle in. I’m considering ditching VirtualBox and converting the vdi files to raw images so that they can be written to a new zvol for use with bhyve. As my default keyboard layout is Dvorak, OS X set the EFI settings to this layout. The first time I installed FreeBSD 11-STABLE, I opted for full disk encryption but ran into this odd issue where on boot the keyboard layout was Dvorak and password was accepted, the system would boot and as it went to mount the various filesystems it would switch back to QWERTY. I tried entering my password with both layout but wasn’t able to progress any further, no bug report yet as I haven’t ruled myself out as the problem.
                                                                                                                                                                                                                                                                                                                                              Thunderbolt gigabit adapter –bge(4) and DVI adapter both worked on FreeBSD though the gigabit adapter needs to be plugged in at boot to be detected. The trackpad bind to wsp(4), left, right and middle clicks are available through single, double and tripple finger tap. Sound card binds to snd_hda(4) and works out of the box.
                                                                                                                                                                                                                                                                                                                                              For wifi I’m using a urtw(4) Alfa adapter which is a bit on the large side but works very reliably. A copy of the dmesg is here.

                                                                                                                                                                                                                                                                                                                                              Beastie Bits
                                                                                                                                                                                                                                                                                                                                              • OPNsense - call-for-testing for SafeStack
                                                                                                                                                                                                                                                                                                                                              • BSD 4.4: cat
                                                                                                                                                                                                                                                                                                                                              • Continuous Unix commit history from 1970 until today
                                                                                                                                                                                                                                                                                                                                              • Update on Unix Architecture Evolution Diagrams
                                                                                                                                                                                                                                                                                                                                              • “Relayd and Httpd Mastery” is out!
                                                                                                                                                                                                                                                                                                                                              • Triangle BSD User Group Meeting -- libxo
                                                                                                                                                                                                                                                                                                                                              • ***
                                                                                                                                                                                                                                                                                                                                                Feedback/Questions
                                                                                                                                                                                                                                                                                                                                                • Carlos - ASUS Tinkerboard
                                                                                                                                                                                                                                                                                                                                                • James - Firewall question
                                                                                                                                                                                                                                                                                                                                                • Adam - ZFS books
                                                                                                                                                                                                                                                                                                                                                • David - Managing zvols
                                                                                                                                                                                                                                                                                                                                                • ***
                                                                                                                                                                                                                                                                                                                                                  1 hr 16 min
                                                                                                                                                                                                                                                                                                                                                • 194: Daemonic plans

                                                                                                                                                                                                                                                                                                                                                  This week on BSD Now we cover the latest FreeBSD Status Report, a plan for Open Source software development, centrally managing bhyve with Ansible, libvirt, and pkg-ssh, and a whole lot more.

                                                                                                                                                                                                                                                                                                                                                  This episode was brought to you by

                                                                                                                                                                                                                                                                                                                                                  Headlines
                                                                                                                                                                                                                                                                                                                                                  FreeBSD Project Status Report (January to March 2017)

                                                                                                                                                                                                                                                                                                                                                  While a few of these projects indicate they are a "plan B" or an "attempt III", many are still hewing to their original plans, and all have produced impressive results. Please enjoy this vibrant collection of reports, covering the first quarter of 2017.

                                                                                                                                                                                                                                                                                                                                                  • The quarterly report opens with notes from Core, The FreeBSD Foundation, the Ports team, and Release Engineering
                                                                                                                                                                                                                                                                                                                                                  • On the project front, the Ceph on FreeBSD project had made considerable advances, and is now usable as the net/ceph-devel port via the ceph-fuse module. Eventually they hope to have a kernel RADOS block device driver, so fuse is not required
                                                                                                                                                                                                                                                                                                                                                  • CloudABI update, including news that the Bitcoin reference implementation is working on a port to CloudABI
                                                                                                                                                                                                                                                                                                                                                  • eMMC Flash and SD card updates, allowing higher speeds (max speed changes from ~40 to ~80 MB/sec). As well, the MMC Stack can now also be backed by the CAM framework.
                                                                                                                                                                                                                                                                                                                                                  • Improvements to the Linuxulator
                                                                                                                                                                                                                                                                                                                                                  • More detail on the pNFS Server plan B that we discussed in a previous week
                                                                                                                                                                                                                                                                                                                                                  • Snow B.V. is sponsoring a dutch translation of the FreeBSD Handbook using the new .po system
                                                                                                                                                                                                                                                                                                                                                  • ***
                                                                                                                                                                                                                                                                                                                                                    A plan for open source software maintainers
                                                                                                                                                                                                                                                                                                                                                    • Colin Percival describes in his blog “a plan for open source software maintainers”:
                                                                                                                                                                                                                                                                                                                                                    • I've been writing open source software for about 15 years now; while I'm still wet behind the ears compared to FreeBSD greybeards like Kirk McKusick and Poul-Henning Kamp, I've been around for long enough to start noticing some patterns. In particular:

                                                                                                                                                                                                                                                                                                                                                      Free software is expensive. Software is expensive to begin with; but good quality open source software tends to be written by people who are recognized as experts in their fields (partly thanks to that very software) and can demand commensurate salaries.
                                                                                                                                                                                                                                                                                                                                                      While that expensive developer time is donated (either by the developers themselves or by their employers), this influences what their time is used for: Individual developers like doing things which are fun or high-status, while companies usually pay developers to work specifically on the features those companies need. Maintaining existing code is important, but it is neither fun nor high-status; and it tends to get underweighted by companies as well, since maintenance is inherently unlikely to be the most urgent issue at any given time.
                                                                                                                                                                                                                                                                                                                                                      Open source software is largely a "throw code over the fence and walk away" exercise. Over the past 15 years I've written freebsd-update, bsdiff, portsnap, scrypt, spiped, and kivaloo, and done a lot of work on the FreeBSD/EC2 platform. Of these, I know bsdiff and scrypt are very widely used and I suspect that kivaloo is not; but beyond that I have very little knowledge of how widely or where my work is being used. Anecdotally it seems that other developers are in similar positions: At conferences I've heard variations on "you're using my code? Wow, that's awesome; I had no idea" many times.
                                                                                                                                                                                                                                                                                                                                                      I have even less knowledge of what people are doing with my work or what problems or limitations they're running into. Occasionally I get bug reports or feature requests; but I know I only hear from a very small proportion of the users of my work. I have a long list of feature ideas which are sitting in limbo simply because I don't know if anyone would ever use them — I suspect the answer is yes, but I'm not going to spend time implementing these until I have some confirmation of that.
                                                                                                                                                                                                                                                                                                                                                      A lot of mid-size companies would like to be able to pay for support for the software they're using, but can't find anyone to provide it. For larger companies, it's often easier — they can simply hire the author of the software (and many developers who do ongoing maintenance work on open source software were in fact hired for this sort of "in-house expertise" role) — but there's very little available for a company which needs a few minutes per month of expertise. In many cases, the best support they can find is sending an email to the developer of the software they're using and not paying anything at all — we've all received "can you help me figure out how to use this" emails, and most of us are happy to help when we have time — but relying on developer generosity is not a good long-term solution.
                                                                                                                                                                                                                                                                                                                                                      Every few months, I receive email from people asking if there's any way for them to support my open source software contributions. (Usually I encourage them to donate to the FreeBSD Foundation.) Conversely, there are developers whose work I would like to support (e.g., people working on FreeBSD wifi and video drivers), but there isn't any straightforward way to do this. Patreon has demonstrated that there are a lot of people willing to pay to support what they see as worthwhile work, even if they don't get anything directly in exchange for their patronage.

                                                                                                                                                                                                                                                                                                                                                      It seems to me that this is a case where problems are in fact solutions to other problems. To wit:

                                                                                                                                                                                                                                                                                                                                                      Users of open source software want to be able to get help with their use cases; developers of open source software want to know how people are using their code.
                                                                                                                                                                                                                                                                                                                                                      Users of open source software want to support the the work they use; developers of open source software want to know which projects users care about.
                                                                                                                                                                                                                                                                                                                                                      Users of open source software want specific improvements; developers of open source software may be interested in making those specific changes, but don't want to spend the time until they know someone would use them.
                                                                                                                                                                                                                                                                                                                                                      Users of open source software have money; developers of open source software get day jobs writing other code because nobody is paying them to maintain their open source software.

                                                                                                                                                                                                                                                                                                                                                      I'd like to see this situation get fixed. As I envision it, a solution would look something like a cross between Patreon and Bugzilla: Users would be able sign up to "support" projects of their choosing, with a number of dollars per month (possibly arbitrary amounts, possibly specified tiers; maybe including $0/month), and would be able to open issues. These could be private (e.g., for "technical support" requests) or public (e.g., for bugs and feature requests); users would be able to indicate their interest in public issues created by other users. Developers would get to see the open issues, along with a nominal "value" computed based on allocating the incoming dollars of "support contracts" across the issues each user has expressed an interest in, allowing them to focus on issues with higher impact.

                                                                                                                                                                                                                                                                                                                                                      • He poses three questions to users about whether or not people (users and software developers alike) would be interested in this and whether payment (giving and receiving, respectively) is interesting
                                                                                                                                                                                                                                                                                                                                                      • Check out the comments (and those on [https://news.ycombinator.com/item?id=14313804](reddit.com)) as well for some suggestions and discussion on the topic
                                                                                                                                                                                                                                                                                                                                                      • ***
                                                                                                                                                                                                                                                                                                                                                        OpenBSD vmm hypervisor: Part 2
                                                                                                                                                                                                                                                                                                                                                        • We asked for people to write up their experience using OpenBSD’s VMM. This blog post is just that
                                                                                                                                                                                                                                                                                                                                                        • This is going to be a (likely long-running, infrequently-appended) series of posts as I poke around in vmm. A few months ago, I demonstrated some basic use of the vmm hypervisor as it existed in OpenBSD 6.0-CURRENT around late October, 2016. We'll call that video Part 1.

                                                                                                                                                                                                                                                                                                                                                          Quite a bit of development was done on vmm before 6.1-RELEASE, and it's worth noting that some new features made their way in. Work continues, of course, and I can only imagine the hypervisor technology will mature plenty for the next release. As it stands, this is the first release of OpenBSD with a native hypervisor shipped in the base install, and that's exciting news in and of itself
                                                                                                                                                                                                                                                                                                                                                          To get our virtual machines onto the network, we have to spend some time setting up a virtual ethernet interface. We'll run a DHCP server on that, and it'll be the default route for our virtual machines. We'll keep all the VMs on a private network segment, and use NAT to allow them to get to the network. There is a way to directly bridge VMs to the network in some situations, but I won't be covering that today.
                                                                                                                                                                                                                                                                                                                                                          Create an empty disk image for your new VM. I'd recommend 1.5GB to play with at first. You can do this without doas or root if you want your user account to be able to start the VM later. I made a "vmm" directory inside my home directory to store VM disk images in. You might have a different partition you wish to store these large files in.
                                                                                                                                                                                                                                                                                                                                                          Boot up a brand new vm instance. You'll have to do this as root or with doas. You can download a -CURRENT install kernel/ramdisk (bsd.rd) from an OpenBSD mirror, or you can simply use the one that's on your existing system (/bsd.rd) like I'll do here.
                                                                                                                                                                                                                                                                                                                                                          The command will start a VM named "test.vm", display the console at startup, use /bsd.rd (from our host environment) as the boot image, allocate 256MB of memory, attach the first network interface to the switch called "local" we defined earlier in /etc/vm.conf, and use the test image we just created as the first disk drive.
                                                                                                                                                                                                                                                                                                                                                          Now that the VM disk image file has a full installation of OpenBSD on it, build a VM configuration around it by adding the below block of configuration (with modifications as needed for owner, path and lladdr) to /etc/vm.conf
                                                                                                                                                                                                                                                                                                                                                          I've noticed that VMs with much less than 256MB of RAM allocated tend to be a little unstable for me. You'll also note that in the "interface" clause, I hard-coded the lladdr that was generated for it earlier. By specifying "disable" in vm.conf, the VM will show up in a stopped state that the owner of the VM (that's you!) can manually start without root access.

                                                                                                                                                                                                                                                                                                                                                          • Let us know how VMM works for you
                                                                                                                                                                                                                                                                                                                                                          • ***
                                                                                                                                                                                                                                                                                                                                                            News Roundup
                                                                                                                                                                                                                                                                                                                                                            openbsd changes of note 621
                                                                                                                                                                                                                                                                                                                                                            • More stuff, more fun.
                                                                                                                                                                                                                                                                                                                                                            • Fix script to not perform tty operations on things that aren’t ttys. Detected by pledge.
                                                                                                                                                                                                                                                                                                                                                            • Merge libdrm 2.4.79.
                                                                                                                                                                                                                                                                                                                                                            • After a forced unmount, also unmount any filesystems below that mount point.
                                                                                                                                                                                                                                                                                                                                                            • Flip previously warm pages in the buffer cache to memory above the DMA region if uvm tells us it is available. Pages are not automatically promoted to upper memory. Instead it’s used as additional memory only for what the cache considers long term buffers. I/O still requires DMA memory, so writing to a buffer will pull it back down.
                                                                                                                                                                                                                                                                                                                                                            • Makefile support for systems with both gcc and clang. Make i386 and amd64 so.
                                                                                                                                                                                                                                                                                                                                                            • Take a more radical approach to disabling colours in clang.
                                                                                                                                                                                                                                                                                                                                                            • When the data buffered for write in tmux exceeds a limit, discard it and redraw. Helps when a fast process is running inside tmux running inside a slow terminal.
                                                                                                                                                                                                                                                                                                                                                            • Add a port of witness(4) lock validation tool from FreeBSD. Use it with mplock, rwlock, and mutex in the kernel.
                                                                                                                                                                                                                                                                                                                                                            • Properly save and restore FPU context in vmm.
                                                                                                                                                                                                                                                                                                                                                            • Remove KGDB. It neither compiles nor works.
                                                                                                                                                                                                                                                                                                                                                            • Add a constant time AES implementation, from BearSSL.
                                                                                                                                                                                                                                                                                                                                                            • Remove SSHv1 from ssh.
                                                                                                                                                                                                                                                                                                                                                            • and more...
                                                                                                                                                                                                                                                                                                                                                            • ***
                                                                                                                                                                                                                                                                                                                                                              Digging into BSD's choice of Unix group for new directories and files

                                                                                                                                                                                                                                                                                                                                                              I have to eat some humble pie here. In comments on my entry on an interesting chmod failure, Greg A. Woods pointed out that FreeBSD's behavior of creating everything inside a directory with the group of the directory is actually traditional BSD behavior (it dates all the way back to the 1980s), not some odd new invention by FreeBSD. As traditional behavior it makes sense that it's explicitly allowed by the standards, but I've also come to think that it makes sense in context and in general. To see this, we need some background about the problem facing BSD.

                                                                                                                                                                                                                                                                                                                                                              In the beginning, two things were true in Unix: there was no mkdir() system call, and processes could only be in one group at a time. With processes being in only one group, the choice of the group for a newly created filesystem object was easy; it was your current group. This was felt to be sufficiently obvious behavior that the V7 creat(2) manpage doesn't even mention it.
                                                                                                                                                                                                                                                                                                                                                              Now things get interesting. 4.1c BSD seems to be where mkdir(2) is introduced and where creat() stops being a system call and becomes an option to open(2). It's also where processes can be in multiple groups for the first time. The 4.1c BSD open(2) manpage is silent about the group of newly created files, while the mkdir(2) manpage specifically claims that new directories will have your effective group (ie, the V7 behavior). This is actually wrong. In both mkdir() in sys_directory.c and maknode() in ufs_syscalls.c, the group of the newly created object is set to the group of the parent directory. Then finally in the 4.2 BSD mkdir(2) manpage the group of the new directory is correctly documented (the 4.2 BSD open(2) manpage continues to say nothing about this). So BSD's traditional behavior was introduced at the same time as processes being in multiple groups, and we can guess that it was introduced as part of that change.
                                                                                                                                                                                                                                                                                                                                                              When your process can only be in a single group, as in V7, it makes perfect sense to create new filesystem objects with that as their group. It's basically the same case as making new filesystem objects be owned by you; just as they get your UID, they also get your GID. When your process can be in multiple groups, things get less clear. A filesystem object can only be in one group, so which of your several groups should a new filesystem object be owned by, and how can you most conveniently change that choice?
                                                                                                                                                                                                                                                                                                                                                              One option is to have some notion of a 'primary group' and then provide ways to shuffle around which of your groups is the primary group.
                                                                                                                                                                                                                                                                                                                                                              Another option is the BSD choice of inheriting the group from context. By far the most common case is that you want your new files and directories to be created in the 'context', ie the group, of the surrounding directory.
                                                                                                                                                                                                                                                                                                                                                              If you fully embrace the idea of Unix processes being in multiple groups, not just having one primary group and then some number of secondary groups, then the BSD choice makes a lot of sense. And for all of its faults, BSD tended to relatively fully embrace its changes
                                                                                                                                                                                                                                                                                                                                                              While it leads to some odd issues, such as the one I ran into, pretty much any choice here is going to have some oddities.

                                                                                                                                                                                                                                                                                                                                                              Centrally managed Bhyve infrastructure with Ansible, libvirt and pkg-ssh

                                                                                                                                                                                                                                                                                                                                                              At work we've been using Bhyve for a while to run non-critical systems. It is a really nice and stable hypervisor even though we are using an earlier version available on FreeBSD 10.3. This means we lack Windows and VNC support among other things, but it is not a big deal.

                                                                                                                                                                                                                                                                                                                                                              After some iterations in our internal tools, we realised that the installation process was too slow and we always repeated the same steps. Of course, any good sysadmin will scream "AUTOMATION!" and so did we. Therefore, we started looking for different ways to improve our deployments.
                                                                                                                                                                                                                                                                                                                                                              We had a look at existing frameworks that manage Bhyve, but none of them had a feature that we find really important: having a centralized repository of VM images. For instance, SmartOS applies this method successfully by having a backend server that stores a catalog of VMs and Zones, meaning that new instances can be deployed in a minute at most. This is a game changer if you are really busy in your day-to-day operations.

                                                                                                                                                                                                                                                                                                                                                              • The following building blocks are used:
                                                                                                                                                                                                                                                                                                                                                                • The ZFS snapshot of an existing VM. This will be our VM template.
                                                                                                                                                                                                                                                                                                                                                                • A modified version of oneoff-pkg-create to package the ZFS snapshots.
                                                                                                                                                                                                                                                                                                                                                                • pkg-ssh and pkg-repo to host a local FreeBSD repo in a FreeBSD jail.
                                                                                                                                                                                                                                                                                                                                                                • libvirt to manage our Bhyve VMs.
                                                                                                                                                                                                                                                                                                                                                                • The ansible modules virt, virt_net and virt_pool.
                                                                                                                                                                                                                                                                                                                                                                • Once automated, the installation process needs 2 minutes at most, compared with the 30 minutes needed to manually install VM plus allowing us to deploy many guests in parallel.

                                                                                                                                                                                                                                                                                                                                                                  NetBSD maintainer in the QEMU project

                                                                                                                                                                                                                                                                                                                                                                  QEMU - the FAST! processor emulator - is a generic, Open Source, machine emulator and virtualizer. It defines state of the art in modern virtualization.

                                                                                                                                                                                                                                                                                                                                                                  This software has been developed for multiplatform environments with support for NetBSD since virtually forever. It's the primary tool used by the NetBSD developers and release engineering team. It is run with continuous integration tests for daily commits and execute regression tests through the Automatic Test Framework (ATF).
                                                                                                                                                                                                                                                                                                                                                                  The QEMU developers warned the Open Source community - with version 2.9 of the emulator - that they will eventually drop support for suboptimally supported hosts if nobody will step in and take the maintainership to refresh the support. This warning was directed to major BSDs, Solaris, AIX and Haiku.
                                                                                                                                                                                                                                                                                                                                                                  Thankfully the NetBSD position has been filled - making NetBSD to restore official maintenance.

                                                                                                                                                                                                                                                                                                                                                                  Beastie Bits
                                                                                                                                                                                                                                                                                                                                                                  • OpenBSD Community Goes Gold
                                                                                                                                                                                                                                                                                                                                                                  • CharmBUG’s Tor Hack-a-thon has been pushed back to July due to scheduling difficulties
                                                                                                                                                                                                                                                                                                                                                                  • Direct Rendering Manager (DRM) Driver for i915, from the Linux kernel to Haiku with the help of DragonflyBSD’s Linux Compatibility layer
                                                                                                                                                                                                                                                                                                                                                                  • TomTom lists OpenBSD in license
                                                                                                                                                                                                                                                                                                                                                                  • London Net BSD Meetup on May 22nd
                                                                                                                                                                                                                                                                                                                                                                  • KnoxBUG meeting May 30th, 2017 - Introduction to FreeNAS
                                                                                                                                                                                                                                                                                                                                                                  • ***
                                                                                                                                                                                                                                                                                                                                                                    Feedback/Questions
                                                                                                                                                                                                                                                                                                                                                                    • Felix - Home Firewall
                                                                                                                                                                                                                                                                                                                                                                    • David - Docker Recipes for Jails
                                                                                                                                                                                                                                                                                                                                                                    • Don - GoLang & Rust
                                                                                                                                                                                                                                                                                                                                                                    • George - OGG feed
                                                                                                                                                                                                                                                                                                                                                                    • Roller - BSDCan Tips
                                                                                                                                                                                                                                                                                                                                                                    • ***
                                                                                                                                                                                                                                                                                                                                                                      1 hr 34 min
                                                                                                                                                                                                                                                                                                                                                                    • 193: Fire up the 802.11 AC

                                                                                                                                                                                                                                                                                                                                                                      This week on BSD Now, Adrian Chadd on bringing up 802.11ac in FreeBSD, a PFsense and OpenVPN tutorial, and we talk about an interesting ZFS storage pool checkpoint project.

                                                                                                                                                                                                                                                                                                                                                                      This episode was brought to you by

                                                                                                                                                                                                                                                                                                                                                                      Headlines
                                                                                                                                                                                                                                                                                                                                                                      Bringing up 802.11ac on FreeBSD
                                                                                                                                                                                                                                                                                                                                                                      • Adrian Chadd has a new blog post about his work to bring 802.11ac support to FreeBSD
                                                                                                                                                                                                                                                                                                                                                                      • 802.11ac allows for speeds up to 500mbps and total bandwidth into multiple gigabits
                                                                                                                                                                                                                                                                                                                                                                      • The FreeBSD net80211 stack has reasonably good 802.11n support, but no 802.11ac support. I decided a while ago to start adding basic 802.11ac support. It was a good exercise in figuring out what the minimum set of required features are and another excuse to go find some of the broken corner cases in net80211 that needed addressing.

                                                                                                                                                                                                                                                                                                                                                                        802.11ac introduces a few new concepts that the stack needs to understand. I decided to use the QCA 802.11ac parts because (a) I know the firmware and general chip stuff from the first generation 11ac parts well, and (b) I know that it does a bunch of stuff (like rate control, packet scheduling, etc) so I don't have to do it. If I chose, say, the Intel 11ac parts then I'd have to implement a lot more of the fiddly stuff to get good behaviour.
                                                                                                                                                                                                                                                                                                                                                                        Step one - adding VHT channels. I decided in the shorter term to cheat and just add VHT channels to the already very large ieee80211_channel map. The linux way of there being a channel context rather than hundreds of static channels to choose from is better in the long run, but I wanted to get things up and running. So, that's what I did first - I added VHT flags for 20, 40, 80, 80+80 and 160MHz operating modes and I did the bare work required to populate the channel lists with VHT channels as well.
                                                                                                                                                                                                                                                                                                                                                                        Then I needed to glue it into an 11ac driver. My ath10k port was far enough along to attempt this, so I added enough glue to say "I support VHT" to the ic_caps field and propagated it to the driver for monitor mode configuration. And yes, after a bit of dancing, I managed to get a VHT channel to show up in ath10k in monitor mode and could capture 80MHz wide packets. Success!

                                                                                                                                                                                                                                                                                                                                                                        By far the most fiddly was getting channel promotion to work. net80211 supports the concept of dumb NICs (like atheros 11abgn parts) very well, where you can have multiple virtual interfaces but the "driver" view of the right configuration is what's programmed into the hardware. For firmware NICs which do this themselves (like basically everything sold today) this isn't exactly all that helpful. So, for now, it's limited to a single VAP, and the VAP configuration is partially derived from the global state and partially derived from the negotiated state. It's annoying, but it is adding to the list of things I will have to fix later.

                                                                                                                                                                                                                                                                                                                                                                        the QCA chips/firmware do 802.11 crypto offload. They actually pretend that there's no key - you don't include the IV, you don't include padding, or anything. You send commands to set the crypto keys and then you send unencrypted 802.11 frames (or 802.3 frames if you want to do ethernet only.) This means that I had to teach net80211 a few things:

                                                                                                                                                                                                                                                                                                                                                                        • frames decrypted by the hardware needed to have a "I'm decrypted" bit set, because the 802.11 header field saying "I'm decrypted!" is cleared
                                                                                                                                                                                                                                                                                                                                                                        • frames encrypted don't have the "i'm encrypted" bit set
                                                                                                                                                                                                                                                                                                                                                                        • frames encrypted/decrypted have no padding, so I needed to teach the input path and crypto paths to not validate those if the hardware said "we offload it all."
                                                                                                                                                                                                                                                                                                                                                                        • Now comes the hard bit of fixing the shortcomings before I can commit the driver. There are .. lots. The first one is the global state. The ath10k firmware allows what they call 'vdevs' (virtual devices) - for example, multiple SSID/BSSID support is implemented with multiple vdevs. STA+WDS is implemented with vdevs. STA+P2P is implemented with vdevs. So, technically speaking I should go and find all of the global state that should really be per-vdev and make it per-vdev. This is tricky though, because a lot of the state isn't kept per-VAP even though it should be.
                                                                                                                                                                                                                                                                                                                                                                          Anyway, so far so good. I need to do some of the above and land it in FreeBSD-HEAD so I can finish off the ath10k port and commit what I have to FreeBSD. There's a lot of stuff coming - including all of the wave-2 stuff (like multiuser MIMO / MU-MIMO) which I just plainly haven't talked about yet. Viva la FreeBSD wireless!
                                                                                                                                                                                                                                                                                                                                                                          ***
                                                                                                                                                                                                                                                                                                                                                                          pfSense and OpenVPN Routing

                                                                                                                                                                                                                                                                                                                                                                          This article tries to be a simple guide on how to enable your home (or small office) [https://www.pfsense.org/](pfSense) setup to route some traffic via the vanilla Internet, and some via a VPN site that you’ve setup in a remote location.

                                                                                                                                                                                                                                                                                                                                                                          • Reasons to Setup a VPN:
                                                                                                                                                                                                                                                                                                                                                                            • Control
                                                                                                                                                                                                                                                                                                                                                                            • Security
                                                                                                                                                                                                                                                                                                                                                                            • Privacy
                                                                                                                                                                                                                                                                                                                                                                            • Fun
                                                                                                                                                                                                                                                                                                                                                                            • VPNs do not instantly guarantee privacy, they’re a layer, as with any other measure you might invoke. In this example I used a server that’s directly under my name. Sure, it was a country with strict privacy laws, but that doesn’t mean that the outgoing IP address wouldn’t be logged somewhere down the line.

                                                                                                                                                                                                                                                                                                                                                                              There’s also no reason you have to use your own OpenVPN install, there are many, many personal providers out there, who can offer the same functionality, and a degree of anonymity. (If you and a hundred other people are all coming from one IP, it becomes extremely difficult to differentiate, some VPN providers even claim a ‘logless’ setup.)
                                                                                                                                                                                                                                                                                                                                                                              VPNs can be slow. The reason I have a split-setup in this article, is because there are devices that I want to connect to the internet quickly, and that I’m never doing sensitive things on, like banking. I don’t mind if my Reddit-browsing and IRC messages are a bit slower, but my Nintendo Switch and PS4 should have a nippy connection.
                                                                                                                                                                                                                                                                                                                                                                              Services like Netflix can and do block VPN traffic in some cases. This is more of an issue for wider VPN providers (I suspect, but have no proof, that they just blanket block known VPN IP addresses.)
                                                                                                                                                                                                                                                                                                                                                                              If your VPN is in another country, search results and tracking can be skewed. This is arguable a good thing, who wants to be tracked? But it can also lead to frustration if your DuckDuckGo results are tailored to the middle of Paris, rather than your flat in Birmingham.

                                                                                                                                                                                                                                                                                                                                                                              • The tutorial walks through the basic setup: Labeling the interfaces, configuring DHCP, creating a VPN:
                                                                                                                                                                                                                                                                                                                                                                              • Now that we have our OpenVPN connection set up, we’ll double check that we’ve got our interfaces assigned

                                                                                                                                                                                                                                                                                                                                                                                With any luck (after we’ve assigned our OPENVPN connection correctly, you should now see your new Virtual Interface on the pfSense Dashboard
                                                                                                                                                                                                                                                                                                                                                                                We’re charging full steam towards the sections that start to lose people. Don’t be disheartened if you’ve had a few issues up to now, there is no “right” way to set up a VPN installation, and it may be that you have to tweak a few things and dive into a few man-pages before you’re set up.
                                                                                                                                                                                                                                                                                                                                                                                NAT is tricky, and frankly it only exists because we stretched out IPv4 for much longer than we should have. That being said it’s a necessary evil in this day and age, so let’s set up our connection to work with it.
                                                                                                                                                                                                                                                                                                                                                                                We need NAT here because we’re going to masque our machines on the LAN interface to show as coming from the OpenVPN client IP address, to the OpenVPN server. Head over to Firewall -> NAT -> Outbound.
                                                                                                                                                                                                                                                                                                                                                                                The first thing we need to do in this section, is to change the Outbound NAT Mode to something we can work with, in this case “Hybrid.”

                                                                                                                                                                                                                                                                                                                                                                                • Configure the LAN interface to be NAT’d to the OpenVPN address, and the INSECURE interface to use your regular ISP connection
                                                                                                                                                                                                                                                                                                                                                                                • Configure the firewall to allow traffic from the LAN network to reach the INSECURE network
                                                                                                                                                                                                                                                                                                                                                                                • Then add a second rule allowing traffic from the LAN network to any address, and set the gateway the the OPENVPN connection
                                                                                                                                                                                                                                                                                                                                                                                • And there you have it, traffic from the LAN is routed via the VPN, and traffic from the INSECURE network uses the naked internet connection
                                                                                                                                                                                                                                                                                                                                                                                • ***
                                                                                                                                                                                                                                                                                                                                                                                  Switching to OpenBSD

                                                                                                                                                                                                                                                                                                                                                                                  After 12 years, I switched from macOS to OpenBSD. It's clean, focused, stable, consistent and lets me get my work done without any hassle.

                                                                                                                                                                                                                                                                                                                                                                                  When I first became interested in computers, I thought operating systems were fascinating. For years I would reinstall an operating system every other weekend just to try a different configuration: MS-DOS 3.3, Windows 3.0, Linux 1.0 (countless hours recompiling kernels). In high school, I settled down and ran OS/2 for 5 years until I graduated college. I switched to Linux after college and used it exclusively for 5 years. I got tired of configuring Linux, so I switched to OS X for the next 12 years, where things just worked.
                                                                                                                                                                                                                                                                                                                                                                                  But Snow Leopard was 7 years ago. These days, OS X is like running a denial of service attack against myself. macOS has a dozen apps I don't use but can't remove. Updating them requires a restart. Frequent updates to the browser require a restart. A minor XCode update requires me to download a 4.3 GB file. My monitors frequently turn off and require a restart to fix. A system's availability is a function of mean time between failure and mean time to repair. For macOS, both numbers are heading in the wrong direction for me. I don't hold any hard feelings about it, but it's time for me to get off this OS and back to productive work.
                                                                                                                                                                                                                                                                                                                                                                                  I found OpenBSD very refreshing, so I created a bootable thumb drive and within an hour had it up and running on a two-year old laptop. I've been using it for my daily work for the past two weeks and it's been great. Simple, boring and productive. Just the way I like it. The documentation is fantastic. I've been using Unix for years and have learned quite a bit just by reading their man pages. OS releases come like clockwork every 6 months and are supported for 12. Security and other updates seem relatively rare between releases (roughly one small patch per week during 6.0). With syspatch in 6.1, installing them should be really easy too.

                                                                                                                                                                                                                                                                                                                                                                                  ZFS Storage Pool Checkpoint Project

                                                                                                                                                                                                                                                                                                                                                                                  During the OpenZFS summit last year (2016), Dan Kimmel and I quickly hacked together the zpool checkpoint command in ZFS, which allows reverting an entire pool to a previous state. Since it was just for a hackathon, our design was bare bones and our implementation far from complete. Around a month later, we had a new and almost complete design within Delphix and I was able to start the implementation on my own. I completed the implementation last month, and we’re now running regression tests, so I decided to write this blog post explaining what a storage pool checkpoint is, why we need it within Delphix, and how to use it.

                                                                                                                                                                                                                                                                                                                                                                                  The Delphix product is basically a VM running DelphixOS (a derivative of illumos) with our application stack on top of it. During an upgrade, the VM reboots into the new OS bits and then runs some scripts that update the environment (directories, snapshots, open connections, etc.) for the new version of our app stack. Software being software, failures can happen at different points during the upgrade process. When an upgrade script that makes changes to ZFS fails, we have a corresponding rollback script that attempts to bring ZFS and our app stack back to their previous state. This is very tricky as we need to undo every single modification applied to ZFS (including dataset creation and renaming, or enabling new zpool features).
                                                                                                                                                                                                                                                                                                                                                                                  The idea of Storage Pool Checkpoint (aka zpool checkpoint) deals with exactly that. It can be thought of as a “pool-wide snapshot” (or a variation of extreme rewind that doesn’t corrupt your data). It remembers the entire state of the pool at the point that it was taken and the user can revert back to it later or discard it. Its generic use case is an administrator that is about to perform a set of destructive actions to ZFS as part of a critical procedure. She takes a checkpoint of the pool before performing the actions, then rewinds back to it if one of them fails or puts the pool into an unexpected state. Otherwise, she discards it. With the assumption that no one else is making modifications to ZFS, she basically wraps all these actions into a “high-level transaction”.

                                                                                                                                                                                                                                                                                                                                                                                  • I definitely see value in this for the appliance use case
                                                                                                                                                                                                                                                                                                                                                                                  • Some usage examples follow, along with some caveats.
                                                                                                                                                                                                                                                                                                                                                                                  • One of the restrictions is that you cannot attach, detach, or remove a device while a checkpoint exists. However, the zpool add operation is still possible, however if you roll back to the checkpoint, the device will no longer be part of the pool. Rather than a shortcoming, this seems like a nice feature, a way to help users avoid the most common foot shooting (which I witnessed in person at Linux Fest), adding a new log or cache device, but missing a keyword and adding it is a storage vdev rather than a aux vdev. This operation could simply be undone if a checkpoint where taken before the device was added.
                                                                                                                                                                                                                                                                                                                                                                                  • ***
                                                                                                                                                                                                                                                                                                                                                                                    News Roundup
                                                                                                                                                                                                                                                                                                                                                                                    Review of TrueOS

                                                                                                                                                                                                                                                                                                                                                                                    TrueOS, which was formerly named PC-BSD, is a FreeBSD-based operating system. TrueOS is a rolling release platform which is based on FreeBSD's "CURRENT" branch, providing TrueOS with the latest drivers and features from FreeBSD. Apart from the name change, TrueOS has deviated from the old PC-BSD project in a number of ways. The system installer is now more streamlined (and I will touch on that later) and TrueOS is a rolling release platform while PC-BSD defaulted to point releases. Another change is PC-BSD used to allow the user to customize which software was installed at boot time, including the desktop environment. The TrueOS project now selects a minimal amount of software for the user and defaults to using the Lumina desktop environment.

                                                                                                                                                                                                                                                                                                                                                                                    • From the conclusions:
                                                                                                                                                                                                                                                                                                                                                                                    • What I took away from my time with TrueOS is that the project is different in a lot of ways from PC-BSD. Much more than just the name has changed. The system is now more focused on cutting edge software and features in FreeBSD's development branch. The install process has been streamlined and the user begins with a set of default software rather than selecting desired packages during the initial setup. The configuration tools, particularly the Control Panel and AppCafe, have changed a lot in the past year. The designs have a more flat, minimal look. It used to be that PC-BSD did not have a default desktop exactly, but there tended to be a focus on KDE. With TrueOS the project's in-house desktop, Lumina, serves as the default environment and I think it holds up fairly well.

                                                                                                                                                                                                                                                                                                                                                                                      In all, I think TrueOS offers a convenient way to experiment with new FreeBSD technologies and ZFS. I also think people who want to run FreeBSD on a desktop computer may want to look at TrueOS as it sets up a graphical environment automatically. However, people who want a stable desktop platform with lots of applications available out of the box may not find what they want with this project.

                                                                                                                                                                                                                                                                                                                                                                                      A simple guide to install Ubuntu on FreeBSD with byhve
                                                                                                                                                                                                                                                                                                                                                                                      • David Prandzioch writes in his blog:
                                                                                                                                                                                                                                                                                                                                                                                      • For some reasons I needed a Linux installation on my NAS. bhyve is a lightweight virtualization solution for FreeBSD that makes that easy and efficient. However, the CLI of bhyve is somewhat bulky and bare making it hard to use, especially for the first time. This is what vm-bhyve solves - it provides a simple CLI for working with virtual machines.

                                                                                                                                                                                                                                                                                                                                                                                        • More details follow about what steps are needed to setup vm_bhyve on FreeBSD
                                                                                                                                                                                                                                                                                                                                                                                        • Also check out his other tutorials on his blog: https://www.davd.eu/freebsd/
                                                                                                                                                                                                                                                                                                                                                                                        • ***
                                                                                                                                                                                                                                                                                                                                                                                          Graphical Overview of the Architecture of FreeBSD
                                                                                                                                                                                                                                                                                                                                                                                          • This diagram tries to show the different components that make up the FreeBSD Operating Systems
                                                                                                                                                                                                                                                                                                                                                                                          • It breaks down the various utilities, libraries, and components into some categories and sub-categories:
                                                                                                                                                                                                                                                                                                                                                                                          • User Commands:
                                                                                                                                                                                                                                                                                                                                                                                            • Development (cc, ld, nm, as, etc)
                                                                                                                                                                                                                                                                                                                                                                                            • File Management (ls, cp, cmp, mkdir)
                                                                                                                                                                                                                                                                                                                                                                                            • Multiuser Commands (login, chown, su, who)
                                                                                                                                                                                                                                                                                                                                                                                            • Number Processing (bc, dc, units, expr)
                                                                                                                                                                                                                                                                                                                                                                                            • Text Processing (cut, grep, sort, uniq, wc)
                                                                                                                                                                                                                                                                                                                                                                                            • User Messaging (mail, mesg, write, talk)
                                                                                                                                                                                                                                                                                                                                                                                            • Little Languages (sed, awk, m4)
                                                                                                                                                                                                                                                                                                                                                                                            • Network Clients (ftp, scp, fetch)
                                                                                                                                                                                                                                                                                                                                                                                            • Document Preparation (*roff, eqn, tbl, refer)
                                                                                                                                                                                                                                                                                                                                                                                            • Administrator and System Commands
                                                                                                                                                                                                                                                                                                                                                                                              • Filesystem Management (fsck, newfs, gpart, mount, umount)
                                                                                                                                                                                                                                                                                                                                                                                              • Networking (ifconfig, route, arp)
                                                                                                                                                                                                                                                                                                                                                                                              • User Management (adduser, pw, vipw, sa, quota*)
                                                                                                                                                                                                                                                                                                                                                                                              • Statistics (iostat, vmstat, pstat, gstat, top)
                                                                                                                                                                                                                                                                                                                                                                                              • Network Servers (sshd, ftpd, ntpd, routed, rpc.*)
                                                                                                                                                                                                                                                                                                                                                                                              • Scheduling (cron, periodic, rc.*, atrun)
                                                                                                                                                                                                                                                                                                                                                                                              • Libraries (C Standard, Operating System, Peripheral Access, System File Access, Data Handling, Security, Internationalization, Threads)
                                                                                                                                                                                                                                                                                                                                                                                              • System Call Interface (File I/O, Mountable Filesystems, File ACLs, File Permissions, Processes, Process Tracing, IPC, Memory Mapping, Shared Memory, Kernel Events, Memory Locking, Capsicum, Auditing, Jails)
                                                                                                                                                                                                                                                                                                                                                                                              • Bootstrapping (Loaders, Configuration, Kernel Modules)
                                                                                                                                                                                                                                                                                                                                                                                              • Kernel Utility Functions
                                                                                                                                                                                                                                                                                                                                                                                                • Privilege Management (acl, mac, priv)
                                                                                                                                                                                                                                                                                                                                                                                                • Multitasking (kproc, kthread, taskqueue, swi, ithread)
                                                                                                                                                                                                                                                                                                                                                                                                • Memory Management (vmem, uma, pbuf, sbuf, mbuf, mbchain, malloc/free)
                                                                                                                                                                                                                                                                                                                                                                                                • Generic (nvlist, osd, socket, mbuf_tags, bitset)
                                                                                                                                                                                                                                                                                                                                                                                                • Virtualization (cpuset, crypto, device, devclass, driver)
                                                                                                                                                                                                                                                                                                                                                                                                • Synchronization (lock, sx, sema, mutex, condvar_, atomic_*, signal)
                                                                                                                                                                                                                                                                                                                                                                                                • Operations (sysctl, dtrace, watchdog, stack, alq, ktr, panic)
                                                                                                                                                                                                                                                                                                                                                                                                • I/O Subsystem
                                                                                                                                                                                                                                                                                                                                                                                                  • Special Devices (line discipline, tty, raw character, raw disk)
                                                                                                                                                                                                                                                                                                                                                                                                  • Filesystems (UFS, FFS, NFS, CD9660, Ext2, UDF, ZFS, devfs, procfs)
                                                                                                                                                                                                                                                                                                                                                                                                  • Sockets
                                                                                                                                                                                                                                                                                                                                                                                                  • Network Protocols (TCP, UDP, UCMP, IPSec, IP4, IP6)
                                                                                                                                                                                                                                                                                                                                                                                                  • Netgraph (50+ modules)
                                                                                                                                                                                                                                                                                                                                                                                                  • Drivers and Abstractions
                                                                                                                                                                                                                                                                                                                                                                                                    • Character Devices
                                                                                                                                                                                                                                                                                                                                                                                                    • CAM (ATA, SATA, SAS, SPI)
                                                                                                                                                                                                                                                                                                                                                                                                    • Network Interface Drivers (802.11, if_ae, 100+, if_xl, NDIS)
                                                                                                                                                                                                                                                                                                                                                                                                    • GEOM
                                                                                                                                                                                                                                                                                                                                                                                                      • Storage (stripe, mirror, raid3, raid5, concat)
                                                                                                                                                                                                                                                                                                                                                                                                      • Encryption / Compression (eli, bde, shsec, uzip)
                                                                                                                                                                                                                                                                                                                                                                                                      • Filesystem (label, journal, cache, mbr, bsd)
                                                                                                                                                                                                                                                                                                                                                                                                      • Virtualization (md, nop, gate, virtstor)
                                                                                                                                                                                                                                                                                                                                                                                                      • Process Control Subsystems
                                                                                                                                                                                                                                                                                                                                                                                                        • Scheduler
                                                                                                                                                                                                                                                                                                                                                                                                        • Memory Management
                                                                                                                                                                                                                                                                                                                                                                                                        • Inter-process Communication
                                                                                                                                                                                                                                                                                                                                                                                                        • Debugging Support
                                                                                                                                                                                                                                                                                                                                                                                                        • ***
                                                                                                                                                                                                                                                                                                                                                                                                          Official OpenBSD 6.1 CD - There's only One!
                                                                                                                                                                                                                                                                                                                                                                                                          • Ebay auction Link
                                                                                                                                                                                                                                                                                                                                                                                                          • Now it turns out that in fact, exactly one CD set was made, and it can be yours if you are the successful bidder in the auction that ends on May 13, 2017 (About 3 days from when this episode was recorded).
                                                                                                                                                                                                                                                                                                                                                                                                          • The CD set is hand made and signed by Theo de Raadt.
                                                                                                                                                                                                                                                                                                                                                                                                          • Fun Fact: The winning bidder will have an OpenBSD CD set that even Theo doesn't have.
                                                                                                                                                                                                                                                                                                                                                                                                          • ***
                                                                                                                                                                                                                                                                                                                                                                                                            Beastie Bits
                                                                                                                                                                                                                                                                                                                                                                                                            • Hardware Wanted by OpenBSD developers
                                                                                                                                                                                                                                                                                                                                                                                                            • Donate hardware to FreeBSD developers
                                                                                                                                                                                                                                                                                                                                                                                                            • Announcing NetBSD and the Google Summer of Code Projects 2017
                                                                                                                                                                                                                                                                                                                                                                                                            • Announcing FreeBSD GSoC 2017 Projects
                                                                                                                                                                                                                                                                                                                                                                                                            • LibreSSL 2.5.4 Released
                                                                                                                                                                                                                                                                                                                                                                                                            • CharmBUG Meeting - Tor Browser Bundle Hack-a-thon
                                                                                                                                                                                                                                                                                                                                                                                                            • pkgsrcCon 2017 CFT
                                                                                                                                                                                                                                                                                                                                                                                                            • Experimental Price Cuts
                                                                                                                                                                                                                                                                                                                                                                                                            • Linux Fest North West 2017: Three Generations of FreeNAS: The World’s most popular storage OS turns 12
                                                                                                                                                                                                                                                                                                                                                                                                            • ***
                                                                                                                                                                                                                                                                                                                                                                                                              Feedback/Questions
                                                                                                                                                                                                                                                                                                                                                                                                              • Don - Reproducible builds & gcc/clang
                                                                                                                                                                                                                                                                                                                                                                                                              • architect - C development on BSD
                                                                                                                                                                                                                                                                                                                                                                                                              • David - Linux ABI
                                                                                                                                                                                                                                                                                                                                                                                                              • Tom - ZFS
                                                                                                                                                                                                                                                                                                                                                                                                                • RAIDZ Stripe Width Myth, Busted
                                                                                                                                                                                                                                                                                                                                                                                                                • Ivan - Jails
                                                                                                                                                                                                                                                                                                                                                                                                                • ***
                                                                                                                                                                                                                                                                                                                                                                                                                  2 hr 7 min
                                                                                                                                                                                                                                                                                                                                                                                                                • 192: SSHv1 Be Gone

                                                                                                                                                                                                                                                                                                                                                                                                                  This week we have a FreeBSD Foundation development update, tell you about sprinkling in the TrueOS project, Dynamic WDS & a whole lot more!

                                                                                                                                                                                                                                                                                                                                                                                                                  This episode was brought to you by

                                                                                                                                                                                                                                                                                                                                                                                                                  Headlines
                                                                                                                                                                                                                                                                                                                                                                                                                  OpenSSH Removes SSHv1 Support
                                                                                                                                                                                                                                                                                                                                                                                                                  • In a series of commits starting here and ending with this one, Damien Miller completed the removal of all support for the now-historic SSHv1 protocol from OpenSSH.
                                                                                                                                                                                                                                                                                                                                                                                                                  • The final commit message, for the commit that removes the SSHv1 related regression tests, reads:
                                                                                                                                                                                                                                                                                                                                                                                                                  • Eliminate explicit specification of protocol in tests and loops over protocol. We only support SSHv2 now.

                                                                                                                                                                                                                                                                                                                                                                                                                    Dropping support for SSHv1 and associated ciphers that were either suspected to or known to be broken has been planned for several releases, and has been eagerly anticipated by many in the OpenBSD camp.
                                                                                                                                                                                                                                                                                                                                                                                                                    In practical terms this means that starting with OpenBSD-current and snapshots as they will be very soon (and further down the road OpenBSD 6.2 with OpenSSH 7.6), the arcane options you used with ssh to connect to some end-of-life gear in a derelict data centre you don't want to visit anymore will no longer work and you will be forced do the reasonable thing. Upgrade.

                                                                                                                                                                                                                                                                                                                                                                                                                    FreeBSD Foundation April 2017 Development Projects Update

                                                                                                                                                                                                                                                                                                                                                                                                                    FreeBSD runs on many embedded boards that provide a USB target or USB On-the-Go (OTG) interface. This allows the embedded target to act as a USB device, and present one or more interfaces (USB device classes) to a USB host. That host could be running FreeBSD, Linux, Mac OS, Windows, Android, or another operating system. USB device classes include audio input or output (e.g. headphones), mass storage (USB flash drives), human interface device (keyboards, mice), communications (Ethernet adapters), and many others.

                                                                                                                                                                                                                                                                                                                                                                                                                    The Foundation awarded a project grant to Edward Tomasz Napierała to develop a USB mass storage target driver, using the FreeBSD CAM Target Layer (CTL) as a backend. This project allows FreeBSD running on an embedded platform, such as a BeagleBone Black or Raspberry Pi Zero, to emulate a USB mass storage target, commonly known as a USB flash stick. The backing storage for the emulated mass storage target is on the embedded board’s own storage media. It can be configured at runtime using the standard CTL configuration mechanism – the ctladm(8) utility, or the ctl.conf(5) file.

                                                                                                                                                                                                                                                                                                                                                                                                                    The FreeBSD target can now present a mass storage interface, a serial interface (for a console on the embedded system), and an Ethernet interface for network access. A typical usage scenario for the mass storage interface is to provide users with documentation and drivers that can be accessed from their host system. This makes it easier for new users to interact with the embedded FreeBSD board, especially in cases where the host operating system may require drivers to access all of the functionality, as with Windows and OS X.

                                                                                                                                                                                                                                                                                                                                                                                                                    • They provide instructions on how to configure a BeagleBone Black to act as a flash memory stick attached to a host computer.
                                                                                                                                                                                                                                                                                                                                                                                                                    • +Check out the article, test, and report back your experiences with the new USB OTG interface.
                                                                                                                                                                                                                                                                                                                                                                                                                      ***
                                                                                                                                                                                                                                                                                                                                                                                                                      Spring cleaning: Hardware Update and Preview of upcoming TrueOS changes

                                                                                                                                                                                                                                                                                                                                                                                                                      The much-abused TrueOS build server is experiencing some technical difficulties, slowing down building new packages and releasing updates. After some investigation, one problem seemed to be a bug with the Poudriere port building software. After updating builders to the new version, some of the instability is resolved. Thankfully, we won’t have to rely on this server so much, because…

                                                                                                                                                                                                                                                                                                                                                                                                                      • We’re getting new hardware!
                                                                                                                                                                                                                                                                                                                                                                                                                      • A TrueOS/Lumina contributor is donating a new(ish) server to the project. Special thanks to TrueOS contributor/developer q5sys for the awesome new hardware!

                                                                                                                                                                                                                                                                                                                                                                                                                      • Preview: UNSTABLE and Upcoming TrueOS STABLE update

                                                                                                                                                                                                                                                                                                                                                                                                                      • A fresh UNSTABLE release is dropping today, with a few key changes:

                                                                                                                                                                                                                                                                                                                                                                                                                      • Nvidia/graphics driver detection fixes.

                                                                                                                                                                                                                                                                                                                                                                                                                        Boot environment listing fix (FreeBSD boot-loader only)
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual box issues fixed on most systems. There appears to be a regression in VirtualBox 5.1 with some hardware.
                                                                                                                                                                                                                                                                                                                                                                                                                        New icon themes for Lumina (Preferences -> Appearance -> Theme).
                                                                                                                                                                                                                                                                                                                                                                                                                        Removal of legacy pc-diskmanager. It was broken and unmaintained, so it is time to remove it.

                                                                                                                                                                                                                                                                                                                                                                                                                        • Installer/.iso Changes (Available with new STABLE Update):
                                                                                                                                                                                                                                                                                                                                                                                                                        • The text installer has been removed. It was broken and unmaintained, so it is time to remove it.

                                                                                                                                                                                                                                                                                                                                                                                                                          There is now a single TrueOS install image. You can still choose to install as either a server or desktop, but both options live in a single install image now. This image is still available as either an .iso or .img file.
                                                                                                                                                                                                                                                                                                                                                                                                                          The size of the .iso and .img files is reduced about 500 Mb to around 2Gb total. We’ve removed Firefox and Thunderbird from the default desktop installation. These have been replaced with Qupzilla and Trojita. Note you can replace Qupzilla and Trojita with Firefox and Thunderbird via the SysAdm Appcafe after completing the TrueOS install.
                                                                                                                                                                                                                                                                                                                                                                                                                          Grub is no longer an installation option. Instead, the FreeBSD boot-loader is always used for the TrueOS partition. rEFInd is used as the master boot-loader for multi-booting; EFI partitioning is required.
                                                                                                                                                                                                                                                                                                                                                                                                                          Qpdfview is now preinstalled for pdf viewing.
                                                                                                                                                                                                                                                                                                                                                                                                                          Included a slideshow during the installation with tips and screenshots.

                                                                                                                                                                                                                                                                                                                                                                                                                          Interview - Patrick M. Hausen - [email protected]
                                                                                                                                                                                                                                                                                                                                                                                                                          • Founder of Punkt.de
                                                                                                                                                                                                                                                                                                                                                                                                                          • HAST - Highly Available Storage
                                                                                                                                                                                                                                                                                                                                                                                                                            News Roundup
                                                                                                                                                                                                                                                                                                                                                                                                                            (finally) investigating how to get dynamic WDS (DWDS) working in FreeBSD!
                                                                                                                                                                                                                                                                                                                                                                                                                            • Adrian Chadd writes in his blog:
                                                                                                                                                                                                                                                                                                                                                                                                                            • I sat down recently to figure out how to get dynamic WDS working on FreeBSD-HEAD. It's been in FreeBSD since forever, and it in theory should actually have just worked, but it's extremely not documented in any useful way. It's basically the same technology in earlier Apple Airports (before it grew into what the wireless tech world calls "Proxy-STA") and is what the "extender" technology on Qualcomm Atheros chipsets implement.

                                                                                                                                                                                                                                                                                                                                                                                                                              A common question I get from people is "why can't I bridge multiple virtual machines on my laptop and have them show up over wifi? It works on ethernet!" And my response is "when I make dynamic WDS work, you can just make this work on FreeBSD devices - but for now, use NAT." That always makes people sad.

                                                                                                                                                                                                                                                                                                                                                                                                                              • Goes on to explain that normal station/access point setups have up to three addresses and depending on the packet type, these can vary. There are a couple of variations in the addresses, which is more than the number of address fields in a normal 802.11 frame.
                                                                                                                                                                                                                                                                                                                                                                                                                              • The big note here is that there's not enough MAC addresses to say "please send this frame to a station MAC address, but then have them forward it to another MAC address attached behind it in a bridge." That would require 4 mac addresses in the 802.11 header, which we don't get.

                                                                                                                                                                                                                                                                                                                                                                                                                                .. except we do. There's a separate address format where from-DS and to-DS bits in the header set to 1, which means "this frame is coming from distribution system to a distribution system", and it has four mac addresses. The RA is then the AP you're sending to, and then a fourth field indicates the eventual destination address that may be an ethernet device connected behind said STA.
                                                                                                                                                                                                                                                                                                                                                                                                                                If you don't configure up WDS, then when you send frames from a station from a MAC address that isn't actually your 802.11 interface MAC address, the system would be confused. The STA wouldn't be able to transmit it easily, and the AP wouldn't know how to get back to your bridged ethernet addresses.
                                                                                                                                                                                                                                                                                                                                                                                                                                The original WDS was a statically configured thing. [...] So for static configurations, this works great. You'd associate your extender AP as a station of the central AP, it'd use wpa_supplicant to setup encryption, then anything between that central AP and that extender AP (as a station) would be encrypted as normal station traffic (but, 4-address frame format.)
                                                                                                                                                                                                                                                                                                                                                                                                                                But that's not very convenient. You have to statically configure everything, including telling your central AP about all of your satellite extender APs. If you want to replace your central AP, you have to reprogram all of your extenders to use the new MAC addresses.
                                                                                                                                                                                                                                                                                                                                                                                                                                So, Sam Leffler came up with "dynamic WDS" - where you don't have to explicitly state the list of central/satellite APs. Instead, you configure a central AP as "dynamic WDS", and when a 4-address frame shows up from an associated station, it "promotes" it to a WDS peer for you. On the satellite AP, it will just find an AP to communicate to, and then assume it'll do WDS and start using 4-address frames. It's still a bit clunky (there's no beacon, probe request, etc IEs that say "I do dynamic WDS!" so you'd better make ALL your central APs a different SSID!) but it certainly is better than what we had.
                                                                                                                                                                                                                                                                                                                                                                                                                                Firstly, there are scripts in src/tools/tools/net80211/ - setup.wdsmain and setup.wdsrelay. These scripts are .. well, the almost complete documentation on a dynamic WDS setup. The manpage doesn't go into anywhere near enough information.
                                                                                                                                                                                                                                                                                                                                                                                                                                So I dug into it. It turns out that dynamic WDS uses a helper daemon - 'wlanwds' - which listens for dynamic WDS configuration changes and will do things for you. This is what runs on the central AP side. Then it started making sense!
                                                                                                                                                                                                                                                                                                                                                                                                                                So far, so good. I followed that script, modified it a bit to use encryption, and .. well, it half worked. Association worked fine, but no traffic was passing.
                                                                                                                                                                                                                                                                                                                                                                                                                                A little more digging showed the actual problem - the dynamic WDS example scripts are for an open/unencrypted network. If you are using an encrypted network, the central AP side needs to enable privacy on the virtual interfaces so traffic gets encrypted with the parent interface encryption keys.
                                                                                                                                                                                                                                                                                                                                                                                                                                Now, I've only done enough testing to show that indeed it is working. I haven't done anything like pass lots of traffic via iperf, or have a mix of DWDS and normal STA peers, nor actually run it for longer than 5 minutes. I'm sure there will be issues to fix. However - I do need it at home, as I can't see the home AP from the upstairs room (and now you see why I care about DWDS!) and so when I start using it daily I'll fix whatever hilarity ensues.

                                                                                                                                                                                                                                                                                                                                                                                                                                Why don't schools teach debugging?

                                                                                                                                                                                                                                                                                                                                                                                                                                A friend of mine and I couldn’t understand why some people were having so much trouble; the material seemed like common sense. The Feynman Method was the only tool we needed.

                                                                                                                                                                                                                                                                                                                                                                                                                                Write down the problem
                                                                                                                                                                                                                                                                                                                                                                                                                                Think real hard
                                                                                                                                                                                                                                                                                                                                                                                                                                Write down the solution

                                                                                                                                                                                                                                                                                                                                                                                                                                The Feynman Method failed us on the last project: the design of a divider, a real-world-scale project an order of magnitude more complex than anything we’d been asked to tackle before.

                                                                                                                                                                                                                                                                                                                                                                                                                                I understand now why half the class struggled with the earlier assignments. Without an explanation of how to systematically approach problems, anyone who didn’t intuitively grasp the correct solution was in for a semester of frustration. People who were, like me, above average but not great, skated through most of the class and either got lucky or wasted a huge chunk of time on the final project. I’ve even seen people talented enough to breeze through the entire degree without ever running into a problem too big to intuitively understand; those people have a very bad time when they run into a 10 million line codebase in the real world. The more talented the engineer, the more likely they are to hit a debugging wall outside of school.

                                                                                                                                                                                                                                                                                                                                                                                                                                It’s one of the most fundamental skills in engineering: start at the symptom of a problem and trace backwards to find the source. It takes, at most, half an hour to teach the absolute basics – and even that little bit would be enough to save a significant fraction of those who wash out and switch to non-STEM majors.

                                                                                                                                                                                                                                                                                                                                                                                                                                Why do we leave material out of classes and then fail students who can’t figure out that material for themselves? Why do we make the first couple years of an engineering major some kind of hazing ritual, instead of simply teaching people what they need to know to be good engineers? For all the high-level talk about how we need to plug the leaks in our STEM education pipeline, not only are we not plugging the holes, we’re proud of how fast the pipeline is leaking.

                                                                                                                                                                                                                                                                                                                                                                                                                                FreeBSD: pNFS server for testing
                                                                                                                                                                                                                                                                                                                                                                                                                                • Rick Macklem has issued a call for testing his new pNFS server:
                                                                                                                                                                                                                                                                                                                                                                                                                                • I now have a pNFS server that I think is ready for testing/evaluation. It is basically a patched FreeBSD-current kernel plus nfsd daemon.

                                                                                                                                                                                                                                                                                                                                                                                                                                  If you are interested, some very basic notes on how it works and how to set it up are at:
                                                                                                                                                                                                                                                                                                                                                                                                                                  http://people.freebsd.org/~rmacklem/pnfs-planb-setup.txt

                                                                                                                                                                                                                                                                                                                                                                                                                                  A Plan B pNFS service consists of a single MetaData Server (MDS) and K Data Servers (DS), all of which would be recent FreeBSD systems. Clients will mount the MDS as they would a single NFS server. When files are created, the MDS creates a file tree identical to what a single NFS server creates, except that all the regular (VREG) files will be empty. As such, if you look at the exported tree on the MDS directly on the MDS server (not via an NFS mount), the files will all be of size == 0. Each of these files will also have two extended attributes in the system attribute name space:

                                                                                                                                                                                                                                                                                                                                                                                                                                  pnfsd.dsfile - This extended attrbute stores the information that the MDS needs to find the data storage file on a DS for this file.
                                                                                                                                                                                                                                                                                                                                                                                                                                  pnfsd.dsattr - This extended attribute stores the Size, ModifyTime and Change attributes for the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                  For each regular (VREG) file, the MDS creates a data storage file on one of the K DSs, in one of the dsNN directories. The name of this file is the file handle of the file on the MDS in hexadecimal. The DSs use 20 subdirectories named "ds0" to "ds19" so that no one directory gets too large.

                                                                                                                                                                                                                                                                                                                                                                                                                                  At this time, the MDS generates File Layout layouts to NFSv4.1 clients that know how to do pNFS.
                                                                                                                                                                                                                                                                                                                                                                                                                                  For NFS clients that do not support NFSv4.1 pNFS, there will be a performance hit, since the IO RPCs will be proxied by the MDS for the DS server the data storage file resides on.
                                                                                                                                                                                                                                                                                                                                                                                                                                  The current setup does not allow for redundant servers. If the MDS or any of the K DS servers fail, the entire pNFS service will be non-functional.
                                                                                                                                                                                                                                                                                                                                                                                                                                  Looking at creating mirrored DS servers is planned, but it may be a year or more before that is implemented. I am planning on using the Flex File Layout for this, since it supports client side mirroring, where the client will write to all mirrors concurrently.

                                                                                                                                                                                                                                                                                                                                                                                                                                  Beastie Bits
                                                                                                                                                                                                                                                                                                                                                                                                                                  • Openbsd changes of note 620
                                                                                                                                                                                                                                                                                                                                                                                                                                  • Why Unix commands are short
                                                                                                                                                                                                                                                                                                                                                                                                                                  • OPNsense 17.1.5 released
                                                                                                                                                                                                                                                                                                                                                                                                                                  • Something for Apple dual-GPU users
                                                                                                                                                                                                                                                                                                                                                                                                                                  • pkgsrcCon 2017 CFT
                                                                                                                                                                                                                                                                                                                                                                                                                                  • TrueOS/Lumina Dev Q&A: May 5th 2017
                                                                                                                                                                                                                                                                                                                                                                                                                                  • Feedback/Questions
                                                                                                                                                                                                                                                                                                                                                                                                                                    • Peter - Jails

                                                                                                                                                                                                                                                                                                                                                                                                                                    • Andrew - Languages and University Courses

                                                                                                                                                                                                                                                                                                                                                                                                                                      • JuniorJobs
                                                                                                                                                                                                                                                                                                                                                                                                                                      • Steve - TrueOS and Bootloader

                                                                                                                                                                                                                                                                                                                                                                                                                                      • Ben - ZFS questions

                                                                                                                                                                                                                                                                                                                                                                                                                                      • Steve - Linux Emulation

                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2 hr 5 min