BSD Now

294: The SSH Tarpit


Listen Later

A PI-powered Plan 9 cluster, an SSH tarpit, rdist for when Ansible is too much, falling in love with OpenBSD again, how I created my first FreeBSD port, the Tilde Institute of OpenBSD education and more.

Headlines
A Pi-Powered Plan 9 Cluster

Plan 9 from Bell Labs comes from the same stable as the UNIX operating system, which of course Linux was designed after, and Apple’s OS X runs on top of a certified UNIX operating system. Just like UNIX, Plan 9 was developed as a research O/S — a vehicle for trying out new concepts — with it building on key UNIX principles and taking the idea of devices are just files even further.

In this post, we take a quick look at the Plan 9 O/S and some of the notable features, before moving on to the construction of a self-contained 4-node Raspberry Pi cluster that will provide a compact platform for experimentation.

Endlessh: an SSH Tarpit

I’m a big fan of tarpits: a network service that intentionally inserts delays in its protocol, slowing down clients by forcing them to wait. This arrests the speed at which a bad actor can attack or probe the host system, and it ties up some of the attacker’s resources that might otherwise be spent attacking another host. When done well, a tarpit imposes more cost on the attacker than the defender.

The Internet is a very hostile place, and anyone who’s ever stood up an Internet-facing IPv4 host has witnessed the immediate and continuous attacks against their server. I’ve maintained such a server for nearly six years now, and more than 99% of my incoming traffic has ill intent. One part of my defenses has been tarpits in various forms.

News Roundup
rdist(1) – when Ansible is too much

The post written about rdist(1) on johan.huldtgren.com sparked

us to write one as well. It's a great, underappreciated, tool. And we wanted to show how we wrapped doas(1) around it.
There are two services in our infrastructure for which we were looking to keep the configuration in sync and to reload the process when the configuration had indeed changed. There is a pair of nsd(8)/unbound(8) hosts and a pair of hosts running relayd(8)/httpd(8) with carp(4) between them.
We didn't have a requirement to go full configuration management with tools like Ansible or Salt Stack. And there wasn't any interest in building additional logic on top of rsync or repositories. > Enter rdist(1), rdist is a program to maintain identical copies of files over multiple hosts. It preserves the owner, group, mode, and mtime of files if possible and can update programs that are executing.

Falling in love with OpenBSD again

I was checking the other day and was appalled at how long it has been since I posted here. I had been working a job during 2018 that had me traveling 3,600 miles by air every week so that is at least a viable excuse.

So what is my latest project? I wanted to get something better than the clunky old T500 “freedom laptop” that I could use as my daily driver. Some background here. My first paid gig as a programmer was on SunOS 4 (predecessor to Solaris) and Ultrix (on a DEC MicroVAX). I went from there to a Commodore Amiga (preemptive multitasking in 1985!). I went from there to OS/2 (I know, patron saint of lost causes) and then finally decided to “sell out” and move to Windows as the path of least resistance in the mid 90’s.
My wife bought me an iPod literally just as they started working with computers other than Macs and I watched with fascination as Apple made the big gamble and moved away from PowerPC chips to Intel. That was the beginning of the Apple Fan Boi years for me. My gateway drug was a G4 MacMini and I managed somehow to get in on the pre-production, developer build of an Intel-based Mac. I was quite happy on the platform until about three years ago.

How I Created My First FreeBSD Port

I created my first FreeBSD port recently. I found that FreeBSD didn't have a port for GoCD, which is a continuous integration and continuous deployment (CI/CD) system. This was a great opportunity to learn how to build a FreeBSD port while also contributing back to the community

The Tilde Institute of OpenBSD Education

Welcome to tilde.institute! This is an OpenBSD machine whose purpose is to provide a space in the tildeverse for experimentation with and education of the OpenBSD operating system. A variety of editors, shells, and compilers are installed to allow for development in a native OpenBSD environment. OpenBSD's httpd(8) is configured with slowcgi(8) as the fastcgi provider and sqlite3 available. This allows users to experiment with web development using compiled CGI in C, aka the BCHS Stack. In addition to php7.0 and mysql (mariadb) by request, this provides an environment where the development of complex web apps is possible.

Beastie Bits
  • SoloBSD 19.03-STABLE
  • WireGuard for NetBSD
  • [NetBSD - Removing PF](https://mail-index.netbsd.org/tech-kern/2019/03/29/msg024883.html
  • )
  • What does the N in nmake stand for?
  • A Map of the Internet from May 1973
  • NSA-B-Gone : A sketchy hardware security device for your x220
  • Feedback/Questions
    • Jake - A single jail as a VPN client
    • Matt - Surprising BSD Features
    • cia - Routing and ZFS
      • 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.
        ...more
        View all episodesView all episodes
        Download on the App Store

        BSD NowBy JT Pennington

        • 4.9
        • 4.9
        • 4.9
        • 4.9
        • 4.9

        4.9

        89 ratings


        More shows like BSD Now

        View all
        Security Now (Audio) by TWiT

        Security Now (Audio)

        1,971 Listeners

        Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

        Software Engineering Radio - the podcast for professional software developers

        272 Listeners

        The Changelog: Software Development, Open Source by Changelog Media

        The Changelog: Software Development, Open Source

        283 Listeners

        LINUX Unplugged by Jupiter Broadcasting

        LINUX Unplugged

        265 Listeners

        Python Bytes by Michael Kennedy and Brian Okken

        Python Bytes

        215 Listeners

        Late Night Linux by The Late Night Linux Family

        Late Night Linux

        154 Listeners

        Home Assistant Podcast by HK Media

        Home Assistant Podcast

        65 Listeners

        CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

        CoRecursive: Coding Stories

        189 Listeners

        Kubernetes Podcast from Google by Abdel Sghiouar, Kaslin Fields

        Kubernetes Podcast from Google

        181 Listeners

        Late Night Linux Family All Episodes by The Late Night Linux Family

        Late Night Linux Family All Episodes

        44 Listeners

        Linux Dev Time by The Late Night Linux Family

        Linux Dev Time

        21 Listeners

        Self-Hosted by Jupiter Broadcasting

        Self-Hosted

        135 Listeners

        2.5 Admins by The Late Night Linux Family

        2.5 Admins

        92 Listeners

        Linux After Dark by The Late Night Linux Family

        Linux After Dark

        29 Listeners

        Oxide and Friends by Oxide Computer Company

        Oxide and Friends

        47 Listeners