BSD Now

BSD Now

Download on the App Store

All BSD Now episodes

  • 331: Why Computers Suck

    How learning OpenBSD makes computers suck a little less, How Unix works, FreeBSD 12.1 Runs Well on Ryzen Threadripper 3970X, BSDCan CFP, HardenedBSD Infrastructure Goals, and more.

    Headlines
    Why computers suck and how learning from OpenBSD can make them marginally less horrible

    How much better could things actually be if we abandoned the enterprise development model?

    Next I will compare this enterprise development approach with non-enterprise development - projects such as OpenBSD, which do not hesitate to introduce ABI breaking changes to improve the codebase.

    One of the most commonly referred to pillars of the project's philosophy has long been its emphasis on clean functional code. Any code which makes it into OpenBSD is subject to ongoing aggressive audits for deprecated, or otherwise unmaintained code in order to reduce cruft and attack surface. Additionally the project creator, Theo de Raadt, and his team of core developers engage in ongoing development for proactive mitigations for various attack classes many of which are directly adopted by various multi-platform userland applications as well as the operating systems themselves (Windows, Linux, and the other BSDs). Frequently it is the case that introducing new features (not just deprecating old ones) introduces new incompatibilities against previously functional binaries compiled for OpenBSD.

    To prevent the sort of kernel memory bloat that has plagued so many other operating systems for years, the project enforces a hard ceiling on the number of lines of code that can ever be in ring 0 at a given time. Current estimates guess the number of bugs per line of code in the Linux kernel are around 1 bug per every 10,000 lines of code. Think of this in the context of the scope creep seen in the Linux kernel (which if I recall correctly is currently at around 100,000,000 lines of code), as well as the Windows NT kernel (500,000,000 lines of code) and you quickly begin to understand how adding more and more functionality into the most privileged components of the operating system without first removing old components begins to add up in terms of the drastic difference seen between these systems in the number of zero day exploits caught in the wild respectively.

    How Unix Works: Become a Better Software Engineer

    Unix is beautiful. Allow me to paint some happy little trees for you. I’m not going to explain a bunch of commands – that’s boring, and there’s a million tutorials on the web doing that already. I’m going to leave you with the ability to reason about the system.

    Every fancy thing you want done is one google search away.

    But understanding why the solution does what you want is not the same.

    That’s what gives you real power, the power to not be afraid.

    And since it rhymes, it must be true.

    News Roundup
    FreeBSD 12.1 Runs Refreshingly Well With AMD Ryzen Threadripper 3970X

    For those of you interested in AMD's new Ryzen Threadripper 3960X/3970X processors with TRX40 motherboards for running FreeBSD, the experience in our initial testing has been surprisingly pleasant. In fact, it works out-of-the-box which one could argue is better than the current Linux support that needs the MCE workaround for booting. Here are some benchmarks of FreeBSD 12.1 on the Threadripper 3970X compared to Linux and Windows for this new HEDT platform.

    It was refreshing to see FreeBSD 12.1 booting and running just fine with the Ryzen Threadripper 3970X 32-core/64-thread processor from the ASUS ROG ZENITH II EXTREME motherboard and all core functionality working including the PCIe 4.0 NVMe SSD storage, onboard networking, etc. The system was running with 4 x 16GB DDR4-3600 memory, 1TB Corsair Force MP600 NVMe SSD, and Radeon RX 580 graphics. It was refreshing to see FreeBSD 12.1 running well with this high-end AMD Threadripper system considering Linux even needed a boot workaround.

    While the FreeBSD 12.1 experience was trouble-free with the ASUS TRX40 motherboard (ROG Zenith II Extreme) and AMD Ryzen Threadripper 3970X, DragonFlyBSD unfortunately was not. Both DragonFlyBSD 5.6.2 stable and the DragonFlyBSD daily development snapshot from last week were yielding a panic on boot. So with that, DragonFlyBSD wasn't tested for this Threadripper 3970X comparison but just FreeBSD 12.1.

    FreeBSD 12.1 on the Threadripper 3970X was benchmarked both with its default LLVM Clang 8.0.1 compiler and again with GCC 9.2 from ports for ruling out compiler differences. The FreeBSD 12.1 performance was compared to last week's Windows 10 vs. Linux benchmarks with the same system.

    BSDCan 2020 CFP

    BSDCan 2020 will be held 5-6 (Fri-Sat) June, 2020 in Ottawa, at the University of Ottawa. It will be preceded by two days of tutorials on 3-4 June (Wed-Thu).

    NOTE the change of month in 2020 back to June Also: do not miss out on the Goat BOF on Tuesday 2 June.

    We are now accepting proposals for talks. The talks should be designed with a very strong technical content bias. Proposals of a business development or marketing nature are not appropriate for this venue.

    • See http://www.bsdcan.org/2020/
    • If you are doing something interesting with a BSD operating system, please submit a proposal. Whether you are developing a very complex system using BSD as the foundation, or helping others and have a story to tell about how BSD played a role, we want to hear about your experience. People using BSD as a platform for research are also encouraged to submit a proposal. Possible topics include:

      • How we manage a giant installation with respect to handling spam.
      • and/or sysadmin.
      • and/or networking.
      • Cool new stuff in BSD
      • Tell us about your project which runs on BSD
      • other topics (see next paragraph)
      • From the BSDCan website, the Archives section will allow you to review the wide variety of past BSDCan presentations as further examples.

        Both users and developers are encouraged to share their experiences.

        HardenedBSD Infrastructure Goals

        2019 has been an extremely productive year with regards to HardenedBSD's infrastructure. Several opportunities aligned themselves in such a way as to open a door for a near-complete rebuild with a vast expansion.

        The last few months especially have seen a major expansion of our infrastructure. We obtained a number of to-be-retired Dell R410 servers. The crash of our nightly build server provided the opportunity to deploy these R410 servers, doubling our build capacity.

        My available time to spend on HardenedBSD has decreased compared to this time last year. As part of rebuilding our infrastructure, I wanted to enable the community to be able to contribute. I'm structuring the work such that help is just a pull request away. Those in the HardenedBSD community who want to contribute to the infrastructure work can simply open a pull request. I'll review the code, and deploy it after a successful review. Users/contributors don't need access to our servers in order to improve them.

        My primary goal for the rest of 2019 and into 2020 is to become fully self-hosted, with the sole exception of email. I want to transition the source-of-truth git repos to our own infrastructure. We will still provide a read-only mirror on GitHub.

        As I develop this infrastructure, I'm doing so with human rights in mind. HardenedBSD is in a very unique position. In 2020, I plan to provide production Tor Onion Services for the various bits of our infrastructure. HardenedBSD will provide access to its various internal services to its developers and contributors. The entire development lifecycle, going from dev to prod, will be able to happen over Tor.

        Transparency will be key moving forward. Logs for the auto-sync script are now published directly to GitHub. Build logs will be, soon, too. Logs of all automated processes, and the code for those processes, will be tracked publicly via git. This will be especially crucial for development over Tor.

        Integrating Tor into our infrastructure so deeply increases risk and maintenance burden. However, I believe that through added transparency, we will be able to mitigate risk. Periodic audits will need to be performed and published.

        I hope to migrate HardenedBSD's site away from Drupal to a static site generator. We don't really need the dynamic capabilities Drupal gives us. The many security issues Drupal and PHP both bring also leave much to be desired.

        So, that's about it. I spent the last few months of 2019 laying the foundation for a successful 2020. I'm excited to see how the project grows.

        Beastie Bits
        • FuryBSD - KDE plasma flavor now available
        • DragonFly - git: virtio - Fix LUN scan issue w/ Google Cloud
        • LPI is looking for BSD Specialist learning material writers
        • ZFS sync/async + ZIL/SLOG, explained
        • BSD-Licensed Combinatorics library/utility
        • SSL client vs server certificates and bacula-fd
        • MaxxDesktop planning to come to FreeBSD Project Page
        • Feedback/Questions
          • Tom - ZFS Mirror with different speeds
          • Jeff - Knowledge is power
          • Johnny - Episode 324 response to Jacob
          • Pat - NYC*BUG meeting Jan Meeting Location
            • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
            • Your browser does not support the HTML5 video tag.
              1 hr 10 min
            • 330: Happy Holidays, All(an)

              Authentication Vulnerabilities in OpenBSD, NetBSD 9.0 RC1 is available, Running FreeNAS on a DigitalOcean droplet, NomadBSD 1.3 is here, at e2k19 nobody can hear you scream, and more.

              Headlines
              Authentication vulnerabilities in OpenBSD
              • We discovered an authentication-bypass vulnerability in OpenBSD's authentication system: this vulnerability is remotely exploitable in smtpd, ldapd, and radiusd, but its real-world impact should be studied on a case-by-case basis. For example, sshd is not exploitable thanks to its defense-in-depth mechanisms.
              • From the manual page of login.conf:
              • OpenBSD uses BSD Authentication, which is made up of a variety of authentication styles. The authentication styles currently provided are:

                passwd Request a password and check it against the password in the master.passwd file. See login_passwd(8).
                skey Send a challenge and request a response, checking it with S/Key (tm) authentication. See login_skey(8).
                yubikey Authenticate using a Yubico YubiKey token. See login_yubikey(8).
                For any given style, the program /usr/libexec/auth/login_style is used to
                perform the authentication. The synopsis of this program is:
                /usr/libexec/auth/login_style [-v name=value] [-s service] username class

                • This is the first piece of the puzzle: if an attacker specifies a username of the form "-option", they can influence the behavior of the authentication program in unexpected ways.
                • login_passwd [-s service] [-v wheel=yes|no] [-v lastchance=yes|no] user [class] The service argument specifies which protocol to use with the invoking program. The allowed protocols are login, challenge, and response. (The challenge protocol is silently ignored but will report success as passwd-style authentication is not challenge-response based).
                  • This is the second piece of the puzzle: if an attacker specifies the username "-schallenge" (or "-schallenge:passwd" to force a passwd-style authentication), then the authentication is automatically successful and therefore bypassed.
                  • Case study: smtpd
                  • Case study: ldapd
                  • Case study: radiusd
                  • Case study: sshd
                  • Acknowledgments: We thank Theo de Raadt and the OpenBSD developers for their incredibly quick response: they published patches for these vulnerabilities less than 40 hours after our initial contact. We also thank MITRE's CVE Assignment Team.
                  • First release candidate for NetBSD 9.0 available!
                    • Since the start of the release process four months ago a lot of improvements went into the branch - more than 500 pullups were processed!
                    • This includes usbnet (a common framework for usb ethernet drivers), aarch64 stability enhancements and lots of new hardware support, installer/sysinst fixes and changes to the NVMM (hardware virtualization) interface.
                    • We hope this will lead to the best NetBSD release ever (only to be topped by NetBSD 10 next year).
                    • Here are a few highlights of the new release:

                    • Support for Arm AArch64 (64-bit Armv8-A) machines, including "Arm ServerReady"

                      compliant machines (SBBR+SBSA)
                      Enhanced hardware support for Armv7-A
                      Updated GPU drivers (e.g. support for Intel Kabylake)
                      Enhanced virtualization support
                      Support for hardware-accelerated virtualization (NVMM)
                      Support for Performance Monitoring Counters
                      Support for Kernel ASLR
                      Support several kernel sanitizers (KLEAK, KASAN, KUBSAN)
                      Support for userland sanitizers
                      Audit of the network stack
                      Many improvements in NPF
                      Updated ZFS
                      Reworked error handling and NCQ support in the SATA subsystem
                      Support a common framework for USB Ethernet drivers (usbnet)

                    • More information on the RC can be found on the NetBSD 9 release page

                    • News Roundup
                      Running FreeNAS on a Digitalocean droplet
                      • ZFS is awesome. FreeBSD even more so. FreeNAS is the battle-tested, enterprise-ready-yet-home-user-friendly software defined storage solution which is cooler then deep space, based on FreeBSD and makes heavy use of ZFS. This is what I (and soooooo many others) use for just about any storage-related task. I can go on and on and on about what makes it great, but if you're here, reading this, you probably know all that already and we can skip ahead.
                      • I've needed an offsite FreeNAS setup to replicate things to, to run some things, to do some stuff, basically, my privately-owned, tightly-controlled NAS appliance in the cloud, one I control from top to bottom and with support for whatever crazy thing I'm trying to do. Since I'm using DigitalOcean as my main VPS provider, it seemed logical to run FreeNAS there, however, you can't. While DO supports many many distos and pre-setup applications (e.g OpenVPN), FreeNAS isn't a supported feature, at least not in the traditional way :)
                      • Before we begin, here's the gist of what we're going to do:
                      • Base of a FreeBSD droplet, we'll re-image our boot block device with FreeNAS iso. We'll then install FreeNAS on the second block device. Once done we're going to do the ol' switcheroo: we're going to re-image our original boot block device using the now FreeNAS-installed second block device.

                        • Part 1: re-image our boot block device to boot FreeNAS install media.
                        • Part 2: Install FreeNAS on the second block-device
                        • Part 3: Re-image the boot block device using the FreeNAS-installed block device
                        • NomadBSD 1.3 is now available
                          • From the release notes:
                          • The base system has been changed to FreeBSD 12.1-RELEASE-p1

                            Due to a deadlock problem, FreeBSD's unionfs has been replaced by unionfs-fuse
                            The GPT layout has been changed to MBR. This prevents problems with Lenovo
                            systems that refuse to boot from GPT if "lenovofix" is not set, and systems that
                            hang on boot if "lenovofix" is set.
                            Support for ZFS installations has been added to the NomadBSD installer.
                            The rc-script for setting up the network interfaces has been fixed and improved.
                            Support for setting the country code for the wlan device has been added.
                            Auto configuration for running in VirtualBox has been added.
                            A check for the default display has been added to the graphics configuration scripts. This fixes problems where users with Optimus have their NVIDIA card disabled, and use the integrated graphics chip instead.
                            NVIDIA driver version 440 has been added.
                            nomadbsd-dmconfig, a Qt tool for selecting the display manager theme, setting the
                            default user and autologin has been added.
                            nomadbsd-adduser, a Qt tool for added preconfigured user accounts to the system has been added.
                            Martin Orszulik added Czech translations to the setup and installation wizard.
                            The NomadBSD logo, designed by Ian Grindley, has been changed.
                            Support for localized error messages has been added.
                            Support for localizing the password prompts has been added.
                            Some templates for starting other DEs have been added to ~/.xinitrc.
                            The interfaces of nomadbsd-setup-gui and nomadbsd-install-gui have been improved.
                            A script that helps users to configure a multihead systems has been added.
                            The Xorg driver for newer Intel GPUs has been changed from "intel" to "modesetting".
                            /proc has been added to /etc/fstab
                            A D-Bus session issue has been fixed which prevented thunar from accessing samba shares.
                            DSBBg which allows users to change and manage wallpapers has been added.
                            The latest version of update_obmenu now supports auto-updating the Openbox menu. Manually updating the Openbox menu after packet (de)installation is therefore no longer needed.

                            Support for multiple keyboard layouts has been added.

                            www/palemoon has been removed.
                            mail/thunderbird has been removed.
                            audio/audacity has been added.
                            deskutils/orage has been added.
                            the password manager fpm2 has been replaced by KeePassXC
                            mail/sylpheed has been replaced by mail/claws-mail
                            multimedia/simplescreenrecorder has been added.
                            DSBMC has been changed to DSBMC-Qt
                            Many small improvements and bug fixes.

                            At e2k19 nobody can hear you scream
                            • After 2 years it was once again time to pack skis and snowshoes, put a satellite dish onto a sledge and hike through the snowy rockies to the Elk Lakes hut.
                            • I did not really have much of a plan what I wanted to work on but there were a few things I wanted to look into. One of them was rpki-client and the fact that it was so incredibly slow. Since Bob beck@ was around I started to ask him innocent X509 questions ... as if there are innocent X509 questions! Mainly about the abuse of the X509_STORE in rpki-client. Pretty soon it was clear that rpki-client did it all wrong and most of the X509 verification had to be rewritten. Instead of only storing the root certificates in the store and passing the intermediate certs as a chain to the verification function rpki-client threw everything into it. The X509_STORE is just not built for such an abuse and so it was no wonder that this was slow.
                            • Lucky me I pulled benno@ with me into this dark hole of libcrypto code. He managed to build up an initial diff to pass the chains as a STACK_OF(X509) and together we managed to get it working. A big thanks goes to ingo@ who documented most of the functions we had to use. Have a look at STACK_OF(3) and sk_pop_free(3) to understand why benno@ and I slowly turned crazy.
                            • Our next challenge was to only load the necessary certificate revocation list into the X509_STORE_CTX. While doing those changes it became obvious that some of the data structures needed better lookup functions. Looking up certificates was done using a linear lookup and so we replaced the internal certificate and CRL tables with RB trees for fast lookups. deraadt@ also joined the rpki-client commit fest and changed the output code to use rename(2) so that files are replaced in an atomic operation. Thanks to this rpki-client can now be safely run from cron (there is an example in the default crontab).
                            • I did not plan to spend most of my week hacking on rpki-client but in the end I'm happy that I did and the result is fairly impressive. Working with libcrypto code and especially X509 was less than pleasant. Our screams of agony died away in the snowy rocky mountains and made Bob deep dive into UVM with a smile since he knew that benno@ and I had it worse.
                            • In case you wonder thanks to all changes at e2k19 rpki-client improved from over 20min run time to validate all VRPS to roughly 1min to do the same job. A factor 20 improvement!
                            • Thanks to Theo, Bob and Howie to make this possible. To all the cooks for the great food and to Xplornet for providing us with Internet at the hut.
                            • Beastie Bits
                              • FOSDEM 2020 BSD Devroom schedule
                              • Easy Minecraft Server on FreeBSD Howto
                              • stats(3) framework in the TCP stack
                              • 4017 days of uptime
                              • sysget - A front-end for every package manager
                              • PlayOnBSD’s Cross-BSD Shopping Guide
                              • Feedback/Questions
                                • Pat asks about the proper disk drive type for ZFS
                                • Brad asks about a ZFS rosetta stone
                                  • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                  • Your browser does not support the HTML5 video tag.

                                    Special Guest: Mariusz Zaborski.

                                    1 hr 16 min
                                  • 329: Lucas’ Arts

                                    In this episode, we interview Michael W. Lucas about his latest book projects, including the upcoming SNMP Mastery book.

                                    Interview - Michael Lucas
                                    • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                    • Your browser does not support the HTML5 video tag.

                                      Special Guest: Michael W Lucas.

                                      52 min
                                    • 328: EPYC Netflix Stack

                                      LLDB Threading support now ready, Multiple IPSec VPN tunnels with FreeBSD, Netflix Optimized FreeBSD's Network Stack More Than Doubled AMD EPYC Performance, happy eyeballs with unwind(8), AWS got FreeBSD ARM 12, OpenSSH U2F/FIDO support, and more.

                                      Headlines
                                      LLDB Threading support now ready for mainline

                                      Upstream describes LLDB as a next generation, high-performance debugger. It is built on top of LLVM/Clang toolchain, and features great integration with it. At the moment, it primarily supports debugging C, C++ and ObjC code, and there is interest in extending it to more languages.

                                      In February, I have started working on LLDB, as contracted by the NetBSD Foundation. So far I've been working on reenabling continuous integration, squashing bugs, improving NetBSD core file support, extending NetBSD's ptrace interface to cover more register types and fix compat32 issues and fixing watchpoint support. Then, I've started working on improving thread support which is taking longer than expected. You can read more about that in my September 2019 report.

                                      So far the number of issues uncovered while enabling proper threading support has stopped me from merging the work-in-progress patches. However, I've finally reached the point where I believe that the current work can be merged and the remaining problems can be resolved afterwards. More on that and other LLVM-related events happening during the last month in this report.

                                      Multiple IPSec VPN tunnels with FreeBSD

                                      The FreeBSD handbook describes an IPSec VPN tunnel between 2 FreeBSD hosts (see https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ipsec.html)

                                      But it is also possible to have multiple, 2 or more, IPSec VPN tunnels created and running on a FreeBSD host. How to implement and configure this is described below.

                                      The requirements is to have 3 locations (A, B and C) connected with IPSec VPN tunnels using FreeBSD (11.3-RELEASE).

                                      Each location has 1 IPSec VPN host running FreeBSD (VPN host A, B and C).

                                      VPN host A has 2 IPSec VPN tunnels: 1 to location B (VPN host B) and 1 to location C (VPN host C).

                                      News Roundup
                                      Netflix Optimized FreeBSD's Network Stack More Than Doubled AMD EPYC Performance

                                      Drew Gallatin of Netflix presented at the recent EuroBSDcon 2019 conference in Norway on the company's network stack optimizations to FreeBSD. Netflix was working on being able to deliver 200Gb/s network performance for video streaming out of Intel Xeon and AMD EPYC servers, to which they are now at 190Gb/s+ and in the process that doubled the potential of EPYC Naples/Rome servers and also very hefty upgrades too for Intel.

                                      Netflix has long been known to be using FreeBSD in their data centers particularly where network performance is concerned. But in wanting to deliver 200Gb/s throughput from individual servers led them to making NUMA optimizations to the FreeBSD network stack. Allocating NUMA local memory for kernel TLS crypto buffers and for backing files sent via sentfile were among their optimizations. Changes to network connection handling and dealing with incoming connections to Nginx were also made.

                                      For those just wanting the end result, Netflix's NUMA optimizations to FreeBSD resulted in their Intel Xeon servers going from 105Gb/s to 191Gb/s while the NUMA fabric utilization dropped from 40% to 13%.

                                      unwind(8); "happy eyeballs"

                                      In case you are wondering why happy eyeballs: It's a variation on this:

                                      https://en.wikipedia.org/wiki/Happy_Eyeballs

                                      unwind has a concept of a best nameserver type. It considers a configured DoT nameserver to be better than doing it's own recursive resolving. Recursive resolving is considered to be better than asking the dhcp provided nameservers.

                                      This diff sorts the nameserver types by quality, as above (validation, resolving, dead...), and as a tie breaker it adds the median of the round trip time of previous queries into the mix.

                                      One other interesting thing about this is that it gets us past captive portals without a check URL, that's why this diff is so huge, it rips out all the captive portal stuff (please apply with patch -E):

                                      17 files changed, 385 insertions(+), 1683 deletions(-)

                                      Please test this. I'm particularly interested in reports from people who move between networks and need to get past captive portals.

                                      Amazon now has FreeBSD ARM 12

                                      Product Overview

                                      FreeBSD is an operating system used to power servers, desktops, and embedded systems. Derived from BSD, the version of UNIX developed at the University of California, Berkeley, FreeBSD has been continually developed by a large community for more than 30 years.

                                      FreeBSD's networking, security, storage, and monitoring features, including the pf firewall, the Capsicum and CloudABI capability frameworks, the ZFS filesystem, and the DTrace dynamic tracing framework, make FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage systems.

                                      OpenSSH U2F/FIDO support in base

                                      I just committed all the dependencies for OpenSSH security key (U2F) support to base and tweaked OpenSSH to use them directly. This means there will be no additional configuration hoops to jump through to use U2F/FIDO2 security keys.

                                      Hardware backed keys can be generated using "ssh-keygen -t ecdsa-sk" (or "ed25519-sk" if your token supports it). Many tokens require to be touched/tapped to confirm this step.

                                      You'll get a public/private keypair back as usual, except in this case, the private key file does not contain a highly-sensitive private key but instead holds a "key handle" that is used by the security key to derive the real private key at signing time.

                                      So, stealing a copy of the private key file without also stealing your security key (or access to it) should not give the attacker anything.

                                      Once you have generated a key, you can use it normally - i.e. add it to an agent, copy it to your destination's authorized_keys files (assuming they are running -current too), etc. At authentication time, you will be prompted to tap your security key to confirm the signature operation - this makes theft-of-access attacks against security keys more difficult too.

                                      Please test this thoroughly - it's a big change that we want to have stable before the next release.

                                      Beastie Bits
                                      • DragonFly - git: virtio - Fix LUN scan issue w/ Google Cloud
                                      • Really fast Markov chains in ~20 lines of sh, grep, cut and awk
                                      • FreeBSD Journal Sept/Oct 2019
                                      • Michael Dexter is raising money for Bhyve development
                                      • syscall call-from verification
                                      • FreeBSD Forums Howto Section
                                      • Feedback/Questions
                                        • Jeroen - Feedback
                                        • Savo - pfsense ports
                                        • Tin - I want to learn C
                                          • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                          • Your browser does not support the HTML5 video tag.
                                            58 min
                                          • 327: ZFS Rename Repo

                                            We read FreeBSD’s third quarterly status report, OpenBSD on Sparc64, ZoL repo move to OpenZFS, GEOM NOP, keeping NetBSD up-to-date, and more.

                                            Headlines
                                            FreeBSD third quarterly status report for 2019

                                            This quarter the reports team has been more active than usual thanks to a better organization: calls for reports and reminders have been sent regularly, reports have been reviewed and merged quickly (I would like to thank debdrup@ in particular for his reviewing work).

                                            Efficiency could still be improved with the help of our community. In particular, the quarterly team has found that many reports have arrived in the last days before the deadline or even after. I would like to invite the community to follow the guidelines below that can help us sending out the reports sooner.

                                            Starting from next quarter, all quarterly status reports will be prepared the last month of the quarter itself, instead of the first month after the quarter's end. This means that deadlines for submitting reports will be the 1st of January, April, July and October.

                                            Next quarter will then be a short one, covering the months of November and December only and the report will probably be out in mid January.

                                            OpenBSD on Sparc64

                                            OpenBSD, huh? Yes, I usually write about FreeBSD and that’s in fact what I tried installing on the machine first. But I ran into problems with it very early on (never even reached single user mode) and put it aside for later. Since I powered up the SunFire again last month, I needed an OS now and chose OpenBSD for the simple reason that I have it available.

                                            First I wanted to call this article simply “OpenBSD on SPARC” – but that would have been misleading since OpenBSD used to support 32-bit SPARC processors, too. The platform was just put to rest after the 5.9 release.

                                            Version 6.0 was the last release of OpenBSD that came on CD-ROM. When I bought it, I thought that I’d never use the SPARC CD. But here was the chance! While it is an obsolete release, it comes with the cryptographic signatures to verify the next release. So the plan is to start at 6.0 as I can trust the original CDs and then update to the latest release. This will also be an opportunity to recap on some of the things that changed over the various versions.

                                            News Roundup
                                            ZoL repo move to OpenZFS

                                            Because it will contain the ZFS source code for both Linux and FreeBSD, we will rename the "ZFSonLinux" code repository to "OpenZFS". Specifically, the repo at http://github.com/ZFSonLinux/zfs will be moved to the OpenZFS organization, at http://github.com/OpenZFS/zfs.

                                            The next major release of ZFS for Linux and FreeBSD will be "OpenZFS 2.0", and is expected to ship in 2020.

                                            Mcclure111 Sun Thread

                                            A long time ago— like 15 years ago— I worked at Sun Microsystems. The company was nearly dead at the time (it died a couple years later) because they didn't make anything that anyone wanted to buy anymore. So they had a lot of strange ideas about how they'd make their comeback.

                                            GEOM NOP

                                            Sometimes while testing file systems or applications you want to simulate some errors on the disk level. The first time I heard about this need was from Baptiste Daroussin during his presentation at AsiaBSDCon 2016. He mentioned how they had built a test lab with it. The same need was recently discussed during the PGCon 2019, to test a PostgreSQL instance. If you are FreeBSD user, I have great news for you: there is a GEOM provider which allows you to simulate a failing device.

                                            GNOP allows us to configure transparent providers from existing ones. The first interesting option of it is that we can slice the device into smaller pieces, thanks to the ‘offset option’ and ‘stripsesize’. This allows us to observe how the data on the disk is changing. Let’s assume that we want to observe the changes in the GPT table when the GPT flags are added or removed (for example the bootme flags which are described here). We can use dd every time and analyze it using absolute values from the disks.

                                            Keeping NetBSD up-to-date with pkg_comp 2.0

                                            This is a tutorial to guide you through the shiny new pkg_comp 2.0 on NetBSD.

                                            Goals: to use pkg_comp 2.0 to build a binary repository of all the packages you are interested in; to keep the repository fresh on a daily basis; and to use that repository with pkgin to maintain your NetBSD system up-to-date and secure.

                                            This tutorial is specifically targeted at NetBSD but should work on other platforms with some small changes. Expect, at the very least, a macOS-specific tutorial as soon as I create a pkg_comp standalone installer for that platform.

                                            Beastie Bits
                                            • DragonFly - Radeon Improvements
                                            • NomadBSD review
                                            • Spongebob OpenBSD Security Comic
                                            • Forth : The Early Years
                                            • LCM+L PDP-7 booting and running UNIX Version 0
                                            • Feedback/Questions
                                              • Chris - Ctrl-T
                                                • Improved Ctrl+t that shows kernel backtrace
                                                • Brian - Migrating NexentaStore to FreeBSD/FreeNAS
                                                • Avery - How to get involved
                                                  • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                                  • Your browser does not support the HTML5 video tag.
                                                    1 hr 24 min
                                                  • 326: Certified BSD

                                                    LPI releases BSD Certification, openzfs trip report, Using FreeBSD with ports, LLDB threading support ready, Linux versus Open Source Unix, and more.

                                                    Headlines
                                                    Linux Professional Institute Releases BSD Specialist Certification - re BSD Certification Group

                                                    Linux Professional Institute extends its Open Technology certification track with the BSD Specialist Certification. Starting October 30, 2019, BSD Specialist exams will be globally available. The certification was developed in collaboration with the BSD Certification Group which merged with Linux Professional Institute in 2018.

                                                    G. Matthew Rice, the Executive Director of Linux Professional Institute says that "the release of the BSD Specialist certification marks a major milestone for Linux Professional Institute. With this new credential, we are reaffirming our belief in the value of, and support for, all open source technologies. As much as possible, future credentials and educational programs will include coverage of BSD.”

                                                    OpenZFS Trip Report

                                                    The seventh annual OpenZFS Developer Summit took place on November 4th and 5th in San Francisco and brought together a healthy mix of familiar faces and new community participants. Several folks from iXsystems took part in the talks, hacking, and socializing at this amazing annual event. The messages of the event can be summed up as Unification, Refinement, and Ecosystem Tooling.

                                                    News Roundup
                                                    Using FreeBSD with Ports (2/2): Tool-assisted updating
                                                    • Part 1 here: https://eerielinux.wordpress.com/2019/08/18/using-freebsd-with-ports-1-2-classic-way-with-tools/
                                                    • In the previous post I explained why sometimes building your software from ports may make sense on FreeBSD. I also introduced the reader to the old-fashioned way of using tools to make working with ports a bit more convenient.

                                                      In this follow-up post we’re going to take a closer look at portmaster and see how it especially makes updating from ports much, much easier. For people coming here without having read the previous article: What I describe here is not what every FreeBSD admin today should consider good practice (any more)! It can still be useful in special cases, but my main intention is to discuss this for building up the foundation for what you actually should do today.

                                                      LLDB Threading support now ready for mainline

                                                      Upstream describes LLDB as a next generation, high-performance debugger. It is built on top of LLVM/Clang toolchain, and features great integration with it. At the moment, it primarily supports debugging C, C++ and ObjC code, and there is interest in extending it to more languages.

                                                      In February, I have started working on LLDB, as contracted by the NetBSD Foundation. So far I've been working on reenabling continuous integration, squashing bugs, improving NetBSD core file support, extending NetBSD's ptrace interface to cover more register types and fix compat32 issues and fixing watchpoint support. Then, I've started working on improving thread support which is taking longer than expected. You can read more about that in my September 2019 report.

                                                      So far the number of issues uncovered while enabling proper threading support has stopped me from merging the work-in-progress patches. However, I've finally reached the point where I believe that the current work can be merged and the remaining problems can be resolved afterwards. More on that and other LLVM-related events happening during the last month in this report.

                                                      Linux VS open source UNIX
                                                      Beastie Bits
                                                      • Support for Realtek RTL8125 2.5Gb Ethernet controller
                                                      • Computer Files Are Going Extinct
                                                      • FreeBSD kernel hacking
                                                      • Modern BSD Computing for Fun on a VAX! Trying to use a VAX in today's world by Jeff Armstrong
                                                      • MidnightBSD 1.2 Released
                                                      • Feedback/Questions
                                                        • Paulo - Zfs snapshots
                                                        • Phillip - GCP
                                                        • A Listener - Old episodes?
                                                          • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                                          • Your browser does not support the HTML5 video tag.
                                                            1 hr 1 min
                                                          • 325: Cracking Rainbows

                                                            FreeBSD 12.1 is here, A history of Unix before Berkeley, FreeBSD development setup, HardenedBSD 2019 Status Report, DNSSEC, compiling RainbowCrack on OpenBSD, and more.

                                                            Headlines
                                                            FreeBSD 12.1
                                                            • Some of the highlights:

                                                              • BearSSL has been imported to the base system.
                                                              • The clang, llvm, lld, lldb, compiler-rt utilities and libc++ have been updated to version 8.0.1.
                                                              • OpenSSL has been updated to version 1.1.1d.
                                                              • Several userland utility updates.
                                                              • For a complete list of new features and known problems, please see the online release notes and errata list, available at: https://www.FreeBSD.org/releases/12.1R/relnotes.html

                                                              • A History of UNIX before Berkeley: UNIX Evolution: 1975-1984.

                                                                Nobody needs to be told that UNIX is popular today. In this article we will show you a little of where it was yesterday and over the past decade. And, without meaning in the least to minimise the incredible contributions of Ken Thompson and Dennis Ritchie, we will bring to light many of the others who worked on early versions, and try to show where some of the key ideas came from, and how they got into the UNIX of today.

                                                                Our title says we are talking about UNIX evolution. Evolution means different things to different people. We use the term loosely, to describe the change over time among the many different UNIX variants in use both inside and outside Bell Labs. Ideas, code, and useful programs seem to have made their way back and forth - like mutant genes - among all the many UNIXes living in the phone company over the decade in question.

                                                                Part One looks at some of the major components of the current UNIX system - the text formatting tools, the compilers and program development tools, and so on. Most of the work described in Part One took place at Research'', a part of Bell Laboratories (now AT&T Bell Laboratories, then as nowthe Labs''), and the ancestral home of UNIX. In planned (but not written) later parts, we would have looked at some of the myriad versions of UNIX - there are far more than one might suspect. This includes a look at Columbus and USG and at Berkeley Unix. You'll begin to get a glimpse inside the history of the major streams of development of the system during that time.

                                                                News Roundup
                                                                My FreeBSD Development Setup

                                                                I do my FreeBSD development using git, tmux, vim and cscope.

                                                                I keep a FreeBSD fork on my github, I have forked https://github.com/freebsd/freebsd to https://github.com/adventureloop/freebsd

                                                                OPNsense 19.7.6 released

                                                                As we are experiencing the Suricata community first hand in Amsterdam we thought to release this version a bit earlier than planned. Included is the latest Suricata 5.0.0 release in the development version. That means later this November we will releasing version 5 to the production version as we finish up tweaking the integration and maybe pick up 5.0.1 as it becomes available.

                                                                LDAP TLS connectivity is now integrated into the system trust store, which ensures that all required root and intermediate certificates will be seen by the connection setup when they have been added to the authorities section. The same is true for trusting self-signed certificates. On top of this, IPsec now supports public key authentication as contributed by Pascal Mathis.

                                                                HardenedBSD November 2019 Status Report.

                                                                We at HardenedBSD have a lot of news to share. On 05 Nov 2019, Oliver Pinter resigned amicably from the project. All of us at HardenedBSD owe Oliver our gratitude and appreciation. This humble project, named by Oliver, was born out of his thesis work and the collaboration with Shawn Webb. Oliver created the HardenedBSD repo on GitHub in April 2013. The HardenedBSD Foundation was formed five years later to carry on this great work.

                                                                DNSSEC enabled in default unbound(8) configuration.

                                                                DNSSEC validation has been enabled in the default unbound.conf(5) in -current. The relevant commits were from Job Snijders (job@)

                                                                How to Install Shopware with NGINX and Let's Encrypt on FreeBSD 12

                                                                Shopware is the next generation of open source e-commerce software. Based on bleeding edge technologies like Symfony 3, Doctrine2 and Zend Framework Shopware comes as the perfect platform for your next e-commerce project. This tutorial will walk you through the Shopware Community Edition (CE) installation on FreeBSD 12 system by using NGINX as a web server.

                                                                • Requirements
                                                                • Make sure your system meets the following minimum requirements:

                                                                  • Linux-based operating system with NGINX or Apache 2.x (with mod_rewrite) web server installed.
                                                                  • PHP 5.6.4 or higher with ctype, gd, curl, dom, hash, iconv, zip, json, mbstring, openssl, session, simplexml, xml, zlib, fileinfo, and pdo/mysql extensions. PHP 7.1 or above is strongly recommended.
                                                                  • MySQL 5.5.0 or higher.
                                                                  • Possibility to set up cron jobs.
                                                                  • Minimum 4 GB available hard disk space.
                                                                  • IonCube Loader version 5.0.0 or higher (optional).
                                                                  • How to Compile RainbowCrack on OpenBSD

                                                                    Project RainbowCrack was originally Zhu Shuanglei's implementation, it's not clear to me if the project is still just his or if it's even been maintained for a while. His page seems to have been last updated in August 2007.

                                                                    The Project RainbowCrack web page now has just binaries for Windows XP and Linux, both 32-bit and 64-bit versions.

                                                                    Earlier versions were available as source code. The version 1.2 source code does not compile on OpenBSD, and in my experience it doesn't compile on Linux, either. It seems to date from 2004 at the earliest, and I think it makes some version-2.4 assumptions about Linux kernel headers.

                                                                    • You might also look at ophcrack, a more modern tool, although it seems to be focused on cracking Windows XP/Vista/7/8/10 password hashes
                                                                    • Feedback/Questions
                                                                      • Reese - Amature radio info
                                                                      • Chris - VPN
                                                                      • Malcolm - NAT
                                                                        • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                                                        • Your browser does not support the HTML5 video tag.
                                                                          58 min
                                                                        • 324: Emergency Space Mode

                                                                          Migrating drives and zpool between hosts, OpenBSD in 2019, Dragonfly’s new zlib and dhcpcd, Batch renaming images and resolution with awk, a rant on the X11 ICCCM selection system, hammer 2 emergency space mode, and more.

                                                                          Headlines
                                                                          Migrating drives and the zpool from one host to another.

                                                                          Today is the day.

                                                                          Today I move a zpool from an R710 into an R720. The goal: all services on that zpool start running on the new host.

                                                                          Fortunately, that zpool is dedicated to jails, more or less. I have done some planning about this, including moving a poudriere on the R710 into a jail.

                                                                          Now it is almost noon on Saturday, I am sitting in the basement (just outside the server room), and I’m typing this up.

                                                                          • In this post:

                                                                            • FreeBSD 12.0
                                                                            • Dell R710 (r710-01)
                                                                            • Dell R720 (r720-01)
                                                                            • drive caddies from eBay and now I know the difference between SATA and SATAu
                                                                            • PLEASE READ THIS first: Migrating ZFS Storage Pools

                                                                            • OpenBSD in 2019

                                                                              I’ve used OpenBSD on and off since 2.1. More back then than in the last 10 years or so though, so I thought I’d try it again.

                                                                              What triggered this was me finding a silly bug in GNU cpio that has existed with a “FIXME” comment since at least 1994. I checked OpenBSD to see if it had a related bug, but as expected no it was just fine.

                                                                              I don’t quite remember why I stopped using OpenBSD for servers, but I do remember filesystem corruption on “unexpected power disconnections” (even with softdep turned on), which I’ve never really seen on Linux.

                                                                              That and that fewer things “just worked” than with Linux, which matters more when I installed more random things than I do now. I’ve become a lot more minimalist. Probably due to less spare time. Life is better when you don’t run things like PHP (not that OpenBSD doesn’t support PHP, just an example) or your own email server with various antispam tooling, and other things.

                                                                              This is all experience from running OpenBSD on a server. On my next laptop I intend to try running OpenBSD on the dektop, and will see if that more ad-hoc environment works well. E.g. will gnuradio work? Lack of other-OS VM support may be a problem.

                                                                              • Verdict
                                                                              • Ouch, that’s a long list of bad stuff. Still, I like it. I’ll continue to run it, and will make sure my stuff continues working on OpenBSD.

                                                                                And maybe in a year I’ll have a review of OpenBSD on a laptop.

                                                                                News Roundup
                                                                                New zlib, new dhcpcd

                                                                                zlib and dhcpcd are both updated in DragonFly… but my quick perusal of the commits makes it sound like bugfix only; no usage changes needed.

                                                                                • DHCPCD Commit: http://lists.dragonflybsd.org/pipermail/commits/2019-October/719768.html
                                                                                • ZLIB Commit: http://lists.dragonflybsd.org/pipermail/commits/2019-October/719772.html
                                                                                • Batch renaming images, including image resolution, with awk

                                                                                  The most recent item on my list of “Geeky things I did that made me feel pretty awesome” is an hour’s adventure that culminated in this code:

                                                                                  $ file IMG* | awk 'BEGIN{a=0} {print substr($1, 1, length($1)-5),a++"_"substr($8,1, length($8)-1)}' | while read fn fr; do echo $(rename -v "s/$fn/img_$fr/g" *); done
                                                                                  IMG_20170808_172653_425.jpg renamed as img_0_4032x3024.jpg
                                                                                  IMG_20170808_173020_267.jpg renamed as img_1_3024x3506.jpg
                                                                                  IMG_20170808_173130_616.jpg renamed as img_2_3024x3779.jpg
                                                                                  IMG_20170808_173221_425.jpg renamed as img_3_3024x3780.jpg
                                                                                  IMG_20170808_173417_059.jpg renamed as img_4_2956x2980.jpg
                                                                                  IMG_20170808_173450_971.jpg renamed as img_5_3024x3024.jpg
                                                                                  IMG_20170808_173536_034.jpg renamed as img_6_4032x3024.jpg
                                                                                  IMG_20170808_173602_732.jpg renamed as img_7_1617x1617.jpg
                                                                                  IMG_20170808_173645_339.jpg renamed as img_8_3024x3780.jpg
                                                                                  IMG_20170909_170146_585.jpg renamed as img_9_3036x3036.jpg
                                                                                  IMG_20170911_211522_543.jpg renamed as img_10_3036x3036.jpg
                                                                                  IMG_20170913_071608_288.jpg renamed as img_11_2760x2760.jpg
                                                                                  IMG_20170913_073205_522.jpg renamed as img_12_2738x2738.jpg
                                                                                  // ... etc etc

                                                                                  The last item on the aforementioned list is “TODO: come up with a shorter title for this list.”

                                                                                  I hate the X11 ICCCM selection system, and you should too - A Rant

                                                                                  d00d, that document is devilspawn. I've recently spent my nights in pain

                                                                                  implementing the selection mechanism. WHY OH WHY OH WHY? why me? why did I choose to do this? and what sick evil twisted mind wrote this damn spec? I don't know why I'm working with it, I just wanted to make a useful program.

                                                                                  I didn't know what I was getting myself in to. Nobody knows until they try it. And once you start, you're unable to stop. You can't stop, if you stop then you haven't completed it to spec. You can't fail on this, it's just a few pages of text, how can that be so hard? So what if they use Atoms for everything. So what if there's no explicit correlation between the target type of a SelectionNotify event and the type of the property it indicates?

                                                                                  So what if the distinction is ambiguous? So what if the document is littered with such atrocities? It's not the spec's fault, the spec is authoritative. It's obviously YOUR (the implementor's) fault for misunderstanding it. If you didn't misunderstand it, you wouldn't be here complaining about it would you?

                                                                                  HAMMER2 emergency space mode

                                                                                  As anyone who has been running HAMMER1 or HAMMER2 has noticed, snapshots and copy on write and infinite history can eat a lot of disk space, even if the actual file volume isn’t changing much. There’s now an ‘emergency mode‘ for HAMMER2, where disk operations can happen even if there isn’t space for the normal history activity. It’s dangerous, in that the normal protections against data loss if power is cut go away, and snapshots created while in this mode will be mangled. So definitely don’t leave it on!

                                                                                  Beastie Bits
                                                                                  • The BastilleBSD community has started work on over 100 automation templates
                                                                                  • PAM perturbed
                                                                                  • OpenBSD T-Shirts now available
                                                                                  • FastoCloud (Opensource Media Service) now available on FreeBSD
                                                                                  • Unix: A History and a Memoir by Brian Kernighan now available
                                                                                  • OpenBSD Moonlight game streaming client from a Windows + Nvidia PC
                                                                                  • ***
                                                                                    Feedback/Questions
                                                                                    • Tim - Release Notes for Lumina 1.5
                                                                                      • Answer Here
                                                                                      • Brad - vBSDcon Trip Report
                                                                                      • Jacob - Using terminfo on FreeBSD
                                                                                        • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                                                                        • Your browser does not support the HTML5 video tag.
                                                                                          47 min
                                                                                        • 323: OSI Burrito Guy

                                                                                          The earliest Unix code, how to replace fail2ban with blacklistd, OpenBSD crossed 400k commits, how to install Bolt CMS on FreeBSD, optimized hammer2, appeasing the OSI 7-layer burrito guys, and more.

                                                                                          Headlines
                                                                                          The Earliest Unix Code: An Anniversary Source Code Release

                                                                                          What is it that runs the servers that hold our online world, be it the web or the cloud? What enables the mobile apps that are at the center of increasingly on-demand lives in the developed world and of mobile banking and messaging in the developing world? The answer is the operating system Unix and its many descendants: Linux, Android, BSD Unix, MacOS, iOS—the list goes on and on. Want to glimpse the Unix in your Mac? Open a Terminal window and enter “man roff” to view the Unix manual entry for an early text formatting program that lives within your operating system.

                                                                                          2019 marks the 50th anniversary of the start of Unix. In the summer of 1969, that same summer that saw humankind’s first steps on the surface of the Moon, computer scientists at the Bell Telephone Laboratories—most centrally Ken Thompson and Dennis Ritchie—began the construction of a new operating system, using a then-aging DEC PDP-7 computer at the labs.

                                                                                          This man sent the first online message 50 years ago
                                                                                          • As many of you have heard in the past, the first online message ever sent between two computers was "lo", just over 50 years ago, on Oct. 29, 1969.
                                                                                          • It was supposed to say "log," but the computer sending the message — based at UCLA — crashed before the letter "g" was typed. A computer at Stanford 560 kilometres away was supposed to fill in the remaining characters "in," as in "log in."

                                                                                            • The CBC Radio show, “The Current” has a half-hour interview with the man who sent that message, Leonard Kleinrock, distinguished professor of computer science at UCLA
                                                                                            • "The idea of the network was you could sit at one computer, log on through the network to a remote computer and use its services there,"

                                                                                              50 years later, the internet has become so ubiquitous that it has almost been rendered invisible. There's hardly an aspect in our daily lives that hasn't been touched and transformed by it.

                                                                                              Q: Take us back to that day 50 years ago. Did you have the sense that this was going to be something you'd be talking about a half a century later?

                                                                                              A: Well, yes and no. Four months before that message was sent, there was a press release that came out of UCLA in which it quotes me as describing what my vision for this network would become. Basically what it said is that this network would be always on, always available. Anybody with any device could get on at anytime from any location, and it would be invisible.

                                                                                              Well, what I missed ... was that this is going to become a social network. People talking to people. Not computers talking to computers, but [the] human element.

                                                                                              Q: Can you briefly explain what you were working on in that lab? Why were you trying to get computers to actually talk to one another?

                                                                                              A: As an MIT graduate student, years before, I recognized I was surrounded by computers and I realized there was no effective [or efficient] way for them to communicate. I did my dissertation, my research, on establishing a mathematical theory of how these networks would work. But there was no such network existing. AT&T said it won't work and, even if it does, we want nothing to do with it.

                                                                                              So I had to wait around for years until the Advanced Research Projects Agency within the Department of Defence decided they needed a network to connect together the computer scientists they were supervising and supporting.

                                                                                              Q: For all the promise of the internet, it has also developed some dark sides that I'm guessing pioneers like yourselves never anticipated.

                                                                                              A: We did not. I knew everybody on the internet at that time, and they were all well-behaved and they all believed in an open, shared free network. So we did not put in any security controls.

                                                                                              When the first spam email occurred, we began to see the dark side emerge as this network reached nefarious people sitting in basements with a high-speed connection, reaching out to millions of people instantaneously, at no cost in time or money, anonymously until all sorts of unpleasant events occurred, which we called the dark side.

                                                                                              But in those early days, I considered the network to be going through its teenage years. Hacking to spam, annoying kinds of effects. I thought that one day this network would mature and grow up. Well, in fact, it took a turn for the worse when nation states, organized crime and extremists came in and began to abuse the network in severe ways.

                                                                                              Q: Is there any part of you that regrets giving birth to this?

                                                                                              A: Absolutely not. The greater good is much more important.

                                                                                              News Roundup
                                                                                              How to use blacklistd(8) with NPF as a fail2ban replacement

                                                                                              blacklistd(8) provides an API that can be used by network daemons to communicate with a packet filter via a daemon to enforce opening and closing ports dynamically based on policy.

                                                                                              The interface to the packet filter is in /libexec/blacklistd-helper (this is currently designed for npf) and the configuration file (inspired from inetd.conf) is in etc/blacklistd.conf

                                                                                              Now, blacklistd(8) will require bpfjit(4) (Just-In-Time compiler for Berkeley Packet Filter) in order to properly work, in addition to, naturally, npf(7) as frontend and syslogd(8), as a backend to print diagnostic messages. Also remember npf shall rely on the npflog* virtual network interface to provide logging for tcpdump() to use.

                                                                                              Unfortunately (dont' ask me why ??) in 8.1 all the required kernel components are still not compiled by default in the GENERIC kernel (though they are in HEAD), and are rather provided as modules. Enabling NPF and blacklistd services would normally result in them being automatically loaded as root, but predictably on securelevel=1 this is not going to happen.

                                                                                              • FreeBSD’s handbook chapter on blacklistd
                                                                                              • OpenBSD crossed 400,000 commits

                                                                                                Sometime in the last week OpenBSD crossed 400,000 commits (*) upon all our repositories since starting at 1995/10/18 08:37:01 Canada/Mountain. That's a lot of commits by a lot of amazing people.

                                                                                                (*) by one measure. Since the repository is so large and old, there are a variety of quirks including ChangeLog missing entries and branches not convertible to other repo forms, so measuring is hard. If you think you've got a great way of measuring, don't be so sure of yourself -- you may have overcounted or undercounted.

                                                                                                • Subject to the notes Theo made about under and over counting, FreeBSD should hit 1 million commits (base + ports + docs) some time in 2020
                                                                                                • NetBSD + pkgsrc are approaching 600,000, but of course pkgsrc covers other operating systems too
                                                                                                • How to Install Bolt CMS with Nginx and Let's Encrypt on FreeBSD 12

                                                                                                  Bolt is a sophisticated, lightweight and simple CMS built with PHP. It is released under the open-source MIT-license and source code is hosted as a public repository on Github. A bolt is a tool for Content Management, which strives to be as simple and straightforward as possible. It is quick to set up, easy to configure, uses elegant templates. Bolt is created using modern open-source libraries and is best suited to build sites in HTML5 with modern markup. In this tutorial, we will go through the Bolt CMS installation on FreeBSD 12 system by using Nginx as a web server, MySQL as a database server, and optionally you can secure the transport layer by using acme.sh client and Let's Encrypt certificate authority to add SSL support.

                                                                                                  • Requirements
                                                                                                  • The system requirements for Bolt are modest, and it should run on any fairly modern web server:
                                                                                                    • PHP version 5.5.9 or higher with the following common PHP extensions: pdo, mysqlnd, pgsql, openssl, curl, gd, intl, json, mbstring, opcache, posix, xml, fileinfo, exif, zip.
                                                                                                    • Access to SQLite (which comes bundled with PHP), or MySQL or PostgreSQL.
                                                                                                    • Apache with mod_rewrite enabled (.htaccess files) or Nginx (virtual host configuration covered below).
                                                                                                    • A minimum of 32MB of memory allocated to PHP.
                                                                                                    • hammer2 - Optimize hammer2 support threads and dispatch

                                                                                                      Refactor the XOP groups in order to be able to queue strategy calls, whenever possible, to the same CPU as the issuer. This optimizes several cases and reduces unnecessary IPI traffic between cores. The next best thing to do would be to not queue certain XOPs to an H2 support thread at all, but I would like to keep the threads intact for later clustering work.

                                                                                                      The best scaling case for this is when one has a large number of user threads doing I/O. One instance of a single-threaded program on an otherwise idle machine might see a slightly reduction in performance but at the same time we completely avoid unnecessarily spamming all cores in the system on the behalf of a single program, so overhead is also significantly lower.

                                                                                                      This will tend to increase the number of H2 support threads since we need a certain degree of multiplication for domain separation.

                                                                                                      This should significantly increase I/O performance for multi-threaded workloads.

                                                                                                      You know, we might as well just run every network service over HTTPS/2 and build another six layers on top of that to appease the OSI 7-layer burrito guys

                                                                                                      I've seen the writing on the wall, and while for now you can configure Firefox not to use DoH, I'm not confident enough to think it will remain that way. To that end, I've finally set up my own DoH server for use at Chez Boca. It only involved setting up my own CA to generate the appropriate certificates, install my CA certificate into Firefox, configure Apache to run over HTTP/2 (THANK YOU SO VERY XXXXX­XX MUCH GOOGLE FOR SHOVING THIS HTTP/2 XXXXX­XXX DOWN OUR THROATS!—no, I'm not bitter) and write a 150 line script that just queries my own local DNS, because, you know, it's more XXXXX­XX secure or some XXXXX­XXX reason like that.

                                                                                                      Sigh.

                                                                                                      Beastie Bits
                                                                                                      • An Oral History of Unix
                                                                                                      • NUMA Siloing in the FreeBSD Network Stack [pdf]
                                                                                                      • EuroBSDCon 2019 videos available
                                                                                                      • Barbie knows best
                                                                                                      • For the #OpenBSD #e2k19 attendees. I did a pre visit today.
                                                                                                      • Drawer Find
                                                                                                      • Slides - Removing ROP Gadgets from OpenBSD - AsiaBSDCon 2019
                                                                                                      • Feedback/Questions
                                                                                                        • Bostjan - Open source doesn't mean secure
                                                                                                        • Malcolm - Allan is Correct.
                                                                                                        • Michael - FreeNAS inside a Jail

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

                                                                                                        • Your browser does not support the HTML5 video tag.
                                                                                                          50 min
                                                                                                        • 322: Happy Birthday, Unix

                                                                                                          Unix is 50, Hunting down Ken's PDP-7, OpenBSD and OPNSense have new releases, Clarification on what GhostBSD is, sshuttle - VPN over SSH, and more.

                                                                                                          Headlines
                                                                                                          Unix is 50

                                                                                                          In the summer of 1969 computer scientists Ken Thompson and Dennis Ritchie created the first implementation of Unix with the goal of designing an elegant and economical operating system for a little-used PDP-7 minicomputer at Bell Labs. That modest project, however, would have a far-reaching legacy. Unix made large-scale networking of diverse computing systems — and the Internet — practical. The Unix team went on to develop the C language, which brought an unprecedented combination of efficiency and expressiveness to programming. Both made computing more "portable". Today, Linux, the most popular descendent of Unix, powers the vast majority of servers, and elements of Unix and Linux are found in most mobile devices. Meanwhile C++ remains one of the most widely used programming languages today. Unix may be a half-century old but its influence is only growing.

                                                                                                          Hunting down Ken's PDP-7: video footage found

                                                                                                          In my prior blog post, I traced Ken's scrounged PDP-7 to SN 34. In this post I'll show that we have actual video footage of that PDP-7 due to an old film from Bell Labs. this gives us almost a minute of footage of the PDP-7 Ken later used to create Unix.

                                                                                                          News Roundup
                                                                                                          OpenBSD 6.6 Released
                                                                                                          • Announce: https://marc.info/?l=openbsd-tech&m=157132024225971&w=2
                                                                                                          • Upgrade Guide: https://openbsd.org/faq/upgrade66.html
                                                                                                          • Changelog: https://openbsd.org/plus66.html
                                                                                                          • OPNsense 19.7.5 released

                                                                                                            Hello friends and followers, Lots of plugin and ports updates this time with a few minor improvements in all core areas. Behind the scenes we are starting to migrate the base system to version

                                                                                                            12.1 which is supposed to hit the next 20.1 release. Stay tuned for more infos in the next month or so.

                                                                                                            Here are the full patch notes:

                                                                                                            • system: show all swap partitions in system information widget
                                                                                                            • system: flatten services_get() in preparation for removal
                                                                                                            • system: pin Syslog-ng version to specific package name
                                                                                                            • system: fix LDAP/StartTLS with user import page
                                                                                                            • system: fix a PHP warning on authentication server page
                                                                                                            • system: replace most subprocess.call use
                                                                                                            • interfaces: fix devd handling of carp devices (contributed by stumbaumr)
                                                                                                            • firewall: improve firewall rules inline toggles
                                                                                                            • firewall: only allow TCP flags on TCP protocol
                                                                                                            • firewall: simplify help text for direction setting
                                                                                                            • firewall: make protocol log summary case insensitive
                                                                                                            • reporting: ignore malformed flow records
                                                                                                            • captive portal: fix type mismatch for timeout read
                                                                                                            • dhcp: add note for static lease limitation with lease registration (contributed by Northguy)
                                                                                                            • ipsec: add margintime and rekeyfuzz options
                                                                                                            • ipsec: clear $dpdline correctly if not set
                                                                                                            • ui: fix tokenizer reorder on multiple saves
                                                                                                            • plugins: os-acme-client 1.26[1]
                                                                                                            • plugins: os-bind will reload bind on record change (contributed by blablup)
                                                                                                            • plugins: os-etpro-telemetry minor subprocess.call replacement
                                                                                                            • plugins: os-freeradius 1.9.4[2]
                                                                                                            • plugins: os-frr 1.12[3]
                                                                                                            • plugins: os-haproxy 2.19[4]
                                                                                                            • plugins: os-mailtrail 1.2[5]
                                                                                                            • plugins: os-postfix 1.11[6]
                                                                                                            • plugins: os-rspamd 1.8[7]
                                                                                                            • plugins: os-sunnyvalley LibreSSL support (contributed by Sunny Valley Networks)
                                                                                                            • plugins: os-telegraf 1.7.6[8]
                                                                                                            • plugins: os-theme-cicada 1.21 (contributed by Team Rebellion)
                                                                                                            • plugins: os-theme-tukan 1.21 (contributed by Team Rebellion)
                                                                                                            • plugins: os-tinc minor subprocess.call replacement
                                                                                                            • plugins: os-tor 1.8 adds dormant mode disable option (contributed by Fabian Franz)
                                                                                                            • plugins: os-virtualbox 1.0 (contributed by andrewhotlab)
                                                                                                            • Dealing with the misunderstandings of what is GhostBSD

                                                                                                              Since the release of 19.09, I have seen a lot of misunderstandings on what is GhostBSD and the future of GhostBSD. GhostBSD is based on TrueOS with FreeBSD 12 STABLE with our twist to it. We are still continuing to use TrueOS for OpenRC, and the new package's system for the base system that is built from ports. GhostBSD is becoming a slow-moving rolling release base on the latest TrueOS with FreeBSD 12 STABLE. When FreeBSD 13 STABLE gets released, GhostBSD will be upgraded to TrueOS with FreeBSD 13 STABLE.

                                                                                                              Our official desktop is MATE, which means that the leading developer of GhostBSD does not officially support XFCE. Community releases are maintained by the community and for the community. GhostBSD project will provide help to build and to host the community release. If anyone wants to have a particular desktop supported, it is up to the community. Sure I will help where I can, answer questions and guide new community members that contribute to community release.

                                                                                                              There is some effort going on for Plasma5 desktop. If anyone is interested in helping with XFCE and Plasma5 or in creating another community release, you are well come to contribute. Also, Contribution to the GhostBSD base system, to ports and new ports, and in house software are welcome. We are mostly active on Telegram https://t.me/ghostbsd, but you can also reach us on the forum.

                                                                                                              SHUTTLE – VPN over SSH | VPN Alternative

                                                                                                              Looking for a lightweight VPN client, but are not ready to spend a monthly recurring amount on a VPN? VPNs can be expensive depending upon the quality of service and amount of privacy you want. A good VPN plan can easily set you back by 10$ a month and even that doesn’t guarantee your privacy. There is no way to be sure whether the VPN is storing your confidential information and traffic logs or not. sshuttle is the answer to your problem it provides VPN over ssh and in this article we’re going to explore this cheap yet powerful alternative to the expensive VPNs. By using open source tools you can control your own privacy.

                                                                                                              • VPN over SSH – sshuttle
                                                                                                              • sshuttle is an awesome program that allows you to create a VPN connection from your local machine to any remote server that you have ssh access on. The tunnel established over the ssh connection can then be used to route all your traffic from client machine through the remote machine including all the dns traffic. In the bare bones sshuttle is just a proxy server which runs on the client machine and forwards all the traffic to a ssh tunnel. Since its open source it holds quite a lot of major advantages over traditional VPN.

                                                                                                                OpenSSH 8.1 Released
                                                                                                                • Security

                                                                                                                  • ssh(1), sshd(8), ssh-add(1), ssh-keygen(1): an exploitable integer overflow bug was found in the private key parsing code for the XMSS key type. This key type is still experimental and support for it is not compiled by default. No user-facing autoconf option exists in portable OpenSSH to enable it. This bug was found by Adam Zabrocki and reported via SecuriTeam's SSD program.
                                                                                                                  • ssh(1), sshd(8), ssh-agent(1): add protection for private keys at rest in RAM against speculation and memory side-channel attacks like Spectre, Meltdown and Rambleed. This release encrypts private keys when they are not in use with a symmetric key that is derived from a relatively large "prekey" consisting of random data (currently 16KB).
                                                                                                                  • This release includes a number of changes that may affect existing configurations:

                                                                                                                    • ssh-keygen(1): when acting as a CA and signing certificates with an RSA key, default to using the rsa-sha2-512 signature algorithm. Certificates signed by RSA keys will therefore be incompatible with OpenSSH versions prior to 7.2 unless the default is overridden (using "ssh-keygen -t ssh-rsa -s ...").
                                                                                                                    • New Features

                                                                                                                      • ssh(1): Allow %n to be expanded in ProxyCommand strings
                                                                                                                      • ssh(1), sshd(8): Allow prepending a list of algorithms to the default set by starting the list with the '' character, E.g. "HostKeyAlgorithms ssh-ed25519"
                                                                                                                      • ssh-keygen(1): add an experimental lightweight signature and verification ability. Signatures may be made using regular ssh keys held on disk or stored in a ssh-agent and verified against an authorized_keys-like list of allowed keys. Signatures embed a namespace that prevents confusion and attacks between different usage domains (e.g. files vs email).
                                                                                                                      • ssh-keygen(1): print key comment when extracting public key from a private key.
                                                                                                                      • ssh-keygen(1): accept the verbose flag when searching for host keys in known hosts (i.e. "ssh-keygen -vF host") to print the matching host's random-art signature too.
                                                                                                                      • All: support PKCS8 as an optional format for storage of private keys to disk. The OpenSSH native key format remains the default, but PKCS8 is a superior format to PEM if interoperability with non-OpenSSH software is required, as it may use a less insecure key derivation function than PEM's.
                                                                                                                      • Beastie Bits
                                                                                                                        • Say goodbye to the 32 CPU limit in NetBSD/aarch64
                                                                                                                        • vBSDcon 2019 videos
                                                                                                                        • Browse the web in the terminal - W3M
                                                                                                                        • NetBSD 9 and GSoC
                                                                                                                        • BSDCan 2019 Videos
                                                                                                                        • NYC*BUG Install Fest: Nov 6th 18:45 @ Suspenders
                                                                                                                        • FreeBSD Miniconf at linux.conf.au 2020 Call for Sessions Now Open
                                                                                                                        • FOSDEM 2020 - BSD Devroom Call for Participation
                                                                                                                        • University of Cambridge looking for Research Assistants/Associates
                                                                                                                        • Feedback/Questions
                                                                                                                          • Trenton - Beeping Thinkpad
                                                                                                                          • Alex - Per user ZFS Datasets
                                                                                                                            • Allan’s old patch from 2015
                                                                                                                            • Javier - FBSD 12.0 + ZFS + encryption
                                                                                                                              • Send questions, comments, show ideas/topics, or stories you want mentioned on the show to [email protected]
                                                                                                                              • Your browser does not support the HTML5 video tag.
                                                                                                                                1 hr 8 min