{"@attributes":{"version":"2.0"},"channel":{"title":"technotes.seastrom.com","link":"https:\/\/technotes.seastrom.com\/","description":{},"lastBuildDate":"Wed, 25 Feb 2026 00:00:00 -0500","item":[{"title":"Finding (R700 Ruckus) APs on the network","link":"https:\/\/technotes.seastrom.com\/2026\/02\/25\/finding-APs-on-network.html","description":"<p>When back in 2021 I wrote an\n<a href=\"\/2021\/05\/25\/reset-ruckus-r700.html\">article<\/a> about how to handle\nfactory reset on surplus Ruckus R700 access points, I was writing with\nan audience in mind of... myself.  Basically public notes, so I made\ncertain assumptions about foundation knowledge and context (mine), and\nso it didn't really occur to me that more details might be in order\nbefore I handed a link to a friend who's got broad sysadmin and\nproject management experience and said \"hey do this\" and expected\nsuccess.  Oops.<\/p>\n<p>So picking up from where I left off, what does one do after a sucessful factory reset?<\/p>\n<p>The bottom of the Ruckus R700 has a label that says \"Default IP\nAddress: 192.168.0.1\", which turns out to be a bit of fake news.  What\nit <em>should<\/em> say is \"In the absence of finding a DHCP server, this AP\nwill number itself to 192.168.0.1 rather than something in the RFC\n3297 (aka 169.254\/16) space.\"<\/p>\n<p>If you perform the factory reset with the AP cabled up to an\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/VLAN\">untagged<\/a> port your working small\nnetwork, it will surely DHCP and get an address just as if it were any\nother IoT device.  Of course, then you have to <em>actually find it<\/em> so\nyou can talk to the web server on it, log in, and configure it.<\/p>\n<p>One way to do this is via the cache\/logs for DHCP on your router.\nStuff that has a web gui often has that in the management portal.\nFiguring this out is left as an exercise to the user.<\/p>\n<p>Another way is if you happen to have a Mac or Linux machine (to\ninclude raspberry pi) handy on the same network is to scan the network\nwith a tool called \"nmap\" and then examine your\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Address_Resolution_Protocol\">ARP<\/a>\ncache.  I don't know how to do this in Windows, and if you were\nthinking of trying to do this with WSL2, don't bother - the WSL\nenvironment is not technically on the same \"network\" is the northbound\nfacing NIC on Windows, so you can't see anything of interest.<\/p>\n<p>In either case, you're looking for the MAC address of the access point\nand its mapping to an IP address via the ARP table or DHCP logs.  If\nyou're not familiar with these, a nice\n<a href=\"https:\/\/www.cloudns.net\/blog\/mac-address-everything-you-need-to-know\">overview<\/a>\n- the salient point though which you may not be aware of even if\nyou're familiar with MAC addresses is that not only are they case\ninsensitive but there are variant representations of them to trip you\nup.  To wit:<\/p>\n<ul>\n<li>colon-separated between the octets <code>00:1A:2B:3C:4D:5E<\/code> (Unix, which depending on the variant may leave out the leading zero on any octet starting with zero, so this would render as <code>0:1A:2B:3C:4D:5E<\/code>)<\/li>\n<li>hyphen-separated between the octets <code>00-1A-2B-3C-4D-5E<\/code> (Windows)<\/li>\n<li>Dot separated between double octets <code>001A.2B3C.4D5E<\/code> (Cisco and perhaps others)<\/li>\n<li>All run together like an animal <code>001A2B3C4D5E<\/code> (Ruckus apparently)<\/li>\n<\/ul>\n<p>And there may be more!<\/p>\n<p>On Linux or Mac, install <code>nmap<\/code> via your package manager (<code>apt<\/code> or\n<code>yum<\/code> or maybe something else on Linux, homebrew probably on Mac).\nFigure out your network prefix by using <code>ifconfig<\/code>, <code>ip<\/code>, or maybe\nyour network control panel.  Now you can do a ping scan of your network like so:<\/p>\n<p><code>nmap -sP 192.0.2.0\/24<\/code><\/p>\n<p>This will try to ping every address in 192.0.2.0\/24.  It might take a\nminute to run.  It'll print out a bunch of stuff.  None of the stuff\nit prints out should matter to you - the goal is to prime the ARP\ncache on your computer so you can look at it.<\/p>\n<p>When it's done running, you can examine your arp cache by typing <code>arp -an<\/code>.  But that's gonna be a lot on a busy network so let's grep for your AP - the last two octets should be sufficiently unique to find it:<\/p>\n<p><code>arp -an | grep -i 4d:5e<\/code><\/p>\n<p>should give you output approximately like this:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>Hunters-Laptop:~ rs$ arp -an | grep 4d:5e\n? (192.0.2.104) at 0:1a:2b:3c:4d:5e on en0 ifscope [ethernet]\nHunters-Laptop:~ rs$ \n<\/code><\/pre><\/div>\n\n<p>Aha, now we have an IP address.  We can point our browser at\nhttps:\/\/192.0.2.104 and do the requisite clicking through (because\nit's a self-signed cert) and log in, using the super \/ sp-admin\ncredentials that you also found on a label on the bottom.<\/p>\n<p>Success (hopefully)!  How do do the actual configuration depends on\nwhat you're tryihng to accomplish, but I recommend nailing down your\nchannel choices rather than allowing automatic choosing to happen.<\/p>\n<hr \/>","pubDate":"Wed, 25 Feb 2026 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2026-02-25:\/2026\/02\/25\/finding-APs-on-network.html","category":"misc"},{"title":"Passing the Torch - My last Root DNSSEC KSK Ceremony as Crypto Officer 4","link":"https:\/\/technotes.seastrom.com\/2025\/11\/23\/passing-the-torch.html","description":"<p>Many years ago, when I was but an infant, the first computers were\nconnected on the <a href=\"https:\/\/en.wikipedia.org\/wiki\/ARPANET\">ARPANET<\/a> -\nthe seminal computer network that would eventually evolve to become\nthe Internet.  Computers at the time were large and expensive; indeed\nthe first version of\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Network_Control_Protocol_(ARPANET)\">NCP<\/a>\n- the predecessor of TCP\/IP - only countenanced roughly 250 computers\non the network.<\/p>\n<p>The name (human friendly) to network address (computer friendly)\nmapping on this network was maintained via a \"hosts file\" - literally\na flat file of ordered pairs, creating the connection between host\n(computer) name and address.<\/p>\n<p>So it continued as computers got less expensive and proliferated, the\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Network_effect\">Network Effect<\/a> caused\nmore institutions to want to be connected to the ARPANET.  TCP\/IP was\ndeveloped in response to this, with support for orders of magnitude\nmore connected computers.  Along the way, the military users of the\nnetwork got carved off into its own network, and by the early 1980s we\nhad the beginnings of the Internet, or a \"catenet\" as it was sometimes\ncalled at the time - a network of networks.<\/p>\n<p>Clearly, as we went from \"a couple hundred computers\" to \"capacity for\nbillions\", a centrally managed host file wasn't going to scale, and by\nthe early 1980s development had started on a distributed database to\nreplace the centrally managed file.  The name for this distributed\ndatabase was the Domain Name System, or DNS.<\/p>\n<p>It's important to realize that at the time, access to the network of\nnetworks was still restricted to a chosen few - higher education,\nresearch institutions, military organizations and the\nmilitary-industrial complex (ARPA, later DARPA, was, after all, an\nactivity of the United States Department of Defense), and a few\ncompanies that were tightly associated with one or more of those\nconstituencies.  Broad public commercial access to the Internet was\nmany years in the future.<\/p>\n<p>It was in this environment that the DNS sprang forth.  Academics,\nmilitary researchers, university students - a pretty collegial\nenvironment.  Not to mention paleo-cybersecurity practices - indeed\nthe word \"cybersecurity\" may not have even been coined yet, though the\nnotion of \"computer security\" dates back to the early 1970s.<\/p>\n<p>I've mentioned this brief \"history of the early Internet\" to\npreemptively answer the question which inevitably arises: why didn't\nDNS have better security built in?  The answer is twofold: firstly it\ndidn't have to based on the environment that it evolved in, and\nsecondly, even if it had, the security practices would have been\nfirmly rooted in 1980s best practices, which would certainly be\ninadequate by modern standards.<\/p>\n<p>Discovery of security flaws in 1990 led the IETF to begin development\non Domain Name System Security Extensions (DNSSEC) in 1995.  Early versions were\ndifficult to deploy.  Later versions improved somewhat.  But inertia is a thing, the\nstatus quo tends to prevail, and there was very real concern that DNSSEC would be\na net reliability minus (security vs. availability can be a tricky circle to square), concentrate\npower in undesirable ways, and result in other unforeseen negative effects.<\/p>\n<p>At the end of the day, as it so often does, it took a crisis to get\nthe ball rolling for real.  In 2008, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Dan_Kaminsky\">Dan\nKaminsky<\/a> discovered a\nfundamental flaw in DNS, which simplified cache poisoning -\nessentially making it possible for an attacker to misdirect users to\narbitrary web sites.<\/p>\n<p>In less than two years, the DNS root would be cryptographically signed\n- allowing those who wished to sign their domains as well to create a\ncryptographic chain of trust authenticating their DNS lookups.  This\nis non-repudiation, not non-disclosure - DNS queries and responses\ncontinued to happen in the clear.  But this time, responses came back\nwith a digital signature, courtesy of DNSSEC.<\/p>\n<p>David Huberman at ICANN did a splendid slide deck explaining <a href=\"\/assets\/2025-11-23-passing-the-torch\/2-David-Huberman_DNS-security-and-the-Root-DNSSEC-KSK-Ceremony.pdf\">how it all works<\/a>.<\/p>\n<p>Trust in a system requires more than technical correctness.  It\ninvolves trust in the execution of running the system itself.  For\nthat reason ICANN decided that it would build a framework to\nfacilitate trust and transparency.  Among other things it included:<\/p>\n<ul>\n<li>Placing the cryptographic material in two highly secure sites, one near Washington DC and one in Los Angeles (geographic diversity)<\/li>\n<li>Creating a multi-layered security regimen requiring several people to access the Key Management Facility<\/li>\n<li>Storing cryptographic material in offline <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hardware_security_module\">HSMs<\/a> which utilize <a href=\"https:\/\/en.wikipedia.org\/wiki\/Shamir%27s_secret_sharing\">Shamir's Secret Sharing<\/a> to require a quorum of at least 3 out of 7 Crypto Officers to be present in order to \"wake them up\"<\/li>\n<li>Trusted Community Representatives with roles of Crypto Officer and Recovery Key Share Holder<\/li>\n<li>Highly scripted (and therefore auditable) ceremonies surrounding handling the cryptographc material<\/li>\n<li>Live streaming all events<\/li>\n<li>Hosting External Witnesses from the community who have expressed interest in being present for a ceremony in person<\/li>\n<\/ul>\n<p>When the call for volunteers to be Trusted Community Representatives\ncame out, I was no stranger to community involvement, having served\nseveral years on the ARIN Advisory Council and done community work\n(and later Board work) for NANOG.  I was employed by a Top Level\nDomain operator, and submitted my CV and expressed my interest.<\/p>\n<p>That's how I found myself in Culpeper, Virginia in 2010 as Crypto Officer 4 at the\nfirst ceremony for signing the DNSSEC Root.  I had no idea that I would still be doing it fifteen years\nlater.  I was the last of the original Crypto Officers for KMF-East, and the\nsecond last overall - outlasted only by Subramanian \"SM\" Moonesamy, who is Crypto Officer 7 for KMF-West.<\/p>\n<p>It's been an adventure.  I've been a small participant in root key\nrolls, put in a B-roll appearance on BBC Horizon (S53E13), become\nfriends with many of the people I served with, overseen ceremonies\nremotely during the COVID lockdown, and witnessed an amazing pivot by\nICANN staff who managed to get new HSMs selected, tested, integrated,\nand deployed on only 8 months' notice, a feat which I remain in awe\nof.<\/p>\n<p>I was an early advocate for improving trust in our process by\nleveraging natural turnover and backfilling existing\nTCRs with people selected from a broader set of qualified individuals\nthan just the fellowship of DNS protocol experts, operators, and\ndevelopers.  I'm grateful that our voices were heard.<\/p>\n<p>On November 13th 2025, I passed the torch to <a href=\"https:\/\/www.sans.org\/profiles\/lodrina-cherne\">Lodrina\nCherne<\/a> who is now\nCrypto Officer 4 for KMF-East.  Lodrina is a security researcher,\nan educator with an emphasis on digital forensics, and works in\nsecurity engineering at a large cloud provider.  I'm honored to have\nher as my successor.<\/p>\n<p>I've had several people reach out to me to ask what prompted me to\nstep back from the ICANN volunteer work.  Those who were hoping for\nsome kind of salacious dirt or scandal were sorely disappointed -\nquite the opposite, this is a huge success story and I'm pleased to\nhave been able to do my small part.  A direct cut and paste from Slack\nlogs with one of them follows:<\/p>\n<blockquote>\n<p>What led you to step back from ICANN?<\/p>\n<\/blockquote>\n<p>Several things:<\/p>\n<ul>\n<li>It was understood to be a 5 year commitment.  I've been doing it for more than 15.<\/li>\n<li>It was broadly agreed among the cohort many years ago (over a decade ago) that more people from more diverse backgrounds than just DNS-old-boy-network (which was the original group of TCRs) was a Good Thing.<\/li>\n<li>Many people cycled out earlier; I was happy to let the folks for whom travel was more odious go first.  But it's only practical and only really good for the system to cycle out a single TCR per ceremony.<\/li>\n<li>COVID delayed this.  Kaminsky's untimely death and subsequent replacement as a recovery key shareholder (RKSH) delayed this.<\/li>\n<li>A further delay was the AEP Keyper HSM getting abruptly EOLed, and the transition to the Thales Luna HSMs.  It went off without a hitch after being researched, developed, and executed in 8 months - a record which I stand in awe of and which is a true testament to the skill and commitment of the ICANN PTI team.  ICANN expressed the desire for continuity among long-serving COs past that milestone; Frederico Neves (fellow original Crypto Officer) and I were willing to extend our stay for that.<\/li>\n<\/ul>\n<p>So in short it was time to pass the torch.  Everyone has been doing\neverything right. I remarked at the end of the Ceremony 59 that when we\nstarted doing this 15 years ago, success was not guaranteed; it took\nthe Kaminsky bug to get us over the line to actually deploy it.\nToday, the major Unix DNS resolvers ship with DNSSEC validation\nenabled.  All of the major public DNS resolvers (google, quad9,\ncloudflare) do DNSSEC validation.  I thanked everyone who has been\nresponsible for and put their personal credibility on the line for the\nsecurity, integrity, and credibility of this process and stated that I\nwas honored to have been able to play a small part in doing that.<\/p>\n<p>Epilogue:<\/p>\n<p>I won't be participating in most East Coast ceremonies from here on out, but I don't rule out occasionally showing up as an external witness, particularly at KMF-West where I have never visited in person.<\/p>\n<p>Here scans of our ceremony scripts from both Ceremony 59 and the previous day's administrative ceremonies.<\/p>\n<p><a href=\"\/assets\/2025-11-23-passing-the-torch\/20251113%20Root%20DNSSEC%20KSK%20Ceremony%2059.pdf\">Root DNSSEC KSK Ceremony 59<\/a><\/p>\n<p><a href=\"\/assets\/2025-11-23-passing-the-torch\/20251112%20Root%20DNSSEC%20KSK%20Administrative%20Ceremony%2059%20Backup%20HSM%20Acceptance%20Testing.pdf\">Root DNSSEC KSK Administrative Ceremony 59 Backup HSM Acceptance Testing<\/a><\/p>\n<p><a href=\"\/assets\/2025-11-23-passing-the-torch\/20251112%20Root%20DNSSEC%20KSK%20Administrative%20Ceremony%2059%20Safe%20%232%20Credentiais%20Safe%20Deposit%20Box%20Lock%20Assembly%20Programming.pdf\">Root DNSSEC KSK Administrative Ceremony 59 Safe #2 Credentiais Safe Deposit Box Lock Assembly Programming<\/a><\/p>\n<p><a href=\"\/assets\/2025-11-23-passing-the-torch\/20251113%20kskm-ksrsigner-logs.pdf\">kskm-ksrsigner-logs.pdf<\/a><\/p>","pubDate":"Sun, 23 Nov 2025 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2025-11-23:\/2025\/11\/23\/passing-the-torch.html","category":"misc"},{"title":"Lynovation CTR2-Dial Reflash Travelogue","link":"https:\/\/technotes.seastrom.com\/2025\/08\/13\/CTR2-Dial-Flash-Upgrade-Travelogue.html","description":"<p>About four months ago I bought a <a href=\"https:\/\/ctr2.lynovation.com\">Lynovation\nCTR2-Dial<\/a> controller as a control\nsurface for <a href=\"https:\/\/ham-radio-apps.com\/smartsdr-for-flexradio\/\">SmartSDR on\niPad<\/a>.<\/p>\n<p>So far I love it.  I haven't tried it as a control surface for\nSmartSDR on a laptop, nor have I tried it with Thetis (which I hear it\nworks well with too).<\/p>\n<p>There's been a flurry of firmware development in the intervening four\nmonths and a bunch of new features including the abilty to dual boot\nthe CTR2-Flex firmware - turning the CTR2-Dial from a MIDI controller\ninto a remote control that works over TCP\/IP as an API client to the\nFlex, much like a Maestro would.<\/p>\n<p>The manual is not terribly opinionated about the best tools to use to\nperform the flash upgrade, and perhaps assumes a bit more\nfamiliarity\/recency with the manual of arms forreflashing ESP32s3\ndevices than I have.<\/p>\n<p>If you're on a Mac or Linux machine though there's good news - they\ninclude a shell script in the zip file that you download with the\nfirmare, and it does a great job of using a Python-based tool for\nmaking things happen.  All you need is to have Python installed, be\nable to figure out what the serial device is in \/dev (in my case\n<code>\/dev\/cu.usbmodem1101<\/code>), and be able to use a Unix text editor.  Easy.<\/p>\n<p>So I figured I'd just post the terminal output from running the script\nhere.  Worked on the first try.  Far easier than trying to figure out\nhow to make the web browser based programmer work.<\/p>\n<p>Note that I create a venv before running the script.  It does install\na single Python package with pip.  Probably no big deal, but this is\nall out of an abundance of caution - keeps everything nice and neat and\nself contained.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>Hunters-Laptop:~ rs$ cd Downloads\/CTR2-Flex__v20101\nHunters-Laptop:CTR2-Flex__v20101 rs$ ls -la\ntotal 12280\ndrwx------@   11 rs  staff      352 Aug 12 17:35 .\ndrwx------@ 1204 rs  staff    38528 Aug 12 17:35 ..\n-rw-rw-r--@    1 rs  staff     4264 May  7 18:57 App_Maps_v1.01.zip\n-rw-rw-r--@    1 rs  staff     8192 Oct 29  2023 boot_app0_0xe000.bin\n-rw-rw-r--@    1 rs  staff  2224165 Aug 10 21:16 CTR2-Dial_Operation_Manual_v20101.pdf\n-rw-rw-r--@    1 rs  staff     1008 Apr 29 10:04 CTR2-Flex_Install.sh\n-rw-rw-r--@    1 rs  staff  2620801 Aug 10 20:48 CTR2-Flex_Operation_Manual_v20101.pdf\n-rw-rw-r--@    1 rs  staff  1389680 Aug 11 03:46 CTR2-Flex.ino_0x10000.bin\n-rw-rw-r--@    1 rs  staff    15104 Aug 11 03:44 CTR2-Flex.ino.bootloader_0x0.bin\n-rw-rw-r--@    1 rs  staff     3072 Aug 11 03:46 CTR2-Flex.ino.partitions_0x8000.bin\n-rw-rw-r--@    1 rs  staff     1470 Aug 10 21:17 READ_ME.txt\nHunters-Laptop:CTR2-Flex__v20101 rs$ ls -l \/dev\/cu.*\ncrw-rw-rw-  1 root  wheel  0x9000005 Aug 10 10:39 \/dev\/cu.Bluetooth-Incoming-Port\ncrw-rw-rw-  1 root  wheel  0x9000001 Aug 12 17:30 \/dev\/cu.debug-console\ncrw-rw-rw-  1 root  wheel  0x9000003 Aug 10 10:39 \/dev\/cu.OlderJabraEvolve265\ncrw-rw-rw-  1 root  wheel  0x9000007 Aug 12 17:34 \/dev\/cu.usbmodem1101\nHunters-Laptop:CTR2-Flex__v20101 rs$ vi CTR2-Flex_Install.sh\nHunters-Laptop:CTR2-Flex__v20101 rs$ python3 -m venv venv\nHunters-Laptop:CTR2-Flex__v20101 rs$ . venv\/bin\/activate\n(venv) Hunters-Laptop:CTR2-Flex__v20101 rs$ sh .\/CTR2-Flex_Install.sh\n\n[notice] A new release of pip is available: 25.1.1 -&gt; 25.2\n[notice] To update, run: pip install --upgrade pip\nHold down ENCODER and press any key to continueWarning: Deprecated: Command &#39;write_flash&#39; is deprecated. Use &#39;write-flash&#39; instead.\nesptool v5.0.2\nConnected to ESP32-S3 on \/dev\/cu.usbmodem1101:\nChip type:          ESP32-S3 (QFN56) (revision v0.2)\nFeatures:           Wi-Fi, BT 5 (LE), Dual Core + LP Core, 240MHz, Embedded Flash 8MB (GD)\nCrystal frequency:  40MHz\nUSB mode:           USB-Serial\/JTAG\nMAC:                48:ca:43:3a:27:80\n\nStub flasher running.\n\nConfiguring flash size...\nFlash will be erased from 0x00000000 to 0x00003fff...\nCompressed 15104 bytes to 10399...\nWrote 15104 bytes (10399 compressed) at 0x00000000 in 0.2 seconds (528.3 kbit\/s).\nHash of data verified.\n\nHard resetting via RTS pin...\nWarning: Deprecated: Command &#39;write_flash&#39; is deprecated. Use &#39;write-flash&#39; instead.\nesptool v5.0.2\nConnected to ESP32-S3 on \/dev\/cu.usbmodem1101:\nChip type:          ESP32-S3 (QFN56) (revision v0.2)\nFeatures:           Wi-Fi, BT 5 (LE), Dual Core + LP Core, 240MHz, Embedded Flash 8MB (GD)\nCrystal frequency:  40MHz\nUSB mode:           USB-Serial\/JTAG\nMAC:                48:ca:43:3a:27:80\n\nStub flasher running.\n\nConfiguring flash size...\nFlash will be erased from 0x00008000 to 0x00008fff...\nWrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (650.3 kbit\/s).\nHash of data verified.\n\nHard resetting via RTS pin...\nWarning: Deprecated: Command &#39;write_flash&#39; is deprecated. Use &#39;write-flash&#39; instead.\nesptool v5.0.2\nConnected to ESP32-S3 on \/dev\/cu.usbmodem1101:\nChip type:          ESP32-S3 (QFN56) (revision v0.2)\nFeatures:           Wi-Fi, BT 5 (LE), Dual Core + LP Core, 240MHz, Embedded Flash 8MB (GD)\nCrystal frequency:  40MHz\nUSB mode:           USB-Serial\/JTAG\nMAC:                48:ca:43:3a:27:80\n\nStub flasher running.\n\nConfiguring flash size...\nFlash will be erased from 0x0000e000 to 0x0000ffff...\nWrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (838.5 kbit\/s).\nHash of data verified.\n\nHard resetting via RTS pin...\nWarning: Deprecated: Command &#39;write_flash&#39; is deprecated. Use &#39;write-flash&#39; instead.\nesptool v5.0.2\nConnected to ESP32-S3 on \/dev\/cu.usbmodem1101:\nChip type:          ESP32-S3 (QFN56) (revision v0.2)\nFeatures:           Wi-Fi, BT 5 (LE), Dual Core + LP Core, 240MHz, Embedded Flash 8MB (GD)\nCrystal frequency:  40MHz\nUSB mode:           USB-Serial\/JTAG\nMAC:                48:ca:43:xx:xx:xx\n\nStub flasher running.\n\nConfiguring flash size...\nFlash will be erased from 0x00010000 to 0x00163fff...\nCompressed 1389680 bytes to 890595...\nWriting at 0x00017f31 [                              ]   1.8% 16384\/890595 bytes\nWriting at 0x0001f2e1 [&gt;                             ]   3.7% 32768\/890595 bytes\nWriting at 0x0002b447 [&gt;                             ]   5.5% 49152\/890595 bytes\nWriting at 0x00034e2f [=&gt;                            ]   7.4% 65536\/890595 bytes\nWriting at 0x0003aad8 [=&gt;                            ]   9.2% 81920\/890595 bytes\nWriting at 0x0004ebda [==&gt;                           ]  11.0% 98304\/890595 bytes\nWriting at 0x00055a9a [==&gt;                           ]  12.9% 114688\/890595 byte\nWriting at 0x0005ccbd [===&gt;                          ]  14.7% 131072\/890595 byte\nWriting at 0x000630a4 [===&gt;                          ]  16.6% 147456\/890595 byte\nWriting at 0x00069df9 [====&gt;                         ]  18.4% 163840\/890595 byte\nWriting at 0x00070652 [=====&gt;                        ]  20.2% 180224\/890595 byte\nWriting at 0x000767ab [=====&gt;                        ]  22.1% 196608\/890595 byte\nWriting at 0x0007d2b6 [======&gt;                       ]  23.9% 212992\/890595 byte\nWriting at 0x0008357e [======&gt;                       ]  25.8% 229376\/890595 byte\nWriting at 0x00088987 [=======&gt;                      ]  27.6% 245760\/890595 byte\nWriting at 0x0008e090 [=======&gt;                      ]  29.4% 262144\/890595 byte\nWriting at 0x00093b6d [========&gt;                     ]  31.3% 278528\/890595 byte\nWriting at 0x0009915d [========&gt;                     ]  33.1% 294912\/890595 byte\nWriting at 0x0009e68d [=========&gt;                    ]  35.0% 311296\/890595 byte\nWriting at 0x000a3b6e [==========&gt;                   ]  36.8% 327680\/890595 byte\nWriting at 0x000a9490 [==========&gt;                   ]  38.6% 344064\/890595 byte\nWriting at 0x000aeda7 [===========&gt;                  ]  40.5% 360448\/890595 byte\nWriting at 0x000b491f [===========&gt;                  ]  42.3% 376832\/890595 byte\nWriting at 0x000ba074 [============&gt;                 ]  44.2% 393216\/890595 byte\nWriting at 0x000bf705 [============&gt;                 ]  46.0% 409600\/890595 byte\nWriting at 0x000c51a0 [=============&gt;                ]  47.8% 425984\/890595 byte\nWriting at 0x000ca2dd [=============&gt;                ]  49.7% 442368\/890595 byte\nWriting at 0x000cf120 [==============&gt;               ]  51.5% 458752\/890595 byte\nWriting at 0x000d43f6 [===============&gt;              ]  53.4% 475136\/890595 byte\nWriting at 0x000d931c [===============&gt;              ]  55.2% 491520\/890595 byte\nWriting at 0x000de201 [================&gt;             ]  57.0% 507904\/890595 byte\nWriting at 0x000e36e9 [================&gt;             ]  58.9% 524288\/890595 byte\nWriting at 0x000e8502 [=================&gt;            ]  60.7% 540672\/890595 byte\nWriting at 0x000edb54 [=================&gt;            ]  62.5% 557056\/890595 byte\nWriting at 0x000f3289 [==================&gt;           ]  64.4% 573440\/890595 byte\nWriting at 0x000f8201 [==================&gt;           ]  66.2% 589824\/890595 byte\nWriting at 0x000fdb73 [===================&gt;          ]  68.1% 606208\/890595 byte\nWriting at 0x001030e5 [===================&gt;          ]  69.9% 622592\/890595 byte\nWriting at 0x00107f40 [====================&gt;         ]  71.7% 638976\/890595 byte\nWriting at 0x0010d01f [=====================&gt;        ]  73.6% 655360\/890595 byte\nWriting at 0x001120c5 [=====================&gt;        ]  75.4% 671744\/890595 byte\nWriting at 0x0011743b [======================&gt;       ]  77.3% 688128\/890595 byte\nWriting at 0x0011c87e [======================&gt;       ]  79.1% 704512\/890595 byte\nWriting at 0x0012240a [=======================&gt;      ]  80.9% 720896\/890595 byte\nWriting at 0x00127b02 [=======================&gt;      ]  82.8% 737280\/890595 byte\nWriting at 0x0012d401 [========================&gt;     ]  84.6% 753664\/890595 byte\nWriting at 0x001339df [========================&gt;     ]  86.5% 770048\/890595 byte\nWriting at 0x0013b885 [=========================&gt;    ]  88.3% 786432\/890595 byte\nWriting at 0x00144086 [==========================&gt;   ]  90.1% 802816\/890595 byte\nWriting at 0x00149b10 [==========================&gt;   ]  92.0% 819200\/890595 byte\nWriting at 0x001504f5 [===========================&gt;  ]  93.8% 835584\/890595 byte\nWriting at 0x00155a1f [===========================&gt;  ]  95.7% 851968\/890595 byte\nWriting at 0x0015b40c [============================&gt; ]  97.5% 868352\/890595 byte\nWriting at 0x001611ec [============================&gt; ]  99.3% 884736\/890595 byte\nWrote 1389680 bytes (890595 compressed) at 0x00010000 in 9.0 seconds (1241.5 kbit\/s).\nHash of data verified.\n\nHard resetting via RTS pin...\n(venv) Hunters-Laptop:CTR2-Flex__v20101 rs$\n<\/code><\/pre><\/div>","pubDate":"Wed, 13 Aug 2025 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2025-08-13:\/2025\/08\/13\/CTR2-Dial-Flash-Upgrade-Travelogue.html","category":"misc"},{"title":"How Big Are CRLs That Are Found In The Wild?","link":"https:\/\/technotes.seastrom.com\/2024\/07\/31\/how-big-are-crls.html","description":"<p>A week ago I wrote an <a href=\"\/2024\/07\/24\/letsencrypt-ocsp.html\">article<\/a> about \n<a href=\"https:\/\/letsencrypt.org\/2024\/07\/23\/replacing-ocsp-with-crls\">LetsEncrypt ending OCSP service<\/a>.<\/p>\n<p>After reflecting on my surprise at the CRL for LetsEncrypt being so\nsmall, several people asked me about the CRLs for other CAs.  After\nall, CRLs are stereotypically big and clunky and OCSP was developed to\naddress this problem (transmitting the same information but only in\nsmall chunks on demand), so they must be huge, right?<\/p>\n<p>It turns out that CRLs that we're interested in don't go with the root\nCA (the one that's in your browser trust store), they go with the\nsubordinate (or \"intermediate\") CA that directly signs \ncertificates for end users (or web servers if you like).  This poses a problem because it means that you can't\njust dump out your browser trust store and go looking for CRL\ndistribution endpoints.  A cursory check of the <a href=\"https:\/\/cabforum.org\/working-groups\/server\/baseline-requirements\/documents\/\">CA\/Browser Forum's\nBaseline\nRequirements<\/a>\ndidn't find a <em>requirement<\/em> for using subordinate CAs in order to be\nin a broswer trust store, but as a matter of <a href=\"https:\/\/www.ssl.com\/article\/subordinate-cas-and-why-you-might-need-one\/\">risk management and good\nhygiene<\/a>\neveryone seems to do this.  Indeed, I've seen auditors ding an\nenterprise CA for not having an intermediate, so it must be hardcoded\nas a best practice requirement somewhere, by someone, I just don't\nknow who or where offhand.<\/p>\n<p>My friend <a href=\"https:\/\/www.linkedin.com\/in\/jnazario\">Jose Nazario<\/a> was\nable to come up with a list of CRL endpoints for the top 50 most\npopular intermediate CAs seen recently in the wild, and we report on\nthem here as a snapshot in time as of today, 2024-07-31.<\/p>\n<p>Note that we are currently experiencing an <a href=\"https:\/\/cybersecuritynews.com\/digicert-to-revoke-thousands-of-certificates\">anomaly in the DigiCert\necosystem<\/a>\nwhich will result in unusually high numbers for DigiCert CRLs until\ncerts fall off the CRL via the natural expiration process.  Note too\nthat the vast majority of the CRLs go back slightly longer than 13\nmonths, which comports with the maximum browser cert lifetime\ncurrently offered.  As I pointed out a week ago, there is little point in\nincluding revoked certificates that would appear invalid even without a CRL as their\nlifetime has expired.<\/p>\n<p>The interesting number here when countering the \"CRLs are clunky\" argument is the\n\"Download Size\" field (measured in bytes).  The largest download we\nfound was 15.6 megabytes, but that was quite an outlier; the next\nrunner up was 12.3 megabytes, the median was 89.7 kilobytes, and the\nsmallest was 337 bytes - four of the 50 most popular CAs had no revoked certs in their CRLs.<\/p>\n<p>In 2024 even the largest CRLs are smaller\nthan many ad impressions.  Between shorter maximum certificate\nvalidity time and the proliferation of much faster bandwidth than when\nPKI was designed, CRLs do not represent a scale problem anymore.\nSince they are cryptographically signed by their issuer, they may be\ndistributed (even unencrypted - it seems that distribution of the CRLs themselves\nhas escaped the \"we must encrypt all the things\" zeitgeist, no doubt in order to avoid\ncircular dependencies) via a CDN with no erosion of\ntrust if scaling on the distribution side is a concern.<\/p>\n<table>\n<thead>\n<tr>\n<th>URL<\/th>\n<th>Common Name<\/th>\n<th>Count<\/th>\n<th>Download Size<\/th>\n<th>Revoked Count<\/th>\n<th>Oldest Date<\/th>\n<th>Newest Date<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>http:\/\/crl.r2m02.amazontrust.com\/r2m02.crl<\/td>\n<td>Amazon RSA 2048 M02<\/td>\n<td>16472403<\/td>\n<td>577376<\/td>\n<td>16481<\/td>\n<td>2023-06-25T00:16:24Z<\/td>\n<td>2024-07-31T07:57:24Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.r2m03.amazontrust.com\/r2m03.crl<\/td>\n<td>Amazon RSA 2048 M03<\/td>\n<td>16471425<\/td>\n<td>514747<\/td>\n<td>14692<\/td>\n<td>2023-08-03T18:16:28Z<\/td>\n<td>2024-07-31T08:17:12Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl3.digicert.com\/DigicertSHA2SecureServerCA-1.crl<\/td>\n<td>DigiCert SHA2 Secure Server CA<\/td>\n<td>6956117<\/td>\n<td>9321814<\/td>\n<td>266239<\/td>\n<td>2023-06-23T13:01:07Z<\/td>\n<td>2024-07-30T20:40:32Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl4.digicert.com\/DigicertSHA2SecureServerCA-1.crl<\/td>\n<td>DigiCert SHA2 Secure Server CA<\/td>\n<td>6956117<\/td>\n<td>9321814<\/td>\n<td>266239<\/td>\n<td>2023-06-23T13:01:07Z<\/td>\n<td>2024-07-30T20:40:32Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/www.microsoft.com\/pkiops\/crl\/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2004.crl<\/td>\n<td>Microsoft Azure RSA TLS Issuing CA 04<\/td>\n<td>6202342<\/td>\n<td>11341<\/td>\n<td>203<\/td>\n<td>2023-12-14T20:29:13Z<\/td>\n<td>2024-07-31T17:33:59Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/www.microsoft.com\/pkiops\/crl\/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003.crl<\/td>\n<td>Microsoft Azure RSA TLS Issuing CA 03<\/td>\n<td>6196136<\/td>\n<td>10925<\/td>\n<td>195<\/td>\n<td>2023-12-14T20:29:13Z<\/td>\n<td>2024-07-31T17:34:00Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.comodoca.com\/cPanelIncCertificationAuthority.crl<\/td>\n<td>cPanel, Inc. Certification Authority<\/td>\n<td>5524876<\/td>\n<td>66722<\/td>\n<td>1863<\/td>\n<td>2023-07-28T19:53:02Z<\/td>\n<td>2024-07-31T01:14:07Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl3.digicert.com\/CloudflareIncECCCA-3.crl<\/td>\n<td>Cloudflare Inc ECC CA-3<\/td>\n<td>4404958<\/td>\n<td>337<\/td>\n<td>2<\/td>\n<td>2024-05-27T15:35:40Z<\/td>\n<td>2024-05-27T15:37:09Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl4.digicert.com\/CloudflareIncECCCA-3.crl<\/td>\n<td>Cloudflare Inc ECC CA-3<\/td>\n<td>4404958<\/td>\n<td>337<\/td>\n<td>2<\/td>\n<td>2024-05-27T15:35:40Z<\/td>\n<td>2024-05-27T15:37:09Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/www.microsoft.com\/pkiops\/crl\/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2007.crl<\/td>\n<td>Microsoft Azure RSA TLS Issuing CA 07<\/td>\n<td>4056465<\/td>\n<td>13577<\/td>\n<td>246<\/td>\n<td>2023-12-14T22:59:12Z<\/td>\n<td>2024-07-31T17:35:56Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/www.microsoft.com\/pkiops\/crl\/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2008.crl<\/td>\n<td>Microsoft Azure RSA TLS Issuing CA 08<\/td>\n<td>3988623<\/td>\n<td>9105<\/td>\n<td>160<\/td>\n<td>2023-12-14T22:59:29Z<\/td>\n<td>2024-07-29T18:25:21Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl3.digicert.com\/CloudflareIncRSACA-2.crl<\/td>\n<td>Cloudflare Inc RSA CA-2<\/td>\n<td>2206586<\/td>\n<td>457<\/td>\n<td>0<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl4.digicert.com\/CloudflareIncRSACA-2.crl<\/td>\n<td>Cloudflare Inc RSA CA-2<\/td>\n<td>2206586<\/td>\n<td>457<\/td>\n<td>0<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/validation.identrust.com\/crl\/hydrantidcao1.crl<\/td>\n<td>HydrantID Server CA O1<\/td>\n<td>2065390<\/td>\n<td>293420<\/td>\n<td>6185<\/td>\n<td>2023-07-10T15:57:21Z<\/td>\n<td>2024-07-31T20:46:44Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl3.digicert.com\/GeoTrustGlobalTLSRSA4096SHA2562022CA1.crl<\/td>\n<td>GeoTrust Global TLS RSA4096 SHA256 2022 CA1<\/td>\n<td>1706768<\/td>\n<td>25299<\/td>\n<td>653<\/td>\n<td>2023-07-03T16:33:18Z<\/td>\n<td>2024-07-30T03:06:08Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl4.digicert.com\/GeoTrustGlobalTLSRSA4096SHA2562022CA1.crl<\/td>\n<td>GeoTrust Global TLS RSA4096 SHA256 2022 CA1<\/td>\n<td>1706768<\/td>\n<td>25299<\/td>\n<td>653<\/td>\n<td>2023-07-03T16:33:18Z<\/td>\n<td>2024-07-30T03:06:08Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/igcgfti-ca1.francetelecom.com\/crl\/orangedevices_stellar_auth3_ca.crl<\/td>\n<td>Orange Devices Auth Stellar 3 CA<\/td>\n<td>1664067<\/td>\n<td>1763<\/td>\n<td>14<\/td>\n<td>2017-09-06T09:10:07Z<\/td>\n<td>2017-09-15T08:28:19Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl3.digicert.com\/CiscoMerakiCA.crl<\/td>\n<td>Cisco Meraki CA<\/td>\n<td>1201214<\/td>\n<td>452<\/td>\n<td>0<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl4.digicert.com\/CiscoMerakiCA.crl<\/td>\n<td>Cisco Meraki CA<\/td>\n<td>1201214<\/td>\n<td>452<\/td>\n<td>0<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl3.digicert.com\/DigiCertGlobalG2TLSRSASHA2562020CA1-1.crl<\/td>\n<td>DigiCert Global G2 TLS RSA SHA256 2020 CA1<\/td>\n<td>1179284<\/td>\n<td>12345792<\/td>\n<td>341353<\/td>\n<td>2023-06-24T16:41:40Z<\/td>\n<td>2024-07-31T20:36:52Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl4.digicert.com\/DigiCertGlobalG2TLSRSASHA2562020CA1-1.crl<\/td>\n<td>DigiCert Global G2 TLS RSA SHA256 2020 CA1<\/td>\n<td>1179283<\/td>\n<td>12230166<\/td>\n<td>338797<\/td>\n<td>2023-06-23T07:50:27Z<\/td>\n<td>2024-07-30T20:36:17Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.digicert.cn\/DigiCertBasicRSACNCAG2.crl<\/td>\n<td>DigiCert Basic RSA CN CA G2<\/td>\n<td>1110268<\/td>\n<td>2702<\/td>\n<td>60<\/td>\n<td>2023-07-12T01:49:17Z<\/td>\n<td>2024-07-16T02:36:03Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.sectigo.com\/SectigoRSAOrganizationValidationSecureServerCA.crl<\/td>\n<td>Sectigo RSA Organization Validation Secure Server CA<\/td>\n<td>1045321<\/td>\n<td>2925385<\/td>\n<td>80227<\/td>\n<td>2022-07-19T12:42:03Z<\/td>\n<td>2024-07-31T01:33:29Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.microsoft.com\/pkiinfra\/CRL\/AME%20Infra%20CA%2006.crl<\/td>\n<td>AME Infra CA 06<\/td>\n<td>715739<\/td>\n<td>105127<\/td>\n<td>2006<\/td>\n<td>2023-08-11T21:17:00Z<\/td>\n<td>2024-07-26T00:42:51Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.microsoft.com\/pkiinfra\/CRL\/AME%20Infra%20CA%2002(4).crl<\/td>\n<td>AME Infra CA 02<\/td>\n<td>715162<\/td>\n<td>103116<\/td>\n<td>1967<\/td>\n<td>2023-09-01T02:28:38Z<\/td>\n<td>2024-07-29T02:16:52Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl3.digicert.com\/DigiCertTLSRSASHA2562020CA1-4.crl<\/td>\n<td>DigiCert TLS RSA SHA256 2020 CA1<\/td>\n<td>590903<\/td>\n<td>2099582<\/td>\n<td>59211<\/td>\n<td>2023-06-26T15:53:05Z<\/td>\n<td>2024-07-30T22:18:37Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl4.digicert.com\/DigiCertTLSRSASHA2562020CA1-4.crl<\/td>\n<td>DigiCert TLS RSA SHA256 2020 CA1<\/td>\n<td>590903<\/td>\n<td>2099582<\/td>\n<td>59211<\/td>\n<td>2023-06-26T15:53:05Z<\/td>\n<td>2024-07-30T22:18:37Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.microsoft.com\/pkiinfra\/CRL\/AME%20Infra%20CA%2005.crl<\/td>\n<td>AME Infra CA 05<\/td>\n<td>538817<\/td>\n<td>89579<\/td>\n<td>1707<\/td>\n<td>2023-08-25T20:55:00Z<\/td>\n<td>2024-07-26T00:42:58Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.microsoft.com\/pkiinfra\/CRL\/AME%20INFRA%20CA%2001(4).crl<\/td>\n<td>AME INFRA CA 01<\/td>\n<td>526542<\/td>\n<td>89700<\/td>\n<td>1709<\/td>\n<td>2023-09-01T02:36:23Z<\/td>\n<td>2024-07-26T00:43:04Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl06.actalis.it\/Repository\/AUTHDV-G3\/getLastCRL<\/td>\n<td>Actalis Domain Validation Server CA G3<\/td>\n<td>422592<\/td>\n<td>447772<\/td>\n<td>10794<\/td>\n<td>2023-07-04T06:41:09Z<\/td>\n<td>2024-07-31T20:36:04Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/cdp.rapidssl.com\/RapidSSLTLSRSACAG1.crl<\/td>\n<td>RapidSSL TLS RSA CA G1<\/td>\n<td>330495<\/td>\n<td>393649<\/td>\n<td>10794<\/td>\n<td>2023-06-27T17:01:43Z<\/td>\n<td>2024-07-31T03:31:39Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.comodoca.com\/COMODORSAOrganizationValidationSecureServerCA.crl<\/td>\n<td>COMODO RSA Organization Validation Secure Server CA<\/td>\n<td>325173<\/td>\n<td>15606255<\/td>\n<td>439248<\/td>\n<td>2022-07-18T17:33:37Z<\/td>\n<td>2024-07-31T01:18:28Z<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/crl.entrust.net\/level1k.crl<\/td>\n<td>Entrust Certification Authority - L1K<\/td>\n<td>281758<\/td>\n<td>3260187<\/td>\n<td>77857<\/td>\n<td>2023-06-30T17:27:14Z<\/td>\n<td>2024-07-31T22:57:41Z<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><br><\/p>\n<p>We found several CRL endpoints which were not resolvable - in each case because they had a TLD that was nonexistent.<\/p>\n<p>The most popular was <code>http:\/\/pki-crl.itn.ftgroup\/crl\/orangedevices_stellar_auth3_ca.crl<\/code> with a count of 1664067 found in the wild<\/p>\n<p>Then there were several of the from <code>crl[N].ame.gbl<\/code>... -\n<code>http:\/\/crl1.ame.gbl\/crl\/AME%20Infra%20CA%2006.crl<\/code>,\n<code>http:\/\/crl2.ame.gbl\/crl\/AME%20Infra%20CA%2006.crl<\/code>,\n<code>http:\/\/crl3.ame.gbl\/crl\/AME%20Infra%20CA%2006.crl<\/code>,\nand <code>http:\/\/crl4.ame.gbl\/crl\/AME%20Infra%20CA%2006.crl<\/code> all four with a count of 715739.<\/p>\n<p>Also <code>http:\/\/crl1.ame.gbl\/crl\/AME%20Infra%20CA%2002(4).crl<\/code>,\n<code>http:\/\/crl2.ame.gbl\/crl\/AME%20Infra%20CA%2002(4).crl<\/code>,\n<code>http:\/\/crl3.ame.gbl\/crl\/AME%20Infra%20CA%2002(4).crl<\/code>,\nand <code>http:\/\/crl4.ame.gbl\/crl\/AME%20Infra%20CA%2002(4).crl<\/code> all with a count of 715162.<\/p>\n<p>Also <code>http:\/\/crl1.ame.gbl\/crl\/AME%20Infra%20CA%2005.crl<\/code>,\n<code>http:\/\/crl2.ame.gbl\/crl\/AME%20Infra%20CA%2005.crl<\/code>, \n<code>http:\/\/crl3.ame.gbl\/crl\/AME%20Infra%20CA%2005.crl<\/code>, and \n<code>http:\/\/crl4.ame.gbl\/crl\/AME%20Infra%20CA%2005.crl<\/code>\nall with a count of 538817.<\/p>\n<p>And then there were\n<code>http:\/\/crl1.ame.gbl\/crl\/AME%20INFRA%20CA%2001(4).crl<\/code>, \n<code>http:\/\/crl2.ame.gbl\/crl\/AME%20INFRA%20CA%2001(4).crl<\/code>, \n<code>http:\/\/crl3.ame.gbl\/crl\/AME%20INFRA%20CA%2001(4).crl<\/code>, \nand <code>http:\/\/crl4.ame.gbl\/crl\/AME%20INFRA%20CA%2001(4).crl<\/code>, \nall with a count of 526542.<\/p>\n<p>It's a fairly bad sign of sloppiness when the hostnames for the CRLs for 17 out of the top 50 subordinate CAs don't resolve - 16 of them by the same company!\nWe suspect that these passed QA (if any) because of support for\npartial domain names in resolvers (the \"search\" directive in\nresolv.conf) and wonder if any of the usual suspects have anything to\nsay about CRL publishing endpoints that can't be resolved.<\/p>","pubDate":"Wed, 31 Jul 2024 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2024-07-31:\/2024\/07\/31\/how-big-are-crls.html","category":"misc"},{"title":"LetsEncrypt and the OCSP Sunset","link":"https:\/\/technotes.seastrom.com\/2024\/07\/24\/letsencrypt-ocsp.html","description":"<p>In a group chat today, someone asked about the recent <a href=\"https:\/\/letsencrypt.org\/2024\/07\/23\/replacing-ocsp-with-crls\">dispatch from\nLetsEncrypt about ending OCSP\nservice<\/a>.\nTo wit, they brought up that CRLs can be big and clunky and OCSP\nstapling fixes the privacy problem.  I started to duck, but not before\nsomeone said \"@rs is probably the person I would ask\".  Not sure how I\nbecame the designated crypto expert, but here goes...<\/p>\n<p>When you download a CRL, you aren't necessarily downloading a list of all\ncertificates that have ever been revoked from that CA, you're\ndownloading a list of certificates that have been revoked but would otherwise appear\nto be valid in a proper context.  There would be little point in listing certificates that had been revoked but were invalid by virtue of their own expiration or an intermediate CA's expiration.  Given how short the lifetime of LE certs is (90 days), this is likely\nto be a whole lot less clunky than you might think.  Certs that have\nbeen renewed are not auto-revoked.  So in practice it is quite small.\nFor instance:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>Hunters-Laptop:~ rs$ openssl x509 -text -noout &lt; server-intermediate.crt | grep -A3 &quot;Distribution Points&quot;\n            X509v3 CRL Distribution Points: \n                Full Name:\n                  URI:http:\/\/x1.c.lencr.org\/\n    Signature Algorithm: sha256WithRSAEncryption\nHunters-Laptop:~ rs$\n<\/code><\/pre><\/div>\n\n<p>and<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>Hunters-Laptop:~ rs$ curl http:\/\/x1.c.lencr.org\/ | openssl crl -text -noout | grep Certificate\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n100   717  100   717    0     0  63149      0 --:--:-- --:--:-- --:--:-- 65181\nCertificate Revocation List (CRL):\nNo Revoked Certificates.\nHunters-Laptop:~ rs$\n<\/code><\/pre><\/div>\n\n<p>I'll admit that I didn't expect the CRL to be 717 bytes long including\nthe signatures and metadata and literally empty, but upon reflection I suspect that there is not a whole lot of revocation activity going on in that CA despite the fact that how to do it <a href=\"https:\/\/letsencrypt.org\/docs\/revoking\/\">is well documented<\/a> and revoking the certificates that go with compromised keys is <a href=\"https:\/\/letsencrypt.org\/documents\/LE-SA-v1.4-April-3-2024.pdf\">required by the subscriber agreement<\/a> - section 3.2.<\/p>\n<p>It's important to note that OCSP and OCSP stapling are not the same\nthing.  While OCSP has privacy problems on its surface, OCSP stapling\n(the proffered solution) has implementation bugs and limitations.  See the <a href=\"https:\/\/en.wikipedia.org\/wiki\/OCSP_stapling\">Wikipedia\narticle on it<\/a> for the particulars.<\/p>\n<p>Supporting OSCP at all is setting up for a potential information leak.\nThe ISRG dispatch about it linked above states that they are\nspecifically concerned about CAs that do not currently collect or\nretain this data being forced to under color of law.  Left unstated is\nthe possibly of <a href=\"https:\/\/en.wikipedia.org\/wiki\/National_security_letter\">having to do so without\ndisclosure<\/a>.<\/p>\n<p>Even setting aside the privacy and trust implications of complying\nwith such an order, through a risk lens it's not entirely clear to me\nthat reimbursement of the costs of doing it would be forthcoming.\nIt's hard enough to <a href=\"https:\/\/ndcac.fbi.gov\/calea\/thelaw\/section109\">get reimbursement for CALEA\ncosts<\/a> and litigation\nis expensive - if the usual actors who don't like pervasive crypto\nwanted a fulcrum upon which to put ISRG out of business, this might be\nit.  No need to actually do anything with the data collected, just\nforce it to be collected and delivered - if you don't like footing the\nbill sue us for the next 8 years and pay the lawyers while the case\nmakes its way through the courts.  Better for the LetsEncrypt folks to\njust say \"nope, sorry, not doing OCSP anymore\".<\/p>","pubDate":"Wed, 24 Jul 2024 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2024-07-24:\/2024\/07\/24\/letsencrypt-ocsp.html","category":"misc"},{"title":"Criteria for Selection of Southeast Asian (and other) Hot Sauces","link":"https:\/\/technotes.seastrom.com\/2024\/06\/30\/considerations-for-selection-of-hot-sauce.html","description":"<p>Maybe you're a fan of Huy Fong \"Rooster\" Sriracha (which I never\nreally understood the hype around), and are now being bitten by the <a href=\"https:\/\/www.forbes.com\/sites\/katevitasek\/2024\/05\/09\/future-sriracha-shortage-shows-need-for-trust-with-supply-chain-partners\/\">2024\nshortage<\/a>.\nOr maybe you're just looking to expand your horizons and try something\nnew and different.<\/p>\n<p>There are five different varieties of Sriracha sauce in our\nrefrigerator, none of them Huy Fong, and all of them tastier.  They\nsay you can't tell a book by its cover, and yet Tan noticed (and I\nexpanded on) hints you can tell by examining the packaging that offer\npre-purchase insights as to whether or not this hot sauce is the Real Deal.<\/p>\n<p>How many of these can you find next time you go to an Asian (or\nLatino, or whatever) market in search of your next tasty discovery?\nThe more you find the better your chances are!<\/p>\n<ul>\n<li>Manufacturer mailing address outside the USA<\/li>\n<li>Glass bottle<\/li>\n<li>Cheap metal or plastic cap (the less structurally sound the better)<\/li>\n<li>Big bottle and inexpensive (either on a per-ml basis, a per bottle basis, or both)<\/li>\n<li>Label is either \"graphic design is my passion\" level cringe or the picture of some figure central to the manufacturer's origin story<\/li>\n<li>Does not use jalape\u00f1os (particularly <a href=\"https:\/\/www.plantanswers.com\/reserch_tam.htm\">TAM2<\/a>, looking at you rooster...)<\/li>\n<\/ul>\n<p>Bonus section:<\/p>\n<ul>\n<li>English-Second (or -Third) label<\/li>\n<li>Ingredients list in English is an overpaste (potentially including importer info)<\/li>\n<li>Metric-dimensioned bottle (e.g. \"150ml \/ 5 oz\" or \"8.8 oz \/ 250g\").  Double bonus for metric-first labeling.<\/li>\n<\/ul>\n<p>Note that these are not exhaustive, nor are they hard and fast rules.\nValentina, for instance, ticks fewer boxes than you would think.  That\nmay just be an indication that matching even one datapoint is\nsufficient to warrant further investigation.  Note too that\nCommonwealth influence (for instance, \"Delish\" brand Bajan Pepper\nSauce) increases the likelihood of Imperial-first bottle dimensioning\nand English-first labeling.<\/p>\n<p>These criteria are hypothesized to potentially apply to soy sauce and\nfish sauce.  Independent correspondents are invited to advise us of\ntheir research results including datapoints in the form of additional\nsigns and clues, and extension to other foodstuffs.<\/p>","pubDate":"Sun, 30 Jun 2024 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2024-06-30:\/2024\/06\/30\/considerations-for-selection-of-hot-sauce.html","category":"misc"},{"title":"I spy with my little eye... a Pi","link":"https:\/\/technotes.seastrom.com\/2024\/03\/31\/i-spy-a-pi.html","description":"<p>Looking for a freshly booted headless Raspberry Pi on your lan?<\/p>\n<p>Do a scan to prime your arp cache (nmap will do nicely) and then:<\/p>\n<p><code>arp -an | egrep -i 'at (28:CD:C1|3A:35:41|B8:27:EB|D8:3A:DD|DC:A6:32|E4:5F:01)'<\/code><\/p>\n<p>will find you all Raspberry Pi OUIs and their IP addresses.<\/p>","pubDate":"Sun, 31 Mar 2024 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2024-03-31:\/2024\/03\/31\/i-spy-a-pi.html","category":"misc"},{"title":"SWR, Return Loss, and Percent Power Reflected","link":"https:\/\/technotes.seastrom.com\/2024\/03\/29\/swr-return-loss-percent.html","description":"<p>For some reason, ham radio operators cling to an archaic way of\nmeasuring whether things are A-OK with an antenna system, called\nVoltage Standing Wave Ratio, or SWR for short.  Most hams treat SWR as\ndimensionless units, and have no understanding of what's going on\nunder the hood, because the match is painful and it's not well explained.<\/p>\n<p>Faraday was the first to notice electrical standing waves. Before him,\nstanding waves in natural physical phenomena were noticed by early\nscientists as far back as Archimedes.<\/p>\n<p>Technology moves on though, and today, professionals express reflected\npower as a result of impedance mismatch (which is how Not-OK-ness with\nthe antenna manifests itself) as <em>return loss<\/em> - the decibel\nrelationship of forward power to reflected power.  For instance,\nsending 100 watts and seeing 10 watts reflected back to you (10%, or\n1\/10) is -10 dB.  If you send 100 watts and see 25 watts coming back\nto you that's -6 dB, and so forth and so on.  The minus is often\nomitted on the grounds that it's impossible to have negative return\nloss (that would be gain!).  Unsurprisingly, the same method of\nexpressing imperfections is employed by telecommunications fiber\npeople.<\/p>\n<p>Too much reflected power results in heat build up and kills\ncomponents.  Too-high voltage from reactance in the system is a more immediate\nkiller.  Modern amplifiers tend to have safety circuilts to try to\nsave themselves from this sort of thing, but that's not perfect.  You\nwant to have return loss that is high enough (low enough reflected\npower) that it is well within your transmitter's specifications.<\/p>\n<p>Most modern transceivers that do not have an internal tuner are specifiec to handle an SWR of up to 2:1, which coincidentally is a hair under 10 dB return loss.  But that doesn't have infinite significant digits nor is the safety monitor something that gets particularly calibrated.  On practical antennas, wind blowing will move the SWR (or reflected power) around a little bit too, so you'd do well to target 1.8:1 SWR (11 dB return loss) or better.<\/p>\n<p>In the interests of having a handy reference, here's a table with SWR,\nreturn loss (dB) and reflected power as a percent of forward power.\nValues are approximate.<\/p>\n<table>\n<thead>\n<tr>\n<th>SWR<\/th>\n<th>RL (dB)<\/th>\n<th>Power Back (%)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>6:1<\/td>\n<td>2.92<\/td>\n<td>51.1<\/td>\n<\/tr>\n<tr>\n<td>5:1<\/td>\n<td>3.52<\/td>\n<td>44.5<\/td>\n<\/tr>\n<tr>\n<td>4:1<\/td>\n<td>4.44<\/td>\n<td>36.0<\/td>\n<\/tr>\n<tr>\n<td>3:1<\/td>\n<td>6.02<\/td>\n<td>25.0<\/td>\n<\/tr>\n<tr>\n<td>2:1<\/td>\n<td>9.54<\/td>\n<td>11.2<\/td>\n<\/tr>\n<tr>\n<td>1.9:1<\/td>\n<td>10.16<\/td>\n<td>9.6<\/td>\n<\/tr>\n<tr>\n<td>1.8:1<\/td>\n<td>10.88<\/td>\n<td>8.2<\/td>\n<\/tr>\n<tr>\n<td>1.7:1<\/td>\n<td>11.73<\/td>\n<td>6.7<\/td>\n<\/tr>\n<tr>\n<td>1.6:1<\/td>\n<td>12.74<\/td>\n<td>5.3<\/td>\n<\/tr>\n<tr>\n<td>1.5:1<\/td>\n<td>13.97<\/td>\n<td>4.0<\/td>\n<\/tr>\n<tr>\n<td>1.4:1<\/td>\n<td>15.56<\/td>\n<td>2.8<\/td>\n<\/tr>\n<tr>\n<td>1.3<\/td>\n<td>17.70<\/td>\n<td>1.7<\/td>\n<\/tr>\n<tr>\n<td>1.2<\/td>\n<td>20.83<\/td>\n<td>0.83<\/td>\n<\/tr>\n<tr>\n<td>1.1<\/td>\n<td>26.44<\/td>\n<td>0.22<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Further refinement on how one thinks about reflected power can be had by reading <a href=\"https:\/\/www.k3emd.com\/downloads\/Reflect.pdf\">Walt Maxwell's Reflections series of articles<\/a> - but if you don't have the time, keep in mind that the sole real goal here is to keep your finals happy.  There's no fraction in hunting for a perfect match.  The first law of thermodynamics isn't violated, Power isn't \"lost\" in any significant way for anything even remotely resembling a decent match if you've bought coax with decent loss characteristics for the band you're using and the length of the cable run.\n.<\/p>","pubDate":"Fri, 29 Mar 2024 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2024-03-29:\/2024\/03\/29\/swr-return-loss-percent.html","category":"misc"},{"title":"Disk Erase, 2023 Edition","link":"https:\/\/technotes.seastrom.com\/2023\/09\/19\/disk-erase.html","description":"<p>Still think that the DoD 7-pass random data erase is the gold standard?<\/p>\n<p>That might have made sense years ago, back when there were wide guard\nbands between tracks on disks and tolerances were sloppy.<\/p>\n<p>Here in the future, though, the tracks sometimes even overlap (ever\nhear of SMR?) and in any event the tolerances are super tight, which\nis how they fit 20 terabytes of data in a 3.5\" hard drive.<\/p>\n<p>Turns out that NIST hasn't suggested multi-pass since 2005.  <a href=\"https:\/\/csrc.nist.gov\/pubs\/sp\/800\/88\/r1\/final\">NIST\nSP800-88<\/a> gives the\nskinny, including cryptographic erase, solid state media, etc.<\/p>\n<p>Long story short, a single pass is fine.  This is how we do it on the Mac:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>diskutil unmountdisk \/dev\/disk2 ; time diskutil secureErase 0 \/dev\/disk2 ; diskutil unmountdisk \/dev\/disk2\n<\/code><\/pre><\/div>\n\n<p>(assuming \/dev\/disk2 is what you want to actually erase, yaknow)<\/p>\n<p>...<\/p>","pubDate":"Tue, 19 Sep 2023 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2023-09-19:\/2023\/09\/19\/disk-erase.html","category":"misc"},{"title":"Further notes for running current Raspi-OS headless","link":"https:\/\/technotes.seastrom.com\/2023\/07\/13\/pi-bullseye-headless.html","description":"<p>You turned on ssh by touching a file called <code>ssh<\/code> in\nthe FAT-formatted boot partition, but you still can't log in, right?<\/p>\n<p>The Raspberry Pi people <a href=\"https:\/\/www.raspberrypi.com\/news\/raspberry-pi-bullseye-update-april-2022\/\">decided that getting rid of pi\/raspberry on first startup was important<\/a> - can't fault them from a cybersecurity perspective.  You have to set up a username (probably not pi) and password (hopefully not raspberry) at first run, in a setup wizard.<\/p>\n<p>Well, what if you want to run headless?  The <a href=\"https:\/\/www.raspberrypi.com\/news\/raspberry-pi-bullseye-update-april-2022\/\">documentation<\/a> as of April 2022 says that you should do something like:<\/p>\n<p><code>echo 'pi:$6$KKTv34KI7sc9vKcB$1bTfYnb0e5MpzahXpXzsWIlQ\/K7TRHQFleX3eAbDFoBFWHuGyyN\/Nj7I.k0MPUGxxnzjU.I.M9WVLMe1YrRB7\/' &gt; \"$BOOTDIR\"\/userconf.txt<\/code><\/p>\n<p>to put back pi\/raspberry.  Note the single quotes.  If you use double quotes a $ in your password hash will get expanded by the shell, and what you <em>think<\/em> you're putting in <code>userconf.txt<\/code> won't be what actually goes there and you won't be able to log in.<\/p>\n<p>Of course, you're highly advised to replace pi\/raspberry with some other hash, created the way they tell you to in the blog.<\/p>\n<p>But now you're able to log in, but you can't connect to the vnc server from your Mac, which speaks an old and crufty (with old and crufty crypto) version of the VNC protocol despite following the <a href=\"\/2022\/03\/07\/raspberry-pi-4b-in-the-ham-shack.html\">process I previously outlined for Buster<\/a>.<\/p>\n<p>Well, time hurries on and RealVNC Server is among the things upgraded in Bullseye.  Current version is 7.0.1.49073.<\/p>\n<p>In addition to <code>Authentication=VncAuth<\/code>, you need to add <code>Encryption=AlwaysOff<\/code> to \/root\/.vnc\/config.d\/vncserver-x11 just above the \"Password\" line.<\/p>\n<p>By the way, if you're looking for Raspberry Pis by arp entry after brining one up new headless (and strobing your network with <code>nmap -sP 192.0.2.0\/24<\/code>, you can find them by running <code>arp -an | egrep -i '(28:CD:C1|B8:27:EB|D8:3A:DD|DC:A6:32|E4:5F:01)'<\/code><\/p>","pubDate":"Thu, 13 Jul 2023 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2023-07-13:\/2023\/07\/13\/pi-bullseye-headless.html","category":"misc"},{"title":"Remembrances of Dad","link":"https:\/\/technotes.seastrom.com\/2023\/07\/01\/dad-remembrances.html","description":"<p>My father <a href=\"https:\/\/spicermullikin.com\/charles-c-charlie-seastrom\/\">passed away on April 24th\n2023<\/a> a week short of his 87th birthday after many years fighting Parkinson's Disease.<\/p>\n<p>His funeral was a small, family-only affair.  Somehow, the message\ndidn't get to me that I was expected to say a few words until I sat\ndown in the front row at the funeral home and looked at the program,\nso what I said was on about five minutes' notice.<\/p>\n<p>It's been bugging me for a couple of months now that what I said,\nspeaking extemporaneously and without notes, was incomplete.  Today,\ntwo months to the day from his funeral, I want to tidy things up a\nlittle bit, while not straying from the central theme and not\nmaking it overly long.<\/p>\n<h4>Remembering Dad<\/h4>\n<p>When I got up in front of our extended family, I noted that I had\nscant advance notice that I was expected to share some remembrances of\nDad, so I was going to wing it.<\/p>\n<p>I didn't learn that skill from him though.  Dad was meticulous and\nplanned things out in advance.<\/p>\n<p>You hear a lot about in the news today about generational wealth,\nparticularly in a social equity context.  They're usually talking\nabout money.  But today I want to talk today about the values and\npredispositions that Dad handed down to us long ago, while he was\nalive.  This is the generational wealth that makes us spiritually\nrich.<\/p>\n<p>Dad taught my sister and me the value of intellectual curiosity, and the desire to understand the world around us.<\/p>\n<p>He taught us safety - if something could not be done safely, perhaps we should not do it at all.<\/p>\n<p>Dad taught us honesty - telling the truth even when it is not easy.<\/p>\n<p>Together with my mother, our father instilled in us a lifelong love of music.<\/p>\n<p>Leading by example, Dad taught us love of God as expressed through service to our fellow humans.<\/p>\n<p>These are but a few examples.  If I tried to be exhaustive we would be here all day.<\/p>\n<p>Thank you Dad, I love you, I'll miss you, until we meet again - farewell.<\/p>","pubDate":"Sat, 01 Jul 2023 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2023-07-01:\/2023\/07\/01\/dad-remembrances.html","category":"misc"},{"title":"Read and Unread message in maildir (dovecot)","link":"https:\/\/technotes.seastrom.com\/2023\/03\/08\/read-and-unread-maildir.html","description":"<p>It's often convenient to do a quick check (generally on someone else's mailbox) to see if they just deleted all their mail or whatever.  From a shell prompt, here's how to find a count of read and unread messages in a Maildir \"cur\" directory:<\/p>\n<p>Read:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>ls | egrep &#39;S[^,]*$&#39; | wc -l\n<\/code><\/pre><\/div>\n\n<p>Unread:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>ls | egrep -v &#39;S[^,]*$&#39; | wc -l\n<\/code><\/pre><\/div>","pubDate":"Wed, 08 Mar 2023 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2023-03-08:\/2023\/03\/08\/read-and-unread-maildir.html","category":"misc"},{"title":"Quick and Dirty OpenVPN configuration on EdgeOS (and maybe VyOS?)","link":"https:\/\/technotes.seastrom.com\/2022\/10\/29\/quick-and-dirty-openvpn-edgeos.html","description":"<p>At ClueTrust for better or worse we've standardized on Ubiquiti Edgerouters (mostly ER4s) for SOHO use.<\/p>\n<p>While we like <a href=\"https:\/\/sshuttle.readthedocs.io\/en\/stable\/\">sshuttle<\/a>\nas a \"good enough for most stuff\" substitute for a VPN, that only\nworks on laptops.  For situations where you need to use a \"real\" VPN,\nEdgeOS supports OpenVPN.  I use the Screens app on my iPad to remote\ncontrol the Mac that runs the ham shack, for instance.<\/p>\n<p>Here's a config snippet for setting up OpenVPN server for laptops (not\nsite to site) on EdgeOS along with some commentary.  This example is\nfor EdgeOS v1.10.11.  Version 2.x and VyOS may require some tweaking.:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>set interfaces openvpn vtun0 description &#39;laptop vpn&#39;\nset interfaces openvpn vtun0 mode server\nset interfaces openvpn vtun0 server name-server 172.30.250.126\nset interfaces openvpn vtun0 server push-route 172.30.250.0\/24\nset interfaces openvpn vtun0 server push-route 172.30.251.0\/24\nset interfaces openvpn vtun0 server subnet 172.28.252.0\/24\nset interfaces openvpn vtun0 tls ca-cert-file \/config\/auth\/ssl\/ovpn0-cacert.pem\nset interfaces openvpn vtun0 tls cert-file \/config\/auth\/ssl\/ovpn0-server.pem\nset interfaces openvpn vtun0 tls dh-file \/config\/auth\/ssl\/ovpn0-dh.pem\nset interfaces openvpn vtun0 tls key-file \/config\/auth\/ssl\/ovpn0-server.key\n<\/code><\/pre><\/div>\n\n<p>Commentary:<\/p>\n<p>This server listens on udp\/1194.  You'll need to open that up in your external firewall.  Something like this ought to do:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>set firewall name InternetInbound rule 130 action accept\nset firewall name InternetInbound rule 130 description &#39;openvpn remote laptops&#39;\nset firewall name InternetInbound rule 130 destination port 1194\nset firewall name InternetInbound rule 130 protocol udp\n<\/code><\/pre><\/div>\n\n<p>The <code>vtun0<\/code> stanzas above set up, for lack of a better term, a \"fake\nlan\" interface with a subnet as described in the \"subnet\" stanza.\nMake sure any internal firewall\/segmentation rules take this into\naccount.<\/p>\n<p>Note the plurality of \"push-route\" rules.  There seemed to be a bug on\nv1.10.11 that kept a \/23 route from being handled properly.  This is\nfor split tunnel vpn.  If you wanted everything to go through the VPN\n(like if you were on some dodgy hotspot in a place where you didn't\nwant all your metadata logged by whomever)...  you could do 0.0.0.0\/0<\/p>\n<p>After any changes, you may have to <code>reset openvpn interface vtun0<\/code><\/p>\n<p>The command shell in VyOS is kinda crummy and it's not really a full\nshell.  You can <code>sudo bash<\/code> though and get a real shell (you'll likely\nhave to in order to set up your certs properly.<\/p>\n<p>You likely want to set up your own standalone CA for creating server\nand client certs.  Note that CNs don't matter for the server in this\necosystem, just that the server cert chains back to the same CA as the\nclient cert with the proper use constraints.  You should have a unique\nCN for each client device that you want active at the same time as IP\naddresses are sticky to the client CN (i.e., do a different cert for\nyour laptop, your ipad, and your cell phone if you want all three\nonline at the same time).<\/p>\n<p>I did a <a href=\"https:\/\/github.com\/res3066\/openvpn-easyrsa3-ca-skeleton\">set of wrappers around\neasyrsa3<\/a> for\n\"insert coin receive .ovpn file\" operation.  Please be careful what\nyou check into github and don't send me PRs with NPI in them!<\/p>","pubDate":"Sat, 29 Oct 2022 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2022-10-29:\/2022\/10\/29\/quick-and-dirty-openvpn-edgeos.html","category":"misc"},{"title":"second-systemd","link":"https:\/\/technotes.seastrom.com\/2022\/08\/12\/systemd.html","description":"<p>Sorry for the blog drought.  Plenty of backlog, short on time.<\/p>\n<p>I am embarrassed that this took literally years to pop into my head, but you heard it here first:  <em>second-systemd<\/em>.<\/p>\n<p>Pass it on.<\/p>","pubDate":"Fri, 12 Aug 2022 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2022-08-12:\/2022\/08\/12\/systemd.html","category":"misc"},{"title":"Digirig, Raspberry Pi, and Older Icoms (IC-703, IC-706MkIIg, IC-718)","link":"https:\/\/technotes.seastrom.com\/2022\/03\/08\/digirig-pi-older-icom.html","description":"<p>This is a companion to my <a href=\"\/2022\/03\/07\/raspberry-pi-4b-in-the-ham-shack.html\">previous post<\/a>\nabout setting up a Raspberry Pi for a dedicated headless shack computer.<\/p>\n<p>My return to digital modes in a big way was spurred in no small part by my friend\nBrett pointing me at the <a href=\"https:\/\/digirig.net\/why-digirig\/\">Digirig Mobile<\/a>, a tidy\nlittle box which is both a USB soundcard\/aux port interface and a CAT interface in one\ntiny, reasonably priced box about the size of your thumb.  If you think \"RigBlaster or\nSignalink USB plus serial port plus Icom CI-17 all in the same box\" you've got the right idea.<\/p>\n<p>I might add I always found the Signalink to be fiddly, above and beyond what one might\nexpect from such a box, and had already made a decision that when I returned to air\nit would be with an improved interface.  Chief among my complaints was that the DAC was off by an\nunconscionable amount (a well published problem) and required correction that not all\ncommunication programs are capable of to avoid chasing QSOs up the band on PSK-31.<\/p>\n<p>In the fleet here are three older model Icom radios - a non-Plus 703, a 706MkIIG, and a\n718 - the last may or may not be made anymore but in any event there is a LOT of new stock\navailable at HRO (and presumably other vendors).<\/p>\n<p>Each of them has plusses and minuses.  They all speak Icom's CI-V\nprotocol, but it is important to understand that this is Icom's\nversion of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Computer_Aided_Transceiver\">Computer Aided Transceiver\n(CAT)<\/a>, with\nthe emphasis on \"Aided\".  The feature sets are nowhere near at parity\nacross different years and versions of radios (a problem that is not\nlimited to Icom, by the way).  The use case for CAT, across multiple\nmanufacturers, has historically been \"computer as a companion device\nto the rig\" (think RTTY or sound card modes, filling out fields in a\nlogging program, etc), not \"full remote\".  If you're looking to run\nyour rig from an iPad or laptop from another room, you're looking for\nthe ability to adjust controls and read status via CI-V, and some are\nmore important than others.<\/p>\n<p>How do we find these?  They're in your manual.  Probably in the\nfurther back pages.  I found a bit of a <a href=\"\/assets\/2022-03-08-digirig-pi-older-icom\/icom_civ_reference_v32_2002.pdf--5f5da3c7533068.90454405.pdf\">rosetta\nstone<\/a>\nthat contains the protocol descriptions as well as the supported\ncommand description pages for rigs older than 2002\/3 - to wit, the\n706, 706MkII, 706MkIIg, 707, 718, 746, 746PRO, 756, 756PRO, 766PROII,\n820H, 821H, 910H, R10, R8500, 703, 7800.  If your rig is newer than\nthat generation, consult your manual BUT it may still be useful to dig\nthrough this manual for context to see which rigs to what.<\/p>\n<p>Generally speaking the commands that you'll find especially\ninteresting and\/or variable for \"full remote\" of PSK and WSJT modes\nare the 0x14 and 0x15 family on HF.  Here's a brief synopsis of the ones\nyou will especially care about and what radios support them::<\/p>\n<table>\n<thead>\n<tr>\n<th>Family<\/th>\n<th>Subcommand<\/th>\n<th>Description<\/th>\n<th>703<\/th>\n<th>706MkIIg<\/th>\n<th>718<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>0x14<\/td>\n<td>0x01<\/td>\n<td>Set\/Read AF gain level (RX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>n<\/center><\/td>\n<td><center>Y<\/center><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>0x02<\/td>\n<td>Set\/Read RF gain level (RX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>n<\/center><\/td>\n<td><center>Y<\/center><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>0x0a<\/td>\n<td>Set\/Read RF power setting (TX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>n<\/center><\/td>\n<td><center>Y<\/center><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>0x0b<\/td>\n<td>Set\/Read mic gain setting (TX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>n<\/center><\/td>\n<td><center>Y<\/center><\/td>\n<\/tr>\n<tr>\n<td>0x15<\/td>\n<td>0x02<\/td>\n<td>Read S-meter level (RX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>Y<\/center><\/td>\n<td><center>Y<\/center><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>0x11<\/td>\n<td>Read RF power meter (TX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>n<\/center><\/td>\n<td><center>n<\/center><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>0x12<\/td>\n<td>Read SWR meter (TX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>n<\/center><\/td>\n<td><center>n<\/center><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>0x13<\/td>\n<td>Read ALC meter (TX)<\/td>\n<td><center>Y<\/center><\/td>\n<td><center>n<\/center><\/td>\n<td><center>n<\/center><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><br>\nThe 703 has all of the remote control features we would like to see,\nbut it's only 10 watts PEP; you shouldn't drive it to more than 6 or 7\nfor key-down modes like RTTY\/PSK\/FTx.  35 watts is a popular power\nlevel; this means you're at least 6 dB worse off than everyone you're\ntrying to work.  This is not to say that it can't be done!  I had really good\nsuccess working stations who were relatively loud.<\/p>\n<p>The 706MkIIg has...  basically nothing.  The original 706 was released in 1995, and whatever\nimprovements were associated with making the MkII and then the MkIIg, \"up the spec on the CI-V\" was not top of mind.\nThat doesn't make it useless for doing FT8 or PSK (I made a lot of PSK31 contacts with\nthis same radio years ago and didn't have CI-V hooked up at all).  But you will want to\nbe sitting in the shack not the living room to do it.<\/p>\n<p>The 718 is a reasonable compromise at a resaonable price point.  It has the RF gain control which is the one that you\nreally can't live without for remote control operation - the volume control does not affect\nthe volume at the AUX port on the rear of the radio, and so depending on what band you join\nand how busy it is, you will find yourself adjusting the RF gain in order to keep WSJT-X\nin the nice and happy \"green\/80%\" zone.<\/p>\n<p>I'm using the 718 today.  Do I wish it had an remote reading of the RF power, SWR, etc. so I'd\nknow things were good while I was transmitting?  Sure, but I have a multiband antenna and keep\nan auto tuner in the loop just-in-case - we're reasonably sure all is well even without\nkeeping an eye on the meter.  The price was right for an interim solution until I decide to\nbuy a rig from Flex.  They seem to hold their value well too so I'm hanging on to the box and\nmanual so when that day comes I can pare down my collection a bit.<\/p>\n<p>Building on what I wrote earlier on setting up a Pi for the shack, here are my configuration notes\nfor the Digirig on a Pi with one of the Icoms above.  Assumed platform is the same version of\nRaspberry Pi OS mentioned in the previous article.<\/p>\n<p>From the command line, recompile locales and install some software:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>sudo bash\nsed -i &quot;s\/# en_US.UTF-8\/en_US.UTF-8\/g&quot; \/etc\/locale.gen\nlocale-gen\n\napt-get install -y flrig\napt-get install -y fldigi\n\ncd Downloads\/\nwget https:\/\/physics.princeton.edu\/pulsar\/K1JT\/wsjtx_2.5.4_armhf.deb\ndpkg -i wsjtx_2.5.4_armhf.deb\n<\/code><\/pre><\/div>\n\n<p>Note that the <code>dpkg<\/code> command will generate some errors due to missing dependencies.  This is normal and expected, but needs to be fixed:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>apt-get --fix-broken -y install\n<\/code><\/pre><\/div>\n\n<p>Once you've plugged your Digirig into the Pi, let's take a look at it under Linux.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>pi@raspberrypi:~ $ lsusb\nBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\nBus 001 Device 011: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102\/CP2109 UART Bridge Controller [CP210x family]\nBus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller\nBus 001 Device 009: ID 0424:2412 Standard Microsystems Corp. \nBus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\npi@raspberrypi:~ $\n<\/code><\/pre><\/div>\n\n<p>The \"CP2102\/CP2109 UART Bridge Controller\" and the \"C-Media Electronics, Inc. CM108 Audio Controller\" are the serial\nand sound ports on the Digirig respectively.  Linux has built in drivers for both.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>pi@raspberrypi:~ $ aplay --list-devices\n**** List of PLAYBACK Hardware Devices ****\ncard 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]\n  Subdevices: 4\/4\n  Subdevice #0: subdevice #0\n  Subdevice #1: subdevice #1\n  Subdevice #2: subdevice #2\n  Subdevice #3: subdevice #3\ncard 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]\n  Subdevices: 4\/4\n  Subdevice #0: subdevice #0\n  Subdevice #1: subdevice #1\n  Subdevice #2: subdevice #2\n  Subdevice #3: subdevice #3\ncard 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]\n  Subdevices: 1\/1\n  Subdevice #0: subdevice #0\npi@raspberrypi:~ $ \n<\/code><\/pre><\/div>\n\n<p>Card 0 is Raspberry Pi sound out over HDMI.  Card 1 is the headphone jack.  Card 2 is your Digirig.<\/p>\n<p>The serial port has two names:  \/dev\/ttyUSB0 and its actual name in \/dev\/serial\/by-id.  The pop-up menu in flrig seems to like by-id.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>pi@shackpi:~ $ ls -l \/dev\/serial\/by-id\/\ntotal 0\nlrwxrwxrwx 1 root root 13 Mar  4 19:46 usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_1833892d25afeb11b77e102518997a59-if00-port0 -&gt; ..\/..\/ttyUSB0\npi@shackpi:~ $ \n<\/code><\/pre><\/div>\n\n<p>There's more than one way to set things up - WSJT-X claims to be able to talk directly to the rig via Hamlib, but\nI never had any luck doing that due to some sort of permissions problem.  I've always run it with flrig acting as the\nCI-V shim layer talking to the rig and WSJT-X or fldigi talking to the audio port directly and for communication talking\nto flrig which then goes ahead and runs the radio.<\/p>\n<p>Do your initial set-up (selecting the rig type etc) with the rig\nunplugged from the Digirig.  There are some unfortunate default\nchoices in FLrig that will result in keying your transmitter nonstop\nuntil you figure out what's going on.  Also beware that if you switch\nrig types (perhaps because you are swapping radios around or got it wrong\nthe first time) the CI-V address is sticky and will remain trying to talk\nto the old radio's address after you switch radio types.  You'll want to click the \"Default\"\nbutton next to the \"CI-V Address\" field in Config-&gt;Setup-&gt;Transceiver after you change rig types.<\/p>\n<p>All three Icoms I mentioned are happy with open collector and no voltage on RTS for PTT.  The 703 will also do PTT over\nCAT\/CI-V, but I couldn't get the others to.<\/p>\n<p>The config panes in flrig should look like this:<\/p>\n<p><img alt=\"flrig xcvr\" src=\"\/assets\/2022-03-08-digirig-pi-older-icom\/ic718-xcvr.png\" \/><\/p>\n<p>Note that the PTT pane doesn't get used here - it's for doing PTT on a different serial port than the CI-V\/CAT port.\n<img alt=\"flrig xcvr\" src=\"\/assets\/2022-03-08-digirig-pi-older-icom\/ic718-ptt.png\" \/><\/p>\n<p>See all the grayed out fields?  Those aren't supported on this radio.\n<img alt=\"flrig poll\" src=\"\/assets\/2022-03-08-digirig-pi-older-icom\/ic718-poll.png\" \/><\/p>\n<p>Now let's configure WSJT-X.  We will configure it to work with flrig\nbut speak directly to the audio drivers.  Counterintuitively, when one\nconfigures to use flrig as an intermediary by setting the rig type to\n\"FLRIG\", one must select CAT for the PTT, regardless of how flrig is\nconfigured to pass the commands onward.  Makes sense when you think\nabout it; CAT commands can be intercepted by flrig which will then do\nthe right thing whereas a direct poke at the flow control lines on the\nserial interface can not be.<\/p>\n<p><img alt=\"flrig wsjtx radio\" src=\"\/assets\/2022-03-08-digirig-pi-older-icom\/ic718-wsjtx-radio.png\" \/><\/p>\n<p>Did you notice how I have \"Split Operation\" set to \"Fake It\"?  What\ndoes this do?  Well, there's a sweet spot between 1000 and 1500 KHz\nwhere the audio filters in the transmit chain don't do much to your\nvoice.  It's most constructive to transmit your narrowband signal in\nthis sweet spot...  so if you enable this feature, every time you\ntransmit if your selected signal frequency is outside of this range\nthe rig's tuning will get warped up or down to bring your transmitted\nsignal back into the sweet spot, and then undone at the end of your\ntransmission so when you're receiving you'll be again decoding the\nwhole watering hole.<\/p>\n<p><img alt=\"flrig wsjtx audio\" src=\"\/assets\/2022-03-08-digirig-pi-older-icom\/ic718-wsjtx-audio.png\" \/><\/p>\n<p>wsjt-x will give you a whole bunch of audio drivers to choose from.  You want the ALSA\ndrivers for the USB PnP sound card, set to mono.<\/p>\n<p>Resources and further reading:<\/p>\n<p><a href=\"https:\/\/physics.princeton.edu\/pulsar\/K1JT\/wsjtx.html\">WSJT-X Home Page<\/a><\/p>\n<p><a href=\"https:\/\/physics.princeton.edu\/pulsar\/k1jt\/wsjtx-doc\/wsjtx-main-1.6.0.html\">WSJT-X User Guide<\/a><\/p>\n<p><a href=\"http:\/\/www.w1hkj.com\/W3YJ\/Remote_Article.pdf\">Inexpensive All Mode Remote Operating with a Raspberry Pi, Fldigi\/Flrig, WSJT-X, and NoMachine<\/a><\/p>\n<p><a href=\"https:\/\/www.g4ifb.com\/FT8_Hinson_tips_for_HF_DXers.pdf\">Gary Hinson's FT8 Operating Guide<\/a>  <a href=\"\/assets\/2022-03-08-digirig-pi-older-icom\/FT8_Hinson_tips_for_HF_DXers.pdf\">(local copy)<\/a><\/p>","pubDate":"Tue, 08 Mar 2022 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2022-03-08:\/2022\/03\/08\/digirig-pi-older-icom.html","category":"misc"},{"title":"Raspberry Pi 4b as a Headless Ham Shack Computer","link":"https:\/\/technotes.seastrom.com\/2022\/03\/07\/raspberry-pi-4b-in-the-ham-shack.html","description":"<p>I haven't written that much about amateur radio here, but that's going\nto change.  My callsign is AI4UC and I've been licensed since 1993.<\/p>\n<p>I was introduced to a new HF digital mode called FT8 at WWV's 100th anniversary\nspecial event station in 2019.  To make a long story short I had good intentions\nfor getting on the air with FT8 for a couple of years, but then got motivated by\nmy friend Brett who pointed me at a <a href=\"https:\/\/digirig.net\">small and inexpensive CAT and audio interface\nall-in-one box<\/a>, which promised to be far less fiddly than\nthe Signalink USB which i used for PSK31 back when I lived in the apartment.<\/p>\n<p>This left me with a question - what computer to use to dedicate to the\nwhole affair?  I wanted to be able to remotely drive the radio via the\nGUI in flrig, fldigi, and wsjt-x while sitting upstairs with a laptop\nor iPad.  It might be nice to just leave out the video monitor from\nthe shack computer altogether; run it with VNC from the laptop when I\nwas sitting down in the basement!<\/p>\n<p>I settled on a 4gb Raspberry Pi 4b that I had on hand as a good choice.  Right\nat the moment, they're way too expensive due to supply chain problems, but\nthat will right itself in time.  I've been running this configuration for\na month; in that time I've managed to log 736 QSOs, 470 QSLs, and 42 DXCC entities,\nall with the Pi and the aforementioned <a href=\"https:\/\/digirig.net\">Digirig<\/a>.  For\nthe first half of the month I was only running 6 watts into a bit of a makeshift\nmounted QRP antenna, so these numbers would have likely been a lot higher if\nI'd had a setup that was at parity with the stations I was trying to work.<\/p>\n<p>If you try this on a Raspberry Pi 3 of some flavor, I'd be interested\nin hearing your results particularly if you do a side by side bakeoff\nagainst a Pi 4.  The Pi 4 seems adequate, but gets a little slow on\ndecodes when the band is busy.  The Pi3 seems to come out at about 2\/3\nthe speed of the Pi 4.<\/p>\n<p>Here are my notes for setting up the Pi to run headless and control it over VNC, without\never hooking up a monitor to it.  Note that there's a bunch of command line work\nhere, and there's an assumption that you know how, or can figure out from elsewhere,\nhow to write an image on a card, using ssh, apt install, your favorite *nix text editor,\nor any of that sort of thing.  This is a command-line-centric howto.<\/p>\n<p>Note that adequate power is an absolute must.  I run the Pi 4 off the officially\napproved power supply and it seems to do fine - remember that the Digirig does in\nfact draw power itself too.<\/p>\n<p>Start with a freshly installed raspberry pi with 32 bit Raspbian\nBuster as the base OS.  If you're used to Intel you might be inclined\nto reach for the 64 bit variant but that is ill advised.  RaspiOS 64\nbit is considered beta as of February 2022 (and will only run on a Pi\n3 or later).  Bullseye (latest version) is also shady to some extent\nfor this application; you'll have the least frustration if you stick\nto the script. You want the full install with desktop and everything,\nnot \"lite\".<\/p>\n<p>Starting point for these notes is  <code>2022-01-28-raspios-buster-armhf.zip<\/code><\/p>\n<p>Unzip, use dd or etcher or whatever you like to write the image in the usual way.\nTurn on sshd (touch \/boot\/ssh on the mounted FAT \/boot) after you do the image as\nthis is how we will be getting in to configure it sans screen.  Note that\nif you don't mind cabling it all up, you shouldn't have any trouble following\nthe rest of this how-to in a terminal window in the GUI either.<\/p>\n<p>Plug it into ethernet and power.  Find the IP address with arp, switch tcam\ntable examination, nmap, or whatever you like.  <code>ssh pi@192.0.2.33<\/code> (password raspberry)\nusing, of course, the address you just discovered on your LAN.<\/p>\n<p>First, get everything up to date:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>sudo apt-get update -y\nsudo apt-get upgrade -y\nsudo apt dist-upgrade -y\n<\/code><\/pre><\/div>\n\n<p>Next, we convince the Pi that it has\nHDMI plugged in so that the GUI starts.  The aforementioned \/boot FAT partition is\nnow mounted under \/boot on the running pi.  There's vim(1) and nano(1) here, even ed(1).  Pick\nyour poison.  Put this in <code>\/boot\/config.txt<\/code> - position not critical:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>framebuffer_width=1920\nframebuffer_height=1080\nhdmi_force_hotplug=1\nhdmi_group=1\nhdmi_mode=16\nhdmi_drive=2\n<\/code><\/pre><\/div>\n\n<p>and <code>sudo reboot<\/code>.  You can do some other resolution if the mood strikes you but I've found\n1920x1080 to be a good resolution for doing remote ham radio on a modern laptop.<\/p>\n<p>ssh back in after the reboot, it'll be convenient to be root for the next several commands<\/p>\n<p><code>sudo bash<\/code><\/p>\n<p>You'll read stuff about using raspi-config to set up vnc-server but that's not\nuseful anymore as things have changed in recent releases.<\/p>\n<p>RealVNC has a fairly well developed and performant VNC server that talks to the same user session\nas the physical screen rather than setting up its own.  The Raspberry Pi version is free.<\/p>\n<p><code>apt-get install realvnc-vnc-server<\/code><\/p>\n<p>should tell you that realvnc-vnc-server is already installed.  If you want to play with other\nVNC servers for the Pi, that's fine, but you're on your own there.<\/p>\n<p><code>vncpasswd -service<\/code><\/p>\n<p>You'll be prompted to set the screen access  password for VNC.  It's only significant to 8 characters,\nneed not be the password you use to ssh in, but it is the password you use to connect to the VNC server.<\/p>\n<p>Now, add:\n<code>Authentication=VncAuth<\/code>\njust above the \"Password\" line in \/root\/.vnc\/config.d\/vncserver-x11<\/p>\n<p>If you don't do this, you'll get a vnc server version that is more secure\/advanced\nthan the Mac's built in screen sharing client (more on that in a minute).<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>systemctl enable vncserver-x11-serviced.service\nsystemctl start vncserver-x11-serviced.service\n<\/code><\/pre><\/div>\n\n<p>Might have to reboot for good measure here, but at this point you should be able\nto connect from the screen sharing client on your laptop as there is a VNC server running on the Pi on port tcp\/5900.<\/p>\n<p>Once logged in from your VNC, you should be able to \"drive\" the GUI as if you were sitting in front of the computer.  Or\nput your laptop to sleep, take it somewhere else, reconnect, and find things exactly as you left them.<\/p>\n<p>Assuming you're a Mac user, you might be surprised to learn there's a\n<a href=\"https:\/\/osxdaily.com\/2013\/04\/05\/vnc-client-mac-os-x-screen-sharing\/\">Mac VNC client built\nin<\/a>. It\nhasn't changed in years.  I've had good luck with Screens ($19.95 from the app\nstore on my iPad).  The RealVNC free client is not bad either,<\/p>\n<p>This might be useful for applications other than ham radio - say for\ninstance, working on Pi-based digital signage without dedicating a\nmonitor to the task.<\/p>\n<p>Security lecture time:  DON'T BE THAT GUY.  Depending on the negotiation, this VNC server\nwill probably be unencrypted.  Don't port forward to it so your friends can use it.  Don't expose\nit naked to the Internet in any other way (it's a bad neighborhood out there).  For remote access,\nit's ssh-tunnel or VPN time, not \"poke a hole in the firewall\".  You've been warned.<\/p>","pubDate":"Mon, 07 Mar 2022 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2022-03-07:\/2022\/03\/07\/raspberry-pi-4b-in-the-ham-shack.html","category":"misc"},{"title":"How to wait for The Internet to be available under systemd","link":"https:\/\/technotes.seastrom.com\/2021\/11\/30\/waiting-for-the-internet-under-systemd.html","description":"<p>For several years now I've kept a \"utility Pi\" around - a Raspberry Pi\nthat runs some random housekeeping stuff at my residence.  Among other\nthings, it keeps an eye on the UPS, sends dynamic DNS updates (rfc\n2136 to my own authoritative DNS servers), and runs Unbound for a\nrecursive DNS server and isc-dhcpd for a DHCP server.<\/p>\n<p>One of the nice things about a Pi is that even an old one boots fast.\nReally fast.  It runs circles around the router and the Juniper EX\nseries switch that it's hooked too.<\/p>\n<p>This creates its own set of problems, since isc-dhcpd will end up in\nan unhappy state if it can't see the Internet when it comes up.  I\nnever got motivated to figure out exactly why that is, but I managed\nto figure out how to make it wait until the Internet was up before it\nstarted isc-dhcpd.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>pi@rp-wdbn:\/lib\/systemd $ cat \/lib\/systemd\/system\/isc-dhcpd.service\n\n[Install]\nWantedBy=multi-user.target\n\n[Unit]\nDescription=ISC dhcp server fully from systemd\nRequires=network-online.target\nAfter=network-online.target\n\n[Service]\nType=simple\n# Six minute sleep needed by Raspbian 2018-07 because dhcpd gets unhappy if\n# the switch isn&#39;t up, the router isn&#39;t up, the internet isn&#39;t up, etc.\n# and the Pi sure boots fast after a power outage compared to the Juniper\n# switch.  Six minutes seems right for an EX3200, may be able to get away\n# with shorter for a 4200 or need more for a 2200.\n# \nExecStartPre=\/bin\/sh -c &#39;until ping -c1 8.8.8.8; do sleep 2; done;&#39;\nExecStart=\/usr\/sbin\/dhcpd -4 -d --no-pid -q -cf \/etc\/dhcp\/dhcpd.conf \n# the following used if Type=forking\n# ExecStart=\/usr\/sbin\/dhcpd -4 -q -cf \/etc\/dhcp\/dhcpd.conf \n# ExecStop=\/bin\/kill `cat \/var\/run\/dhcpd.pid`\n# PIDFile=\/var\/run\/dhcpd.pid\npi@rp-wdbn:\/lib\/systemd $ \n<\/code><\/pre><\/div>\n\n<p>Hope someone finds this helpful!<\/p>","pubDate":"Tue, 30 Nov 2021 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2021-11-30:\/2021\/11\/30\/waiting-for-the-internet-under-systemd.html","category":"misc"},{"title":"Super 8 home movie scan and conversion","link":"https:\/\/technotes.seastrom.com\/2021\/11\/23\/super-8-conversion.html","description":"<p><del>\nImportant: On the off chance that you know my parents or sister,\nplease don't mention this to them until after the holidays as it's\nmeant to be a surprise!  I'm pretty sure they don't read my blog...<\/del> They know, and are enjoying the movies.<\/p>\n<p>Several years ago I dropped by my parents' house while they were\nnot home and helped myself to a box of old home movies, on the theory\nthat it would be a nice thing for them and my sister if I were able to\nget them scanned and converted to more modern media.<\/p>\n<p>Unfortunately, it turned out that there are essentially no service\nbureaus that are set up to do what I want with them.  It's almost\nlike the wedding photography business - everyone wants to control the\ncreative product in the name of adding value while I wanted unretouched\narchival quality captures to post-process as I wished.  Kim and I were\nlucky to be able to find a wedding photographer who felt the same\nway that we did, but he was definitely a unicorn and among commercial\ntransfer services there were no unicorns to be had.<\/p>\n<p>My desires were:<\/p>\n<ul>\n<li>No post-processing<\/li>\n<li>Don't want a DVD, a hard drive full of files is A-OK<\/li>\n<li>Professional mezzanine files are fine - I've got it from here<\/li>\n<li>Trust me, I know what I'm doing and am not going to ask for my money back because I am incompetent to handle the work product<\/li>\n<li>I won't blame you for the under-or-over-exposure of the source material<\/li>\n<li>Highest scan resolution possible<\/li>\n<\/ul>\n<p>Shouldn't be hard right?  It took a friend with access to a university\narchival media lab (to whom I am eternally grateful) to actually help me out on this.<\/p>\n<p>And so I ended up with a hard drive full of Apple ProRes (yuv422p10le)\nencoded 1920x1080 enormous .mov files.  My task was to convert these to something\nmaximally compatible that would work on iPads, Rokus, etc since I\nwish to share with family friends who are in the various movies.<\/p>\n<p>It's funny how many constraints one little requirement can bring in!<\/p>\n<ul>\n<li>A lot of players get cranky in some way if they see a stream that they don't recognize, so I had to strip out the ProRes timecode stream.<\/li>\n<li>Likewise, some players (notoriously older Rokus though there may be others) really want the h.264 video stream to come with an accompanying AAC soundtrack and will go sideways in unpredictable ways if one is not provided, so I had to add a silent soundtrack to my silent films.<\/li>\n<li>The metadata in the ProRes files claimed 24 FPS which was incorrect.  No big deal there; I had said that a directory full of tiff images was fine if that was the most convenient way to deliver them.  Actual frame rate for silent Super 8 is usually 18 FPS, which is what it was in this case.<\/li>\n<li>Preserving an 18 FPS frame rate was a non-starter because most dedicated playback devices only support 24, 30, and 60 FPS.<\/li>\n<li>Much like <a href=\"https:\/\/en.wikipedia.org\/wiki\/Three-two_pull_down\">3:2 pulldown<\/a> for converting cinema to NTSC tv, we had to convert the 18 FPS to 24 FPS, which in practice means that every third frame gets duplicated or perhaps blended with the next frame (I believe ffmpeg does the former).  Not the best, but not the worst either, and the human eye is fairly forgiving of this sort of thing.<\/li>\n<li>Target encoding was h.264 High@4.0 (yuv420p) for maximum compatibility<\/li>\n<\/ul>\n<p>Here in the future we are not that sensitive to size but we <em>are<\/em> sensitive to perceived quality degradation by poor compression artifacts on film dirt and the like. A quality setting (CRF or Constant Rate Factor) of 18 put us in a good spot of turning a 1.9 gigabyte ProRes file into a 300 megabyte mp4 file - roughly three minutes runtime at 13 Mbit\/second.<\/p>\n<p>Doing all this in one shot with a command line tool took some fiddling since <a href=\"https:\/\/ffmpeg.org\">ffmpeg<\/a> is the most fiddly command line tool since <a href=\"https:\/\/www.openssl.org\">openssl<\/a> or <a href=\"https:\/\/man7.org\/linux\/man-pages\/man1\/dd.1.html\">dd(1)<\/a>.  But I persevered and here's the command that gets the job done:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -r 18 -i sum_71.mov -c:a aac -c:v libx264 -profile:v high -level:v 4.0 -vf format=yuv420p -movflags +faststart -write_tmcd 0 -crf 18 -r 24 -shortest sum_71.mp4\n<\/code><\/pre><\/div>\n\n<p>My copy of ffmpeg is version 4.4.1, built on an Intel Mac running Big Sur, using <a href=\"https:\/\/brew.sh\">Homebrew<\/a>.<\/p>\n<p>Here's the information on the files - before:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>barenfang:rs-home-movies rs$ ffprobe sum_71.mov \nffprobe version 4.4.1 Copyright (c) 2007-2021 the FFmpeg developers\n  built with Apple clang version 13.0.0 (clang-1300.0.29.3)\n  configuration: --prefix=\/usr\/local\/Cellar\/ffmpeg\/4.4.1_2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox\n  libavutil      56. 70.100 \/ 56. 70.100\n  libavcodec     58.134.100 \/ 58.134.100\n  libavformat    58. 76.100 \/ 58. 76.100\n  libavdevice    58. 13.100 \/ 58. 13.100\n  libavfilter     7.110.100 \/  7.110.100\n  libavresample   4.  0.  0 \/  4.  0.  0\n  libswscale      5.  9.100 \/  5.  9.100\n  libswresample   3.  9.100 \/  3.  9.100\n  libpostproc    55.  9.100 \/ 55.  9.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;sum_71.mov&#39;:\n  Metadata:\n    major_brand     : qt  \n    minor_version   : 0\n    compatible_brands: qt  \n    creation_time   : 2021-11-04T00:24:28.000000Z\n  Duration: 00:02:17.42, start: 0.000000, bitrate: 118435 kb\/s\n  Stream #0:0(eng): Video: prores (Standard) (apcn \/ 0x6E637061), yuv422p10le(tv, bt709), 1920x1080, 118433 kb\/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc (default)\n    Metadata:\n      creation_time   : 2021-11-04T00:24:28.000000Z\n      handler_name    : VideoHandler\n      vendor_id       : appl\n      encoder         : Apple ProRes 422 (STD)\n      timecode        : 00:00:00:00\n  Stream #0:1(eng): Data: none (tmcd \/ 0x64636D74), 0 kb\/s (default)\n    Metadata:\n      creation_time   : 2021-11-04T00:24:28.000000Z\n      handler_name    : TimeCodeHandler\n      timecode        : 00:00:00:00\nUnsupported codec with id 0 for input stream 1\nbarenfang:rs-home-movies rs$ \n<\/code><\/pre><\/div>\n\n<p>And after:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>barenfang:rs-home-movies rs$ ffprobe sum_71.mp4\nffprobe version 4.4.1 Copyright (c) 2007-2021 the FFmpeg developers\n  built with Apple clang version 13.0.0 (clang-1300.0.29.3)\n  configuration: --prefix=\/usr\/local\/Cellar\/ffmpeg\/4.4.1_2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox\n  libavutil      56. 70.100 \/ 56. 70.100\n  libavcodec     58.134.100 \/ 58.134.100\n  libavformat    58. 76.100 \/ 58. 76.100\n  libavdevice    58. 13.100 \/ 58. 13.100\n  libavfilter     7.110.100 \/  7.110.100\n  libavresample   4.  0.  0 \/  4.  0.  0\n  libswscale      5.  9.100 \/  5.  9.100\n  libswresample   3.  9.100 \/  3.  9.100\n  libpostproc    55.  9.100 \/ 55.  9.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;sum_71.mp4&#39;:\n  Metadata:\n    major_brand     : isom\n    minor_version   : 512\n    compatible_brands: isomiso2avc1mp41\n    encoder         : Lavf58.76.100\n  Duration: 00:03:03.23, start: 0.000000, bitrate: 13291 kb\/s\n  Stream #0:0(eng): Video: h264 (High) (avc1 \/ 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 13284 kb\/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)\n    Metadata:\n      handler_name    : VideoHandler\n      vendor_id       : [0][0][0][0]\n  Stream #0:1(und): Audio: aac (LC) (mp4a \/ 0x6134706D), 44100 Hz, stereo, fltp, 2 kb\/s (default)\n    Metadata:\n      handler_name    : SoundHandler\n      vendor_id       : [0][0][0][0]\nbarenfang:rs-home-movies rs$ \nbarenfang:rs-home-movies rs$ \n<\/code><\/pre><\/div>\n\n<p>And there you have it; playback has been tested on various hardware\nincluding a 2009 MacBook Pro running MacOS 10.9 (the oldest thing I\nhave around), a 2011 MacBook Pro running MacOS 10.13, a 2013 Roku 3, a\n2014 iPad Mini 3, and of course all of my newer stuff.  Works great.<\/p>\n<p>Hopefully the <code>ffmpeg<\/code> command line above is of value to someone.\nDeconstructing it and what the various parts actually do is left as an\nexercise to the reader.<\/p>","pubDate":"Tue, 23 Nov 2021 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2021-11-23:\/2021\/11\/23\/super-8-conversion.html","category":"misc"},{"title":"How to look like a Git Hero","link":"https:\/\/technotes.seastrom.com\/2021\/11\/18\/git-hero.html","description":"<p>Tripping over one's own shoelaces while using Git is a common pastime,\nif not an enjoyable one.<\/p>\n<p>You can look like a bit of a hero by telling your faceplanting friends\nabout <a href=\"https:\/\/rtyley.github.io\/bfg-repo-cleaner\/\">BFG Repo Cleaner<\/a> -\nit doesn't fix every possible mishap, but it certainly handles a lot\nof the more common ones.<\/p>","pubDate":"Thu, 18 Nov 2021 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2021-11-18:\/2021\/11\/18\/git-hero.html","category":"misc"},{"title":"The Cloud","link":"https:\/\/technotes.seastrom.com\/2021\/11\/02\/the-cloud.html","description":"<p>A popular aphorism is \"There is no 'Cloud' - it's just someone else's\ncomputer\".<\/p>\n<p>But not only is it someone else's computer...  it's someone else's IP\naddresses (usually) and someone else's namespaces, both DNS and\notherwise.<\/p>\n<p>The devil is in the details, and we keep tripping over them where we\ntry to apply traditional threat mitigation techniques to \"the cloud\".<\/p>\n<p>Put that one in your pipe and smoke it.<\/p>","pubDate":"Tue, 02 Nov 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-11-02:\/2021\/11\/02\/the-cloud.html","category":"misc"},{"title":"Bye bye Bolt... (and what's next)","link":"https:\/\/technotes.seastrom.com\/2021\/10\/23\/bye-bye-Bolt.html","description":"<p>Saturday, October 23rd 2021 was a sad day.  I am now without an electric car\nfor the first time in over 7 years.<\/p>\n<p>For background, I had a 2015 Nissan Leaf from August 2014 till February 2018, when I bought\na 2018 Chevrolet Bolt.  Between the two I've done about 100k miles in EVs - 45k in the Leaf\nand 55k in the Bolt.  Note that while I had them for approximately equivalent amounts of time,\nI put 10k miles more on the Bolt - notwithstanding the fact that over a year and a half of my Bolt\nownership was contemporary with the COVID-19 lockdown and ensuing radically reduced driving due\nto working from home.<\/p>\n<p>The Leaf had an 83 mile range under optimal conditions.  Note \"under optimal conditions\" - on the\nrare occasions in the winter when the temperature in Northern Virginia\nhit the single digits overnight, the Leaf was a bit tight for making\nit to work in Herndon and back - to the point where I'd hitch a ride\nto lunch with a colleague or eat in the building.<\/p>\n<p>The Bolt?  It rang the bell at a a bit over 240 miles, again under\noptimal conditions.  While this could be eaten into badly by cold\nweather, if it wasn't insanely frigid out I could commute to the work\nI was doing in Annapolis back in 2018 without charging at the\ndestination.  Trips to my parents' house in Delaware required a brief\nvisit to a DC fast charger, either at the destination or on my way\nback, depending.<\/p>\n<p>Speaking of DC fast chargers, there are a lot more of them (generally\noverpriced; I consider \"reasonable\" to not exceed 300% of utility rate\nfor power) than there were in 2014, with more coming every day.\nStill, maintenance can be spotty and taking a credit card (as opposed\nto a membership RFID card) at point of sale is still not a universal\nthing.  I had to point out to a friend recently that taking a road\ntrip in a Tesla with its integrated Supercharger network where you can\njust tell the car to plan your stops for you, and taking a road trip\nin a non-Tesla and falling back on PlugShare reviews and GMaps for\nfiguring out range and next stop are not even remotely the same thing.<\/p>\n<p>So there's evolution to be done here, but generally speaking the range\nof the Bolt was satisfactory for most uses.  Acceleration on the Bolt\nwas spiffy without encouraging misbehavior due to its 160 kW motor,\noutperforming the Leaf which had an 80kW motor.<\/p>\n<p>Downsides?  Yeah, there were some.  The integration between built-in\ninfotainment system and Apple Carplay was \"jarring\", with single\nbutton press to go one way, multi-press dance to flip back.  One was\nleft with the impression that the people who wrote the software didn't\nactually use it as end users.  The screen was nice and big though.  No\nOTA upgrades for either infotainment or car electronics, but maybe\nthat's a good thing considering that it's possible to bungle security\non them.  The radio is highly integrated with the rest of the\ninfotainment system (there are two field replaceable modules: \"the\ndisplay\" and \"everything else\") and VIN-locked to the vehicle,\nresulting in a quote of $1500 to fix when the radio lost its ability\nto handle preset stations.  Blind spot got a little shady recently\ntoo, alerting when there was nothing in my blind spot.<\/p>\n<p>Aside from those minor issues (and that small bit about a propensity\nfor catching on fire), 55k miles of Bolt ownership have been pretty\nmuch trouble free.  I've owned vehicles that were arguably better for\n\"cool\/rarity factor\" than the Bolt (the Unimog and Gwagen come\nimmediately to mind), but none that were as good for reliability and\nfun to drive.  And then there's that whole \"I'm going to be leaving\nhome every day with full range and no unexpected disruptions in my\nschedule to buy fuel\" thing.<\/p>\n<p>So what's next?<\/p>\n<p>GM could not give me a timetable for battery remediation since they\nare (rightly) handling battery replacement in order of risk -\napparently some batches of batteries were worse for fire danger than\nothers.<\/p>\n<p>Having been in a similar situation a year and a half ago when our\nlocal county health department couldn't tell us where we were in the\nqueue, when a program to buy back affected Bolts (which soon expanded\nto \"all Bolts ever made\"), I jumped on it.<\/p>\n<p>The transaction offered for the buyback was more than fair; I was\ngenuinely surprised by the comprehensiveness with which GM covered my\ncosts.  So a Bolt (or another electric GM product TBD) is at the top\nof my evaluation list for when I go shopping for a new electric\nvehicle.<\/p>\n<p>But when will that be?  Handing the Bolt back in has left me driving\nthe nicer of our two pickup trucks when I need transportation so we're\nnot jammed up.  I'm working from home indefinitely and there's a major\nsupply chain disruption for All The Things including the chips that go\nin cars.  At least one of those things has got to change (or I've got\nto get tired of waiting) else there's no rush.<\/p>\n<p>And so I wait, with the cord for the EVSE neatly wrapped and hung up\non the wall box, with no EV to charge.<\/p>","pubDate":"Sat, 23 Oct 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-10-23:\/2021\/10\/23\/bye-bye-Bolt.html","category":"misc"},{"title":"Creating folders for Dovecot Pigeonhole","link":"https:\/\/technotes.seastrom.com\/2021\/10\/20\/create-folders-for-dovecot-pigeonhole.html","description":"<p><a href=\"https:\/\/pigeonhole.dovecot.org\">Dovecot Pigeonhole<\/a> is an\nimplementation of the\n<a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc5228\/\">Sieve<\/a>\ndomain-specific language for server-side filtering of mail.<\/p>\n<p>This is particularly of interest when your laptop is asleep and you're\nout and about with your companion devices and don't want your inbox\ninnundated by mail that's getting missed by any client side filtering\nrules.<\/p>\n<p>It's fair to say that I use this extensively.  I have 116 rules for\nmail handling, the vast majority of which involve filing incoming mail\nin specific folders and optionally marking it read.<\/p>\n<p>In RFC 5228 (linked above) section 4.1 describes the <code>fileinto<\/code> action\nand says, <em>inter alia<\/em>, \"If the specified mailbox doesn't exist, the\nimplementation MAY treat it as an error, create the mailbox, or\ndeliver the message to an implementation-defined mailbox.\"<\/p>\n<p>Pigeonhole is compliant; it will deliver the message to your inbox if\nthe destination folder is not already there, which is not the action\nI'd prefer, and leads to an extra step to create the folder via the\nGUI on my Mac when setting up new filing rules not to mention a lot of\nhead scratching in the event of a typo in either the <code>.dovecot.sieve<\/code>\nfile or in Mail.app.<\/p>\n<p>It turns out that one can create dovecot folders under Maildir from\nthe command line via the <code>doveadm<\/code> tool, like so:<\/p>\n<p><code>doveadm mailbox create -u username -s newfolder<\/code><\/p>\n<p>and more particularly<\/p>\n<p><code>doveadm mailbox create -u rs -s \"Bulk.Membership Mail\"<\/code><\/p>\n<p>Note the . for folder hierarchy (\"Membership Mail\" is a subfolder of\n\"Bulk\") and the double quotes for supporting folder names with a space\nin them.<\/p>\n<p>The following one-liner will create a folder for every folder\nreferenced in a <code>fileinto<\/code> stanza (assuming canonical structuring)\nwith a harmless error message for each one that already exists.  Note\nthat it assumes execution in the user's home directory and that the\nuser's name is \"rs\".  Edit to suit.  :)<\/p>\n<p><code>awk -F '\"' '$1 ~ \"fileinto\" { print $2 }' &lt; .dovecot.sieve | while read p; do doveadm mailbox create -u rs \"$p\" ; done<\/code><\/p>","pubDate":"Wed, 20 Oct 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-10-20:\/2021\/10\/20\/create-folders-for-dovecot-pigeonhole.html","category":"misc"},{"title":"How to print all certs in a bundle with command line openssl(1)","link":"https:\/\/technotes.seastrom.com\/2021\/10\/07\/print-all-certs-in-a-bundle.html","description":"<p>There are a whole bunch of tools out there for printing out the\ncontent of all certificates, but the one I've habitually used is\n<code>openssl x509 -text -noout &lt; server.crt<\/code>.<\/p>\n<p>Problem is, that stops executing after the first certificate in the\nbundle.  What if I want to see all the certs in a trust chain or root\nbundle?  Recent issues with LetsEncrypt and a CA cross-signing have\nmade brought this to the fore.<\/p>\n<p>There are a lot of utilities for this, one that comes with Gnu TLS and\none that is part of a Java management suite come immediately to mind.\nIf you look on serverfault you'll find a lot of examples of multi-line\nbash, perl, etc. scripts that will chop up into intermediate files\netc.  Messy.<\/p>\n<p>It turns out that openssl can do this on its own.<\/p>\n<p><code>openssl storeutl -noout -text server-fullchain.crt<\/code><\/p>\n<p>Note that the first form is reading on stdin and the second form most emphatically is not.<\/p>","pubDate":"Thu, 07 Oct 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-10-07:\/2021\/10\/07\/print-all-certs-in-a-bundle.html","category":"misc"},{"title":"A few thoughts on yesterday's six hour Facebook outage","link":"https:\/\/technotes.seastrom.com\/2021\/10\/05\/facebook-outage.html","description":"<p>Monday Night Football started airing in 1970.  51 years hence you'd think that Tuesday Morning Quarterbacking would have replaced Monday Morning Quarterbacking in the popular vernacular but it hasn't.  With that in mind, here are a few observations on the still-emerging news related to yesterday's multi-hour Facebook outage.<\/p>\n<ul>\n<li>\n<p>It looks like the outage went way further than just just the DNS servers. Majdi and I think the working title of at least a section of the post mortem should be \"Tell me that you haven't read RFC 2182 without saying you haven't read RFC 2182\".<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/twitter.com\/vgill\/status\/1445107190868557825?s=10https:\/\/twitter.com\/vgill\/status\/1445107190868557825?s=10\">Vijay Gill<\/a> quoted an offhand observation I made over 20 years ago -- out of band communications are saving throw when you totally f*ck up.  Recovery efforts were hurt by lack of ability to quickly roll back the changes that had been pushed.<\/p>\n<\/li>\n<li>\n<p>Recovery efforts were further hampered by dependencies that nobody had thought of.  Since we can't guarantee that large complex systems will never suffer a catastrophic failure, we can at least improve our odds for minimizing time to restore service by conducting <a href=\"https:\/\/en.wikipedia.org\/wiki\/Black_start\">black start<\/a> exercises -- what happens if the network isn't there?  what happens if the DNS isn't there?  how do we come back when our usual external dependencies are broken?<\/p>\n<\/li>\n<li>\n<p>Automation makes everything faster, smoother, better - including shooting your foot off.<\/p>\n<\/li>\n<\/ul>","pubDate":"Tue, 05 Oct 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-10-05:\/2021\/10\/05\/facebook-outage.html","category":"misc"},{"title":"Of livestock-vs-pets... and barn cats","link":"https:\/\/technotes.seastrom.com\/2021\/10\/03\/livestock-pets-barncats.html","description":"<p>It's been about a decade since Randy Bias of CloudScaling first made the \"pets vs cattle\" metaphor when\ndescribing how cloud infrastructure should be managed.<\/p>\n<p>A couple of weeks ago I was talking with a colleague about his\norganization's infrastructure-as-code journey and he said that they\nwere mostly there but still had a few pets that needed to be properly\nsorted out.<\/p>\n<p>I asked \"are you sure you don't have any barn cats?\"<\/p>\n<p>By way of explanation, for readers who don't go to the country much,\nbarn cats are thought of much differently than house cats.  They're\nnot \"pets\" which are part of the family; they're more like hired help.\nThey get some degree of medical care but not to the degree that a pet\nwould, and they tend to live shorter lives.  They're working animals;\ntheir job is to keep rodents under control on the farm.<\/p>\n<p>If you have a place that has barn cats, no doubt you think of them as livestock.<\/p>\n<p>But when you start talking about putting one down because it's injured rather\nthan making heroic efforts to save it, someone will shout <em>OH MY GOD YOU CAN'T KILL FLUFFY!<\/em>.\nBecause they think that Fluffy is a pet, not livestock, and are not\nprepared to think of it in any other way.<\/p>\n<p>You really don't want to discover at the worst possible moment that\nsome of your servers that you thought were livestock are in fact barn cats.<\/p>","pubDate":"Sun, 03 Oct 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-10-03:\/2021\/10\/03\/livestock-pets-barncats.html","category":"misc"},{"title":"Headless Mac Mini M1 boot behavior","link":"https:\/\/technotes.seastrom.com\/2021\/07\/23\/headless-mac-m1.html","description":"<p>Due to an acute shortage of desk space, Kim and I decided that we were\ngoing to run our M1 Mini headless for the time being.  It mostly just\nhandles iDevice backups and iTunes libraries, so no great loss and we\ncan talk to it via screen sharing.<\/p>\n<p>I moved the Mac to headless and it responded to pings, but didn't have\nany services running.  Odd.<\/p>\n<p>Eventually after consulting with Gaige I dragged a keyboard and\nmonitor over and plugged them in.  Login window.  Hmmm.  Clicked my\naccount, typed my password... and then everything started working\nacross the network.<\/p>\n<p>You've probably read in the trade media that the M1 is fast.\nAstonishingly fast.  Not only that but with nVME disk, it <em>boots<\/em> fast\ntoo.  Fast enough that it doesn't necessarily stick in your mind that\nyou're typing your password at the <em>FileVault<\/em> login screen rather\nthan the <em>MacOS<\/em> login screen.<\/p>\n<p>Upon further inspection I discovered that FileVault was on for the\nboot drive. Turned it off, rebooted, and all was well.<\/p>\n<p>It came to me as a complete surprise that the Mac would DHCP and\nrespond to pings before booting from a FileVault-encrypted drive.<\/p>","pubDate":"Fri, 23 Jul 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-07-23:\/2021\/07\/23\/headless-mac-m1.html","category":"misc"},{"title":"Pi on Pi - using ESXi Fling on a Raspberry Pi 4b\/8GB to virtualize Raspberry Pi OS (nee Raspbian)","link":"https:\/\/technotes.seastrom.com\/2021\/06\/16\/pi-on-pi.html","description":"<p>Why on earth would I want to virtualize a Raspberry Pi on a Pi?  I'll\nget that question out of the way up front: snapshot rollback.<\/p>\n<p>I'm developing\/refactoring a big Ansible role to push personality into\na freshly DDed Raspberry Pi to build what we call a \"utility Pi\" -\nincludes a DNS server - unbound with Adblock (or not, config option),\ndhcp server, stratum 1 ntp server (which I still want to characterize\njust how bad\/good it is), Ubiquiti controller, tig stack, apc ups\nmonitor daemon\u2026. Deploys ssh keys, reconfigures security posture, a\nfew other things I don\u2019t recall offhand. All steerable at runtime with\nvariables in group_vars or host_vars.  Obviously being able to roll\nback to a fresh image is useful for testing and I'm about done with\nconstantly rewriting SD cards so when the VMware ARM Fling was\nannounced last fall I was highly interested.<\/p>\n<p>The <a href=\"https:\/\/flings.vmware.com\/esxi-arm-edition\">VMware Fling\ndocumentation<\/a> does a good\njob of explaining your prerequisites.  Note that as I write this, they\nreleased version 1.4 yesterday; I did all this work on VMware 1.3\nafter getting busy for a couple of months and ignoring it while I had\n1.2 loaded.  So bear that in mind.<\/p>\n<p>What the VMware Fling documentation doesn't do too well is explain the\ngyrations that one must go through in order to install Raspberry Pi OS\nin a VM.  It's a little bit hairy, but I figured I'd share my notes.<\/p>\n<p>First, get yourself a copy of the arm64 build of raspios.  No idea if\nthe universal build will work as I haven't tried it.  I would not\nexpect backward compatibility necessarily on ARM as I would with\nx86-64, so I didn't bother experimenting with this.  <a href=\"https:\/\/downloads.raspberrypi.org\/raspios_arm64\/images\/\">Find your\nRaspiOS\nhere<\/a>.  Note\nthat I'm doing this all with the \"lite\" version since I'm building\nappliances.  Suppose it would probably work with the desktop version\ntoo if your interests run that way.<\/p>\n<p>While you're at it, <a href=\"https:\/\/cdimage.debian.org\/debian-cd\/current\/arm64\/iso-cd\/\">you'll need a stable arm64 net install Debian disk<\/a> to use for installing grub via rescue boot.<\/p>\n<p>Now, find yourself a machine with <code>qemu-utils<\/code> installed.  In my case\nthis was an older LX brand VM under SmartOS, which I'm noting here for\nsituational awareness.<\/p>\n<p>You'll need to use <code>qemu-img<\/code> to convert the RaspiOS image from a .img to a\n.vmdk.  Note this will change both the size and the checksum.  If it\ndoesn't change one or both, then you should modify your hypotheses and\ntry again.  The reason I'm noting this is that apparently the qemu\ntools have changed a bit over the years as far as command line\narguments go and what's optional vs. implicit.  With a version that\nidentified as <code>qemu-img version 2.0.0, Copyright (c) 2004-2008 Fabrice\nBellard<\/code>, the following worked for me:<\/p>\n<p><code>qemu-img convert -f raw -O vmdk 2021-05-07-raspios-buster-arm64-lite.img  2021-05-07-raspios-buster-arm64-lite.vmdk<\/code><\/p>\n<p>You can't resize the image with qemu-tools though.  You'll need to do that on the VMware host.<\/p>\n<p>Upload the image to the VMware datastore (use the browser or turn on ssh and just scp it) and then:<\/p>\n<p><code>vmkfstools -i 2021-05-07-raspios-buster-arm64-lite.vmdk -d thin raspi1.vmdk<\/code><\/p>\n<p>Note that we're turning this to thin-provisioned.  I tried it with\nnon-thin-provisioned.  It didn't work.  Might have been pilot error\nmight have been something else, but I found a youtube video on this\nand the guy was doing thin with no further explanation than \"you\nshould do this so you don't run out of disk space\", which sounds more\nlike \"run out of disk space in the worst way at the worst time\" to me,\nbut whatever.<\/p>\n<p>We need to expand \"the disk\" in three places, and it's a bit fraught; a misstep can cause you to have to start over.  The places are:<\/p>\n<ul>\n<li>VMware's notion of how big the disk is, which will be passed in to the VM when it probes the disk<\/li>\n<li>The disk label (a DOS style label) that will change Linux's notion of how big the partition is.<\/li>\n<li>The filesystem itself (expand to fill the partition).<\/li>\n<\/ul>\n<p>If you're on a physical Pi, the first step happens transparently as\nit's an attribute of the physical SD card.  The second and third\nhappen automatically on first (double) boot.  We are back to the bad\nold days of having to do everything by hand.<\/p>\n<p>Let's make the underlying \"disk\" for the VM raspi be 20gb:<\/p>\n<p><code>vmkfstools -X 20000m raspi1.vmdk<\/code><\/p>\n<p>Now on the VMware web console we can:<\/p>\n<ul>\n<li>Create a new VM, type is Linux\/ 64 bit Debian<\/li>\n<li>Delete the HD<\/li>\n<li>Add an existing disk image as HD (you'll add raspi1.vmdk if you're using the same names I did above)<\/li>\n<li>add the Debian ISO in the CD drive.<\/li>\n<\/ul>\n<p>At the boot screen, choose advanced -&gt; rescue mode -&gt; shell.<\/p>\n<p>You want to mount <code>\/dev\/sdb<\/code> as your root filesystem.  It will notice\nfor you that <code>\/boot<\/code> is on <code>\/dev\/sda<\/code> and offer to mount that for you\ntoo, which you should accept.<\/p>\n<p>Now, you'll have a shell that is in the RaspiOS root partition.  Run <code>raspi-config --expand-rootfs<\/code> which will expand the root partition (but not the filesystem!) to its full size and fail to update the kernel about it, so you <em>must<\/em> reboot immediately!  At this point you may or may not have some fiddliness with VMware deciding to detach the \"first boot only\" CD so you may have to reattach the rescue CD.<\/p>\n<p>Back into rescue shell, same as above.<\/p>\n<p>Now <code>resize2fs \/dev\/sda2<\/code> and do a <code>df<\/code> to make sure you're good.<\/p>\n<p>While you're at it, now would be a good time to <code>touch \/boot\/ssh<\/code> if\nyou want the VM to run an ssh server automatically when it comes up.`<\/p>\n<p>At this point we can download some stuff with impunity and not run out of disk space.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>apt-get update\napt install linux-image-arm64 grub-efi-arm64\ngrub-install --efi-directory=\/boot\nupdate-grub\n<\/code><\/pre><\/div>\n\n<p>Now you should be able to reboot, without the rescue CD, and have it come up fully as a Pi VM. On a Pi.<\/p>\n<p>The kernel will identify as Debian (why?  didn't replace the\nkernel...), but your userland should be all Raspi.<\/p>\n<p><img alt=\"a pi virtualizing a pi\" src=\"\/assets\/2021-06-16-pi-on-pi\/pi-on-pi.png\" \/><\/p>","pubDate":"Wed, 16 Jun 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-06-16:\/2021\/06\/16\/pi-on-pi.html","category":"misc"},{"title":"How to hard reset a Ruckus R700 (or probably any Ruckus AP for that matter)","link":"https:\/\/technotes.seastrom.com\/2021\/05\/25\/reset-ruckus-r700.html","description":"<p>Tonight, Lisa brought over some Ruckus R700 access points to be\npassword-recovered, reflashed, and configured to integrate with their\nnetwork at home.<\/p>\n<p>I do this little dance <em>just<\/em> often enough to forget the\nexact manual of arms.  This time, resorting to Google did me dirty,\nsending me to some web sites who talked like they knew what they were saying\nbut actually did not.  I flailed for about 15 or 20 minutes trying to do a full factory\nreset, looking like an idiot and almost making us late for dinner..<\/p>\n<p>The exact procedure, the one that works (from the Ruckus support\nsite), not the one that doesn't work from some amateur IT how-to, is\nas follows:<\/p>\n<ul>\n<li>Locate the Reset pin hole on the rear panel of the AP.  It's near the ethernet jacks.<\/li>\n<li>Power on and boot up the AP.  Wait at least a minute for it to be fully online.<\/li>\n<li>Insert a straightened paper clip in the hole and press for at least 6 seconds.  Other things that may work include a push-pin, the clip side from a binder clip, a toothpick, or something of that sort.<\/li>\n<li>When you release the button, the PWR LED will initially be solid red, indicating bootup in process, then blinks green, indicating that the system is in factory default state.<\/li>\n<li>Look for the AP using arp, DHCP logs, \"show ethernet-switching table\", the sticker on the bottom, and other suitable tools.<\/li>\n<li>Point your web browser at it on https.  super \/ sp-admin is the default login.<\/li>\n<li>Reflash with non-controller firmware and configure to taste.<\/li>\n<\/ul>\n<p>We made it to dinner, by the way.<\/p>","pubDate":"Tue, 25 May 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-05-25:\/2021\/05\/25\/reset-ruckus-r700.html","category":"misc"},{"title":"New multimeter","link":"https:\/\/technotes.seastrom.com\/2021\/04\/16\/new-dmm.html","description":"<p>I recently installed a stereo in the old pickup truck.  Unfortunately\nmy old Fluke 12 (ironically bought at the Santa Clara Fry's, a chain\nwhich went out of business in the past couple of months) had gotten\nquestionable on resistance setting recently, even with new leads and a\nnew battery, so I was thrown back on very carefully taking the Simpson\n260-6, with its fragile bakelite and glass construction, out to work\non a motor vehicle.<\/p>\n<p>It was time for a new multimeter.  I did some research on my own, made\na purchase, and meant to blog about it but it fell to the wayside\nuntil a couple of nights ago when a friend mentioned that <em>he<\/em> was\nlooking for a new multimeter too.  I wrote this up and sent it over:<\/p>\n<p>The easy choice would be \"buy once cry once\" and get a Fluke 87, but\nat $400 and up depending on the variant but I didn't want to cry and\nbesides, I wanted something that I wasn't gonna be hating myself for\nif it went flying off some scaffolding or got run over by a pickup\ntruck during Field Day.  Or, stated another way, I don't take my\ngrandfather's micrometers outside yet I think nothing of crawling on\nmy back under a truck in a junkyard with my 6\" Mitutoyo digital\ncalipers clenched in my teeth when I'm looking for a specific part.  I\nwanted something acceptably good yet, ultimately, disposable to the\npoint where I wasn't scared to take it in harm's way.<\/p>\n<p>What I ended up getting, on the strength of recommendations of others\nwho own them, was the <a href=\"https:\/\/www.amazon.com\/gp\/product\/B01JZ1ADCO\/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&amp;psc=1\">Brymen\nBM235<\/a>.<\/p>\n<p>Note that David from eevblog private labels them; that's worth a bit\nto me as he has a brand to defend.  The fit and finish is much better\nthan the stuff you'd get from Radio Shack back in the day but it's not\nFluke quality (to be fair, I hear the 100 series Flukes aren't \"Fluke\nquality\" either).  Adequate, in my opinion especially with the bump\nsleeve on it.  Made in Taiwan not China, which makes me more confident\nin the insulation ratings - you probably don't measure 480v 3-phase as\noften as I do (which in fairness isn't that often) but the last thing\nI want to worry about whether the voltage range on the insulation and\nother standards compliance stuff got pencil-whipped, which is\nsomething that the mainland Chinese have a bit of a reputation for.\nIt also reads down to hundredths of a millivolt, which again may not\nbe something you care that much about but it's useful for measuring\nacross precision (or not precision) shunts.  It also has replaceable\nfuses inside for the current ranges which less expensive multimeters\noften don't.  It comes in a plain box with no documentation manual\ninside which is just fine by me since <a href=\"https:\/\/www.eevblog.com\/files\/BM235-Manual-EEVblog.pdf\">you can find it online anyway\non eevblog's\nsite<\/a>.<\/p>","pubDate":"Fri, 16 Apr 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-04-16:\/2021\/04\/16\/new-dmm.html","category":"misc"},{"title":"Hello Mr. Heater, my name is Enthalpy","link":"https:\/\/technotes.seastrom.com\/2021\/04\/15\/hello-mr-heater.html","description":"<p>A month and a half ago, we had a socially distanced going-away party for a colleague, in a pavilion at a park.<\/p>\n<p>Late February in the DC area can be chilly.  We had held previous socially lunches\nat this pavilion and gotten the tsk-tsk from a couple of\nArlington County park rangers (yes, such a thing exists) for bringing a\nfire pit with us.  A propane heater is not a fire pit or at least I hoped this logic would work if we\nmet the same folks again so I sourced a three-headed <a href=\"https:\/\/www.amazon.com\/gp\/product\/B00CQGWOQ4\/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;psc=1\">Mr. Heater tank-top\nheater<\/a>\nfor the occasion as a warming station.<\/p>\n<p>Mr. Heater was very popular, but if I had it to do again, I'd get a\ndual head one rather than a triple - the three headed one is a bit\nunwieldy and they all seem a little fragile.  Also notable though is\nthe fact that when set on high it burns propane at a rate that is\nsufficient to ice up a 20 pound barbeque tank.  I've seen this\nphenomenon before with forges and weed burners - it's generally a sign\nthat you could profit from having a bigger tank so that there's more\nmass and more surface relative to the draw rate for the propane.  But\nbigger tanks are expensive and a pain in the butt and 20 pound tanks\nare the coin of the realm.<\/p>\n<p>One of my junior colleagues looked at the layer of frost and asked why\nthat happened.  I said \"well, it's liquid and phase-changing to gas in\nthe cylinder\".  Blank look - I guess they don't teach physics in the\ncomp sci program - so out came the smart phones to look up the numbers\nwhile I explained that it's called \"latent heat of vaporization\", how\nphase change takes a whole lot of energy for most materials, and that\nthis is how refrigerators work.<\/p>\n<p>Apologies for the Freedom Units here, but the heater uses them on the\nbox so that's what we went with for the whole exercise.  It was a\nchilly damp day in the low 40s so we had that propane heater on full\npower at 45,000 BTU (almost 4x what my barbeque grill, which\nincidentally doesn't ice up the tank) puts out.  Propane is 21600 BTU\nper pound (assuming a 100% efficient burner which is fine for t-shirt\nsizing).  That means 2.1 pounds per hour, or a 20 pound tank will last\na bit less than 10 hours.  Propane's latent heat of vaporization is\n184 BTU\/lb, so 383 BTU\/h.  Doesn't sound like a lot; a ton of air\nconditioning is 12,000 BTU, but under the prevailing atmospheric\nconditions it was enough to drive the surface of the tank not only\ndown below the dew point but below freezing, so we got frost.<\/p>","pubDate":"Thu, 15 Apr 2021 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2021-04-15:\/2021\/04\/15\/hello-mr-heater.html","category":"misc"},{"title":"macOS Big Sur UI changes - hot take","link":"https:\/\/technotes.seastrom.com\/2021\/01\/15\/big-sur-hot-take.html","description":"<p>We just got an Apple Silicon Mac Mini.  It comes with, and only runs, macOS 11 \"Big Sur\".<\/p>\n<p>Early assessment is that Apple has upped their game in terms of\ndestigmatizing disabilities.  Even people with normal eyesight are\nwell advised to open the \"Accessibility\" control panel in order to make\nthe new UI tolerable without squinting.<\/p>\n<p>In the \"light\" theme, which most closely mimics traditional macOS\ncolor choices, if you want to easily see the controls on sliders and certain\nother UI elements, you probably want to select \"Increase Contrast\" in\nthe \"Accessibility\" control panel.<\/p>\n<p>Before:\n<img alt=\"As delivered, sliders are inscrutable and blend into the background\" src=\"\/assets\/2021-01-15-big-sur-hot-take\/before.png\" \/><\/p>\n<p>After:\n<img alt=\"After increasing contrast\" src=\"\/assets\/2021-01-15-big-sur-hot-take\/after.png\" \/><\/p>\n<p>For comparison, the mouse control panel under 10.15.7 Catalina (with a different model of mouse):<\/p>\n<p>Catalina:\n<img alt=\"Catalina version of mouse control panel\" src=\"\/assets\/2021-01-15-big-sur-hot-take\/catalina.png\" \/><\/p>\n<p>(h\/t to Gaige for the clue)<\/p>","pubDate":"Fri, 15 Jan 2021 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2021-01-15:\/2021\/01\/15\/big-sur-hot-take.html","category":"misc"},{"title":"How big is a \/64 - M&Ms in the Great Lakes","link":"https:\/\/technotes.seastrom.com\/2021\/01\/14\/m-and-ms-and-slash-64-sizing.html","description":"<p>A popular slide for conceptualizing how many addresses are in an IPv6\n\/64 (64 bits of network, 64 bits of host) claims that if you filled\nall five Great Lakes with M&amp;Ms, that would be approximately\n2^64 M&amp;Ms.<\/p>\n<p>While looking for an example of that slide to share to inform an IPv6\ndiscussion, I saw a blog post that claimed that the math was all wrong\nand that it didn't come even remotely close to filling all five great\nlakes.<\/p>\n<p>As the originator of that Fermi Question style assertion, (with the\noriginal fine print that it was almond M&amp;Ms - it turns out that peanut\nM&amp;Ms would be more accurate), I felt the need to correct the\ncorrection, and show my work.<\/p>\n<p>To start with, discussions of things like <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sphere_packing\">sphere\npacking<\/a> are a needless\ndistraction.  This is an order of magnitude problem.  Bringing up\nthings like lattice packing (common densities are 0.55 to 0.74) makes\nthe math more difficult while not contributing to whether the answer\nis way out of line for this.<\/p>\n<p>For the purposes of this discussion we will assume that an M&amp;M is 1\ncubic centimeter.<\/p>\n<p>We'll be using dc(1), the arbitrary precision RPN calculator that\ncomes free with Unix for all our calculations.<\/p>\n<p>First, what is 2^64?<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>2 64 ^ p\n18446744073709551616\n<\/code><\/pre><\/div>\n\n<p>Or approximately 1.844 x 10<sup>19<\/sup><\/p>\n<p>Next, we calculate the number of cubic centimeters in the Great Lakes.\nOur friends at\n<a href=\"https:\/\/www.epa.gov\/greatlakes\/physical-features-great-lakes\">epa.gov<\/a>\noffer us the following in cubic kilometers:<\/p>\n<table>\n<thead>\n<tr>\n<th>Reference<\/th>\n<th>1<\/th>\n<th>2<\/th>\n<th>3<\/th>\n<th>4<\/th>\n<th>Average<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Lake Superior<\/td>\n<td>12,100<\/td>\n<td>12,230<\/td>\n<td>11,600<\/td>\n<td>12,088<\/td>\n<td>12,004<\/td>\n<\/tr>\n<tr>\n<td>Lake Michigan<\/td>\n<td>4,920<\/td>\n<td>4,920<\/td>\n<td>4,680<\/td>\n<td>4,918<\/td>\n<td>4,860<\/td>\n<\/tr>\n<tr>\n<td>Lake Huron<\/td>\n<td>3,540<\/td>\n<td>3,537<\/td>\n<td>3,580<\/td>\n<td>3,543<\/td>\n<td>3,550<\/td>\n<\/tr>\n<tr>\n<td>Lake Erie<\/td>\n<td>484<\/td>\n<td>483<\/td>\n<td>545<\/td>\n<td>484<\/td>\n<td>499<\/td>\n<\/tr>\n<tr>\n<td>Lake Ontario<\/td>\n<td>1,640<\/td>\n<td>1,637<\/td>\n<td>1,710<\/td>\n<td>1,638<\/td>\n<td>1,656<\/td>\n<\/tr>\n<tr>\n<td>Lake St. Clair<\/td>\n<td>n\/a<\/td>\n<td>n\/a<\/td>\n<td>n\/a<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>Totals<\/td>\n<td>22,684<\/td>\n<td>22,807<\/td>\n<td>22,115<\/td>\n<td>22,675<\/td>\n<td>22,573<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>References:<\/p>\n<p>References:<\/p>\n<ol>\n<li>Coordinated Great Lakes Physical Data. Coordinating Committee on Great Lakes Basic Hydraulic and Hydrologic Data. Chicago, IL and Cornwall, ON. p. 9. (1977).<\/li>\n<li>Large Lakes Ecological Structure and Function. Max M. Tilzer and Colette Serruya, eds. Springer-Verlag. Berlin-Heidelberg, p 26 (1990) [Derived from Inventory of the Morphometric and Limnological Characteristics of the Large Lakes of the World. Charles E. Herdendorf, The Ohio State University. Technical Bulletin OHSU-TB-17, Sea Grant Program. March 1984. p. 67.]<\/li>\n<li>Atlas of World Water Balance (Explanatory Text). USSR National Committee for the International Hydrological Decade, Leningrad, p 32.(1977)<\/li>\n<li>The Water Encyclopedia, 2nd Edition. F. van der Leeden, F.L. Troise and D.K. Todd. Lewis Publishers, USA. p. 188. (1990)<\/li>\n<\/ol>\n<p>OK, so now we have 22573 km<sup>3<\/sup> of water in the Great Lakes.  1000m in a km, so there are:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>1000 1000 * 1000 * p\n1000000000\n<\/code><\/pre><\/div>\n\n<p>m<sup>3<\/sup> in a km<sup>3<\/sup>.  In other words, 1 x 10<sup>9<\/sup> - only a billion cubic meters.  Table stakes..<\/p>\n<p>But we're not looking for cubic meters, we're looking for cubic centimeters.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>100 100 * 100 * p\n1000000\n<\/code><\/pre><\/div>\n\n<p>cm<sup>3<\/sup> in an m<sup>3<\/sup>.<\/p>\n<p>So now, to put it all together:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>1000000 1000000000 * 22573 * p\n22573000000000000000\n<\/code><\/pre><\/div>\n\n<p>or approximately 2.225 x 10<sup>19<\/sup> vs 2<sup>64<\/sup> being 18446744073709551616 or approximately 1.844 x 10<sup>19<\/sup> <\/p>\n<p>In other words, enough to fill the five Great Lakes and heap up a\nlittle bit.  Application of sphere packing correction would tend to\nmake the heaps taller, potentially by a fair amount, since it applies\nto imperfections of the fill and empty space in the lakes.<\/p>\n<p>Once again, one should not attempt to eat 2<sup>64<\/sup> M&amp;Ms of any type or flavor.<\/p>","pubDate":"Thu, 14 Jan 2021 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2021-01-14:\/2021\/01\/14\/m-and-ms-and-slash-64-sizing.html","category":"misc"},{"title":"nginx and certbot but without a working plugin","link":"https:\/\/technotes.seastrom.com\/2020\/12\/14\/nginx-certbot-without-plugin.html","description":"<p>ClueTrust doesn't run certbot as a general rule <a href=\"https:\/\/technotes.seastrom.com\/2019\/03\/03\/certbot-is-pets-not-cattle.html\">(I've written about why in the past)<\/a> but sometimes it is necessary to run it in an unusual application that is not part of our ordinary automation stack.<\/p>\n<p>Certbot has a plugin that works with nginx, but what if you're in a\nsituation where for whatever reason you can't make the plugin work?<\/p>\n<p>It turns out that this isn't terribly hard.  You can have nginx act as\na passthrough (reverse proxy) and run certbot on an alternate port.<\/p>\n<p>For your nginx.conf (put it right under the \"location \/\" definition in the \"server\" stanza for port 80):<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>        location &#39;\/.well-known\/acme-challenge&#39; {\n                proxy_pass http:\/\/127.0.0.1:8080\/.well-known\/acme-challenge;\n                proxy_http_version 1.1;\n                proxy_set_header Host $host;\n        }\n<\/code><\/pre><\/div>\n\n<p>Then you can run this on the command line:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>certbot certonly --http-01-port 8080 -n --agree-tos --email you@example.org --test-cert --standalone -d testserver.example.org\n<\/code><\/pre><\/div>\n\n<p>(with of course your own domain name and email layered in).<\/p>\n<p>Once you've got that working right, you can strip out \"--test-cert\" and add \"--force-renewal\" and run it again to get the real certs.  In normal service of course you won't be running --force-renewal and will instead let certbot decide if the certificate has fewer than 30 days left before it needs a renewal.<\/p>\n<p>Note that if you're writing a script around this, certbot returns an\nexit value of 0 whenever it runs successfully.  Success means \"no\nerror\", it is indifferent to whether a cert got renewed or not.<\/p>\n<p>If you're looking to see whether the cert changed or not, you might want to consider running something like:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>openssl x509 -noout -enddate &lt; \/opt\/local\/etc\/letsencrypt\/live\/testserver.example.org\/cert.pem \n<\/code><\/pre><\/div>\n\n<p>both before and after certbot and see if anything changed.<\/p>","pubDate":"Mon, 14 Dec 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-12-14:\/2020\/12\/14\/nginx-certbot-without-plugin.html","category":"misc"},{"title":"Monday Morning Quarterbacking the AWS outage last Wednesday","link":"https:\/\/technotes.seastrom.com\/2020\/11\/30\/aws-outage-202011.html","description":"<p>I've seen a lot of wharrgarbl in the last few days that boils down to\n\"AWS must do better!\" in relation to <a href=\"https:\/\/www.theverge.com\/2020\/11\/25\/21719396\/amazon-web-services-aws-outage-down-internet\">US-East-1 falling over last\nWednesday<\/a>.<\/p>\n<p>Long story short, it was a systemic failure where a lot of services\nwhich depended on an internal service (Kinesis) died when it failed.<\/p>\n<p>The inevitable conclusion by sundry bloggers is that Amazon is not\ndelivering what people are expecting, which is not quite the same\nthing as not delivering what they are contracted to deliver.<\/p>\n<p>To paraphrase Vijay Gill, though, <em>you own your redundancy<\/em>.  There's\nno such thing as a one-size-fits-all solution or level of fault tolerance\nthat is appropriate for every use case.<\/p>\n<p>It was a business decision (as often as not made by\nnon-business-people which is as bad as engineering decisions made by\nnon-engineering people) to ignore the possibility of region-wide\nfailures, not analyze the probability of it happening based on the\nSLAs (which, shockingly, Amazon consistently does better than only to\nhave people start to expect it of them), and decide whether it is\nworth the cost (operational complexity, FTEs, etc) to guard against\nit.  Multi-cloud and multi-region requires effort.  Effort requires\nresources.  Resources require some combination of time and money.  Is\nthe juice worth the squeeze?<\/p>\n<p>In a lot of cases it\u2019s not.  And that\u2019s fine.  Joe\u2019s Muffler Shop and\nCrab Shack having its e-commerce site offline for a period of time\nduring which half the internet seemed to be down doesn\u2019t cause\nmuch in the way of lost business opportunity or reputational damage.\nBut you don\u2019t get to whine about not getting a Mercedes when you paid\nfor a Toyota and pocketed the savings in both capex and opex.<\/p>","pubDate":"Mon, 30 Nov 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-11-30:\/2020\/11\/30\/aws-outage-202011.html","category":"misc"},{"title":"Circuit Sizing, Receptacles, Loads, and Time","link":"https:\/\/technotes.seastrom.com\/2020\/11\/29\/circuit-sizing.html","description":"<p>I've had a couple of friends recently check in with me for guidance\non specifying some non-standard circuits and receptacles in kitchens\nand garages as part of a remodel.<\/p>\n<p>Both of these friends were confused as to how much power you can pull\nfrom a circuit vs. its nameplate rating, and how OCPDs (over current\nprotective devices), wire ampacity, and receptacles aligned with each\nother as well as what needed to be derated and when.<\/p>\n<p>I'm neither an electrician nor an NEC code wonk, but with that disclaimer\nout of the way, here's the simple version:<\/p>\n<p>The ampacity of the wire will vary based on type of wire insulation\n(THHN in conduit can have a different ampacity than NM stapled to the studs).  NM gets the 60 degree C column.  But a perusal of NEC Article 240 is in order.<\/p>\n<p>The rule for OCPDs (fuses and breakers) is that you match to the\nampacity of the wire.  There are some round-up rules, but they don't\ngenerally apply to the small circuits that homeowners install (14-10\nAWG wire).<\/p>\n<p>What <em>does<\/em> apply in homeowner land though?  Sections 210.19(A), 215.2\nand 230.42(A) require the conductor to be sized no less than 100% of\nthe noncontinuous load, plus 125% of the continuous load, where\n\"continuous\" is defined as \"3 hours or longer\".<\/p>\n<p>So what's a continuous load?  A hair dryer is not, unless you are\nsomehow related to Chewbacca.  A heater probably is, even though it\ncycles in normal use.  A fleet of crock pots very much is, as is a car\ncharger.<\/p>\n<p>It is \"safe\" to upsize a gauge (i.e., use 10 gauge wire where 12 gauge\nis called for).  The only downsides are cost and pain-in-the-ass\nfactor (10 AWG is a bit of a bear to fight into place).  The upside is\nlower resistive losses in the wire, which means a longer run can be\naccommodated without much in the way of voltage drop when you load the\ncircuit up.<\/p>","pubDate":"Sun, 29 Nov 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-11-29:\/2020\/11\/29\/circuit-sizing.html","category":"misc"},{"title":"Farmertec Chain Saw Parts - 3\/5 stars","link":"https:\/\/technotes.seastrom.com\/2020\/11\/14\/farmertec-3-stars.html","description":"<p>A couple weeks back I bought a \"running-but-fix-er-up special\" MS460\nchain saw for a reasonable price.<\/p>\n<p>The main thing that needed repair was the fuel tank assembly, which is\n$160 for the genuine Stihl version, about $70 for the knock-off model\nshipped from the US, or even less if you're willing to wait for a\nshipment from China.<\/p>\n<p>The guy at the local chain saw shop is death on non-OEM imported parts,\nthough he didn't try talking me out of them once I made it clear that\nI wasn't going to try to make it his problem to make it work if I\nbought something that didn't fit right.  \"You cook it, you eat it\"\nworks for me.<\/p>\n<p>Well, the tank came and I wasted no time in getting it onto the saw.\nBolted right up.<\/p>\n<p>Then the saw wouldn't start.  An hour worth of goofing around,\ndisassembly, and head-scratching and I realized the choke wasn't\nengaging.  Why not?  Well, there's a shaft from the control where you\nset the choke to the bellcrank on the carburetor.  Maybe the genuine\nversion was glass-filled, maybe the knock off version was made with\nwhatever plastic was already in the injection molding machine, but in\nany event the one that came with the tank was too flexy and didn't\nmake the choke engage.<\/p>\n<p>I moved over the one from the old tank and everything worked great.\nCrisis averted.<\/p>\n<p>Had a good evening of cutting up logs for the bonfire last night and\ntoday did some saw maintenance on the tailgate of the truck and...  oh\nwait, that's gasoline, where did that come from?<\/p>\n<p>Turns out that the fuel tank breather on the knock-off doesn't have a\ncheck valve in it, so when you lay the saw on its left side to work on\nthe chain fuel is gonna dribble out.  Great.<\/p>\n<p>I pried the one off the old tank and snapped it into the new tank.\nCrisis #2 averted.<\/p>\n<p>I'm pretty optimistic that the shakedown cruise is done, and hopefully\nthe tank itself turns out to be reasonably durable.  But this does\nserve to underline why the guy at the local saw shop is not a fan - at\nany kind of reasonable payment for my time, I'm definitely upside down\non the $80 that I saved.<\/p>\n<p>I think in the future I'll be going with the genuine parts...<\/p>","pubDate":"Sat, 14 Nov 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-11-14:\/2020\/11\/14\/farmertec-3-stars.html","category":"misc"},{"title":"Partial redemption for Electrify America - Transparently Too Expensive","link":"https:\/\/technotes.seastrom.com\/2020\/11\/12\/partial-redemption-for-ea.html","description":"<p>I've previously written about <a href=\"\/2020\/03\/01\/electrify-america.html\">Electrify\nAmerica<\/a> and their usurious and\nmisleading fees for fast charging.<\/p>\n<p>Yesterday, after an early morning run out to the Shenandoah Valley for\nbacon and a trip down to Arlington for lunch, I found myself needing a\nlittle kick in the pants in order to get home.<\/p>\n<p>While evaluating my options I was pleasantly surprised to discover\nthat <a href=\"https:\/\/media.electrifyamerica.com\/en-us\/releases\/111\">Electrify America has taken a couple of giant steps in the right\ndirection<\/a> in\nterms of transparency.  In at least some states, they've gotten rid of\nthe per minute charge pricing model and are charging based on the\nactual energy consumed rather than how fast your vehicle can\nhypothetically take it.<\/p>\n<p>They post their price per kilowatt-hour as $0.43, which is about 3.6x\nwhat I pay at home here in Virginia.  It's also 1.5x what a Tesla\nowner pays at a Supercharger if they're not on a discount charging\nplan.<\/p>\n<p><img alt=\"Actual costs, honestly stated\" src=\"\/assets\/2020-11-12-partial-redemption-for-ea\/IMG_4821.jpg\" \/><\/p>\n<p>I submit that this is still too much to pay as what amounts to a convenience fee, but as a capitalist I\nfind <em>tranparently too much<\/em> with prices stated in a way that is obvious, clear,\nand not misleading - just as gasoline pumps post price per gallon and\nsome stations charge too much - is acceptable.<\/p>\n<p><img alt=\"Three bucks for enough to get home with range to\n spare\" src=\"\/assets\/2020-11-12-partial-redemption-for-ea\/IMG_4829.jpg\" \/><\/p>","pubDate":"Thu, 12 Nov 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-11-12:\/2020\/11\/12\/partial-redemption-for-ea.html","category":"misc"},{"title":"Tesla Model Y - RS Fit Update","link":"https:\/\/technotes.seastrom.com\/2020\/11\/11\/tesla-model-y-update.html","description":"<p>A week ago last Friday I sat in (but didn't drive) Wes' new Tesla Model Y.<\/p>\n<p>Good news: By adjusting the driver's seat all the way down I was able\nto get in and out without doing the painful side-limbo to get my head\npast the door frame.  Headroom once seated inside was great.  Legroom\nnot a problem but then again it never is (&gt; 6'1\" tall with a 30\"\ninseam means legroom is fine usually while headroom is the big issue\nin many cars).<\/p>\n<p>Not-so-good news: Still a baseball-cap-like effect at the eyebrow of\nthe car.  Not as bad as an XW20 second-generation Prius, but still a\nbit annoying.  But I could drive it without feeling unsafe.<\/p>\n<p><a href=\"https:\/\/wesgeorge.blogspot.com\/2020\/10\/so-i-bought-tesla-model-y.html\">Wes writes some about the\ncar<\/a>\nand about his <a href=\"https:\/\/wesgeorge.blogspot.com\/2020\/10\/tesla-model-y-purchase-experience.html\">buying\nexperience<\/a>.\nLooks like Tesla has upped their game on the fit and finish issues\nthough their ability to make trade-ins smooth and painless could still\nuse some work.<\/p>","pubDate":"Wed, 11 Nov 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-11-11:\/2020\/11\/11\/tesla-model-y-update.html","category":"misc"},{"title":"No, you aren't using \"Yubikey\" for 2FA, please be more specific","link":"https:\/\/technotes.seastrom.com\/2020\/10\/12\/arent-using-yubikey.html","description":"<p>Every so often, terms of art annoy me enough that I go off on a rant\nor blog about it.  This is one of those times.<\/p>\n<p>Yubikey is a brand name of hardware token made by <a href=\"https:\/\/www.yubico.com\">Yubico<\/a>.  I like them a lot.<\/p>\n<p>Yubico was founded in 2007 and first shipped product in 2008.  Their\n<a href=\"https:\/\/www.yubico.com\/products\/identifying-your-yubikey\/\">model identification\npage<\/a> goes\nback to 2014 and shows no fewer than 25 variants.<\/p>\n<p>It'll come as no surprise that in the face of emerging technologies and best practices, the \"second factor\" offered by Yubico's product has evolved over time.<\/p>\n<p>Ignoring for a moment the HSM model (HSM is a bit of a different\nfunction from 2FA), the current flagship models support the following\nauthentication frameworks:<\/p>\n<ul>\n<li>Secure Static Passwords<\/li>\n<li>Yubico OTP<\/li>\n<li>OATH \u2013 HOTP (Event)<\/li>\n<li>OATH \u2013 TOTP (Time)<\/li>\n<li>Smart Card (PIV-Compatible)<\/li>\n<li>OpenPGP<\/li>\n<li>FIDO U2F<\/li>\n<li>FIDO2<\/li>\n<\/ul>\n<p>Of these, the first one (Secure Static Passwords) is \"not really a\nsecond factor\", though it may still have some corner case uses,\nparticularly if accessibility for folks with physical challenges is\nthe overwhelming concern.<\/p>\n<p>The second through fourth (the *OTP variants) are all subject to MitM\nor race condition attacks if revealed via an insecure channel.  As a\ngroup they're fairly dated - HOTP was <a href=\"https:\/\/tools.ietf.org\/html\/rfc4226\">RFC\n4226<\/a> from 2005.  TOTP was an\nevolution from 2011 - <a href=\"https:\/\/tools.ietf.org\/html\/rfc6238\">RFC 6238<\/a>.\nAny of them is way better than SMS or email based second factor (which\nI have poked fun at as \"1.2 factor authentication\"), but none of them\nis what I would specify if I were rolling out something new today.<\/p>\n<p>The fifth one \"Smart Card (PIV-Compatible)\", ironically, is even older\nthan HOTP as it traces its roots to Homeland Security Presidential\nDirective 12 (HSPD-12) which was signed in August 2004.  Yet it\nspecifies strong crypto and since it uses a bidirectional handshake it\nis much less susceptible to attack than one-way OTP approaches.  I\nhaven't taken a deep dive into what exactly Yubico means by\n\"PIV-compatible\" (the standard has evolved over the years - <a href=\"https:\/\/csrc.nist.gov\/publications\/detail\/fips\/201\/2\/final\">FIPS\n201-2<\/a> is\ndated August 2013 and <a href=\"https:\/\/csrc.nist.gov\/publications\/detail\/sp\/800-73\/4\/final\">NIST SP\n800-73-4<\/a>\nis last updated February 2016), but this one would definitely be on my\nradar if I was doing a greenfield implementation and wanted the\nbroadest set of possible vendors for authentication tokens.<\/p>\n<p>The sixth one is \"OpenPGP\".  If I were doing a lot of work with PGP and\nwanted token based signing I'd be all about this one.  I have friends\nwho use the OpenPGP function on Yubikeys for storing ssh keys.  That\nsaid, I don't know of any SAML identity providers that support this as\na second factor, though someone will no doubt send me pointers so I\ncan update this section.<\/p>\n<p>The seventh and eighth, FIDO\/U2F and FIDO2, are highly interesting.\nIt's an open standard (there are a couple of manufacturers other than\nYubico, though nowhere near as many as the smart cards), the industry\nseems to be headed this way, and <a href=\"https:\/\/www.login.gov\">login.gov<\/a>\nthe multi-agency SAML identity provider for US government interaction\nhas supported it for a couple of years.  Morever, Yubico offers a\ncouple of inexpensive FIDO2-only Yubikeys at about half the cost of\nthe flagship models.  If I were responsible for a greenfield\nimplementation these would be front and center for me.<\/p>\n<p>So as you can see, saying \"we use Yubikey\" is sort of like saying \"I\ndrive a Toyota\" - it doesn't really tell you much about your\ncapabilities and where you might run into trouble (a load of bulk\nmulch in a GR Supra, for instance).  Be aware of your second factor\nframework.  It matters.<\/p>","pubDate":"Mon, 12 Oct 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-10-12:\/2020\/10\/12\/arent-using-yubikey.html","category":"misc"},{"title":"Unix $5$ and $6$ hashes from the command line","link":"https:\/\/technotes.seastrom.com\/2020\/09\/06\/password-hashes.html","description":"<p>Until recently I had been reliant on random Perl and Python one-liners\nto generate $5$ and $6$ hashes (as well as $1$ - AHEM, Juniper...)\nwhen I needed to email someone a password or set up Ansible for mail\naccounts on SmartOS.<\/p>\n<p>Today I learned that OpenSSL 1.1.1 (2018) added appropriate flags to DTRT.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>[root@ansible ~]# openssl passwd -1 -stdin\nfakepassword\n$1$8PCemZjH$Mqmha1MOTKTAJ9OR5XFlP.\n[root@ansible ~]# openssl passwd -5 -stdin\nfakepasswordaswell\n$5$Bdf\/lehpL.7inbxB$UrPMp2uakogTS5OmEz.71gJLg0smlGfCHDdeHNnjrU6\nanotherfakepassword\n$5$GI99ai7jJQ4SEGmx$isNa0W4P8wNQHykgw2oQG2oU0EcEmiAJcBSPFjBNia0\n[root@ansible ~]# openssl passwd -6 -stdin\nnotreallymypassword\n$6$WR1BncSR0DS8v\/Vx$zWaFeUUc2VeQMPEODAOqK7gqKtNGhSsBfORTAOGR1ExG9ODg4qsSt.L.ckNjHmAx7vx0nDxKxN45fBPuIDV62.\n[root@ansible ~]# \n<\/code><\/pre><\/div>\n\n<p>You can also specify the password on the command line, if you're the\nkind of person who likes to leave that kind of thing lying about in\nyour .bash_history...<\/p>","pubDate":"Sun, 06 Sep 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-09-06:\/2020\/09\/06\/password-hashes.html","category":"misc"},{"title":"Modern Car Party Trick (DMM and ATC\/ATM fuse block)","link":"https:\/\/technotes.seastrom.com\/2020\/08\/31\/modern-car-party-trick.html","description":"<p>When I was a teenager, I got pretty good at tracking down parasitic\ndraws in older cars with flakey wiring harnesses by pulling (tubular\nglass cartridge) fuses one at a time and reading the wiring harness\nschematic.<\/p>\n<p>On the plus side cars back then were short on random electronic\ndoo-dads that would wake up on their own initiative and start drawing\ncurrent.  On the minus side though, there sure was a lot of going back\nand forth between the engine compartment where the ammeter was set up\ninline with the battery, and the fuse block (inevitably under the dash\nwhere you had to be a contortionist to get good access.<\/p>\n<p>Glass cartridge fuses fell out of favor (at least in American cars) in\nthe mid 1980s, to be replaced by ATC (and later sometimes ATM) type fuses,\nthe <a href=\"https:\/\/en.wikipedia.org\/wiki\/Fuse_(automotive)\">plastic bodied blade type<\/a>\nwhich we are familiar with today.<\/p>\n<p>One characteristic of this type of fuse is that the\nconductors are accessible from the top side of the fuse (the side away from\nthe prongs) if one uses sharp-pointed probes.  No doubt a carry-over from the glass\nfuse era, this allows someone armed with a test lamp to see if the fuse is burned out.\nVoltage present at both sides?  Fuse is probably fine (\"probably\" because\nbackfeeding isn't entirely out of the question).<\/p>\n<p>With a spatial envelope for the fusible portion that is far more\nconstrained than that of a glass fuse, there is far less design\nvariability across manufacturers, which means that the resistance is\npretty standard across, say, 10 amp fuses from a half dozen\nmanufacturers.  Higher amperage fuses will have lower resistance, lower\namperage fuses will have higher resistance.<\/p>\n<p>A precision shunt it ain't, but it's close enough for government work\nfor measuring even low currents in a circuit if you happen to have a\nmultimeter that goes down to tenths of a millivolt (another thing\nwhich we tended to not have handy when I was in high school).<\/p>\n<p>Someone has already gone to the trouble of doing a <a href=\"https:\/\/us.autologic.com\/news\/testing-parasitic-draw-via-fuse-voltage-drop\">voltage drop vs. fuse value rating matrix<\/a> along with a\nhow-to for smoking out phantom loads.  Not just useful for that though - useful generally for figuring out how much a given circuit is drawing (say, for ham radio installations in the car or something like that).<\/p>\n<p><img alt=\"Local copy of the table\" src=\"\/assets\/2020-08-31-modern-car-party-trick\/226-Current-Draw.00_02_08_03.Still013.jpg\" \/><\/p>\n<p>Back to the \"stuff we didn't have in high school\" point, where do you\nget a DVM that will go down to tenths of a millivolt?  The <a href=\"https:\/\/www.amazon.com\/dp\/B07SBL39D5\">answer<\/a> of <a href=\"https:\/\/www.amazon.com\/dp\/B07FDBW1PT\">course<\/a> is <a href=\"https:\/\/www.amazon.com\/dp\/B00KXX2OYY\">Amazon<\/a>.  There are plenty of import DMMs that will get the job done for pocket change, and you won't feel horrible if you manage to ruin them somehow while working on your car.  Just make sure to google for the manual and make sure that the resolution in the lowest setting (probably 200 or 400 millivolts) is a tenth of a millivolt, and as they say, Bob's your mother's brother.<\/p>","pubDate":"Mon, 31 Aug 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-08-31:\/2020\/08\/31\/modern-car-party-trick.html","category":"misc"},{"title":"Don't use Signal if you value privacy","link":"https:\/\/technotes.seastrom.com\/2020\/08\/24\/dont-use-signal.html","description":"<p>A couple of months ago I became a <a href=\"https:\/\/signal.org\/en\/\">Signal<\/a> user.<\/p>\n<p>For about 18 hours.  Then I noped right out.<\/p>\n<p>Why did I suddenly quit using a messaging app that is said to be a\nprivay-oriented platform?<\/p>\n<p>Mere hours after I joined, I started getting messages from people on\nmy contacts list saying \"Signal just outed, you, thought you might\nwant to know\".<\/p>\n<p>It turns out that Signal spammed \"everyone in my contacts list who had\nme in their contacts list too\".  I suppose that this might be OK if\n\"one's contact list\" and \"people one wants to hear from\" are an exact\n1:1 match in all cases.  In my case I have someone who has harassed me\nin the past, an ex, and some other stuff in my contacts list.  Why?\nBecause I want labeled identification of incoming calls to work\nproperly.  That's why.<\/p>\n<p>It turns out I'm not the first one to get burned this way.\n<a href=\"https:\/\/www.jwz.org\/blog\/2017\/03\/signal-leaks-your-phone-number-to-everyone-in-your-contacts\/\">jwz<\/a>\nblogged about this in 2017.<\/p>\n<p>In a subsequent blog article, jwz came to the conclusion that <a href=\"https:\/\/www.jwz.org\/blog\/2018\/08\/signal\/\">It is\nclear from its design and behavior that Signal's priority is to be a\nsocial network first and an encryption tool\nsecond.<\/a>.<\/p>\n<p>I'm inclined to agree.  Basically, I got bait-and-switched into\njoining a social network.  Can you trust the people behind a \"privacy\"\napp whose opening gambit is a trojan horse?  <\/p>\n<p>Which is why I quit within 18 hours and collected sincere apologies\nfrom the person who asked me to join, but that genie can't be put back\nin the bottle.<\/p>\n<p>Remember, if you're not <em>paying<\/em> for the product, then <em>you are<\/em> the product.<\/p>","pubDate":"Mon, 24 Aug 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-08-24:\/2020\/08\/24\/dont-use-signal.html","category":"misc"},{"title":"The Spoon Trick (sheet metal forming in the home)","link":"https:\/\/technotes.seastrom.com\/2020\/08\/15\/the-spoon-trick.html","description":"<p>A couple of years ago when Argos was a puppy, he chewed on my <a href=\"https:\/\/www.ridgewallet.com\">Ridge\nWallet<\/a> and put a bunch of tiny\npuppy-teeth-sized dents in the titanium side panels.  While they have\na lifetime warranty I didn't think it really covered puppy damage as\nopposed to normal wear and tear.  As I was noodling on how to put it\nback to approximately the right shape, Tan said \"rub it with a spoon\".<\/p>\n<p>What?<\/p>\n<p>Yes, you can take dents out of soft metals (or just generally form\nthem from thin stock) from the back by rubbing them firmly from the\nback with a (spare, random, not the good silverware for when company\ncomes over) metal spoon.  Think of it as being sort of like the poor\nman's version of an <a href=\"https:\/\/en.wikipedia.org\/wiki\/English_wheel\">English\nWheel<\/a>.  I'm also\nreminded of the copper embossing we did in art class in third or\nfourth grade. For repairing the Ridge wallet it worked great, but I\ndidn't take before and after pictures.<\/p>\n<p>Fast forward a couple of years and I have an spare older MacBook Pro\nthat I use in the basement lab and for taking to the datacenter, so\nI'm not putting my nicer one at risk.  Wouldn't you know it, after I\ncarefully set it down on the floor on edge leaning up against the\nrack, this one got kicked over in a moment of carelessness and took a\nding in its baseplate from the corner of a UPS.<\/p>\n<p>While largely cosemetic, the dent caused a misalignment of the edge\nwhere it meets the rest of the case which annoyed me every time I\npicked it up.  I figured that taking out the dent in the interests of\ncausing realignment was worth a try.<\/p>\n<p>I removed the bottom plate and chose a plastic surface with just the\ntiniest bit of give as the backer - a 7.5 amp hour 12v gel battery\nfrom the e-recycle pile did the job nicely and didn't further mark up\nthe outside of the case.<\/p>\n<p>Before picture:<\/p>\n<p><img alt=\"Before removing dent\" src=\"\/assets\/2020-08-15-the-spoon-trick\/IMG_4427.png\" \/><\/p>\n<p>After picture:<\/p>\n<p><img alt=\"After removing dent\" src=\"\/assets\/2020-08-15-the-spoon-trick\/IMG_4430.png\" \/><\/p>\n<p>In case you're wondering, yes, straightening the dent out did in fact\ncause the edge of the bottom plate to come back into alignment with\nthe side of the case, or at least close enough that it wasn't annoying\nme anymore.<\/p>","pubDate":"Sat, 15 Aug 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-08-15:\/2020\/08\/15\/the-spoon-trick.html","category":"misc"},{"title":"If you use Ansible and you use Emacs...","link":"https:\/\/technotes.seastrom.com\/2020\/08\/14\/ansible-roles-and-emacs.html","description":"<p>Here at ClueTrust we have been using Ansible for several years now.<\/p>\n<p>Recently <a href=\"https:\/\/en.wikipedia.org\/wiki\/Monorepo\">monorepos<\/a> have\ngained a fair amount of mindshare because Google and Facebook use\nthem.  <a href=\"https:\/\/blog.bradfieldcs.com\/you-are-not-google-84912cf44afb\">We are not\nGoogle<\/a>\nnor are we followers of cargo cult software development methodologies.<\/p>\n<p>For a variety of reasons, we look at a lot of our Ansible development\nwork through the lens of pushing everyhing possible into reusable\nlibraries (roles), each with its own repo, and leveraging\n<a href=\"https:\/\/galaxy.ansible.com\">ansible-galaxy<\/a> pointed at our own repos,\nto pull in dependencies on an as-needed basis.  That leaves us with\nthin playbooks (in their own repos) to build similar sets of hosts -\ninventory directory hierarchies that contain playbooks that set\nvariables and call roles (and may contain a few vaulted host-specific\nfiles such as ssh keys and x.509 certs) but have minimal or no tasks\nsections since all that has been pushed out to reusable roles.<\/p>\n<p>Between Gaige and me, we have over 70 Ansible role Git repos.  This\napproach has worked out very well for us.  We are a small shop and\ndon't suffer from a cohort of recalcitrant developers tugging us\ntowards dependency hell (intentionally breaking their stuff in real\ntime so they have to fix it is an oft-touted feature of monorepos).<\/p>\n<p>I recently created a couple of roles that were failing when I ran <code>ansible-galaxy install -r requirements.yml<\/code>.  I looked them over, scratched my head...<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>- extracting splunk-forwarder-smartos to \/tmp\/ansibleroles\/splunk-forwarder-smartos\n[WARNING]: - splunk-forwarder-smartos was NOT installed successfully: Could not update files in\n\/tmp\/ansibleroles\/splunk-forwarder-smartos: [Errno 21] Is a directory: &#39;\/tmp\/ansibleroles\/splunk-\nforwarder-smartos\/tasks&#39;\nERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.\n<\/code><\/pre><\/div>\n\n<p>I couldn't figure out what was going on, and -vvvvv was no help.\nEventually the solution came out - kudos to Gaige for flagging this\none.  I'm an Emacs user.  Emacs saves the old version of a file as\n<code>filename~<\/code> - a relic of bygone days and influenced by operating\nsystems that had versioned filenames.<\/p>\n<p>That ~ in the filename was giving the archiver library heartburn in a\nbad way - because I had neglected to add my standard .gitignore file\nfor Ansible work (which by the way looks like this):<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>*~\n*.retry\n__pycache__\n*.pyc\n<\/code><\/pre><\/div>\n\n<p>Fortunately it only had a single commit, so a do-over with the right\n.gitignore file in place and then a force push was enough to set\nthings right.<\/p>","pubDate":"Fri, 14 Aug 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-08-14:\/2020\/08\/14\/ansible-roles-and-emacs.html","category":"misc"},{"title":"Ethanol-Free Gasoline in VA","link":"https:\/\/technotes.seastrom.com\/2020\/08\/01\/ethanol-free-gas.html","description":"<p>Yesterday I dropped by the BP station in Warrenton to pick up a gallon of ethanol-free gasoline for the chain saws and string trimmers.  There's a lot of folklore surrounding E10 (which is a default case for pump gas these days).<\/p>\n<p>What is gasoline anyway?  A naive guess might be that it was more or less pure 2,2,4-Trimethylpentane (aka isooctane) with some \"other less desirable stuff\" thrown in so as to have an \"octane number\" of 87 or 93.  That might have been approaching correct in the 60s, but that is not true today.<\/p>\n<p>The answer is that what is in pump gasoline varies considerably by season (winter vs. summer gasoline formulations) and by region - summer gasoline with a higher vapor pressure is mandated across the country in places with dense enough populations that there are difficulties with air quality in the summer, and on the coasts entire states or regions.<\/p>\n<p>There's plenty of lore that suggests that ethanol is bad for small engines (eats seals in the carburetors, etc).  All of my engines save for one are new enough that this shouldn't be a problem.  Other problems with ethanol-containing fuel may be traceable to it being hygroscopic and people storing it in non-safety cans where all the good, lighter fractions boil off on a hot day and the remaining fuel sucks up humidity from the air.  I've never had a problem with gas stored in a safety can, but why take chances?<\/p>\n<p>Warrenton is not the closest place to get ethanol-free gasoline (there's a <a href=\"https:\/\/www.pure-gas.org\">web site<\/a> for finding it and an accompanying app).  It was, however, agreeable with my errands for the day. Oddly, there is no place to buy ethanol-free gasoline in Loudoun County.  Strange.<\/p>\n<p>As luck would have it, when I pulled in to the BP station there was a guy in the small truck from <a href=\"https:\/\/holtzmancorp.com\">Holtzman<\/a> getting snacks.  I know the ethanol-free fuel at that BP comes from Holtzman, and moreover I know they have a fuel rack on Catoctin Circle in Leesburg, so I asked him if there was a place that I could get ethanol-free gas up that way.<\/p>\n<p>Nope.  They can't even deliver it in Loudoun County to a private tank.<\/p>\n<p>It turns out that reformulated gasoline is required in parts of Virginia, but not all.  DEQ (the Smokey Air people, not the Smokey Bear people, the same people who keep me from burning yard waste until October) has a <a href=\"https:\/\/www.deq.virginia.gov\/Programs\/Air\/AirQualityPlans\/ReformulatedGasolineinVirginia.aspx\">page on this<\/a>.  Loudoun County is one of those places.<\/p>\n<p>There's no per-se requirement to have ethanol in fuel to make RFG.  Before ethanol became popular 15+ years ago, <a href=\"https:\/\/en.wikipedia.org\/wiki\/MTBE_controversy\">MTBE<\/a> was a popular choice of oxygenate, but it made fuel spill and tank leak plumes that much worse.  <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ethyl_tert-butyl_ether\">ETBE<\/a> could be used, but is more expensive than either MTBE or ethanol.<\/p>\n<p>There's a business cost associated with each gasoline \"recipe\".  Expecting a special recipe to be maintained for a niche product that only has appeal in certain jurisdictions would be unreasonable.  Hence, no ethanol-free gas for sale in Northern Virginia.<\/p>\n<p>I feel a bit like someone smuggling Cuban cigars back from Canada as I go to Clarke or Fauquier County to buy non-compliant (but highly desirable) fuel.<\/p>","pubDate":"Sat, 01 Aug 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-08-01:\/2020\/08\/01\/ethanol-free-gas.html","category":"misc"},{"title":"Passing the CDL Pre-Trip Test in Virginia","link":"https:\/\/technotes.seastrom.com\/2020\/07\/10\/virginia-cdl.html","description":"<p>About a year ago I came to realize that I didn't have the right\nlicense for operating a particular truck that I'd been driving\nperiodically for a number of years.  So I set about to fix it.<\/p>\n<p>What makes a vehicle require a commercial driver's license?  There are\nsmall vehicle commercial licenses for carrying more than 15 passengers\nor driving a school bus, but in my case it was the weight of the\nvehicle.  For a number of years I had been under the impression that\nthe weight that mattered was either the actual weight (across the\nscales when you checked) or perhaps the registered weight of the\nvehicle - when you have \"truck\" tags on your vehicle in Virginia, you\npay by the weight you tag it at, heavier = more, and if you run\noverweight you're risking a ticket.<\/p>\n<p>It turns out that none of that is true.  The number that matters is\nthe GVWR (Gross Vehicle Weight Rating), which is listed on the\nnameplate on the door frame.  Two visually identical trucks might have\nGVWR plates that say 25999 and 33000; the heavy one requires a CDL and\nthe light one does not.  If the plate on the door frame reads 26001\npounds or more and the vehicle isn't exempt in some way (registered as\nan RV, emergency apparatus (the fire department has its own\ncertifications), military, agriculture, and a couple of others that\nescape my memory... then you need a CDL to drive it.<\/p>\n<p>We thought we'd dodged that requirement by registering at 26000\npounds.  This didn't raise any eyebrows at the DMV because it's a\ncommon practice to under-tag vehicles that don't carry their full\ndesigned weight, and 26000 pounds gets us in right under the wire for\nnot having to register with <a href=\"https:\/\/www.iftach.org\/\">IFTA<\/a>, the fuel\ntax equalization folks.  Another common trick is that the\ntractor-trailer driving schools register their trucks as light as they\ncan to save on road use fees.  That's not exactly a loophole - if they\ntried to carry a load in revenue service they'd be subject to a big\nfine - but they're not in the business of moving cargo; they're in the\nbusiness of training drivers.<\/p>\n<p>Last summer I took the written and air brake certification tests.\nNo problem; a quick refresher and I was good to go.  I think I missed\none question and I'm not entirely sure that it wasn't that the test was wrong.\nWith properly aged learner's permit in hand (you have to have it for\n30 days before you can take the test), back in January I went out to\ntake the test with a friend who has a CDL.<\/p>\n<p>And I failed the pre-trip test.<\/p>\n<p>How did I manage to do that?  A few things:<\/p>\n<ul>\n<li>\n<p>I assumed that it would be easier than it was since I'd done plenty\n  of pre-trips in my youth.  30 years and harmonization of CDL\n  requirements in '92 made a big difference.<\/p>\n<\/li>\n<li>\n<p>You don't get credit for being conceptually correct and careful.\nYou get credit for rattling off the words they want you to say.  If\nyou point at the alternator and say \"securely attached; nothing\ncracked, bent, or broken; wires are intact\", you don't get credit.  If\nyou say \"no loose or missing bolts, wires are not frayed or burned\",\nyou get credit.<\/p>\n<\/li>\n<li>\n<p>It's time-bounded.  Move quickly.<\/p>\n<\/li>\n<li>\n<p>Everything, and I mean <em>everything<\/em>, that is not on the study guide\nthey give you or addendum to the study guide (where they mention other\nthings they want you to hit like safe start, catwalk, etc) is out of\nscope.  You don't get points for inspecting it even if it's important.<\/p>\n<\/li>\n<\/ul>\n<p>Patrick and I were poking a bit of fun at this last aspect on the\nmorning I took my test.  Tie rod?  Not on the test, it must not be\nimportant.  Handles and railings for getting in and out of the cab?\nThey'll ding ya for not maintaining three points of contact getting in\nand out of the truck but maybe that's just so it doesn't matter if one\nof them is literally falling off in your hand.  DOT bumper in the\nback?  Saves lives every day - it's saved <em>my<\/em> life.  But nobody\ncares; it's not on the study guide so don't bother.<\/p>\n<p>When I failed the first test I was told that it was obvious that I\nknew what I was talking about and what I was doing, but I wasn't doing\nit in the way they wanted and was moving too slowly.  Fair enough.\nThey wanted to reschedule in a week and a half...  three days after my\nknee surgery.  Nope.  Wasn't going to even think about that.  Then\ncame a new job.  Then came the Coronavirus lockdown.<\/p>\n<p>And so it was that I was scheduling to take the test a couple of weeks\nbefore my learner's permit ran out.  Virginia won't let you renew a\nCDL learner's permit - you have to take the written test all over\nagain.<\/p>\n<p>This time I passed, no problem - though it was a lot of stress.  I\nsoak up concepts and the gestalt of situations, particularly\nmechanical ones, with ease.  Rote learning is hard for me.<\/p>\n<p>After the pre-trip the parking lot handling and road tests were\ncomparatively easy.  This isn't a hard vehicle to handle if you have\na bit of time behind the wheel and good spatial awareness.<\/p>\n<p>Additional hints and thoughts:<\/p>\n<ul>\n<li>\n<p>The study guide for the pre-trip is not in the driver's license manual - you have to ask for it.<\/p>\n<\/li>\n<li>\n<p>They want to see your medical certificate, even though it's in the\n  computer at the DMV and FMCSA is getting rid of the paper\n  certificates altogether in 2021; it's going fully computerized.  Go figure.<\/p>\n<\/li>\n<li>\n<p>Use the study guide.  Stay away from YouTube.  This isn't my advice,\n  it's the inspector's.  Take it to heart.<\/p>\n<\/li>\n<li>\n<p>The order of points to inspect in the study guide is...  ill thought\nout.  Nobody says you can't rearrange them.  I like doing them in an\norder that flows naturally over the truck, down and around the front,\nopen the hood, around the engine, down to the wheel, down the side and\nunderside of the truck, rear wheel, around the back, close hood and\nenter cab to do the inside the truck inspection.<\/p>\n<\/li>\n<li>\n<p>Bring knee pads, gloves, and a flashlight.  You don't <em>have<\/em> to get\n  up close and personal with stuff, the test is point and identify,\n  but getting right up there on it helps avoid missing something\n  because the inspector thought you were pointing at the wrong thing.<\/p>\n<\/li>\n<li>\n<p>You're going to be talking for pretty much a half hour straight.\n  Bring a couple bottles of water.  You'll need them.<\/p>\n<\/li>\n<li>\n<p>They keep a poker face so they don't accidentally help you with\n  their reaction.  They're not being jerks, it's their job.<\/p>\n<\/li>\n<li>\n<p>Double check the part about parking lot maneuvers in the manual and\npractice all of them ahead of time.  Straight backing and offset\nbacking into a lane are easy.  I was expecting a passenger side right\nangle back into a loading dock for my third maneuver but that wasn't\nwhat I got handed - I was asked to parallel park.  Not a problem but\nit took more fiddling than I was expecting.  A couple of dry runs\nwould have made that easy.<\/p>\n<\/li>\n<\/ul>\n<p>In not too many more days I'll get an envelope from Richmond with my\nshiny new license in it.  Until then the truck is parked.  They're not\ngonna catch me ridin' dirty.<\/p>","pubDate":"Fri, 10 Jul 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-07-10:\/2020\/07\/10\/virginia-cdl.html","category":"misc"},{"title":"Farewell to Jekyll","link":"https:\/\/technotes.seastrom.com\/2020\/07\/09\/bye-bye-jekyll.html","description":"<p>A bit over four years ago I fired Drupal in favor of\n<a href=\"https:\/\/jekyllrb.com\">Jekyll<\/a>.<\/p>\n<p>Any static site generator is a huge step in the right direction from\nusing a CMS that averages a security vulnerability patch per month,\nand Jekyll was one of the first.  That said, time has not been kind to\nJekyll, and Ruby was making me angrier and angrier every time I\nrebuilt the blog site.<\/p>\n<p>A month ago I got fed up and asked Gaige for some help converting the\nblog to run on <a href=\"https:\/\/blog.getpelican.com\">Pelican<\/a>, which is\nwritten in Python.  He quickly obliged.  Then I sat on it for a month.<\/p>\n<p>Today, I got it cut over.  The only Ruby left in my life is\n<a href=\"https:\/\/brew.sh\">Homebrew<\/a>.  That makes me happy.<\/p>\n<p>Bye-bye, Jekyll and Ruby!<\/p>","pubDate":"Thu, 09 Jul 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-07-09:\/2020\/07\/09\/bye-bye-jekyll.html","category":"misc"},{"title":"How I signed up for a FiOS negative discount of $10\/month","link":"https:\/\/technotes.seastrom.com\/2020\/05\/06\/verizon-discount.html","description":"<p>The other day I decided that I'd take advantage of my employee\ndiscount on FiOS, offered through my job.<\/p>\n<p>Unfortunately, when all was said and done, my bill ended up being\n$50\/month higher <em>and I didn't catch this before I accepted the deal<\/em>.\nAfter multiple hours on the phone, the Verizon folks managed to fix\nmy account to <em>only<\/em> take a hit of $10\/month instead of $50\/month.<\/p>\n<p>How did this happen?  Well, my previous bill was $179\/month.  When\nthey told me my new rate it was quoted as $149\/month in bold print.\nThe fine print of course said that this was just the base double play\nvideo\/internet rate, exclusive of my usurious STB and cable card\nrentals.  I didn't catch this.  The old rate?  $119.<\/p>\n<p>They blew up my bundle, priced everything a la carte, and signed me up\nfor a new two year contract.  I was quite happy to sign up for a two\nyear contract given that I thought my total rate was $149, not $179,\nand certainly not $228.<\/p>\n<p>Verizon refused to undo my new contract and claimed that it was\nimpossible due to my previous plan being a grandfathered plan that was\nno longer being offered.  Verizon acted like they were doing me a\nfavor and a supervisor put the blame squarely on me for accepting a\nnew contract.  I put the blame on Verizon for making misleading\nstatements and failure to have business logic in place that will keep\nsomeone from entering an \"apply discount\" workflow and ending up with\nan increased bill.  This is straight up bait and switch.<\/p>\n<p>My experience should serve as a warning to others.  I don't believe\nthat Verizon has it in for me, I think Bryan Cantrill's\ncomments about Oracle apply here:<\/p>\n<blockquote>\n<p>You need to think of Larry Ellison the way you think of a\nlawnmower. You don't anthropomorphize your lawnmower, the lawnmower\njust mows the lawn, you stick your hand in there and it'll chop it\noff, the end. You don't think 'oh, the lawnmower hates me' --\nlawnmower doesn't give a shit about you, lawnmower can't hate\nyou. Don't anthropomorphize the lawnmower. Don't fall into that trap\nabout Oracle.<\/p>\n<\/blockquote>\n<p>So it is with Verizon.  Careful of that customer portal.<\/p>","pubDate":"Wed, 06 May 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-05-06:\/2020\/05\/06\/verizon-discount.html","category":"misc"},{"title":"Travelogue - OpenSSH 8.2 Yubikey U2F\/FIDO2 Support","link":"https:\/\/technotes.seastrom.com\/2020\/03\/27\/openssh-82-yubikey.html","description":"<p>At ClueTrust we\u2019re constantly re-evaluating our security posture based\non both perceived threat and what level of effort it takes to\nimplement various security technologies.  In short, being a small shop\nwe're always conscious of the \"effort\" component of the effort\/reward\nratio.<\/p>\n<p>Here in the future in 2020 it has finally become possible to do a\nlittle bit better with ssh than just requiring keys.  OpenSSH 8.2\nincluded support for Universal Two-Factor (U2F\/FIDO) tokens.  For the\nuninitiated, this is an open standard for strong crypto-based\nchallenge\/response that was championed by a <a href=\"https:\/\/en.wikipedia.org\/wiki\/FIDO_Alliance\">consortium that includes\nall the folks you might expect to see\nthere<\/a> .  Note that\ntoday\u2019s FIDO is called FIDO2.  Gaige has done some cursory\ninvestigation in the backward compatibility department to quantify the\nconstraints you\u2019ll get from a FIDO-not-FIDO2 key (enumerated below).<\/p>\n<p>If you got this far and said \"yeah, we've using Yubikeys for years\nwith ssh, you push the button on the key and a 35 character string\ncomes out; why is this news\", let me stop you right there and say\n\"this is not that\".  Saying \u201cyubikey\u201d is like saying \u201ccar\u201d without\nspecifying how many doors or what kind of roof it has.  The Yubikey 5\nfamily, for instance, will do the following authentication methods:\nSecure Static Passwords, Yubico OTP, OATH \u2013 HOTP (Event), OATH \u2013 TOTP\n(Time), Smart Card (PIV-Compatible), OpenPGP, FIDO U2F, FIDO2.  I\u2019ve\nconfigured ssh with PIV keys.  It works.  A friend of mine swears by\nssh with OpenPGP - that is good and spits out keys that are plain \u2019ol\nssh-rsa from a user perspective which is nice for backward\ncompatibility.  This is about the way that FIDO2 support is implemented\nin OpenSSH.<\/p>\n<p>Still got your attention?  Great.  Until recently, we felt \/FIDO.*\/\nwas interesting-but-impractical for general use since the only thing\nthat seemed to support them was Chrome.  But over the past year,\nSafari (on both macOS and iOS) and OpenSSH 8.2 (released in\nmid-February 2020) have added support.  The latter raises it to the\npoint where the cost both in terms of dollars (as low $20 for a\nFIDO2-only Yubikey token via Amazon) and effort required to make this\nsomething we wanted to pilot.  And we did.<\/p>\n<p>A little note about the sub-$30 Yubikeys - the full name of the model\nin question is \u201cSecurity Key by Yubico\u201d (or its slightly more\nexpensive sibling, \"Security Key NFC by Yubico\u201d).  You might think\nthese names are purely descriptive since Yubikey\u2019s products might all\nbe described as \u201csecurity keys\u201d (note lowercase).  They're not - those\nare the actual model identifiers.  Yubikey has kindly published a <a href=\"https:\/\/www.yubico.com\/products\/identifying-your-yubikey\/\">full historical list of Yubikey\nmodels<\/a>.  Of\nparticular note,FIDO and FIDO2 aren\u2019t the same thing and any of the\nolder models that you might have lying around from earlier experiments\nor hacker conference door prizes years ago - in fact anything that\ndoesn\u2019t show FIDO2 or FIDO on that list - will end in \nfrustration.  From Gaige\u2019s junk drawer, we know the following:<\/p>\n<ul>\n<li>The 4C is not listed as FIDO2, but is FIDO U2F and can be used with ecdsa-sk, but not ed25519-sk.   Since the 4C self-describes as a 4, it appears series 4 keys will likely work, but don\u2019t go searching out bargains on NOS.\n\u2022 The 5ci works fine with either.<\/li>\n<li>The \u201cLegacy\u201d products, such as the Standard (2014-2016) do not work at all in this mode.<\/li>\n<li>Note that if you got a freebie from Ars Technica a couple of years back, it\u2019s likely a 4, which is at least capable of doing ecdsa-sk.<\/li>\n<\/ul>\n<p>I'm a Mac user.  If you use something else for your unix-like desktop applications (say, WSL2 or or some Linux flavor) you\u2019re on your own but you can probably figure this one out since it\u2019s just a matter of compiling openssh-portable from source and exposing a USB device to userland.  I am unaware of any non-Unix ssh implementations that support the FIDO2 token on the client side (yet, maybe PuTTY will do this some day soon), though I\u2019ll be super excited when Prompt or Blink support it via NFC the iPad.<\/p>\n<p>Here are the steps for playing with it:<\/p>\n<ol>\n<li>\n<p>Buy a <a href=\"https:\/\/www.amazon.com\/gp\/product\/B07BYSB7FK\/\">Security Key by Yubico<\/a> or <a href=\"https:\/\/www.amazon.com\/gp\/product\/B07M8YBWQZ\">perhaps you want to pay an extra $7 to be baller and roll with NFC<\/a>.  It works on relatively modern iDevices - I think you need an iPhone 7 or newer.  If you already have one that\u2019s up to the task (see the historical list of Yubikey models above), good on ya - you\u2019re already ahead of the (adoption, not crypto) curve.  Of course you can always buy one of the spendy ones too if the spirit moves ya.<\/p>\n<\/li>\n<li>\n<p>You\u2019re probably aware that Amazon has a <a href=\"https:\/\/www.youtube.com\/watch?v=wfPM3i9NIHM\">big supply chain contamination problem<\/a>.\nCan\u2019t hurt to test the token you get out by going to <a href=\"https:\/\/www.yubico.com\/genuine\/\">Yubico's test site<\/a>. I haven\u2019t tested with a non-Yubico FIDO2 token, but my guess is that testing devices with baked-in PKI attestation certs for legitimacy is pretty darned easy - in fact that's the <a href=\"https:\/\/fidoalliance.org\/fido-technotes-the-truth-about-attestation\/\">whole point of the attestation cert<\/a>.<\/p>\n<\/li>\n<li>\n<p>You\u2019re already running <a href=\"https:\/\/brew.sh\">Homebrew<\/a> right?  Splendid.  <code>brew update ; brew upgrade ; brew install openssh<\/code>.  Hopefully you have your $PATH set properly so that stuff that you install with Homebrew (\/usr\/local\/bin, \/usr\/local\/sbin, etc) is listed first so it takes precedence over stock stuff that\u2019s installed in \/usr\/bin.  If not, you probably should do this.  Congratulations, now you have a working OpenSSH that does all the right things and is linked to the libfido2 libraries (which it autoinstalls as a dependency).  Note: if you weren\u2019t previously using the homebrew version of ssh, you may need to rehash your paths to get the latest ssh and ssh-keygen (rehash under \/bin\/csh and derivatives, hash -r under bash and similar).  This was tested with latest Homebrew on:<\/p>\n<\/li>\n<li>macOS High Sierra (version 10.13) on a 13\u201d Late 2011 MacBook Pro<\/li>\n<li>macOS Mojave (version 10.14) on a 15\u201d Late 2015 MacBook Pro<\/li>\n<li>\n<p>macOS Catalina (version 10.15) on a 2019 Mac Pro<\/p>\n<\/li>\n<li>\n<p>Stick the Yubikey in a port.  This should go without saying but you can go no further without said key.<\/p>\n<\/li>\n<li>\n<p>Create yourself a new key.  There are some instructions here that I disagree with a bit (on the basis of proper identification of the key (the Security Key by Yubico apparently does not have a serial number) and failure to choose a variant of the One True Collection of Mutually Compatible Date Formats (iso-8601)) <a href=\"https:\/\/cryptsus.com\/blog\/how-to-configure-openssh-with-yubikey-security-keys-u2f-otp-authentication-ed25519-sk-ecdsa-sk-on-ubuntu-18.04.html\">but read it anyway<\/a> before you instead do this:<\/p>\n<\/li>\n<\/ol>\n<div class=\"highlight\"><pre><span><\/span><code>ssh-keygen -t ecdsa-sk -C &quot;$(hostname)-yourname-example.com-$(date +&#39;%Y%m%d&#39;)&quot; -f &quot;.ssh\/id_ecdsa_sk-yourname-example.com-$(date +&#39;%Y%m%d\u2019)&quot;\n<\/code><\/pre><\/div>\n\n<p>or perhaps if you\u2019re all about the djb curves:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>ssh-keygen -t ed25519-sk -C &quot;$(hostname)-yourname-example.com-$(date +&#39;%Y%m%d&#39;)&quot; -f &quot;.ssh\/id_ed25519-sk-yourname-example.com-$(date +&#39;%Y%m%d\u2019)&quot;\n<\/code><\/pre><\/div>\n\n<p>Of course your email address is not yourname@example.com but you probably already picked up on the need to modify that.  Keen and readers will notice that I\u2019ve used the \"8601 Basic\u201d format which is specifically not supposed to be used where it will be exposed to humans due to missing syntactic sugar.  To appeal to your pedantry, we will refer to this missing symbol as the \u201chyphen (minus)\u201d glyph, as it is described in ANSI X3.4-1968.<\/p>\n<ol>\n<li>\n<p>Now that you've got a key generated, you unfortunately can't use it just anywhere.  On the remote host that you propose to ssh into, you'll need to either get lucky and pick up OpenSSH 8.2 via a package update on your target system or install it by building OpenSSH-portable from source.  Note that this will get easier over time; the difficulties stem from the fact that it has barely been out for a month.<\/p>\n<\/li>\n<li>\n<p>copy the new PUBLIC key over to the destination host.  The private part stays on your laptop, as always.<\/p>\n<\/li>\n<\/ol>\n<div class=\"highlight\"><pre><span><\/span><code>scp .ssh\/id_ecdsa_sk-yourname-example.com-20200307.pub yourname@jumphost.example.com\n<\/code><\/pre><\/div>\n\n<ol>\n<li>ssh to jumphost.example.com via the normal way with your existing keys and append the key to ~\/.ssh\/authorized_keys<\/li>\n<\/ol>\n<div class=\"highlight\"><pre><span><\/span><code>rs@jumphost.example.com:~$ cat id_ecdsa_sk-yourname-example.com-20200307.pub &gt;&gt; .ssh\/authorized_keys       \n<\/code><\/pre><\/div>\n\n<ol>\n<li>Back on your laptop, you\u2019re probably running ssh-agent.  Later when everything is normalized can still forward the keys in ssh-agent, but you can\u2019t put an \u201csk\u201d key in ssh-agent (for obvious reasons) and you don\u2019t want to know anything about existing unlocked keys if you have preferences recorded in .ssh\/config, so in the interests of avoiding confusion during testing do this:<\/li>\n<\/ol>\n<div class=\"highlight\"><pre><span><\/span><code>unset SSH_AUTH_SOCK\n<\/code><\/pre><\/div>\n\n<p>Gaige was able to get this working just by specifying the -i, but if you have a lot of keys loaded by default, you might need -o IdentitiesOnly=yes.  A good recipe for rs (without unsetting SSH_AUTH_SOCK) ended up being:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>ssh -p 2200 -i .ssh\/id_ecdsa_sk -o IdentitiesOnly=yes yourname@jumphost.example.com.\n<\/code><\/pre><\/div>\n\n<p>With that said, by using -i with the SK paired with -A one can mix in ssh-agent and forward unlocked keys that aren\u2019t used for this login, to ssh into another machine with a non-sk key (say, from the jumphost to some protected server ona backnet, for instance).  More on the slightly confusing behavior in prioritization of keys <a href=\"https:\/\/www.gaige.net\/ssh-key-choices.html\">on Gaige\u2019s blog<\/a>.<\/p>\n<ol>\n<li>Let's give it a try!<\/li>\n<\/ol>\n<div class=\"highlight\"><pre><span><\/span><code>ssh -p 2200 -i .ssh\/id_ecdsa_sk-whatever-the-datestamped-file-ended-up-being-called.pub -o IdentitiesOnly=yes yourname@jumphost.example.com\n<\/code><\/pre><\/div>\n\n<p>It should prompt you for a password (the same password you used when creating the key) and then a press on the Yubikey to confirm your presence.  Note that without the Yubikey present, all of the crypto necessary to unlock the ssh key is not present, and you're outta luck.  If all went according to plan, you should be in via 2FA.  Isn\u2019t that special\u2026<\/p>\n<ol>\n<li>You probably want to set some definitions for what key to use in .ssh\/config on your laptop.  For instance, my shortcuts entries look like so:<\/li>\n<\/ol>\n<div class=\"highlight\"><pre><span><\/span><code>host jumphost.example.org jumphost \n  HostName jumphost.example.org\n  User rs\n  ForwardAgent yes\n  identityfile ~\/.ssh\/id_ecdsa_sk-rs-seastrom-com-20200307\n<\/code><\/pre><\/div>\n\n<p>Lastly, please send along any useful feedback including the fine points of getting this working on other platforms, grammatical fixes, clarifications, etc!<\/p>","pubDate":"Fri, 27 Mar 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-03-27:\/2020\/03\/27\/openssh-82-yubikey.html","category":"misc"},{"title":"Password Recovery and Upgrading Software on a Juniper EX switch","link":"https:\/\/technotes.seastrom.com\/2020\/03\/26\/rescuing-juniper-ex.html","description":"<p>A year and a half or so ago we bought some secondhand Juniper EX4200\nswitches for deployment to do OOB, camera, wifi, and other\napplications where inexpensive POE switches were appropriate, and the\nfact that they were EOL didn't represent a barrier to acceptance.<\/p>\n<p>The team was a little concerned because \"it's not Cisco or something that pretends to be\", so\nI wrote up a short cheat sheet on how to do password recovery and upgrade the software\non them, so we could get things up and running.<\/p>\n<h3>The Juniper EX cheat sheet:<\/h3>\n<p>Suppose you've got a second hand switch fresh out of the box. First\nthing you probably need to do is perform password recovery on it. To\ndo this, plug a serial console cable into the CON RJ45 port on the\nback and power on. This is a Cisco\/Juniper\/Sun\/Adtran standard pinout\nnot the ungodly \"standard\" RS232D pinouts that once proliferated on\nUSR and 3Com devices. The RJ45 serial cable you have in your laptop\nbag should work fine.<\/p>\n<p>Speed is 9600\/8N1. Junipers as a rule are picky about parity. If you\nshould have 7E1 by default on your terminal program, some characters\nwon't work.<\/p>\n<p>Power on. Observe bios messages within a few seconds on the serial\nconsole. You'll have a brief opportunity to hit space to interrupt\nautoboot and get a \"boot&gt;\" prompt. At that point, \"boot -s\" will boot\nto single user. Read the prompt carefully. You'll have the opportunity\nto select \"recovery\" instead of \"\/bin \/sh\" for your shell, which will\nget you the new plaintext root password prompts.<\/p>\n<p>After you reboot, you'll login as root with your new password and get\na shell prompt. To run the Juniper CLI, type \"cli\".<\/p>\n<p>Doubtless you'll want to upgrade the software. There are two OOB ports\non the back: CON (serial console, which you've already used) and MGMT\n(management ethernet). You can't route over the management ethernet\n(not a separate VRF anyway) so don't even bother trying. But it's\nuseful for copying in software upgrades on an otherwise unconfigured\nswitch.<\/p>\n<p>Before we get to that point though, set the date\/time. This need not\nbe exact. But Juniper's software packages are signed with X.509 certs\nand they can't be validated if the clock is reset to 1970 or\nsomething.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>set date 201809072130\n<\/code><\/pre><\/div>\n\n<p>Now we can set up the management ethernet and SSH:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>configure\nset system services ssh protocol-version v2\nset interf me0 unit 0 family inet addr 192.168.255.1\/24\ncommit and-quit\n<\/code><\/pre><\/div>\n\n<p>Plug in an ethernet between it and your laptop, set a different ip\naddress on your laptop ethernet, and SCP the new jinstall software\nbundle in (note that the bundles are different for different models of\nswitch and that's reflected in their names). You may wish to try to\nssh in as root first in order to make sure that ssh is actually\nrunning.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>maddog:Downloads rs$ scp -p jinstall-ex-4200-15.1R7.8-domestic-signed.tgz root@192.168.255.1:\/var\/tmp\/\nroot@192.168.255.1&#39;s password: jinstall-ex-4200-15.1R7.8-domestic-signed.tgz 100% 132MB 3.3MB\/s 00:40\nmaddog:Downloads rs$\n<\/code><\/pre><\/div>\n\n<p>Once it's copied in, you actually start the upgrade with:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>request system software add \/var\/tmp\/jinstall-ex-4200-15.1R7.8-domestic-signed.tgz\n<\/code><\/pre><\/div>\n\n<p>When that's done,<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>request system reboot\n<\/code><\/pre><\/div>\n\n<p>will actually boot into the new OS partition.<\/p>\n<p>The EX series switches (since Junos 10.3 or thereabout) have dual boot\ncapabilities from primary and backup partitions. You might think this\nis primarily as an upgrade\/rollback function, and certainly it could\nbe used for that, but in RS' experience the more common use is to\nrecover from a boot partition failure. This happens more often than\nyou might think - like most Unix systems, Junos is not especially\nthrilled with having its power unceremoniously yanked. Yet still\npeople do it, because most of the time you get away with it.<\/p>\n<p>The right way to power down a Junos system, by the way, is:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>request system power-off\n<\/code><\/pre><\/div>\n\n<p>But I  digress. When you  have a configuration  of an EX  switch which\nyou're happy with, it behooves you to back it up.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>show system storage partition\n<\/code><\/pre><\/div>\n\n<p>will give you some information about what you're booted from. Note\nthat the physical devices associated with \"primary\" and \"alternate\"\ndepend on what you booted from. The one that you're not booted from will always be \"alternate\".<\/p>\n<p>So,<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>request system snapshot media internal slice alternate\n<\/code><\/pre><\/div>\n\n<p>will back up your currently running configuration to the \"other\" boot device. <a href=\"https:\/\/kb.juniper.net\/InfoCenter\/index?page=content&amp;id=KB21062&amp;smlogin=true\">More reading here<\/a>.<\/p>\n<p>You might be swapping out a broken system and want to install an\narchived config, or you might want to start with an archived\nconfiguration, rename, re-IP, and move forward as a good beginning\npoint for a new switch.<\/p>\n<p><a href=\"https:\/\/www.juniper.net\/documentation\/en_US\/junos\/topics\/task\/configuration\/junos-software-configuration-file-loading.html\">More on configuration file loading<\/a>.<\/p>\n<p>To replace an entire configuration, specify the override option at any\nlevel of the hierarchy. A load override operation completely replaces\nthe current candidate configuration with the file you are\nloading. Thus, if you saved a complete configuration, use this option.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>[edit] user@host# load (factory-default | merge | override | patch | replace | set | update) filename &lt;relative&gt; &lt;json&gt;\n<\/code><\/pre><\/div>\n\n<p>So, at top-level,<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>load override terminal\n<\/code><\/pre><\/div>\n\n<p>will replace the whole configuration with a \"show configuration\" style\nconfig when you paste it in (not a \"show configuration | display set\"\nstyle configuration). Many of these tips and workflows are applicable\nto other Junos devices such as SRX firewalls and MX routers.<\/p>","pubDate":"Thu, 26 Mar 2020 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2020-03-26:\/2020\/03\/26\/rescuing-juniper-ex.html","category":"misc"},{"title":"Electrify America - the most profitable mea culpa ever","link":"https:\/\/technotes.seastrom.com\/2020\/03\/01\/electrify-america.html","description":"<p>I won't bore you with a rehash of <a href=\"https:\/\/en.m.wikipedia.org\/wiki\/Volkswagen_emissions_scandal\">Dieselgate<\/a> except to note that as a finale Volkswagen\npaid a couple billion dollars as fines and further committed to spend \n$2 billion for clean-emissions infrastructure.  In 2017 they created a\nsubsidiary called Electrify America to implement this, with a commitment\nto inject $500mm\/year of funding over the next four years.<\/p>\n<h3>Electrify America footprint today - DCFCs types and locations<\/h3>\n<p>Electrify America is building out nationwide, with plans to cover all major highways with what they refer to as a \"brand-neutral charging network\".  I believe there may be language in the settlement that prohibits them from branding it as Volkswagen.  Their DC Fast Chargers come in multiple sizes, with top charging rates of up to 350 kW (!).  That is\na heck of a lot of juice!   Enough in fact to leave the scientifically curious scratching their heads.<\/p>\n<p>Watts is volts times amperes, and neither the SAE-CCS\nnor the CHAdeMO connectors operate much above 500 volts (and usually more like 375 volts),\nso when you're talking lots of kilowatts (kW) you're obviously talking a lot of amps. How many amps\nyou can cram through a wire (ampacity) depends on a few things.  One is resistance.  More resistance means more power loss which means more heat.  Aluminum has more resistance\nthan copper.  Copper has more resistance than silver.  Obviously making power cables\nout of silver is economically prohibitive <a href=\"https:\/\/www.americanscientist.org\/article\/from-treasury-vault-to-the-manhattan-project\">unless you're at war and can hit up another\nbranch of the Government to borrow some<\/a> so the only way to make the resistance lower\nis to make the cable fatter (and thus more unwieldy).  The equation is superlinear - to go from 100 amps to 500 amps at a given temperature rise, one needs a wire that is <em>more<\/em> than five times the cross-section, because even though you've multiplied the cross\nsection by five, the surface area to radiate the heat away has not likewise increased by\na factor of five.\nAnother factor is permissible temperature\nrise - the National Electrical Code puts limits on how many wires you can bunch together and has guidelines for ultimate temperature for various kinds (insulation types) of wire.<\/p>\n<p>So how do they do it?  They're clever - I understand that the very largest cables (for\nthe 150 and 350 amp capacity chargers) are in fact <em>liquid cooled<\/em> - with circulating\nfluid in the cable right there with, but insulated from, the wires.  If this kind of gives you the willies\nyou're not alone, but apparently it's safe - a lot safer than the <a href=\"https:\/\/travel.stackexchange.com\/questions\/112085\/how-suicidal-are-electric-suicide-showers\">suicide showers<\/a> that your friends who vacationed in Central America told you about.<\/p>\n<h3>Price structuring<\/h3>\n<p>Electrify America charges a $1.00 session fee to start and $0.40\/minute waiting\nfee if you've abandoned your vehicle plugged into the charger and are thus\npotentially blocking someone else from doing their business.  So far so good;\nI'll tolerate the former and I especially support the latter.  Reston Town Center at one point had car charger\nparking that was free for the first four hours, then successively $5, $10, $15, $20,\n$25 per <em>hour<\/em>, increasing every hour, for overstaying your welcome.  The message\nwas clear - don't hog resources; take your free charge and Get Out.<\/p>\n<p>But then things start to go a bit sideways.  Electrify America charges by the\namount of time that you spend at their charger, quoting a figure that sounds\nsomewhat reasonable based on maximum charge rate hypothetically drawn, \nnot the actual energy consumed by your vehicle.<\/p>\n<p>By way of example, the prices quoted for the chargers at the west end of\nTysons Corner in the WalMart parking garage are:<br \/>\n1 - 350 kW:  $0.89 \/ minute.  1 - 125 kW:  $0.58 \/ minute.  1 - 75 kW:  $0.21 \/ minute.<\/p>\n<p>Imagining for a moment a hypothetical car that drew the top end of the allowable power in one of these ranges for every single minute it was charging and then fell precipitously to zero when it was done.  Such a car or battery pack doesn't exist, but bear with me here.  That would result in prices of $0.152, $0.278, and $0.168 respectively for the \n350, 125, and 75 kW chargers.<\/p>\n<p>The 27 cent price seems a bit steep but not unreasonable (residential tariff in Virginia is right around $0.12 per kWh) and they're certainly entitled to recover the costs of at least maintaining the infrastructure if not building it (remember, this was part of the settlement for fraudulent environmental tests; a license to print money shouldn't be in the agreement).<\/p>\n<p>As I mentioned, though, such a hypothetical car doesn't exist.  I have seen both my\nold Leaf and my Bolt, for instance, draw somewhat north of 41 kW under ideal conditions\n(391 volts @ 106 amps) but that starts to roll off as the battery approaches 55% full, or if the weather is too warm or too cold.  Paying $0.21 per minute for charging on the less-than-75-kW tier is $0.307 per kWh...  but the car doesn't charge that fast for its\nentire cycle either.<\/p>\n<p>Actual amount paid for a session in December (including the $1 session charge)?  $8.98 for 17.3 kWh.  In other words, almost $0.52.<\/p>\n<p><img alt=\"charge completed\" src=\"\/assets\/2020-03-01-electrify-america\/IMG_3989.png\" \/><\/p>\n<p>I felt like a bit of a chump going there for the express purpose of testing the hypothesis, just to make sure I hadn't somehow gotten it wrong.  After all, I was handing over my cash to the second wave of public swindle from the folks who cooked the books on emissions compliance.  But I took the hit for the team and regret to say it was worse than I had spitballed it at.<\/p>\n<p>Tesla Superchargers, by the way, charge <a href=\"https:\/\/www.tesla.com\/support\/supercharging\">a flat $0.28 per kWh<\/a> where legal, and $0.13 per minute where not.  This falls into the \"fair and equitable\" bucket.  Tesla is making a reasonable profit but isn't making out like bandits on this sort of deal.<\/p>\n<p>Did I just say \"where legal\"?  Indeed I did.  It seems that a lot of states (somewhat fewer than half) have antiquated laws on the books that prevent resale of electricity by\nanyone except a regulated public utility, selling electricity at a price that is\nset by the government.  While this makes a lot of sense in the context of guarding against apartment\nlandlords ripping off their tenants who have no choice, the difference between a captive\nstationary customer base and a car charger should be pretty obvious.<\/p>\n<h3>California regulation<\/h3>\n<p>I'm hardly the first one to notice this.  Electrec, which some accuse of being tabloid-news for EV fanboys (guilty as charged, see what I did there?) had a <a href=\"https:\/\/electrek.co\/2019\/12\/24\/california-bans-per-minute-billing-tesla-superchargers-will-need-displays\/\">story on this last year<\/a> that described leaving \"drivers with sticker shock and feeling ripped off by the end of the session\".<\/p>\n<p>Turns out California has banned such practices recently (see above story) or is at least in the process of making DCFC vendors remediate the problem over the next couple of years (which seems overly generous considering the obvious intent here).  I've linked both the regulation, which is hard to get your hands around, and the Statement of Reasons, which makes it all make sense.<\/p>\n<p><a href=\"https:\/\/www.cdfa.ca.gov\/dms\/pdfs\/regulations\/EVSE-OAL_EndorsedLetter-and-FinalText.pdf\">Regulation as filed<\/a><\/p>\n<p><a href=\"https:\/\/www.cdfa.ca.gov\/dms\/pdfs\/regulations\/EVSE-FSOR.pdf\">Statement of Reasons<\/a><\/p>\n<p>Those who know me well will be surprised to hear me come down in favor of following California on any regulatory regime, my general sentiment being that Cali never met a regulation it didn't like.  I'm a big believer in the power of free markets, which is why I'm not in favor of instituting price controls here - Electrify America and <a href=\"https:\/\/www.evgo.com\/\">EVgo<\/a> (another gross offender in the obfuscatory fees department) should be able to price electricity however they see fit - but they must do it in a way that is obvious, clearly stated, and not misleading - just as gasoline pumps are required to clearly display the price per gallon or liter of product dispensed.  Disallowing \"gotcha\" pricing is hardly heavy-handed as regulatory schemes go - it is more like not permitting fraud upon the unwary.<\/p>\n<p>In summary, selling energy by the minute is unfair and does not allow the consumer to make an informed choice.  The companies whose business model depends on gross markups will lobby hard against this.  Stories about getting burned on charging fees are an impediment to electric vehicle adoption by people who aren't passionate EV nerds.  Lastly, empowering\nrent-seeking behavior as part of a settlement for doing an end run around environmental\nregulations seems like it might not adequately discourage such behavior.<\/p>","pubDate":"Sun, 01 Mar 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-03-01:\/2020\/03\/01\/electrify-america.html","category":"misc"},{"title":"Lets Encrypt, DNS-01, and a side of Certificate Transparency","link":"https:\/\/technotes.seastrom.com\/2020\/02\/20\/letsencrypt-and-dns01.html","description":"<p>Gaige and I have been using <a href=\"https:\/\/letsencrypt.org\/\">Let's Encrypt<\/a> for creating\ncertificates for use with SSL\/TLS services since Lets Encrypt was an invite-only beta.\nNaturally this included expansion to our day job a year or a little more ago (more on\nthat later).  This is a bit of a travelogue involving our transition to the DNS-01\nhandshake method and flexibility and security concerns associated with it.<\/p>\n<h3>How does ACME work?<\/h3>\n<p>Let's Encrypt uses a protocol called\n<a href=\"https:\/\/tools.ietf.org\/html\/rfc8555\">ACME<\/a> to automate the signing of\nX.509 certificates.  The automation and removal of human intervention\nis the whole point - without it, democratization of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Domain-validated_certificate\">DV\ncerts<\/a> by\ndriving the cost to zero would not be possible.<\/p>\n<p>At a high level, ACME works like this:<\/p>\n<p><strong>Client:<\/strong>  Hey, I'm going to ask you to sign X.509 certs for (list of one or more hostnames)<\/p>\n<p><strong>Server:<\/strong> Sure, here is a secret number for each hostname, you must put them in a place\nwhere only the person who controls the domain could and let me know.<\/p>\n<p><strong>Client:<\/strong> [puts the magic numbers in a place retrievable by the server]<\/p>\n<p><strong>Client:<\/strong> Hey Server, I put those secret numbers out there.  Here's a certificate signing request.  Will you sign?<\/p>\n<p><strong>Server:<\/strong> [checks] Yup, looks good to me!  Here's your signed certificate!<\/p>\n<h3>ClueTrust ACME tooling timeline<\/h3>\n<p>Our approach (and tooling) has evolved over time.  Originally, the widely promoted \nvalidation method was HTTP-01, and the leading method was various web server plugins or\n<a href=\"https:\/\/certbot.eff.org\/\">Certbot<\/a>.  Unfortunately, being fans of both unusual platforms,\na precompiled plugin that made everything Just Work inside of our web server created more \nthan one problem for us.  What if we didn't want to run a web server at all on a device?<br \/>\nThings like SMTP and IMAP run over TLS as well.  Did it make sense to have the keys right \nout there with the certificate, so our revocation capability could be compromised at the \nsame time as our certificate?<\/p>\n<p>Besides, we are proponents of cattle-not-pets and redeploy-don't-patch.  We already had a\nworkflow involving pushing out certificates from a central repository of truth with\nAnsible.<\/p>\n<p>I finally settled on an arrangement involving\n<a href=\"https:\/\/github.com\/diafygi\/acme-tiny\">acme-tiny<\/a> - a client for ACME\nwritten in Python that assumed a local web server and access to a\ndirectory to put the HTTP-01 challenge in\n(http:\/\/example.org\/.well-known\/acme-challenge).  The Let's Encrypt\nfolks would make a validating query, which would go to the server,\nwhere it would be proxied - either with a rule in nginx like so:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>    server {\n        listen       80 default_server;\n        listen       [::]:80 default_server;\n...\n...\n        location &#39;\/.well-known\/acme-challenge&#39; {\n                proxy_pass http:\/\/ansible-jumphost.example.com\/.well-known\/acme-challenge;\n                proxy_http_version 1.1;\n                proxy_set_header Host $host;\n        }\n<\/code><\/pre><\/div>\n\n<p>or in the case of servers that didn't run a web server at all, either\n<a href=\"http:\/\/www.dest-unreach.org\/socat\/\">socat<\/a> or\n<a href=\"https:\/\/www.haproxy.org\">haproxy<\/a> running on port 80 and forwarding\nthe query to the Ansible jumphost.<\/p>\n<h3>HTTP-01 drawbacks<\/h3>\n<p>This was kind of awesome but once the appeal of free X.509 certificates wore off, we got tired\nof some awkwardness in the workflow.  To wit:<\/p>\n<ul>\n<li>\n<p>Hosts for which we were issuing certificates had to be reachable from the global Internet.  This means\nat a minimum a public IP address, and either running wide open or filtering to permit the addresses Let's Encrypt\nuses for validation based on observed behavior (unlike GitHub's notification hooks source addresses, Let's Encrypt\ndidn't publish this information last time I looked).<\/p>\n<\/li>\n<li>\n<p>Moreover, the hosts had to be up.<\/p>\n<\/li>\n<li>\n<p>Not only that, but the forwarder process had to be up and running.  In the\ncase of socat or haproxy this wasn't such a big deal, but in the case\nof nginx this led to a chicken-or-egg problem - server won't start\nwithout a certificate file, can't get a certificate file without the\nserver up.  This resulted in splitting the Ansible role in two -\n<code>bogusserver-keys<\/code> which would copy in a set of self-signed certs to\nmake nginx happy if there wasn't already a file there, and\n<code>realserver-keys<\/code> which copied in the real certs if they existed yet.\nAwkward.<\/p>\n<\/li>\n<li>\n<p>Lastly, it was a non-starter for appliance hosts that were not conducive to\nrunning plugins or having hacks made to their web server configs\nand really wanted certs copied in.  Things like routers and OpenVPN server\nVM images and the like...<\/p>\n<\/li>\n<\/ul>\n<h3>DNS-01<\/h3>\n<p>It turns out that there's a better way.  We can put the challenge in the DNS in the form of a TXT record.  It has the\nfollowing advantages:<\/p>\n<ul>\n<li>\n<p>Hosts for which you are issuing certs don't have to be accessible from the global Internet (i.e. you can now issue certs for your internal infrastructure on RFC-1918 space or non-routed IPv6 space.  More on that later.)<\/p>\n<\/li>\n<li>\n<p>It stands to reason that if they don't have to be on the Internet,\nthey don't have to be <em>up<\/em> either for Internet-connected hosts.  So\nnow we have the possibility of having good certificates generated\nfor servers that haven't been created yet.<\/p>\n<\/li>\n<li>\n<p>We can have wildcard certificates (i.e. *.home.example.com).<\/p>\n<\/li>\n<\/ul>\n<p>We host our own DNS, so putting records into a zone and taking them out again was a matter of just using tsig-signed UPDATE messages.  There's an Ansible module for that, it turns out.<\/p>\n<h3>Iron Chef Secret Ingredient:  CNAME<\/h3>\n<p>It turns out that mixing dynamically updated and static zones (we hand-edit most of our stuff) is a recipe for pain.  But\n<a href=\"https:\/\/github.com\/letsencrypt\/boulder\">Boulder<\/a>, the Let's Encrypt CA, has no problem following CNAMES.  Thus, one can create\na zone which is all-dynamic-update and CNAME into it, along these lines:<\/p>\n<p>Let's say we want to get a certificate issued for <code>www.example.org<\/code>.  We create a zone <code>acme.example.org<\/code> for which updates can be made automatically and for which there is no manually maintained content.  Then, we set up a CNAME record as follows:  <code>_acme-challenge.www.example.org  IN  CNAME _acme-challenge.www.example.org.acme.example.org<\/code>.  Then we can issue updates to <code>_acme-challenge.www.example.org.acme.example.org<\/code> and they'll be seen by Let's Encrypt as valid responses to the challenge.  This, by the way, even works cross-zone to different delegations out the bottom of the <a href=\"https:\/\/en.m.wikipedia.org\/wiki\/Public_Suffix_List\">Public Suffix List<\/a>, so you really only need one of these around to service all zones under one administrative control unless you fancy having more than one.  Just keep in mind that the ability to put records in <code>acme.example.org<\/code> translates into the ability to issue certs for any host that has a CNAME pointed into that zone, so you might want to think about authenticating with hmac-sha256 or better rather than hmac-md5 like all the dated examples on the internet have. <a href=\"https:\/\/technotes.seastrom.com\/2019\/03\/04\/dnssec-keygen-deprecated-for-tsig.html\">More here<\/a>.<\/p>\n<p>This is how our Ansible role works.  We have developed a <a href=\"https:\/\/www.gaige.net\/separating-ansible-roles-for-fun-and-profit.html\">thin playbook<\/a> workflow (which is pretty much the antithesis of the monorepo approach favored by some others), and the certificates get stored in the host_files subdirectory of the inventory_directory.  There, they can encrypted with Ansible Vault as a layer of protection against accidental data spills.<\/p>\n<h3>Certificate Transparency<\/h3>\n<p>My spidey senses are tingling.  Someone or some people are about to beat on my door right now and yell at me for putting records in the public DNS that relate to my internal servers.  After all, <code>_acme-challenge.supersecret.int.example.com IN TXT blah<\/code> is a pretty good clue that there is a host called <code>supersecret.int.example.com<\/code> even if you don't put the actual IP address in your external DNS right?  And putting your internal hosts in externally visible DNS is not a \"best practice\", amirite?<\/p>\n<p>Well, I've got some bad news there.  First off, security in obscurity isn't security at all.  But suppose it was...  is there any information being leaked here that isn't already being leaked via another channel?<\/p>\n<p>It turns out that if you're using a public CA, then <a href=\"https:\/\/en.wikipedia.org\/wiki\/Certificate_Transparency\">certificate transparency<\/a> is telling all your secrets.  Brought about by the Comodo compromise several years ago (which was hard to figure out that someone had issued new certificates on top of), CT publishes the public information associated with every\nnew X.509 certificate generated in near real time.  Pretty much all the public CAs are doing it too; the popular\nbrowsers have demanded it since 2016.<\/p>\n<p>Hackers who wear all shades of hats <a href=\"https:\/\/news.ycombinator.com\/item?id=17944402\">are hip to this<\/a>.  You can expect any\npenetration tester worth the money you're paying them to start here.  Since the horse is already out of the barn I'm not\ninclined to think of this as a big deal.  Note that the <code>_acme-challenge<\/code> name is a\ncompletely different domain name than the host domain name, and there is no\nreason whatsoever to have an A or AAAA record in the public DNS at that node.<\/p>\n<p>Don't want Certificate Transparency?  Fine.  <a href=\"https:\/\/smallstep.com\/\">Run your own CA<\/a>.  Plenty to <a href=\"https:\/\/github.com\/OpenVPN\/easy-rsa\">choose from<\/a>.  This is its own kettle of fish of course, since you'll need to populate your own trust anchor store, and may be more painful than it's worth or may be a complete non-starter if you have external customers.<\/p>","pubDate":"Thu, 20 Feb 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-02-20:\/2020\/02\/20\/letsencrypt-and-dns01.html","category":"misc"},{"title":"Swapping out locks on a GSA security container","link":"https:\/\/technotes.seastrom.com\/2020\/02\/18\/swapping-safe-locks.html","description":"<p>In the DC area, surplus <a href=\"https:\/\/www.gsa.gov\/buying-selling\/purchasing-programs\/requisition-programs\/gsa-global-supply\/nsns-and-product-lines\/security-containers\/types-of-security-containers\">Class 5 and 6 GSA security\ncontainers<\/a>\nare often available through the usual channels\n(<a href=\"https:\/\/www.dla.mil\/AboutDLA\/News\/NewsArticleView\/Article\/1997157\/signs-may-not-say-drmo-anymore-but-sites-still-have-same-great-service\/\">DRMO<\/a>,\n<a href=\"https:\/\/washingtondc.craigslist.org\">craigslist<\/a>, etc).  They're\ngreat for storing things like hard drives <a href=\"https:\/\/www.securis.com\/residential\/\">waiting to go to get\ndestroyed<\/a>, laptops with your CA\non them, trays of expensive RAM sticks, handguns, etc.  The correct\nsearch term, like so many things, is to go for the brand name -\n\"Mosler\" and to a lesser extent \"Diebold\" will minimize irrelevant\nhits.<\/p>\n<p>They're not quite as beefy as something like a gun safe but are entirely up to the task\nof securing most things against unauthorized access.  After all, Uncle Sam trusts them\nfor storing classified documents, right?  They have the added benefit of not being a fire\nsafe, so you won't have humidity issues.<\/p>\n<p>Back in the day, these came with Group 1R combination locks on them.\nThe 1 means tight tolerances, don't want to be off by even a half\ndigit.  The R is for \"resistant to radiological attack\".  In practice\nthis means plastic combination wheels so that x-raying the safe is a non-starter.<\/p>\n<p>In 1991, Mas-Hamilton (now part of Kaba-Mas) in collaboration with IBM\nreleased the X-07 combination lock, the first electronic lock certified by the\nfeds for protecting top secret information.  It was succeeded by the X-08, X-09, and\ntoday the X-10 which is current manufacture and the only model which is not EOL.<\/p>\n<p>Why an electronic lock?  In the mid 80s, with the advent of small\ncomputers, it was apparent to people in the security business that\ndevices which would automatically dial all possible combinations in a\n3-wheel mechanical combination lock (a bit less than 100^3 or one\nmillion) would become increasingly available, particular among the\nusual gang of spooks.  Today, they are a <a href=\"https:\/\/learn.sparkfun.com\/tutorials\/building-a-safe-cracking-robot\/all\">popular Maker\nproject<\/a>.\nAn electronic lock can take countermeasures against such robots via\ncountermeasures such as going to sleep for an interval after a certain\nnumber of bad combinations, imposing speed limits, and randomizing the\nstart point for each digit so that the spindle position no longer\ncorresponds to a number, in absolute terms.<\/p>\n<p>Like any electronic device, these were not without their bugs.  I was\nbitten last summer by my X-07 exhibiting the <a href=\"https:\/\/www.navfac.navy.mil\/navfac_worldwide\/specialty_centers\/exwc\/products_and_services\/capital_improvements\/dod_lock\/SecurityFactsNewsletter.html\">bit flip\nbehavior<\/a> for which they're known.  I had to \"neutralize\"\nthe container (that's Navy-speak for using power tools to cut the\nbolts on the control drawer so you can open it).  I was able to find a\ndamaged safe with a good control drawer for a good deal via a friend,\nso that's the route I took rather than paying a locksmith to drill the\nlock out.<\/p>\n<p>PTI (the Public Technical Identifiers arm of ICANN, the group that\namong other things maintains the DNS root and by extension the DNSSEC trust anchor) was\n<a href=\"https:\/\/mm.icann.org\/pipermail\/root-dnssec-announce\/2020\/000121.html\">recently bitten by a problem with their X-09\nlocks<\/a>,\nironically on the exact day an upgrade was planned.<\/p>\n<p>My problem last summer was enough to force a reconsideration of my\nthreat model.  What are my real risks?  Big surprise - they don't\ninvolve nation-state actors.  They also don't involve <a href=\"https:\/\/www.youtube.com\/channel\/UCm9K6rby98W8JigLoZOh6FQ\">Lock Picking\nLawyer<\/a> (who\nastute fans will point out isn't a safe lock guy) or <a href=\"https:\/\/www.youtube.com\/user\/bosnianbill\">Bosnian\nBill<\/a>.  What are my threats\nthen?  Common house burglars I guess...  but how about \"went 15 years\nwithout maintenance\" as an ingredient in the threat model?  It seems\nthat I should prioritize reliability over absolute level of security.<\/p>\n<p>It became clear to me that a less-precise but still reasonably secure\nsafe lock was the answer.  Group 2 combination locks fill this requirement and\nhave the added advantage of being reasonably inexpensive.  I don't care that\nthe container is technically no longer GSA certified - in fact the black-label\nsecurity containers like the ones I have are no longer GSA certified anyway -\nonly the current manufacture red-label ones are.<\/p>\n<p>With that as background, here's the BOM for my conversion:<\/p>\n<p>You can get either a spy-proof or a non-spy-proof (front reading)\ndial.  The SG6730-200 is the more expensive one (at $116.24) with the\nspy-proof dial.  You want the spy-proof dial because you read it from\nthe top rather than from the front, and so it is more convenient in\napplications where you\u2019re looking down on it from above\u2026 like a two\ndrawer file cabinet.<\/p>\n<p><a href=\"https:\/\/mbausa.com\/3-wheel-lock-spy-proof-dial-ring-black-white-pkg\/\">SG6730-200<\/a><\/p>\n<p>Order two extra spline keys.  You\u2019re not supposed to reuse them, and\nyou may have to take things back apart again to get it \u201cjust so\u201d.  At\na buck thirty four apiece it\u2019s cheap insurance.<\/p>\n<p><a href=\"https:\/\/mbausa.com\/s-g-spline-key-6600-6700-8500\/\">Extra Spline Keys<\/a><\/p>\n<p>You need a Mosler style replacement lock bolt for the S&amp;G lock.  If\n$61 seems too expensive to you and you know someone with a milling\nmachine that can take off 0.100 inches from the face of the bolt so it\nwill retract flush with the body - that works too.  I would have\nconsidered layout dye or a sharpie and a grinder or file if I didn't\nknow someone who could do this for me.  The length dimension is not\ncritical; it just needs to be \"approximately flush\".<\/p>\n<p><a href=\"https:\/\/mbausa.com\/lock-bolt-for-s-g-6600-6700-8400-8500-series-locks-tapped-10-32-retracts-flush-mosler\/\">Mosler-spec flush retracting bolt<\/a><\/p>\n<p>Lastly (and it\u2019s a little frustrating that this isn\u2019t an item on the\nweb site), there are two lengths of screws that can be used to mount\nthese locks - the short ones pretreated with threadlocker and the long\nones.  Used to be that both flavors came in the box with the lock.\nNow only the long ones do.  You need the short ones.  You can call the\npeople at the vendor and see if you can get the short ones.  You can\nalso grind\/cut\/whatever the long ones you've got.  The\n\"long\" flavor is 0.405\" thread \/ 0.575\" overall length. while the short\nflavor is 0.261\" thread \/ 0.454\" overall length.  The screws that\nwere used to mount a Kaba-Mas X-series lock are not suitable for use with\nan S&amp;G lock.<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=mjmLG8tNfWQ\">YouTube video on how to install them<\/a>.<\/p>\n<p>They are DEATHLY SERIOUS about not sticking the change key in with the\nback off the lock.  I\u2019ve done it, I\u2019ve messed the lock up, and I\u2019ve\nmanaged to set it straight again, but I was hating life for a while\nthere.<\/p>","pubDate":"Tue, 18 Feb 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-02-18:\/2020\/02\/18\/swapping-safe-locks.html","category":"misc"},{"title":"Rebuilding the Ansible jumphost under fire","link":"https:\/\/technotes.seastrom.com\/2020\/02\/12\/ansible-jumphost-rebuild.html","description":"<p>You only really appreciate just how much you've come to rely on a\nparticular tool in your bag of tricks when you're suddenly deprived of it.<\/p>\n<p>Today, I was trying to (manually - strike one) add awscli to my (production,\nstrike 2) Ansible jumphost.  Something went off the rails and I was left\nwith a broken Python YAML parser.<\/p>\n<p>If you know anything about Ansible, you know this is a really bad\nsituation.  Basically you can't get anything done at all.<\/p>\n<p>No problem - just rebuild it right?  Well...  how do I build my\nAnsible jumphost?  That's right... with Ansible.  But I blew away the\nstaging environment (from whence I build my production) in the\ninterests of saving a bit of RAM on the VM host.  And you need to do it\nfrom somewhere that's whitelisted for talking to the APIs for creating\nand destroying VMs.<\/p>\n<p>Ended up coming in over a VPN so I ended up within the whitelist cone\nand rebuilding staging and prod that way.  From my laptop.<\/p>\n<p>I count myself lucky here that there weren't any dependencies missing\nfrom my laptop that I really needed in order to make stuff work\nproperly.  After all, between pip and pkgsrc, I install 24 packages on\nthe Ansible jumphosts.  A fair amount of it is stuff like dnspython\nand pyOpenSSL that various playbooks depend on.  And the Ansible jumphosts are simple\ncompared to some stuff I deploy.<\/p>\n<p>The twofold lessons here are, (a) don't test in prod (and your main\nAnsible jumphost is absolutely \"prod\"), and (b) keep a spare jumphost\nenvironment around that you can rebuild your main jumphost environment\nfrom if things go sideways.<\/p>","pubDate":"Wed, 12 Feb 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-02-12:\/2020\/02\/12\/ansible-jumphost-rebuild.html","category":"misc"},{"title":"Good-enough security and Polycom phone network configuration notes","link":"https:\/\/technotes.seastrom.com\/2020\/02\/01\/polycom-security.html","description":"<p>As I've previously <a href=\"\/2018\/11\/01\/bye-bye-asterisk.html\">mentioned<\/a>,\nGaige and I have an assortment of Polycom VVX and old Cisco 7960\nphones floating around which we do VoIP on.  The 7960s might not\nbe long for the world though - I recently threatened a friend who\nhad a line on some freebies that I'd toss him a tarball of firmware\nand sample configs and then stop answering his calls and texts if\nhe went through with it.<\/p>\n<p>It's long been on my to-do list to get the Polycom provisioning server\nout of my basement and onto a public IP address, so that I can do\nconfiguration of phones at random locations (think parents' house,\netc).<\/p>\n<p>The basic constraints were:<\/p>\n<ul>\n<li>\n<p>It has to be reasonably secure.  Polycom's first tongue seems to be\nftp or tftp.  Vonage, for instance, wants to use ftp.  Tftp doesn't\ngo through NATs so well (Louie Mamakos wrote an open letter to hardware\nvendors about this back when he was CTO of Vonage).<\/p>\n<\/li>\n<li>\n<p>It had to be relatively low drag.  Maintaining IP whitelists is\nnot my idea of a good time.  Nor is manual configuration through\nthe front panel of the phone.<\/p>\n<\/li>\n<li>\n<p>In addition to tftp and ftp, the Polycoms also support http, or more\naccurately for our use case https since http is unencrypted just like\nftp and tftp are.  We (ClueTrust) have been using LetsEncrypt since it\nwas pre-release, and about a year ago transitioned from using HTTP-01\nhandshakes to DNS-01 handshakes.  Among other things this makes it\npossible to use to deploy wildcard certs, which is awfully powerful\nwhen combined with wildcard DNS records.<\/p>\n<\/li>\n<li>\n<p>Now that we've got things encrypted, the next question becomes one\nof authentication.  We're trying to hit the sweet spot here of effort\nvs.  security (see \"low drag\" above).  This ain't the Moscow hotline,\nand credentials for individual lines on prepaid VoIP doesn't really\nneed to be protected as if it is - there's no more than $30 or so at\nstake if someone starts running up our phone bill.  On the other hand,\nrunning an https server wide open to serve the files and counting on\nsecurity in obscurity to keep people from downloading the config files\nthat have predictable names that embed the phone's MAC address seemed\nlike a poor plan.<\/p>\n<\/li>\n<li>\n<p>In ascending order of \"pain in the\nbutt to implement\", we have:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.ietf.org\/rfc\/rfc2617.txt\">Auth_Basic and Auth_Digest<\/a>, built into the http spec<\/li>\n<li>client side\nauthentication (sometimes called \"mutual TLS\") using Polycom's\nbuilt-in-from-the-factory certs<\/li>\n<li>client side authentication while running our own CA.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>I deemed Auth_Basic to be \"close enough for government work\", either\nwith a different password per phone or a shared password for all\nphones under one administrative umbrella.  Has the added advantage of\nbeing built into NGiNX with the build that I run.  Difficulty: certain\nMicrosoft Skype for Business http servers (no doubt IIS or something\nsimilar under the hood) sunset support for Auth_Basic, so naturally Polycom followed\nsuit and got rid of Auth_Basic support in their software as well, several versions\nbehind the 5.9.2 that I'm currently running.<\/p>\n<\/li>\n<li>\n<p>Auth_Digest is marginally better than Auth_Basic, inasmuch as there\nare no unencrypted passwords flying around.  It's a challenge-response\nprotocol not unlike SIP's, wherein an initial authentication failure\nis returned with a nonce, which is then mixed into the hash for your\npassword and sent upstream as the response and hopefully\nauthenticating you.  I say \"marginally\" because Auth_Digest is a relic\nof the days when md5 was a fine hash to use against decently skilled\nactors (it is still just as good as it ever was if your threat model\nis limited to cosmic rays, by the way), and AFAICT there is no way to\nrun Auth_Digest with more modern hashes such as SHA-256.  In any event\nthis seemed to be a bit of a nonstarter since all I was able to find\nin the way of <a href=\"https:\/\/www.nginx.com\/resources\/wiki\/modules\/auth_digest\/\">Auth_Digest for\nNGiNX<\/a>\ncomes with the disclaimer: \"The module is feature-complete with\nrespect to the RFC but is in need of broader testing before it can be\nconsidered secure enough for use in production.\"  Thankfully, it does\nnot come compiled in to NGiNX.<\/p>\n<\/li>\n<li>\n<p>That brings us to client side certs.  I have no fear of running my\nown CA (I run several, and easyrsa3 makes it...  easy?), but sussing\nout how to load certs onto a factory initialized phone on a secure\nnetwork seemed to be a pain point that I didn't want to address.  PKI\nsolves half of the fabled \"key distribution problem\", but getting the\nsecret part of the key pair onto the device in a secure manner is\nstill a pain.  I believe that the OS inside a Polycom is some kind of\nUnix-y thing, but for some reason it appears they decided to use DER\nformatted certs instead of PEM, so that added an additional step and\nunfamiliarity-related-complexity to my approach.<\/p>\n<\/li>\n<li>\n<p>I decided to do a bit of a deep dive on whether Polycom's factory\ncertificates might be sufficiently useful.  I'd have to trust\n<a href=\"http:\/\/pki.polycom.com\">Polycom's root CA<\/a> - disappointingly\ndownloadable over http:\/\/ not https:\/\/ - for validating them.  I don't\ntrust Polycom's phones to have a hardened trust store in them or\notherwise be hardened against an attack with a JTAG cable, so I would\nwant to do a little more than just saying \"any Polycom phone can talk\nto my server and I'll trust it when it gives its MAC address\".\nLuckily for me, Polycom puts the MAC address (in all caps) in the CN\nof the X.509 client cert.  So if I validate the cert against the\nPolycom root CA and check for a CN that contains a MAC address that\nI'm expecting, I'm trusting Polycom to not get coerced into issuing\nduplicate certs for my MAC addresses.  I think I'm OK with this level\nof trust given how much easier it makes my life.<\/p>\n<\/li>\n<\/ul>\n<p>How does one do that with naked NGiNX though?  Plenty of recipes out there\nfor setting headers and passing through various certificate bits to\na back end, but there is no back end here - we're using NGiNX as a web server that\nserves files, not a proxy.<\/p>\n<p>The answer is to use \"if\" in the \/ location block (yeah, <a href=\"https:\/\/www.nginx.com\/resources\/wiki\/start\/topics\/depth\/ifisevil\/\">I know, I\nknow<\/a>\nbut if you read the fine print my use here is actually OK) in conjunction with map in\nthe \"http\" block.<\/p>\n<p>Like so:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>    map $ssl_client_s_dn $knownphone {\n        default       0 ;\n        &quot;~*00005e00530c&quot; 1 ; # vvx500 #1\n        &quot;~*00005E0053c7&quot; 1 ; # vvx550 #2\n        &quot;~*00005E0053ee&quot; 1 ; # vvx601\n    }\n...\n...\n    root \/somelocation\/configs ;\n    location \/ {\n\n             if ($knownphone = 0 ) {\n                  return 403;\n             }\n<\/code><\/pre><\/div>\n\n<p>This works nicely, with the disappointing caveat that the phone will\ntry to upload its logs with an HTTP PUT with a Content-Range: header.\nThis is explicitly prohibited in the penultimate paragraph of <a href=\"https:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.4\">RFC\n7231 section\n4.3.4<\/a>.  NGiNX,\nunsurprisingly, is RFC-compliant.  I'm going to guess that IIS allows\nit, and that Apache may or may not have a knob to allow it.  If\nPolycom wants to do things this way they really ought to be using the\nHTTP <a href=\"https:\/\/tools.ietf.org\/html\/rfc5789\">PATCH<\/a> command.<\/p>\n<p>Might decide to write something in node.js to support this in my\ncopious spare time (who am I kidding here?)<\/p>\n<p>How does one get the initial provisioining server into the\nconfiguration?  Through the keyboard on the front right and enter URLs\nwith <a href=\"https:\/\/en.wikipedia.org\/wiki\/T9_(predictive_text)\">T9<\/a>?\nUh. no.  If you do it right, you can configure a factory-reset phone\nby feeding it some extra DHCP options, which can then be made\npersistent so that future dhcp requests don't have to have it (see\n\"send phone to your parents\" use case).  Note that I have never tried\nprovisioning a phone with a truly old OS release (and trust store)\nagainst a LetsEncrypt cert on an https server, so I might gently\nsuggest bringing the software current over http:\/\/ in a trusted\nenvironment before trying to provision across the Internet.  Note that\nit will use the first of the NTP servers you hand it, so maybe\npool.ntp.org is your best choice if you're going to be putting these\nout on random places on the Internet.<\/p>\n<p>Here are the salient bits for isc-dhcpd:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>option polycom-vlan             code 128 = text;\noption polycom-server            code 160 = text;\noption PCode code 100 = text;\noption TCode code 101 = text;\noption TCode &quot;US\/Eastern&quot; ;\n\ngroup {\n        default-lease-time 172800 ;\n        max-lease-time 604800 ;\n\n# pick one\n        option polycom-server &quot;http:\/\/polycom-phones.lan.example.com\/&quot; ;\n        #option polycom-server &quot;https:\/\/polycom-phones.example.com\/&quot; ;\n\n        option TCode &quot;US\/Eastern&quot; ;\n\n        host vvx500-00005e00530c {\n                hardware ethernet 00:00:5e:00:53:0c ;\n                fixed-address 192.0.2.30 ; }\n\n        host vvx500-00005e0053c7 {\n                hardware ethernet 00:00:5e:00:53:c7 ;\n                fixed-address 192.0.2.31 ; }\n\n        host vvx500-00005e0053ee {\n                hardware ethernet 00:00:5e:00:53:ee ;\n                fixed-address 192.0.2.32 ; }\n}\n<\/code><\/pre><\/div>\n\n<p>Since I've got a wildcard cert under *.polycom-phones.example.com, I\ncan have multiple constituencies (software versions, OT&amp;E, etc) neatly\ntemplated out in the Ansible for the nginx.conf without having to make\nany DNS or certificate changes.<\/p>\n<p>I hope this is useful to someone and avoids some of the slog through\nthe Polycom documentation with pages and pages on how to configure IIS\nvia the GUI but comparatively little in the way of technical details\non what's actually expected under the hood.<\/p>","pubDate":"Sat, 01 Feb 2020 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2020-02-01:\/2020\/02\/01\/polycom-security.html","category":"misc"},{"title":"Things I won't do again","link":"https:\/\/technotes.seastrom.com\/2019\/12\/12\/wont-do-that-again.html","description":"<p>I was in a hurry and \"didn't have time to properly clean out all\nsensitive data\" from a work in progress, so I handed Gaige a tarball.<\/p>\n<p>Not a pointer to a repo or a tarball that included a local repo...  a tarball.<\/p>\n<p>Then I made some tweaks myself.<\/p>\n<p>You can probably imagine the mess that ensued.  Took me a couple of hours to clean up.<\/p>\n<p>If we used github we\ncould have used private repos.  As it stands, we self-host on\ngitolite.  No great harm if we check in low sensitivity credentials\nlike smtp auth or something.<\/p>\n<p>In the future I will remember that we can always rebase or just quash\nthe repo and push a completely new version.  Not putting stuff under version control before sharing was a dumb idea.  :-)<\/p>","pubDate":"Thu, 12 Dec 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-12-12:\/2019\/12\/12\/wont-do-that-again.html","category":"misc"},{"title":"systemd - dissatisfaction guaranteed","link":"https:\/\/technotes.seastrom.com\/2019\/09\/23\/systemd-timesyncd-fail.html","description":"<p>Hating on systemd is widely considered good sport.  That said, rants\nare rarely backed up with good observations about <em>why<\/em> it's\nunsatisfactory, merely complaints about it being different from\nsysvinit.<\/p>\n<p>I've <a href=\"\/2017\/08\/17\/autossh-systemd-raspi.html\">written before<\/a> about\n<a href=\"\/2018\/02\/11\/systemd-codicil.html\">making systemd do what I want<\/a>, and\nhave had decent experience bending it to my will.  This is entirely\nunsurprising since I've got extensive experience with Solaris' SMF and\nsome experience with Apple's launchctl.<\/p>\n<p>One of the widely repeated complaints about systemd is that it\nincorporates stuff into the init daemon family that has no business\nbeing there, at direct odds to the Unix philosophy of having different\nwell-developed tools for different things.  Rarely, though, does the\nissue of substandard implementation get called out.<\/p>\n<p>I'm in the process of setting up a bare metal environment for packet\ncapture since I'm trying to figure out what's making a certain router\nsick.  Built with Ubuntu 18.04 LTS Server (with a fresh apt-get update\n&amp;&amp; apt-get upgrade), I thought it would be good to make sure ntp was\nworking properly since I am going to try to correlate traffic and\nbadness in logs on a router.  I took a look at systemd on this freshly\ninstalled and upgraded machine at home and here's what I found:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>root@bigbrother:~# systemctl status systemd-timesyncd.service \n\u25cf systemd-timesyncd.service - Network Time Synchronization\n   Loaded: loaded (\/lib\/systemd\/system\/systemd-timesyncd.service; enabled; vendor preset: enabled)\n   Active: active (running) since Sun 2019-09-22 21:35:18 UTC; 7min ago\n     Docs: man:systemd-timesyncd.service(8)\n Main PID: 4434 (systemd-timesyn)\n   Status: &quot;Synchronized to time server 172.30.250.126:123 (172.30.250.126).&quot;\n    Tasks: 2 (limit: 4915)\n   CGroup: \/system.slice\/systemd-timesyncd.service\n           \u2514\u25004434 \/lib\/systemd\/systemd-timesyncd\n\nSep 22 21:35:17 bigbrother systemd[1]: Starting Network Time Synchronization...\nSep 22 21:35:18 bigbrother systemd[1]: Started Network Time Synchronization.\nSep 22 21:35:18 bigbrother systemd-timesyncd[4434]: Synchronized to time server 172.30.250.126:123 (172.30.250.126).\nSep 22 21:37:46 bigbrother systemd-timesyncd[4434]: Network configuration changed, trying to establish connection.\nSep 22 21:37:46 bigbrother systemd-timesyncd[4434]: Synchronized to time server 172.30.250.126:123 (172.30.250.126).\nSep 22 21:40:16 bigbrother systemd-timesyncd[4434]: Network configuration changed, trying to establish connection.\nSep 22 21:40:16 bigbrother systemd-timesyncd[4434]: Synchronized to time server 172.30.250.126:123 (172.30.250.126).\nSep 22 21:42:45 bigbrother systemd-timesyncd[4434]: Network configuration changed, trying to establish connection.\nSep 22 21:42:45 bigbrother systemd-timesyncd[4434]: Synchronized to time server 172.30.250.126:123 (172.30.250.126).\nroot@bigbrother:~# \n<\/code><\/pre><\/div>\n\n<p>Well.  That's pretty odd...  network configuration \"changed\" every 150 seconds.  Wonder what could be...  oh drat...<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>pi@raspi-woodburn-dhcpdns-ups:~ $ grep ^default-lease-time \/etc\/dhcp\/dhcpd.conf\ndefault-lease-time 300;\npi@raspi-woodburn-dhcpdns-ups:~ $ \n<\/code><\/pre><\/div>\n\n<p>Yep, looks like the \"renew at half the expiration time\" standard\nbehavior of DHCP clients.  We run a short DHCP lease everywhere at\nClueTrust for reasons that date back to Windows 98's DHCP client.\nMost clients handle it with aplomb and don't have any difficulties\nwith the fact that they are doing renewals fairly frequently.  In\ntruth, with well-behaved clients the only problem with running a short\nDHCP lease period is load on the DHCP server, and our device community\nhere is orders of magnitude too small to be worried about that, even\non a Raspberry Pi as a server.<\/p>\n<p>Apparently, systemd-timesyncd knows too little about the state of the\nnetwork to be smart about whether the network configuration actually\nchanged or not when DHCP renewal happens.<\/p>\n<p>One could argue that this is no great loss given that\nsystemd-timesyncd is actually an SNTP implementation not a full-on NTP\nimplementation such as chrony or the reference NTP implementation and\nits forks.  As such it's not really capable of that good accuracy to\nbegin with and has essentially no long-term trending or PLLs in it for\ngently drifting the system's clock - one can think of it as being\nscarcely better than running ntpdate out of a cron job.<\/p>\n<p>For my production stuff I tend to disable systemd-timesyncd and run\nstandard ntpd as an included Ansible role; I would have never noticed\nthis misbehavior if I hadn't been doing a handbuilt one-off, but then\nagain I wouldn't have been potentially affected by it either.<\/p>","pubDate":"Mon, 23 Sep 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-09-23:\/2019\/09\/23\/systemd-timesyncd-fail.html","category":"misc"},{"title":"running VyOS from USB","link":"https:\/\/technotes.seastrom.com\/2019\/09\/06\/running-vyos-from-usb.html","description":"<p>At ClueTrust we have had good experiences running from high quality\nUSB sticks, for software that is designed to run off USB or SD cards\nsuch as ESXi and SmartOS.<\/p>\n<p>VyOS is not one of those software packages.  It appears to try to swap\nto the usb stick, which results in pain.  It certainly writes logs to flash.<\/p>\n<p>What's the pain?  Well, on a Dell R620 we eventually noticed\ncomplaints about filesystem write issues on the thumb drive popping up\non the console.  But the main thing we were seeing is spates of\nwatchdog timeouts on various cores.  My hypothesis based on some\nchanges we made that made things better but didn't fix them completely\nis that we had some sketchy stuff going on in bursts that was\noverwhelming log writing to the usb drive.<\/p>\n<p>Switching to raid1 behind an H310-Mini with default firmware on it\nfixed that, and the system is behaving much better.<\/p>\n<p>Oh, the high quality thumb drives we've used for booting SmartOS\netc. are Sandisk Cruzer Fit in whatever's the cheapest size (4 and 8gb\nare no longer being made and are more expensive than 16g these days).\nAvailable in multi-packs on Amazon.<\/p>","pubDate":"Fri, 06 Sep 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-09-06:\/2019\/09\/06\/running-vyos-from-usb.html","category":"misc"},{"title":"techmikeny knows how to box a server","link":"https:\/\/technotes.seastrom.com\/2019\/08\/20\/techmikeny-knows-how-to-box-a-server.html","description":"<p>I recently bought a server from\n<a href=\"https:\/\/techmikeny.com\">techmikeny.com<\/a> after seeing an unboxing\nphotoset on Reddit.<\/p>\n<p>They own a foam machine and know how to use it.  I'm quite tired of\ndealing with secondhand servers that arrive broken because they were\nimproperly packed.  The photoset I saw on Reddit gave me high hopes\nfor getting servers from techmikeny.<\/p>\n<p>It wasn't a fluke and I wasn't disappointed.  These guys know how to\npack stuff.  UPS did their worst to the box but my 1u server arrived\nintact.  With a complimentary box of candy, which I can't eat lest\nsomeone accuse me of being a cannibal.<\/p>\n<p><img alt=\"All edges taped\" src=\"\/assets\/2019-08-20-techmikeny-knows-how-to-box-a-server\/IMG_3571.png\" \/><\/p>\n<p><img alt=\"End of the box took some damage\" src=\"\/assets\/2019-08-20-techmikeny-knows-how-to-box-a-server\/IMG_3572.png\" \/><\/p>\n<p><img alt=\"Corner took even more damage\" src=\"\/assets\/2019-08-20-techmikeny-knows-how-to-box-a-server\/IMG_3573.png\" \/><\/p>\n<p><img alt=\"Everything is fine on the inside\" src=\"\/assets\/2019-08-20-techmikeny-knows-how-to-box-a-server\/IMG_3574.png\" \/><\/p>\n<p><img alt=\"If I eat this box of candy, I'm a cannibal\" src=\"\/assets\/2019-08-20-techmikeny-knows-how-to-box-a-server\/IMG_3575.png\" \/><\/p>","pubDate":"Tue, 20 Aug 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-08-20:\/2019\/08\/20\/techmikeny-knows-how-to-box-a-server.html","category":"misc"},{"title":"In praise of PC-11","link":"https:\/\/technotes.seastrom.com\/2019\/08\/19\/in-praise-of-pc11.html","description":"<p>We put our nice knives (Wusthof and Henckels stainless) in the\ndishwasher like the barbarians we are.<\/p>\n<p>A dozen or so years ago, my housemate had a mishap with a paring knife\nthat resulted in it falling on the heating element in the bottom of\nthe dishwasher which melted a huge divit into the side of the handle.<\/p>\n<p>She replaced the knife.  I figured I'd try fixing it.  Ground the\nedges of the divot down flush and went looking for something suitable\nto fill it with, which turned out to be\n<a href=\"https:\/\/www.pcepoxy.com\/products\/permanent-repair\/pc-11-paste-epoxy\/\">PC-11<\/a> - the marine-grade brother to\n<a href=\"https:\/\/www.pcepoxy.com\/products\/permanent-repair\/pc-7-paste-epoxy\/\">PC-7<\/a>\nputty epoxy.<\/p>\n<p>It made a functional if not pretty repair.  We continued putting our\nknives in the dishwasher since we are still barbarians.<\/p>\n<p>Twelve years later, this is how it looks.<\/p>\n<p><img alt=\"A proper and permanent repair\" src=\"\/assets\/2019-08-19-in-praise-of-pc11\/IMG_3637.png\" \/><\/p>","pubDate":"Mon, 19 Aug 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-08-19:\/2019\/08\/19\/in-praise-of-pc11.html","category":"misc"},{"title":"Good tools, less money","link":"https:\/\/technotes.seastrom.com\/2019\/08\/08\/good-tools-for-less.html","description":"<p>I recently became aware of a couple of interesting resources for\ngetting good quality tools without going broke.<\/p>\n<p>The first one is a list from 2014 entitled <a href=\"http:\/\/toolsinaction.com\/10-hand-tool-brands-that-dont-get-the-love-they-deserve\/\">10 Hand Tool Brands That Don\u2019t Get The Love They Deserve<\/a> (<a href=\"\/assets\/2019-08-08-good-tools-for-less\/10_Hand_Tool_Brands_That_Dont_Get_The_Love_They_Deserve.pdf\">local copy here<\/a>).<\/p>\n<p>Personal favorites on that list include Proto (yes, they're still in\nbusiness!) and Wright.  My 3\/4\" breaker bar and the socket I use on\nmower blades are both Wright and they're super nice.<\/p>\n<p>The second one is a web site called <a href=\"https:\/\/www.tooltruckrebrands.com\/\">Tool Truck Rebrands<\/a> which is pretty much what it says on the tin.  It will come as no surprise to people who are students of supply chains and know, for instance, that there is a <a href=\"https:\/\/www.thedailybeast.com\/your-craft-whiskey-is-probably-from-a-factory-distillery-in-indiana\">huge wholesale market in bulk whiskey<\/a> and that the local craftwork is ageing and blending (our local distillery, Bowman's, actually uses feedstock from Buffalo Trace) that a lot of the tools from tool truck manufacturers are actually OEMed elsewhere and have exact duplicates available from OTC, Lang, etc.<\/p>\n<p>Check them both out.<\/p>","pubDate":"Thu, 08 Aug 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-08-08:\/2019\/08\/08\/good-tools-for-less.html","category":"misc"},{"title":"Hey Dell, where did you hide the boot order in your BIOS?","link":"https:\/\/technotes.seastrom.com\/2019\/08\/08\/hey-dell-wheres-boot-order.html","description":"<p>I always forget this and just spent a half hour looking for it and googling online.<\/p>\n<p>You know how the less important stories are always hidden \"below the\nfold\"?  Dell did this for the BIOS boot order settings.  Because who\nwould ever want to set to boot off the thumb drive by default?<\/p>\n<p>Note the position of the scroll bar.  When you first go to this page,\nthe hard disk sequence choice is not visible.<\/p>\n<p><img alt=\"Thanks guys\" src=\"\/assets\/2019-08-08-hey-dell-wheres-boot-order\/dell_bios_screenshot.png\" \/><\/p>","pubDate":"Thu, 08 Aug 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-08-08:\/2019\/08\/08\/hey-dell-wheres-boot-order.html","category":"misc"},{"title":"Tractor Feature Shopping List","link":"https:\/\/technotes.seastrom.com\/2019\/08\/07\/Tractor-Shopping.html","description":"<p>In August 2011, fresh off buying a house and needing something to look\nafter the yard I went tractor shopping.  What I ended up buying was a\nsound choice given the information available to me at the time, and\nI'm grateful to my salesman for wanting to make sure that he wasn't\nselling me stuff that I didn't need, but I've had multiple iterations\nof adding stuff to my base model tractor that I would have added to\nKubota's \"five years same as cash\" deal if I'd only known about it\nwhen I was first buying the tractor.  In short, I'm a lot more\nsensitive to features and utility than I am to an extra $75 or $100 in\nmy monthly tractor payment.<\/p>\n<p>When I went tractor shopping with Jeff a couple of years ago I gave\nhim a bunch of my thoughts about lessons learned, but didn't write\nthem down.  Now Bill is shopping for a bigger tractor and I figure I\nought to both write down my impressions and add in a bit of Jeff's\nand JT's thoughts.<\/p>\n<p>The one thing I got as an option because it was inexpensive and I\nthought it would be useful was \"cruise control\", which is Kubota-ese\nfor \"sticky hand control for the HST pedal\".  If I had it to do over\nagain I wouldn't bother.  It is not particularly useful for mowing,\nparticularly on hilly ground, and it only works in forward so if you\nhad any ideas of it making slow backing with a snow blower or drag\nblade on easier, forget it.<\/p>\n<h2>Capabilities and Attributes<\/h2>\n<h3>Physical<\/h3>\n<p>It's easy to say \"bigger is better\" particularly if one is not\nparticularly price sensitive, but can you get the tractor indoors to\npark it with an implement hooked on (i.e. too tall for the garage\ndoor)?  How about length?  It's not uncommon to be 20 feet or more\nonce one puts on a decent sized bushhog.  Will that fit in the garage?<\/p>\n<p>How about weight?  Do you plan to take the tractor anywhere on a\ntrailer like a friend or relative's house or a remote property where\nyou're building?  A lot of dual axle flatbed trailers max out at 7200\npounds, which can be a little tight when you add together the weight\nof the trailer, the tractor, and any implements you're hauling around.\nBigger trailers are available, which may exceed the capacity of your\ntow vehicle.  Unless you have an F350 and a gooseneck trailer sitting\naround idle, this is likely a consideration if you plan to haul your\ntractor around.<\/p>\n<p>JT points out that turning radius (of the tractor, not the truck and\ntrailer) is a very big deal.  You can waste a LOT of time (more than\nyou might think) mowing already-mowed-grass if your turning radius is\nbad. Try it out in the lot.  4wd and agricultural tires (\u201cag tires\u201d)\nmake this worse, so it\u2019s a tradeoff.<\/p>\n<p>Speaking of four wheel drive, you probably want it.  You can turn it\noff when you don't need it.<\/p>\n<h3>Loaders<\/h3>\n<p>I have a loader.  Jeff has a loader.  Bill is looking for a loader.\nWhat are the things you care about with a loader?  <\/p>\n<h4>Capacity<\/h4>\n<p>The amount of weight that a loader can lift is generally specified one\nof two ways: at the pivot pin, and 500mm forward of the lift pin.  The\nfirst gives you a higher number.  The second gives you a more\nrealistic idea of what it can lift.  Neither includes the weight of\nwhatever implement you're using (forks, bucket, etc).  All\nspecifications assume a properly ballasted tractor; this might include\nan accessory or rock box on the 3-point, fluid in the tires, etc.  A\nheavier lift capacity implies a heavier (bigger) tractor and\neverything that goes along with it, however an undersized loader can\nbe a safety issue or a serious constraint on what work you can get\ndone.<\/p>\n<h4>Height<\/h4>\n<p>How high the loader will go is critical if you plan to use it with\nforks to put stuff in the upstairs of your barn.  One of my friends\nfound himself with a larger tractor than he might have otherwise\ngotten on account of deciding he was through with carrying hay bales\nfor the alpacas upstairs by hand.<\/p>\n<h4>Quick-tach<\/h4>\n<p>If you're an owner-operator, have common sense, and take good care of\nyour stuff, you absolutely want an SAE J2513 quick-attach system,\na\/k\/a Bobcat Quick-Attach.  It's the method used to attach all sorts\nof implements to skid steer loaders.  If you have hired people who\nhate you or are not so swift you might not want this - it is\nabsolutely possible to get youself into trouble or damage the tractor\nby putting an implement intended for an 8000 pound skid steer on a\n4000 pound compact tractor.<\/p>\n<p>Having one of these makes it super easy to swap back and forth between\ngrapples, different size buckets, forks, and all sorts of other\nimplements you might have around.<\/p>\n<h4>Third Function Valve<\/h4>\n<p>If you think you might get a four-in-one bucket, a grapple, or\nsomething similar that's hydraulically actuated to go on the front of\nyour tractor (such as a pivot for a snow plow blade) you should go\nahead and get the third function valve installed.  It's called \"third\"\nbecause the first two functions, up\/down and curl, are already built\ninto your loader.<\/p>\n<h4>Ease of loader removal<\/h4>\n<p>Most loaders these days can be set up on a stand and detached from the\ntractor with some level of difficulty.  The whole thing.  Not just the\nattachment on the business end.  I never take my loader off but then\nagain I use it pretty frequently and so the juice isn't worth the\nsqueeze.  Besides, then I'd have to invest in suitcase weights for\nwhen I\"m using the mower without the loader.  JT says he takes his off\nregularly and that it helps a lot with maneuverability.  Try this out\nat the dealer even if you think you'll never take your loader off.<\/p>\n<h3>Fender\/Wheel Clearance and Chains<\/h3>\n<p>Plowing snow on any kind of an incline, no matter how shallow, can be\na bit of a challenge especially here in the Mid-Atlantic where we tend\nto get a lot of ice or heavy wet snow.  Good snow chains (only on the\ndrive wheels; four wheel drive tractors are not designed for chains on\nall four wheels!) will help immensely with not sliding around.<\/p>\n<p>But you need clearance for them under the fenders.  Most tractors have\nplenty around the circumference of the wheel but if you're short on\nthe proximal side, you may have to add wheel spacers to get the wheels\nout far enough that you're able to get the chains on and off easily,\navoid scraping, or both.<\/p>\n<p>By the way, ladder-style tractor tire chains come in two common\nvariants: two-link and four-link.  Two-link means that there is a\ncross-chain (\"ladder rung\") every two links on the stringer.\nFour-link means every four.  I bought two-link chains on the basis\nthat more traction and less slip is better, without stopping to think\n\"hey, these things weigh almost twice as much as four-link chains\nbecause they have twice the crossmembers\".  I'm sure that as I get\nolder, one Christmas I will decide that I want Santa to bring me a\nchain repair tool and use it to convert my 2-link chains to 4-link.<\/p>\n<h3>Tires<\/h3>\n<p>There are three kinds of tires that are regularly found on tractors:\nR1, R3, and R4.  Aside from the R4 industrial tires nobody calls them\nby their tread pattern name though - R1 tires are \"ag tires\", the\nclassic aggressive tread tractor tire, and R3 tires are what's known\nas \"turf tires\".  Much less hard on whatever you're driving over and\nless likely to tear up your grass.  The R4 industrial tires (same\ntread pattern as found on a skid steer loader) are billed as a\ncompromise design, but the place where I was hoping that the\ncompromise would get me (acceptable performance in the snow) turned\nout to be for naught - if I had it to do over again I would get turf\ntires and chains from day one.<\/p>\n<p>JT's commentary: If you\u2019re not doing land clearing or muddy work, you\nmay consider getting \u201cturf tires\u201d instead of ag tires.  This sounds\ncounterintuitive, but in some cases the turf tires will give better\ntraction, and will destroy your property less. In the wet season,\nyou\u2019ll be hesitant to take the tractor out because it will leave giant\ndents on anything it drives over (including driveways, where it will\nde-compress your nice gravel) so it is worth serious thought. I almost\nnever drive the tractor on the \u201cnice grass\u201d or even the gravel drive\nbecause it just chews things up completely after just one pass. When I\nhad turf tires, it was not a concern in the least and I got more\nutility out of the tractor because of the wider range. In the winter,\nchains make the turf tires mostly as useful as the ag lugs.  I\u2019ve had\nboth; I prefer the turf tires for 90% of the work that I do, and the\n10% of \u201cheavy gruntwork\u201d where they are non-optimal could probably be\nsolved with chains.  I can\u2019t think of a time in the last year that I\nwould have needed ag lugs to do the work that I do with the tractor.\nI am not plowing fields with it; I\u2019m managing a homestead.<\/p>\n<p>Before we leave the subject of tires, there are three kinds of fluid\nusually used for tractor tire ballast:<\/p>\n<ul>\n<li>\n<p>Calcium Chloride.  Cheap.  Heavy.  Corrosive.  You'll be paying for new rims eventually.<\/p>\n<\/li>\n<li>\n<p>Methanol and water mix (aka windshield wiper fluid - tractor\ncompanies buy it by the IBC tote full).  Not as heavy as calcium\nchloride.  Toxic to some degree but I don't think a spill on the order\nof a few dozen gallons is reportable (all bets are off if you live in\na state like California or a locality that apes their environmental\nregulations).  More expensive than calcium chloride, but still not\noutrageous.  And not corrosive.<\/p>\n<\/li>\n<li>\n<p>Sugar beet juice.  This is some heavy dense stuff.  It's not toxic.  Indeed\nit's a component in what some localities use to pre-treat the roadways\nwhen a storm is coming.  It's more expensive than methanol.  <\/p>\n<\/li>\n<\/ul>\n<p>I have methanol in my tires.  If I had it to do over again I'd\nprobably spec sugar beet juice, but I'm not sure the improvement is\nenough to warrant wasting the sunk expenditure of the stuff I already\nhave in there and the labor to swap it out.<\/p>\n<h3>HST (and live PTO) not manual gearbox<\/h3>\n<p>You want a hydrostatic transmission and an independent PTO, not a\nmanual gearbox.  This makes it easy to sneak up in tight spaces while\nstill running your mower at optimal PTO speed.  Anything other than\n\"independent PTO\" is old-school and not preferred.  The\ntractordata.com site has a brief page that contrasts the <a href=\"https:\/\/www.tractordata.com\/articles\/technical\/pto.html\">various\ntypes of\nPTOs<\/a><\/p>\n<h3>Three Point Hitch Specifics<\/h3>\n<h4>Turnbuckle check chains suck<\/h4>\n<p>A 3-point hitch is by design sloppy and loose and needs something to\nhold it steady in use such that the implement doesn't sway into the\nwheels of the tractor.  Old Fords used chains for this purpose, and\nthe name \"check chain\" has stuck.<\/p>\n<p>In its budget\/entry trim tractors, Kubota likes to use turnbuckle\nstyle check chains with a jam nut to keep them from vibrating loose,\nwhich doesn't generally go to plan unless the tractor application is\none where the implement goes on the 3-point and then doesn't come back\noff for literally years.<\/p>\n<p>With wheel spacers on my L3700SU (which I needed anyway for the snow\nchains), I was able to swap out my turnbuckle style check chains for\npin and telescoping sleeve style such as one finds on the L Grand.\nDiscuss your options with your dealer.<\/p>\n<h4>Rear Hydraulic Remotes<\/h4>\n<p>You may want one, two, or three hydraulic remotes on the back of your\ntractor next to the three-point hitch.  This depends on application.\nJeff does grading and has a hydraulically actuated drag blade.  I\ndon't have any remotes on the back and wish I did; when I use my\ntractor-powered hydraulic log splitter I am forced to hook it up to\nthe loader's connections and bungee cord the control stick over.<\/p>\n<p>There is a variant of a rear remote called a \"backhoe loop\" which is\nhigher flow than a normal remote and is basically a splittable hose on\nthe power-beyond port with no valve to control it.  This would be a\nspiffy way to run either a log splitter or a removable backhoe that\ngoes on a rear frame mount on the tractor.<\/p>\n<p>JT points out that some folks call these \u201crear take-offs\u201d - these are\nmandatory in his book.<\/p>\n<h4>Three Point Quick Attach Unnecessary?<\/h4>\n<p>There are people who have quick attach systems for the 3-point hitch\nwho swear by them, and JT is one of 'em.  He says the ones he has are\nfantastic and save him hours of time a year and leaping on-off the\ntractor a million times.  He's used both the \u201cold\u201d method and the\nquick attach method. Night and day hassle reduction.  The system he has\n<a href=\"https:\/\/www.agrisupply.com\/pats-point-quick-hitch-category\/p\/70079\/\">is from Agrisupply<\/a><\/p>\n<p>My experience is that the sizes of implements that go on the 3-point\nvary widely enough that you're going to be on the hook for some\nadjustment anyway.  I've played with 'em at the dealership and it\nnever seems as easy as it looks in the sales videos on YouTube.<\/p>\n<p>The good news is that if you choose wrong on this, they're super easy\nto add or delete in the field (well, not literally in the field,\nprobably in your garage).<\/p>\n<h4>Buy a San Angelo Bar<\/h4>\n<p>For levering stuff back and forth into position when you've got it\nhalf on and half off the 3-point, it's hard to beat a San Angelo bar\n(variously called a digging bar in some quarters).  Tractor Supply has\n'em.  It takes some practice, but installing and removing medium size\nimplements like various size mowers, snow blowers, and blades is an\neasy one person job when you've got a 5 foot long steel rod in your\nhand.<\/p>\n<h4>Buy a drawbar<\/h4>\n<p>When towing around fallen trees or the like, it can be tempting to\nconnect the tow chain to the 3-point hitch.  Don't do it!  All modern\ntractors have a place to put a proper drawbar.  Keep a drawbar and a\nshackle to connect to it on hand (it may even be possible to leave it\ninstalled all the time).<\/p>\n<p>Hooking to the 3-point will likely end up having the tow point higher\nthan the centerline of the rear axle.  Which is fine right up until\nthe towed load snags on something.  The forces then combine to make\nthe tractor flip over backwards.  Back in the days before ROPS was\nmandatory, several people a year used to die this way.  Nowadays, it's\nrare to hear of someone who was wearing a seat belt getting killed by\nflipping a tractor but it's still plenty unpleasant and will be a\nnasty insurance claim.<\/p>\n<h3>Accessories<\/h3>\n<h4>Heavy Duty is Heavy Weight<\/h4>\n<p>One thing to keep in mind across all accessories is that heavy duty\nmeans heavy weight.  We've discussed owner-operator vs. hired crew\nbefore, but it is worth underlining here - if you fall into the\n\"gentleman farmer\" or \"hobbyist\" genre, and are operating your own\nstuff carefully, you can probably do <em>more<\/em> with the lighter duty\nequipment than you can with the heavy duty equipment.<\/p>\n<h4>You want forks - trust me on this<\/h4>\n<p>Few things are as life-changing as forks.  Planting trees?  No\nproblem, hang the pallet of bags of topsoil over each hole, stab with\na spade, shake - no lifting!  Going camping?  Those three 94-quart\nIgloo coolers are a one person job to move from the deck down to the\npickup truck when you can slide them onto a pallet first and drive\nslowly down the hill with them.  Need to stash some spare landscaping\nbrick and then your friend texts you to borrow the trailer that you\nstored it in front of to run an errand?  Not a problem if it's on a\npallet - you can stash it elsewhere in about 20 seconds.<\/p>\n<h4>Grapples<\/h4>\n<p>Kim didn't understand why I was so stoked to have a giant claw for the\nfront end of my tractor.  Then we had a tree blow down and I had her\ndrive the tractor to stash pieces of log elsewhere while I sectioned\nit up with a chain saw.  She was quickly super-impressed by it.  Jeff\nsays he uses the grapple more than the forks, but he's clearing land\nat his place these days.<\/p>\n<h4>Reinforced grill guard<\/h4>\n<p>I'm told that if you're driving into brush a lot in the interests of\nclearing stuff out or checking out the limits of what your bushhog can\nhandle, you might want to consider getting a reinforced grill guard\nbefore you have to pay for a new hood or something.  I have no strong\nopinions on this matter except to point out that there are people with\na forestry mulcher on a skid steer only 15 miles down the road and\nthey made short work of my thicket when I had them over a couple of\nyears ago.  So you might say \"I have people for that\".<\/p>\n<h4>Mowers<\/h4>\n<p>Belly mowers, particularly the drive on\/over type, suck.  Pain to get\nto the blades for sharpening, and they take out a lot of your ground\nclearance.  They also require a mid-PTO, which can unnecessarily\nconstrain your choices in tractors.  There's something to be said for\na zero turn mower when you're keeping a lot of grass mowed, especially\nif it's been graded sufficiently that one can do it at speed (our\nproperty is not that flat).  But they're expensive; a good one will\nset you back several thousand dollars and it's yet another small\nengine to maintain.  If you're going to be mowing with a tractor,\nsomething that goes on the 3-point hitch, be it a brush hog, a flail\nmower, or a finish mower (depending on the application) is the right\nthing.  Maybe even a tow-behind multi-gang reel mower if you happen to\nhave a golf course or athletic field at your house.<\/p>\n<p>I have a finish mower and a bushhog.  One of the nice things about a\nfinish mower is that blade swapping for sharpening is super easy -\njust pick the mower up with the 3-point, put jack stands underneath\n(important!  don't trust hydraulics to hold even on a new tractor;\nthat's how people die), crawl under with a breaker bar, and get your\nblades.<\/p>\n<p>The manual for your finish mower will give you dry torque values for\nthe blade bolts and not say anything about anti-seize.  You should\nlook up wet torque values (typically 80% of dry) and make liberal use\nof anti-seize.  Voice of experience here.<\/p>\n<p>JT has had several bushhogs because they were inexpensive. Finally\nwent to a flail mower, and won\u2019t look back. Less clogging, better\ndecomposition, no bunching\/lawn dead spots, shorter turn radius,\nbetter ability to cut through tall stuff. Spend the extra on the flail\nif you think you\u2019ll ever miss a few mowings and have to deal with\nheavy growth.  Note that this is a rough cut \/ shredding mower, same\napplication as a brush hog.<\/p>\n<h4>Sun blocker<\/h4>\n<p>JT points out that many ROPS systems have a built-in \u201croof\u201d that is\nreally just a sun blocker and is not structurally sound.  This is\nwaaaay nicer than it sounds. Spending 8 hours on a tractor in the sun\nsucks.  A shade system of some sort makes life much nicer in the\nsummer, and also keeps light rain off your head during summer\nsqualls. Worth a few hundred dollars, easily, given cancer risks and\nsweat churn that it forestalls.<\/p>\n<p>I deleted mine due to difficulty getting the tractor into the barn if\nit was attached.  I think in retrospect I'd probably keep it.  Might\nhave even saved my iphone that one time I got stuck out in a downpour\nwith it in my pocket.<\/p>\n<p>If you get one, you'll have to limb up your trees further since they're\na bit more delicate than the ROPS.<\/p>","pubDate":"Wed, 07 Aug 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-08-07:\/2019\/08\/07\/Tractor-Shopping.html","category":"misc"},{"title":"Keeping the portable EVSE from walking away","link":"https:\/\/technotes.seastrom.com\/2019\/08\/06\/keeping-the-portable-car-charger-from-walking-away.html","description":"<p>Continuing on with the theme of electric car chargers, most electric\ncar manufacturers include one with the car.  These vary in niceness\nfrom the fairly basic Level One-only example that came with my 2015\nNissan Leaf to the <a href=\"https:\/\/www.tesla.com\/support\/home-charging-installation\/mobile-connector\">Tesla Mobile\nConnector<\/a>\naka UMC, which does Level One charging on a standard NEMA 5-15\nreceptacle but also has an assortment of adaptors available for\nplugging into common 208\/240v power outlets for stuff like air\nconditioners, clothes dryers, welders, and RV hookups.<\/p>\n<p>The one that came with my Bolt is an interesting case.  Limited to 12\namps and officially 120 volts only, it is said to have been designed\nand\/or built by <a href=\"https:\/\/www.clippercreek.com\">Clipper Creek<\/a> and\nthrough good choices in engineering has an autoranging power supply\nfor its brains that is capable of running off 240v.  <a href=\"https:\/\/gm-volt.com\/forum\/showthread.php?218442-2016-Volt-120v-EVSE-is-L1-L2-Conversion-Capable\/\">Plenty of\ndiscussion<\/a>\nhas ensued on the forums.  The upshot is that you can build a cheater\nthat brings the various 240\/208v receptacles out to a NEMA 5-15\nreceptacle, where you can plug in the charger (or even an extension\ncord, though the ones with a pilot light in them are not\nrecommended!).<\/p>\n<p>I've tried this.  It works.  Since it's still only 12 amps (and\nlimited by the ampacity of the cable that makes it lightweight) it's\nnot quite up to Level 2 charging snuff, but that's OK.  You still get\n2x the power (or 1.7x if you are plugged into 208) so you're\nonboarding at 2.8 or 2.5 kW instead of 1.4kW for an effective range\nadd of 11 or 10 miles per hour instead of 5.5.  So that's a good thing.<\/p>\n<p>The risks and dangers associated with leaving a cheater and\/or\nenergized 5-15 extension cord with 240v on it lying around are left as\nan exercise to the reader.  Choose wisely.<\/p>\n<p>The increased likelihood that I'll be leaving a portable charger\nplugged in for an extended period of time makes it more likely that\nit'll walk off.  Tesla owners supposedly don't have this problem\nbecause the charger locks to the car.  The Bolt charger supposedly\nlocks to the car too.  Not sure how much I trust a socket locking\nmechanism.  I'm also contemplating getting a <a href=\"http:\/\/www.umc-j1772.com\/index.php?route=product\/product&amp;path=17&amp;product_id=123\">Tesla to J1772\nadaptor<\/a>\nso I can charge from a Tesla Destination Charger in a pinch.  I'm a\nlittle concerned about that walking off as well.<\/p>\n<p>I gave the \"how do I lock this down\" some thought.  It's important to\nhave a threat model in mind when considering this sort of thing - it's\nimpractical to guard against <a href=\"https:\/\/www.youtube.com\/channel\/UCm9K6rby98W8JigLoZOh6FQ\">Lock Picking\nLawyer<\/a> or\nsomeone who's cutting my cables to steal them because copper theft is\na thing.  My concerns are more about casual swiping by fellow electric\ncar owners, be they Tesla owners who are upset that I'm charging from\n\"their\" power source or J1772-charged car owners who want to pick up a\nspare EVSE.<\/p>\n<p>With that in mind I thought about various possibilities that all\nseemed inconvenient or a costly pain in the butt.  I'm lazy and don't\nwant to build things if I can put something together out of repurposed\nstuff.  Nor am I particularly thrilled with the idea of something I\npark on top of (get out of the car, get the thing, get back in, pull\nforward?  No thanks!)<\/p>\n<p>Here's what I came up with: A cable style gun lock (not a trigger\nlock) through the spokes of the alloy wheel and an appropriate-sized\npadlock with a shackle that is big enough to pass the cable but not\nthe ends around both the EVSE cable and the gun lock wheel.  Added\nbonus is that you can usually source a gun lock for free by asking at\nyour local gun store.<\/p>\n<p>Observe:<\/p>\n<p><img alt=\"Locking the cable to the wheel\" src=\"\/assets\/2019-08-06-keeping-the-portable-car-charger-from-walking-away\/IMG_3566.png\" \/><\/p>\n<p><img alt=\"Close-up\" src=\"\/assets\/2019-08-06-keeping-the-portable-car-charger-from-walking-away\/IMG_3567.png\" \/><\/p>\n<p>The gun lock that I got for free would not go around both adjacent spokes simultaneously; if you can't find a freebie in a big enough size you may have to resort to <a href=\"https:\/\/www.amazon.com\">Amazon<\/a>, <a href=\"https:\/\/www.brownells.com\/\">Brownells<\/a>, <a href=\"https:\/\/www.cabelas.com\">Cabelas<\/a>, etc.<\/p>","pubDate":"Tue, 06 Aug 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-08-06:\/2019\/08\/06\/keeping-the-portable-car-charger-from-walking-away.html","category":"misc"},{"title":"A little disappointment in the car charger metering department","link":"https:\/\/technotes.seastrom.com\/2019\/06\/30\/car-charger-metering.html","description":"<p>I installed my electric car charger (EVSE) at the end of 2013.<\/p>\n<p>It wasn't on a separate meter since I did the analysis of being on\nDominion's <a href=\"https:\/\/www.dominionenergy.com\/library\/domcom\/media\/home-and-small-business\/rates-and-regulation\/residential-rates\/virginia\/schedule-ev.pdf\">Schedule\nEV<\/a>\n<a href=\"\/assets\/2019-06-30-car-charger-metering\/schedule-ev.pdf\">(local\nmirror)<\/a> and\nconcluded that while it would result in a marginally lower power bill,\nthe restrictions on meter placement due to the terms of the <a href=\"\/2018\/03\/11\/new-blue-book.html\">Dominion\nBlue Book<\/a> would have made it take\nyears to recoup my investment in conduit, copper, labor, and an\nelectrician dispatch for the non-DIY parts.  Indeed, I didn't run a\ndedicated circuit for the car charger, preferring to feeder-tap the\ncircuit to the welder outlet by the basement door and put in a tiny\nsubpanel with a 40a breaker to feed the charger.  I can't weld and\ncharge my car at the same time but that is hardly the end of the\nworld.<\/p>\n<p>That left me, though, without a way to track electricity usage by the\ncar, aside from spitballing it from number of miles traveled or a\nsimilar metric.<\/p>\n<p>Finally, I decided to go ahead and buy my own <a href=\"https:\/\/www.hialeahmeter.com\/round-socket-4-jaw-125-2-hole.html\">meter\nbase<\/a>\nand a meter to put in the circuit so I could watch and see what I was\nusing.<\/p>\n<p>It's worth noting that the technology deployed by Dominion here is AMR\n(Automatic Meter Reading), not an AMI (Advanced Metering\nInfrastructure).  The line can be blurry between the two since they're\ntwo points along an evolutionary spectrum, but the power meter\nsupplied by the power company is an old-school mechanical meter that\nhas an add-on module that speaks\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Encoder_receiver_transmitter\">ERT<\/a> in\nbubble-up mode.  Basically, every few seconds there is a burp of low\nspeed data in the 900 MHz ISM band that gives a current set of metrics\nfor the meter.  Since it can be picked up hundreds to over a thousand\nfeet away, the meter readers just drive a route with an antenna and\npick up the signals.<\/p>\n<p>If you were thinking \"gee, I wonder if anyone has done an FOSS\nimplementation of a receiver for that\", the answer is <a href=\"https:\/\/github.com\/bemasher\/rtlamr\">\"you betcha\nthey have\"<\/a>.  It talks to the\nubiquitous inexpensive <a href=\"https:\/\/www.rtl-sdr.com\/about-rtl-sdr\/\">DVB-T tuner dongle<\/a>\nthat gets repurposed all over the place for everything from listening\nto <a href=\"https:\/\/flightaware.com\/adsb\/piaware\/build\">ADS-B<\/a> to <a href=\"https:\/\/www.rtl-sdr.com\/rtl-sdr-radio-scanner-tutorial-decoding-digital-voice-p25-with-dsd\/\">police scanners<\/a>.<\/p>\n<p>It's also a great way to get your feet wet in <a href=\"https:\/\/rsgb.services\/public\/exams\/presentations\/190427_DSP_without_maths_article_v1-3.pdf\">DSP<\/a> <a href=\"\/assets\/2019-06-30-car-charger-metering\/190427_DSP_without_maths_article_v1-3.pdf\">(local mirror)<\/a>.<\/p>\n<p>The signals that rtlamr receives from Dominion's meter get spit out as almost-json-that-doesn't-pass-a-validator, so here it is un-prettyprinted:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>{Time:2019-06-30T14:44:54.244 SCM:{ID:12345678 Type: 5 Tamper:{Phy:03 Enc:01} Consumption: 9192051 CRC:0x544D}}\n<\/code><\/pre><\/div>\n\n<p>That's all it sends - Standard Consumption Messages - no interval\ndata, no net metering, or anything else like that.  I suppose that if\nI were to acquire a grid tied solar array I'd get a different meter.\nOf note here is that the ITron R300 add-in module in my\nutility-supplied meter reads in quanta of 10 watt hours (my June 21st\nmeter reading per my power bill was 91255 and per the above SCM\nmessage, my current reading is 9192051).<\/p>\n<p>I'd been under the impression that all SCMs were accurate down to that level, or at least all low-feature ERT senders from Itron or its predecessor organizations.<\/p>\n<p>Turns out I was wrong.  The meters I got off eBay (hey, buy two,\nthey're under $22 each) were Itron C1SR Centron Form 2S meters, with 2002 manufacture dates set up\nfor passive remote reading with ERT.  Unfortunately, the data they burp out, while sent more frequently than my house meter, is limited in resolution by its reporting quanta of 1000 watt hours (1 kWh) - a difference in resolution of two orders of magnitude.<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>{Time:2019-06-30T14:45:04.105 SCM:{ID:87654321 Type: 4 Tamper:{Phy:00 Enc:02} Consumption:   82415 CRC:0x3205}}\n<\/code><\/pre><\/div>\n\n<p>In simplest terms, with a load of a scant 7 kW, we get 7 increments an hour, which does not make for nice pretty graphs.  Dominion's meter appears to spit out data every 5-30 seconds (though this may be an artifact of my receive frequency window size and how wide their frequency hopping window is), and if presented with the same load would see an increment of at least 1 at most updates.<\/p>\n<p>So, the search continues - fortunately putting in a new meter is super easy since it literally pops into a utility-grade meter socket, and I'm not complaining about what I've got since I have already tracked about 100 kWh worth of power usage in less than a week; I just want tighter resolution.<\/p>\n<p>The documentation on such meters tends to not go into wire format, so you have to read between the lines on stuff like SCM+ developer notes (extended format SCM with a larger device ID field since they ran out of their initial address space).  I am left wondering if type 5 vs. type 4 SCM messages carry the implication of different resolutions with them.<\/p>\n<p>To do:  put it in influxdb and grafana.<\/p>","pubDate":"Sun, 30 Jun 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-06-30:\/2019\/06\/30\/car-charger-metering.html","category":"misc"},{"title":"Dedicated Power Service for a small fleet of electric car chargers","link":"https:\/\/technotes.seastrom.com\/2019\/06\/27\/dedicated-power-for-car-chargers.html","description":"<p>I've <a href=\"https:\/\/technotes.seastrom.com\/2016\/09\/11\/choosing-an-electric-car-charger.html\">previously\nwritten<\/a>\nabout choosing an electric car charger (EVSE) and thinking about it in terms\nof how long someone stays at a location and how much of a charge they\ncan expect to get during their visit.<\/p>\n<p>A friend is the proprietor of a retreat center and has owned a Leaf in\nthe past (currently owns a plug-in hybrid) and was eyeing my Bolt a\ncouple of months ago as we discussed electric car charging\ninfrastructure for the retreat center.<\/p>\n<p>One of the difficulties once you start talking about having more than\none charger opportunistically installed is that it's really easy to\nrun out of electrical service in the building where you're putting\nthem if it's not a super big industrial place.  One way to handle this\nis to make the amount of power they can deliver smaller (say, a 15 amp\n120v receptacle instead of a 40 amp 240v circuit), but that's got a\ndownside to it in that it takes the amount of power one can onboard\nway way down, to something like 5 miles per hour of charging from 25\nmiles per hour.  Great for an event that lasts a week worth of\ncamping, a lot less great for a weekend afternoon activity wherein a\nvisitor might want to pick up a decent number of miles in a relatively\nshort number of hours.<\/p>\n<p>In the interest of maximum flexibility, my recommendation to him is\nthat he pick up a dedicated 200 amp service from Delmarva Power (the\nlocal power company) and hang his car chargers off of that.  That'll\nend up costing $10 a month or something like that as the minimum\ncharge to have an electric meter in the system but how many hookups\ncan that support and what should he install?<\/p>\n<p>The first question is of course going to be \"how many amps can we pull\nfrom that\" and the obvious answer is \"200\" but that is not correct.\nAs anyone who has felt the wires going to a toaster or waffle iron\nwhen company's over can tell you, running heavy loads over a wire will\ncause the wires to get warm.  No magic here, even fat wires have\nresistance and voltage drop to them; it's Ohm's Law at work and the\nelectrical losses manifest themselves as heat.<\/p>\n<p>Cracking open the National Electrical Code, we discover that for\n\"continuous loads\" (defined as more than 3 hours), there must be a 20%\nderating of ampacity (that's a term of art that means amp capacity)\nfor conductors, buses, OCPDs (over current protective devices -\ncircuit breakers and fuses to you and me), etc.  It's quoted in a\nbunch of places; Articles 210.19, 215.2, and 690.8 are a few of them.  This\nis quoted variously as \"the 80% rule\" or \"the 125% rule\" (these are\nreciprocals of each other so it is a glass half-full\/half-empty thing).<\/p>\n<p>So, that 200 amp service is only good for 160 amps of actual load.  Note\nthat you don't have to derate twice - you can fit five 40a circuit breakers,\neach with a 32a expected load, not just four.  5 x 40 = 200; the 80% rule\ncarries all the way through and you don't have to duplicate your work.<\/p>\n<p>I know what you're thinking though...  The circuit breakers in the big\nelectrical panel in your house add up to a whole lot more than 200\namps once you factor in the heat pump, the range, the hot tub, all\nthat stuff...  so can't we squeeze in a sixth or seventh plug?  After\nall, the vast majority of time either not all the chargers are plugged in\nor there's at least one car sitting there that's done charging and the only\nload that's on it is the green \"ready\" light...<\/p>\n<p>Not so fast.  You have to size for maximum likely simultaneous load.\nThe term of art for this is \"demand factor\".  You get away with a\nlower demand factor for, say, residential lighting, because people\nturn off the lights when they leave the room.  Likewise, you're\nprobably not running the heat full tilt, the hot tub full tilt, and\nthe oven, simultaneously, for hours on end.<\/p>\n<p>Not so for charging a car!  The demand factor for electric car\nchargers is 100%, and it's not difficult to understand why if one\ntakes a moment to consider several people showing up at the start of\nan event and plugging in their cars all at once.<\/p>\n<p>Now that we've determined that one can get five 240v 40a circuits off\na 200a service, what kind of charging equipment should he install?<\/p>\n<p>Going back to the early days of modern electric cars, campgrounds were\nthe only place where one could reliably find a place to plug in while\non a road trip, so when Tesla started selling electric cars en masse\nthey threw in an adaptor for their Mobile Connector (EVSE) that would plug into a NEMA 14-50\nreceptacle since that's the campground standard.<\/p>\n<p>That choice has made the 14-50 the de-facto standard for electric car\ncharging receptacles despite the fact that the neutral serves no useful\npurpose here - a 6-50 (which is the welding shop standard, but doesn't\nhave a neutral pin) would have served as well.  My mother-in-law had a house\nbuilt last year and an electric car charging receptacle was a checkbox\noption and was delivered as a 14-50.<\/p>\n<p>Fast forward to April 2019 and it looks as if Tesla <a href=\"https:\/\/teslamotorsclub.com\/tmc\/threads\/nema-14-50-adapter-no-longer-included-with-vehicles.150170\/\">is\ndiscontinuing<\/a>\nshipping the adaptor with their cars since it's used less frequently\nnow that public chargers are more plentiful.  But they're just <a href=\"https:\/\/shop.tesla.com\/us\/en\/product\/vehicle-accessories\/gen-2-nema-adapters.html\">$35 on\nthe Tesla\nStore<\/a>\nso maybe keeping a spare on hand would be a neighborly thing to do.<\/p>\n<p>My recommendation to him is that he install NEMA 14-50 receptacles and\ncall it a day, for a couple of reasons.  First, they are cheap and\ndeliver a usable solution for a minimum amount of cost.  An\n<a href=\"https:\/\/www.lowes.com\/pd\/Eaton-50-Amp-Overhead-Temporary-Power-Panel\/3027570\">outdoor-rated receptacle in a\nbox<\/a>\nis $35 from Lowes.  Second, they can be easily swapped out for a\nhardwired charger whether it be a J1772 style or an HWPC from Tesla (I\nhear Tesla is subsidizing their destination chargers, though being\nlisted on the destination charging map could be a problem for a\nprivate retreat center).  Signage indicating that the receptacles are\nbreakered at 40 amps and rated for 32 amps constant ought to provide\nsufficient notice for someone with an older or oddball charger that\nthey should manually throttle back.<\/p>","pubDate":"Thu, 27 Jun 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-06-27:\/2019\/06\/27\/dedicated-power-for-car-chargers.html","category":"misc"},{"title":"An Experiment in Datacenter Power Use Reduction","link":"https:\/\/technotes.seastrom.com\/2019\/03\/13\/power-reduction-experiment.html","description":"<p>As <a href=\"https:\/\/technotes.seastrom.com\/2019\/01\/05\/host-attached-storage-notes.html\">previously\nmentioned<\/a>,\nClueTrust has a standard SmartOS server deployment of a DL160g6 with 2\nx\n<a href=\"https:\/\/ark.intel.com\/content\/www\/us\/en\/ark\/products\/40201\/intel-xeon-processor-l5520-8m-cache-2-26-ghz-5-86-gt-s-intel-qpi.html\">Intel L5520<\/a> Nehalem EP CPUs, 72gb of RAM in the form of 18 x 4gb ECC DDR3 sticks, and 4 x WD Red drives of various sizes\ndepending on when we installed the particular machine.<\/p>\n<p>These machines are generally up to our requirements (despite a weak\ndisk subsystem) but getting up there in years.  The L5520 was released\n10 years ago and our particular boxes are 8 or 9 years old.<\/p>\n<p>I was content to leave well enough alone and concentrate on our \"next\ngeneration\" server specs but we are up against our power budget in\ncolo and have gotten pricing for a power increase that is uncompelling.\nConsequently I gave some thought to where we could go in terms of\ncutting our power use - even a few watts per machine adds up and contributes\nto fitting within our power envelope.<\/p>\n<p>The mechanical socket for this CPU is called\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/LGA_1366\">LGA1366<\/a> aka Socket B (yes, there are\nactually 1366 connections to the bottom of the chip!) and it spans a\ncouple of generations of CPU.<\/p>\n<p>I got to wondering if I could go to a later processor with more cores\nand cut down to running a single\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Die_(integrated_circuit)\">die<\/a>.  I could cut\nthe memory stick count in half by going to higher density memory (8g\nsticks vs. 4g).  The latter is unfortunately not optional since unlike the PCI\nslots, the main memory is tightly tied to each die in most current\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Non-uniform_memory_access\">NUMA<\/a>\ndesigns.  In short, if you get rid of a CPU die, you get rid of its\nassociated memory too.<\/p>\n<p>In my searches, I happened upon the\n<a href=\"https:\/\/ark.intel.com\/content\/www\/us\/en\/ark\/products\/47926\/intel-xeon-processor-l5640-12m-cache-2-26-ghz-5-86-gt-s-intel-qpi.html\">L5640<\/a>.\nSame <a href=\"https:\/\/en.wikipedia.org\/wiki\/Thermal_design_power\">TDP<\/a> (which\nis the engineered not-to-exceed power draw of the CPU) and clock speed\nas the L5520, but two more cores so I'd only be down 25% if I went to\na single die.  Which is fine; the long pole in the tent on our systems\nis the disk subsystem, not CPU load.  They are supported from the factory\nin this generation of server by HP, so it should be drop-in.<\/p>\n<p>As an added benefit, these are Westmere-EP CPUs, which gets across the line to support for\n<a href=\"https:\/\/www.youtube.com\/watch?v=90ihmO281GE\">bhyve on smartos<\/a> - for whatever reason,\nour Nehalem CPUs won't work despite having VMX and EPT support.<\/p>\n<p>Pleasant surprise: the L5640 has the AES-NI instructions, which OpenSSH and all of\nthe FOSS TLS\/SSL libraries know how to talk to.  The old L5520 does not.<\/p>\n<p>How much for the CPUs?  $27.99 for a pair on eBay.  How much for the\nRAM?  I have plenty of 8gb sticks in my spares box and they seem to be\nless than $15 apiece on eBay.<\/p>\n<p>Installation went without a hitch from a hardware and BIOS\nperspective.  The only difficulty was that I ran into a regression in the\nCPU identification code that affected older Westmere processors on the\nparticular version of SmartOS that I was running.  Talk about bad luck.  Fixed by upgrading\nto the very next release.<\/p>\n<p>This test was on the machine in my basement, where we are at 120v, using a\n<a href=\"https:\/\/www.amazon.com\/dp\/B00009MDBU\/\">Kill-A-Watt<\/a> for instrumentation, so\nbear this in mind when thinking of significant digits (accuracy and repeatability\nis actually fairly good on cheap test equipment here in the future).  In this\ncase, the disks were 8TB WD Reds (WD80EFZX).<\/p>\n<p>With the old CPUs the system was drawing 1.37a (165 watts) after the disks\nsettled, with two KVM virtual machines running.  The older KVM in\nSmartOS is both a performance issue and a resource hog, which informs\nour interest in running bhyve.<\/p>\n<p>Once I shut down the KVM virtual machines, leaving four LX zones and 15 OS zones (many of which are tftp servers and similar \"insignificant load\" guests) the draw dropped to 1.25a (150 watts).<\/p>\n<p>After I swapped to the new CPU and memory configuration, the system\nwas drawing 0.89 to 0.91a or 108 watts with the same (no KVM) load.<\/p>\n<p>About 40 watts of savings doesn't seem like a lot, but when you\nmultiply by 5 (or if we're lucky, 7) machines where the\nupgrade\/downgrade could be performed, things start to look very\ninteresting.  200-280 watts would be enough to get us out of being\ncomplained at for power draw.  It might have a slight salutary effect\non my UPS runtime at home, but at 13.6 percent load we are hardly\nstressing it and likely down in the \"inefficient because it's loafing\"\nzone.<\/p>","pubDate":"Wed, 13 Mar 2019 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2019-03-13:\/2019\/03\/13\/power-reduction-experiment.html","category":"misc"},{"title":"dnssec-keygen is partially deprecated for tsig generation","link":"https:\/\/technotes.seastrom.com\/2019\/03\/04\/dnssec-keygen-deprecated-for-tsig.html","description":"<p>Yesterday, Gaige brought to my attention that dnssec-keygen(1) seems to be deprecated for TSIG purposes.<\/p>\n<p>The specific quote from the man page is:<\/p>\n<p><strong><em>TSIG keys can also be generated by setting the value to one of HMAC-MD5, HMAC-SHA1, HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, or HMAC-SHA512. As with DH, specifying these values will automatically set -T KEY. Note, however, that tsig-keygen produces TSIG keys in a more useful format. These algorithms have been deprecated in dnssec-keygen, and will be removed in a future release.<\/em><\/strong><\/p>\n<p>So, support for all our TSIG shared secrets is going to go away and\nI'll have to convert to using a utility that creates output in a\nuseful format, which can be cut and pasted directly into a\nconfiguration file, with a sane default selection of HMAC?  Sign me\nup, but this seems a little...  unusual, eh?<\/p>\n<p>Observe:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>[root@bifrost \/etc\/domain\/master\/rs]# tsig-keygen testhost.example.org-20190304-00\nkey &quot;testhost.example.org-20190304-00&quot; {\n        algorithm hmac-sha256;\n        secret &quot;MguqAW\/Ea33RhBNF1CKDvRMc07EelaKS3FumqmathE4=&quot;;\n};\n[root@bifrost \/etc\/domain\/master\/rs]# \n<\/code><\/pre><\/div>\n\n<p>Well, then...<\/p>","pubDate":"Mon, 04 Mar 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-03-04:\/2019\/03\/04\/dnssec-keygen-deprecated-for-tsig.html","category":"misc"},{"title":"Certbot is pets, not cattle","link":"https:\/\/technotes.seastrom.com\/2019\/03\/03\/certbot-is-pets-not-cattle.html","description":"<p>I've long been a fan of <a href=\"https:\/\/letsencrypt.org\">LetsEncrypt<\/a>, though\nnot as early an adopter as I could have been since early tooling was\nextremely Linux-centric and that's not where we're at, at least in our\nshop.<\/p>\n<p>A substantial fraction of LetsEncrypt's success has been via the use\nof <a href=\"https:\/\/certbot.eff.org\">CertBot<\/a>.  If you're not familiar with\nit, it's basically set-and-forget x.509 certificate generation and\nrenewal, by default via the <a href=\"https:\/\/docs.certifytheweb.com\/docs\/http-validation.html\">http-01<\/a> authentication method.<\/p>\n<p>I don't want to talk anyone out of using Certbot.  For degenerate case\nsmall sites or places with no automation (the target audience for LetsEncrypt), it's a great choice.<\/p>\n<p>It's not without its drawbacks and tradeoffs though.  For starters,\nuse of Certbot is fundamentally incompatible with immutable\ninfrastructure and the <a href=\"http:\/\/cloudscaling.com\/blog\/cloud-computing\/the-history-of-pets-vs-cattle\/\">cattle-not-pets<\/a> philosophy, where\nthe source of truth to rebuild a (server|firewall|load balancer|whatever) lives elsewhere, and they're always subject to being rebuilt on a whim.<\/p>\n<p>Unless special care is taken with certbot, the only copy of both the\naccount key and the certificates lives on the server itself.  What if\nyour certificates got compromised and you <a href=\"https:\/\/letsencrypt.org\/docs\/revoking\/\">wanted to revoke\nthem<\/a> only to discover that\nthe bad guy deleted both the certificates and the account key from\nyour server?<\/p>\n<p>Back in the early days of LetsEncrypt, you couldn't create nearly as\nmany certificates per domain name under a Public Suffix as you can\ntoday, and there was the very real risk that you'd find yourself\npenalty-boxed by rebuilding all of your VMs at once, to address some\nkind of emergent vulnerability or something of that ilk.<\/p>\n<p>To address this problem, I've never used Certbot and until recently\nhad been using http-01 with a little Python-based ACME protocol\nspeaker called <a href=\"https:\/\/github.com\/diafygi\/acme-tiny\">acme-tiny<\/a> and\npassing through the \/.well-known\/acme-challenge subdirectory (using\nnginx) or the entire socket for VMs that didn't need a web server\n(using socat or haproxy) to a web server running on the Ansible\njumphost.  In this manner, I was able to end up with certs on the\nprovisioning (Ansible) server as a central source of truth and then\npush them out, repeatedly if necessary, to VMs as I created or\nreprovisioned them.<\/p>\n<p>I could have gone off-label and run certbot on the central jumphost which would have made\na certain degree of sense too, had I not found acme-tiny agreeable with my pre-existing workflow for putting x.509 certificates on VMs.<\/p>\n<p>I'm about to change out that http-01 handshake for dns-01.  But that's a\ndifferent discussion and a different blog post.  The salient point here\nis that, unless you jump through hoops, certbot is incompatible with a\ncattle-not-pets methodology.<\/p>","pubDate":"Sun, 03 Mar 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-03-03:\/2019\/03\/03\/certbot-is-pets-not-cattle.html","category":"misc"},{"title":"Overwriting the partition table on a Mac","link":"https:\/\/technotes.seastrom.com\/2019\/01\/28\/overwriting-partition-table.html","description":"<p>Unlike most parts of MacOS, er, sorry, macOS... Disk Utility has\ngotten worse over time instead of better.  Things that it used to be\neasy to do through the gui are now missing.<\/p>\n<p>In most cases it's still possible to get where you need to be via the command line.\nA case in point is stomping on the partition table records.  It's really easy\nto format a thumb drive to FAT32 and think you're done, only to discover when\nyou hook it up to a geriatric Windows box that you've created a FAT32 partion\non a GPT-labeled disk and Windows is looking at it like a pig staring at a wrist watch.  Great.<\/p>\n<p>The magic incantation is:<\/p>\n<p _=\"%\" endhighlight=\"endhighlight\">{% highlight bash %}\ndiskutil list<\/p>\n<p>to figure out which drive is the thumb or external drive, and then:<\/p>\n<p _=\"%\" endhighlight=\"endhighlight\">{% highlight bash %}\nsudo diskutil eraseDisk FAT32 UNTITLED MBRFormat \/dev\/diskN<\/p>\n<p>where diskN is the physical (not the partition) device you just identified.<\/p>","pubDate":"Mon, 28 Jan 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-01-28:\/2019\/01\/28\/overwriting-partition-table.html","category":"misc"},{"title":"4kn vs 512e drives","link":"https:\/\/technotes.seastrom.com\/2019\/01\/27\/4kn-vs-512e.html","description":"<p>If you follow the evolution of hard drive technology much at all\nyou're probably aware of something called \"AF\" ( <a href=\"https:\/\/en.wikipedia.org\/wiki\/Advanced_Format\">Advanced\nFormat<\/a>, not to be\nconfused with\n<a href=\"https:\/\/www.urbandictionary.com\/define.php?term=AF\">\"af\"<\/a> as the kids\nsay in text messages or tweets).  Basically, the 512 byte sectors\nwhich we've had since the 60s are deprecated in favor of sectors that\nare 8x as long (4096 bytes or 4k).<\/p>\n<p>There's overhead associated with writing a sector on the disk - a\nheader at the beginning and an\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Error_correction_code\">ECC<\/a> at the end.\nThe ECC is useful for correcting errors where a few bits got nailed by\nan imperfection on the disk surface.  As the physical size of the\nblocks got smaller over time (more density), the size of potential\nimperfections didn't get smaller at the same rate, leading to a\nrequirement for longer ECCs to match the size of potential errors.<\/p>\n<p>Meanwhile, the size of the individual drives in logical terms was\ngetting out of hand, while the prevalence of tiny files (less than 4k)\nhas gotten smaller over time.<\/p>\n<p>Remember disk controllers that couldn't talk to drives bigger than\n2TB?  That's because 2TB is 2^32 512 byte sectors.  Who would have\never imagined we'd have drives that big, let alone the 14TB behemoths\nthat are the biggest you can get at this writing?<\/p>\n<p>Until recently, my understanding how to deal with AF disks has\nbeen limited to <a href=\"https:\/\/wiki.illumos.org\/display\/illumos\/ZFS+and+Advanced+Format+disks\">\"make sure that ashift=12 is set on your zpools so\nthe right thing happens\nalignment-wise\"<\/a> and \"don't mix 512n and 512e\/4kn disks in the same vdev (or maybe even zpool?) or you'll be sorry\".<\/p>\n<p>But what's actually going on under the hood?  Dell wrote a <a href=\"https:\/\/i.dell.com\/sites\/doccontent\/shared-content\/data-sheets\/en\/Documents\/512e_4Kn_Disk_Formats_120413.pdf\">white paper on this<\/a> (<a href=\"\/assets\/2019-01-27-4kn-vs-512e\/512e_4Kn_Disk_Formats_120413.pdf\">local mirror<\/a>).  It provides a good overview about what's going on behind the scenes and how things might go off the rails if you're unlucky or insufficiently cautious.  If you should happen to run into some unexpected crummy performance on a RAID, you'll be glad you read it.<\/p>","pubDate":"Sun, 27 Jan 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-01-27:\/2019\/01\/27\/4kn-vs-512e.html","category":"misc"},{"title":"Host Attached Storage and Home-Colo Server Notes 2019q1 Edition","link":"https:\/\/technotes.seastrom.com\/2019\/01\/05\/host-attached-storage-notes.html","description":"<h4>How things stand now<\/h4>\n<p>For the past few years my home storage setup has been basically a\nclone of what I have in colo, albeit with larger drives - SmartOS on a\nDL160g6 with 72gb of RAM, four 8TB WD Reds (WD80EFZX) on the built-in\nAHCI controller, configured as RAIDZ2 with no SLOG or L2ARC.  On top\nof this runs an http file server for the Rokus, Netatalk backup\ntargets for Time Machine, and archival copies of mail, photos, laptop\nimages, etc.<\/p>\n<h4>Wishes<\/h4>\n<ul>\n<li>More than four disk slots, and the ability at least to have more than four disks in play<\/li>\n<li>a better disk controller (HBA, not integrated RAID, need to talk to either SAS or SATA, have better performance and deeper queues than AHCI) - will be used exclusively with ZFS<\/li>\n<li>a faster \"zones\" pool (particularly in colo, where it could be an all-SSD pool given current price trajectories)<\/li>\n<li>10ge capability<\/li>\n<li>Ability to add an external storage chassis should I need even more storage space or need to do a migration - you don't realize until you're in the middle of it just how long it takes to move some tens of terabytes of data.<\/li>\n<li>Avoid earning Gaige's budgetary ire for datacenter systems by keeping a lid on power draw.  By the way, power isn't free at home either.<\/li>\n<\/ul>\n<h4>Candidate System, power utilization notes<\/h4>\n<p>A very appealing target system is the Dell R720xd.  This or the plain\nR720 could end up being blessed as ClueTrust's next standard server\nplatform.  These generation-12 systems are the last generation that\ntakes DDR3 memory which means that RAM is reasonably cheap.  They're\ncoming off lease these days.  We have two datapoints on power\nutilization:<\/p>\n<ul>\n<li>\n<p>Amanda's tricked out R720xd with 2 x HGST SAS3 SSD, 4 x 7200 RPM 8TB\n  NL-SAS, H310 flashed to IT mode, 768gb of RAM (24 sticks of 32gb each) and two performance\n  CPUs with 10 cores each rings the bell at 280 watts idle.  Ouch.<\/p>\n<\/li>\n<li>\n<p>Andrew W-M's got an R720 with 4 x 7.2k SATA, 4 x HGST SAS3 SSD (same\n  model as Amanda's), H710, 128gb of RAM (8 x 16gb DIMMs), and\n  dual e5-2630L v2 CPUs.  He reports that it pulls 126w in near idle\n  with 9 vms online (running ESXi) and spikes from time to time to\n  137.<\/p>\n<\/li>\n<\/ul>\n<p>One of the interesting datapoints I've learned as part of my research\nis that DDR3 ECC RDIMMs pull about 3-4 watts per stick and it doesn't\nmatter much how big they are memory-wise.  It doesn't sound like a\nlot, but if you do the math as much as 64 watts of the discrepancy\nbetween Andrew's and Amanda's configuration may be due to her having\n24 DIMMs vs. Andrew's 8.  For an organization like ClueTrust, which is\nexceedingly power-conscious, it likely makes sense to pay the extra\nmoney for higher density in order to keep things within the power\nenvelope which we like (the R720 has 2 x 4-channel CPUs, so we are\nlooking at adding ram sticks in multiples of 8).<\/p>\n<h4>Useful Subreddits<\/h4>\n<p>There are some useful resources on Reddit for this sort of thing.\nThere are <a href=\"http:\/\/www.reddit.com\/r\/homelab\">r\/homelab<\/a> for people who\nwant to play with stuff at home (occasionally the home of pointers to\n<em>really good deals<\/em>) and\n<a href=\"http:\/\/www.reddit.com\/r\/selfhosted\">r\/selfhosted<\/a> where we can occasionally learn\nabout new-to-us FOSS software solutions for doing various stuff.<\/p>\n<p>But by far the most useful subreddit has been <a href=\"https:\/\/www.reddit.com\/r\/DataHoarder\/\">r\/DataHoarder<\/a> - people whose aspirations are more along the lines of \"production-ish on the cheap\", and have been useful for pointers to enterprisey-grade clues on various storage solutions.<\/p>\n<p>It was here that I learned about\n<a href=\"https:\/\/diskprices.com\">diskprices.com<\/a>.  While we're at it, let's\ntalk about disks that we might use and how much they draw, since the\ndifferences add up to a difference of as much as 20 watts for an array of four\ndrives; that might inform our choices.<\/p>\n<h4>Disks and Power Draw<\/h4>\n<h4>5400 RPM<\/h4>\n<p>Model | Cap | Power (idle) | Power (peak) | Notes\n| :------- | -------: | --------: | --------: | -------- |\nWD30EFRX | 3T | 2.7W | 4.1W | used in maersk, pil, sealand <a href=\"https:\/\/documents.westerndigital.com\/content\/dam\/doc-library\/en_us\/assets\/public\/western-digital\/product\/internal-drives\/wd-red-pro-hdd\/data-sheet-western-digital-wd-red-hdd-2879-800002.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/data-sheet-western-digital-wd-red-hdd-2879-800002.pdf\">Local Mirror<\/a>|\nWD40EFRX | 4T | 3.3W | 4.5W | used in tarros (same datasheet)|\nWD80EFZX | 8T | 5.2W | 6.4W | used in evergreen (RS home), zim (same datasheet)|\nWD100EFAX | 10T | 2.8W | 5.7W | Don't own any yet.  Helium, 256m cache.  Same datasheet.|<\/p>\n<h4>7200 RPM<\/h4>\n<p>Model | Cap | Power (idle) | Power (peak) | Notes\n| :------- | -------: | --------: | --------: | -------- |\nHUH728080AL5200 | 8T | 5.7W | 9.1W | used in alfar (SAS) <a href=\"https:\/\/documents.westerndigital.com\/content\/dam\/doc-library\/en_us\/assets\/public\/western-digital\/product\/data-center-drives\/ultrastar-sas-series\/data-sheet-ultrastar-he8.pdf\">Datasheet<\/a><a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/data-sheet-ultrastar-he8.pdf\">Local Mirror<\/a>|\nHUS724040ALE640 | 4T | 6.9W | 11.4W | used in Andrew W-M's R720 <a href=\"https:\/\/documents.westerndigital.com\/content\/dam\/doc-library\/en_us\/assets\/public\/western-digital\/product\/data-center-drives\/ultrastar-sata-series\/data-sheet-ultrastar-7k4000.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/data-sheet-ultrastar-7k4000.pdf\">Local Mirror<\/a>|\nST500NM0001 | 500m | 5.5W | 7.0W | pile-o-disks for lab playground in md1200 <a href=\"https:\/\/www.seagate.com\/www-content\/product-content\/constellation-fam\/constellation-es\/constellation-es-1\/en-us\/docs\/100650925g.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/100650925g.pdf\">Local Mirror<\/a>|\nWD101KFBX | 10T | 2.8W | 5.7W | Don't own any yet.  Helium, 256m cache. <a href=\"https:\/\/www.wd.com\/content\/dam\/wdc\/website\/downloadable_assets\/eng\/spec_data_sheet\/2879-800022.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/2879-800022.pdf\">Local Mirror<\/a>|\nST6000NM0034 | 6T | 7.97W | 11.86W | You can save on price but you'll spend a lot on power.  These drives are a perennial favorite for cheap end on <a href=\"https:\/\/diskprices.com\">diskprices.com<\/a> at $130-ish for 6T new, and available as refurbs for as little as $75.  <a href=\"https:\/\/www.seagate.com\/www-content\/product-content\/enterprise-hdd-fam\/enterprise-capacity-3-5-hdd\/constellation-es-4\/en-us\/docs\/enterprise-capacity-3-5-hdd-v4-ds1791-3-1403us.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/enterprise-capacity-3-5-hdd-v4-ds1791-3-1403us.pdf\">Local Mirror<\/a>|<\/p>\n<h4>15000 RPM<\/h4>\n<p>Model | Cap | Power (idle) | Power (peak) | Notes\n| :------- | -------: | --------: | --------: | -------- |\nHUC156030CSS204 | 300G | 5W | 7.5W | came stock in our toys-r-us r330s <a href=\"https:\/\/documents.westerndigital.com\/content\/dam\/doc-library\/en_us\/assets\/public\/western-digital\/product\/data-center-drives\/ultrastar-sas-series\/product-manual-ultrastar-c15k600.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/product-manual-ultrastar-c15k600.pdf\">Local Mirror<\/a>|<\/p>\n<h4>SSD<\/h4>\n<p>Model | Cap | Power (idle) | Power (peak) | Notes\n| :------- | -------: | --------: | --------: | -------- |\nHUSML4040ASS601 \/ HRLP0400S5xnEMLC | 400G | 1.7W | 5.5 | used in alfar, greatwhite, etc.  High endurance enterprise SAS SSDs. <a href=\"https:\/\/documents.westerndigital.com\/content\/dam\/doc-library\/en_us\/assets\/public\/western-digital\/product\/data-center-drives\/ultrastar-sas-series\/data-sheet-ultrastar-ssd400m.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/data-sheet-ultrastar-ssd400m.pdf\">Local Mirror<\/a>\nEVO 850 | 500G | 70mW | 3.6W | Desktop\/Laptop SSDs used in dole <a href=\"https:\/\/images-eu.ssl-images-amazon.com\/images\/I\/619q5FkOHqL.pdf\">Datasheet<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/EVO-850-specs.pdf\">Local Mirror<\/a><\/p>\n<h4>Random links - Reddit and elsewhere<\/h4>\n<p>Apparently some NetApp shelves (DS4243 and DS4246) make awfully nice, though loud, <a href=\"https:\/\/www.reddit.com\/r\/DataHoarder\/comments\/747r3a\/about_the_quite_popular_ds4243_and_other_netapp\/\">external shelves for ZFS<\/a>.  I don't think I need 24 drives though.<\/p>\n<p>Some opinions on the <a href=\"https:\/\/www.reddit.com\/r\/DataHoarder\/comments\/8xe8i3\/whats_the_best_jbod_card_these_days\/\">best JBOD card<\/a> including a shout-out to the <a href=\"https:\/\/www.ebay.com\/sch\/i.html?_from=R40&amp;_trksid=p2380057.m570.l1313.TR1.TRC0.A0.H0.XLSI+9201-16e.TRS0&amp;_nkw=LSI+9201-16e&amp;_sacat=0\">LSI 9201-16e which I bought<\/a> one of for something like $30 delivered.<\/p>\n<p>The Dell MD1200 <a href=\"https:\/\/www.reddit.com\/r\/homelab\/comments\/5gj971\/did_i_screw_up_when_ordering_drives_md1200_and\/\">will support SATA\ndrives<\/a>\nnotwithstanding what the docs may say.  They <a href=\"https:\/\/www.reddit.com\/r\/homelab\/comments\/912ntw\/power_consumption_r510_vs_md1200\/\">draw about 50W empty\nplus whatever drives you add\nin<\/a>\nbut can be a little noisy for people's taste for home.  Confirmed by\nRS - it worked with a couple of WD Reds in it.<\/p>\n<p>The MD1200 had a bad time with SmartOS (crummy performance in\nmultipathing, which righted itself once the cable to the second\ncontroller was unplugged).  Someone on the smartos-discuss list\nfingered this as being fairly common and traceable to drive firmware\ndealing poorly with round-robin.  He said that there are ways to set\nthe scsi-vhci driver to use logical-block for load-balancing (or\n\"none\" since it's actually not a great loss to not have load-balancing\nover the multipath on disks).<\/p>\n<p>Unfortunately this is hard to fix on SmartOS unless you're building\nyour own images since the settings are baked into the thumb drive.\nThen again, do we really need multipathing?  Probably get by without\nit.<\/p>\n<p><a href=\"https:\/\/www.dell.com\/downloads\/global\/products\/pvaul\/en\/storage-powervault-md12x0-technical-guidebook.pdf\">Manual for the MD1200<\/a> <a href=\"\/assets\/2019-01-05-host-attached-storage-notes\/storage-powervault-md12x0-technical-guidebook.pdf\">Local Mirror<\/a><\/p>\n<p>I'm sure there wil be more of this in the future, but I'm already 12\ndays overdue for publishing these notes, so out the door they go!<\/p>\n<p>Comments?  Additions?  Corrections?  You know where to find me.<\/p>\n<p>(Save the observations about \"the table formatter is kind of lame.  I know it is.  This is GFM not professional web design, right?)<\/p>","pubDate":"Sat, 05 Jan 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-01-05:\/2019\/01\/05\/host-attached-storage-notes.html","category":"misc"},{"title":"JunOS EX port mirroring","link":"https:\/\/technotes.seastrom.com\/2019\/01\/04\/juniper-ex-port-mirror.html","description":"<p>Quick cheat sheet for mirroring a port to a span port:<\/p>\n<p>{% highlight c %}\nrs@woodburn-bigswitch&gt; show configuration ethernet-switching-options \nanalyzer spanport {\n    ratio 1;\n    input {\n        ingress {\n            interface ge-0\/0\/0.0;\n        }\n        egress {\n            interface ge-0\/0\/0.0;\n        }\n    }\n    output {\n        interface {\n            ge-0\/0\/1.0;\n        }\n    }\n}<\/p>\n<p>rs@woodburn-bigswitch&gt; <\/p>\n<p>{% endhighlight %}<\/p>\n<p>and for mirroring all ingress traffic to a vlan to a span port:<\/p>\n<p>{% highlight c %}\nrs@woodburn-bigswitch&gt; show configuration ethernet-switching-options\nanalyzer spanport {\n    ratio 1;\n    input {\n        ingress {\n            vlan woodburn;\n        }\n    }\n    output {\n        interface {\n            ge-0\/0\/1.0;\n        }\n    }\n}<\/p>\n<p>rs@woodburn-bigswitch&gt;<\/p>\n<p>{% endhighlight %}<\/p>\n<p>This was done on an EX3200 but I'm sure it will work on other EX models as well.<\/p>\n<p>Note that if you mirror a trunk port you'll get 802.1q tagged traffic out the span port, while if you mirror a vlan you will get untagged traffic.<\/p>","pubDate":"Fri, 04 Jan 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-01-04:\/2019\/01\/04\/juniper-ex-port-mirror.html","category":"misc"},{"title":"Community Edition Blues","link":"https:\/\/technotes.seastrom.com\/2019\/01\/03\/community-edition-blues.html","description":"<p>Lately, I've been playing around with <a href=\"https:\/\/fastnetmon.com\">FastNetMon<\/a>, to wit their <a href=\"https:\/\/github.com\/pavel-odintsov\/fastnetmon\">community edition<\/a> on GitHub.<\/p>\n<p>Why the community edition?  Well, I'd like to say it's because I'm cheap but that's no excuse since FastNetMon Advanced has a <a href=\"https:\/\/fastnetmon.com\/trial\/\">very liberal T&amp;E license<\/a>.<\/p>\n<p>It has many ways to ingest traffic including PF_RING, Netmap,\nSnabbSwitch, AF_PACKET, pcap, sflow, and netflow.  I've been using AF_PACKET because I don't have a card that is capable of PF_RING (being remedied since AF_PACKET is only good for a single interface).<\/p>\n<p>Enough background though; I spent some time fiddling with it and\ngetting a bit frustrated since it wasn't seeing the traffic I thought\nit should be seeing.  First I ruled out issues with it being blind to\n.1q encapsulation since I had been mirroring a tagged port. Then I stopped\nredefining variables in the configuration file (and trimmed it down to\nthe bare necessities for my application).  Whew, Success!<\/p>\n<p>Mostly.  Couldn't figure out why I could see traffic I pulled with one\nparticular test harness but not with most others.  Did a lot of head\nscratching and running tcpdump (where I saw the traffic just fine).<\/p>\n<p>Finally I found the essential clue, and not on the community edition page but rather on FastNetMon Advanced's site:<\/p>\n<blockquote>\n<p>FastNetMon Advanced has support for IPv6 protocol. You need to install FastNetMon 2.0.94 version to use features mentioned in this guide.<\/p>\n<\/blockquote>\n<p>Gee, I wonder what percentage of my test harness setups are dual stacked (and thus prefer IPv6)...  Wess guessed 90% which is about right I reckon.<\/p>\n<p>Forcing the traffic to IPv4 with cUrl did the trick, from the test devices that had previously not been working.<\/p>\n<p>I guess I can't complain about lack of features in the Community Edition and I'll be getting off my butt to get the licensed one in place, but this is something I didn't expect to be missing.<\/p>","pubDate":"Thu, 03 Jan 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-01-03:\/2019\/01\/03\/community-edition-blues.html","category":"misc"},{"title":"If your espresso machine was a used car, what would it be?","link":"https:\/\/technotes.seastrom.com\/2019\/01\/02\/if-your-espresso-machine-was-a-used-car-what-would-it-be.html","description":"<p>Recently, my espresso machine extracted a little bit of maintenance budget from me.  The\npressurestat (like a thermostat, but runs off boiler steam pressure rather than temperature)\nhad developed a slow leak, resulting in a periodic puff-of-steam sound as a drip of water hit\na steam filled pipe.<\/p>\n<p>To be fair, this was the first repair of the year for 2018 (except for things like group head gasket replacements which one expects every six months or so like clockwork), so $110 for a new pressurestat, and while I've got it apart why not drop another $12 or so for a boiler water tap rebuild kit?  Hardly expensive for an annual repair bill.<\/p>\n<p>In the wake of this exercise Tan posed the question \"If your espresso machine was a used car, what would it be?\"<\/p>\n<p>My initial response was that it was an old air cooled VW, but that didn't quite match up.<\/p>\n<p>Upon reflection, I realized the answer is clearly \"a Series Land Rover\".<\/p>\n<ul>\n<li>\n<p>The parts are readily available in the US, albeit from a relatively small number of vendors who will go out of their way to help you.<\/p>\n<\/li>\n<li>\n<p>None of the aforementioned vendors are located anywhere near you, so brace yourself for shipping charges if you want it fast.<\/p>\n<\/li>\n<li>\n<p>Many of the fittings on it are stuff that is uncommon in the US.<\/p>\n<\/li>\n<li>\n<p>Online forums are often your best source of advice.<\/p>\n<\/li>\n<li>\n<p>It generally works and gets the job done even when it's ailing in some way or overdue for maintenance.<\/p>\n<\/li>\n<li>\n<p>Literally <em>every<\/em> problem that I've had with it has been related to things that are supposed to seal tightly dripping.<\/p>\n<\/li>\n<\/ul>","pubDate":"Wed, 02 Jan 2019 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2019-01-02:\/2019\/01\/02\/if-your-espresso-machine-was-a-used-car-what-would-it-be.html","category":"misc"},{"title":"Lessons learned from appliance delivery guys","link":"https:\/\/technotes.seastrom.com\/2018\/12\/10\/lessons-learned-appliance-delivery.html","description":"<p>A week ago we took delivery on a par of appliances - a washer and a dryer.  Well, actually three appliances; there are two washers in one - the base for the frontloader washer contains a tiny toploader washer.<\/p>\n<p>I watched the setup team work and as you'd expect they've got stuff down to a science, and have all the tools they need handy.<\/p>\n<p>In addition to the tools you'd expect, they had a one I didn't expect and a trick up their sleeves.<\/p>\n<p>Honestly I'd expected they'd use an appliance dolly or something similar to move the new ones in and the old ones out right?  I'd seen single-person strap contraptions for moving things that are bulky but not particularly heavy, but I'd never before seen a <a href=\"https:\/\/www.amazon.com\/Shoulder-Dolly-Moving-Straps-Efficiently\/dp\/B00022749Q\/ref=sr_1_7?ie=UTF8&amp;qid=1544442103&amp;sr=8-7&amp;keywords=appliance+belt\">two person lifting harness<\/a> for picking up appliances.  They made it look super easy too - tip appliance, slide long belt under the middle, set it down, you and your partner crouch, thread belt through buckle, stand up in unison.<\/p>\n<p>For getting the washer the last little bit into place...  they put\na tiny amount of dish soap on the bottom of the feet.  Slick (so to speak).<\/p>","pubDate":"Mon, 10 Dec 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-12-10:\/2018\/12\/10\/lessons-learned-appliance-delivery.html","category":"misc"},{"title":"Another Cheetah Mount","link":"https:\/\/technotes.seastrom.com\/2018\/12\/04\/cheetah-mount.html","description":"<p>In the wake of <a href=\"https:\/\/technotes.seastrom.com\/2017\/09\/08\/bigups-to-cheetahmounts.html\">previously noted successes with Cheetah Mounts<\/a> when it came time to mount a TV at my mother-in-law's new house, we bought her an <a href=\"https:\/\/www.amazon.com\/gp\/product\/B002MYQTEI\/ref=oh_aui_detailpage_o03_s00?ie=UTF8&amp;psc=1\">updated and improved version of the articulated mount I bought in 2017 for us<\/a><\/p>\n<p>How do you improve on a mount upon which I previously heaped lavish praise?<\/p>\n<p>Easy.  You ship it pretty much fully assembled.  The mount itself was three pieces - the \"bolt to the wall\" piece and two \"screw to the back of the TV\" pieces.<\/p>\n<p>They didn't include M8-1.25x45 screws, which are the extra long ones\nthat Samsung curved back TVs require for VESA mounting, but I think\nthat's Samsung's fault not Cheetah's (and frankly, I'd expect that\nSamsung would have included them, though for <a href=\"https:\/\/www.fastenal.com\/products\/details\/QM2580045A20000\">a buck forty four\nEACH from\nFastenal<\/a>\nit's easy to see why they didn't).<\/p>\n<p>Anyway, go buy a Cheetah mount next time you want to mount a TV.<\/p>","pubDate":"Tue, 04 Dec 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-12-04:\/2018\/12\/04\/cheetah-mount.html","category":"misc"},{"title":"Disk prices","link":"https:\/\/technotes.seastrom.com\/2018\/11\/30\/disk-prices.html","description":"<p>Triumph of Amazon APIs here - I recently learned of\n<a href=\"https:\/\/diskprices.com\">diskprices.com<\/a> which apparently populates\nitself automatically with best prices per unit stored and lets you\nsearch based on various simple criteria.<\/p>\n<p>Site is pretty simple, no ad roll, curious as to how it's financed.<\/p>\n<p>Check it out.<\/p>","pubDate":"Fri, 30 Nov 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-11-30:\/2018\/11\/30\/disk-prices.html","category":"misc"},{"title":"Cameras on the Intercounty Connector (ICC) in MD","link":"https:\/\/technotes.seastrom.com\/2018\/11\/24\/cameras-on-the-ICC-in-md.html","description":"<p>For those of you who might have been wondering, the toll cameras on\nthe ICC do in fact work.<\/p>\n<p>I had a transponder read failure while driving there the other day\n(maybe a lane change while going through the gate is enough to do\nthis) and got a letter in the mail from the Maryland toll collectors.<\/p>\n<p>Turns out that I updated my EZ-Pass account when I got the Bolt...\nbut forgot to update it when I got the vanity tags for the Bolt six\nweeks later.  So they had a clean picture of the tag but no way to tie it\nto my account.  Oops.<\/p>","pubDate":"Sat, 24 Nov 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-11-24:\/2018\/11\/24\/cameras-on-the-ICC-in-md.html","category":"misc"},{"title":"Stop speccing Cat6 cable","link":"https:\/\/technotes.seastrom.com\/2018\/11\/23\/stop-speccing-cat6.html","description":"<p>One of the things I encountered in $DAYJOB is that my predecessors\nseemed oddly preoccupied with speccing Cat6 cable rather than Cat5e\ncable, for all applications.<\/p>\n<p>Why?<\/p>\n<p>For up to and including 1000baseT (gigabit ethernet), Cat6 is no\nbetter than Cat5e.  It does not increase the length of a run from\n100 meters; it just costs more.<\/p>\n<p>Maybe they were trying to be future-proof for customers who they\nthought might upgrade to 10g-on-copper handoffs?  We could give them\nthe benefit of the doubt and assume that was the case.  But Cat6 is\nnot really suitable for 10GBASET.  Every single previous\nEthernet-on-UTP standard says 100m.  But for 10GBASET, Cat6 only goes\n55m.  It is super easy to run out of distance in a datacenter if you\ncan only go 55 meters including the patch cables.<\/p>\n<p>If you want to go 100m with 10GBASET, you can use Cat6a.  Reasonable\npeople may disagree about whether this is a good direction to go (for\ndatacenter work, I fall into the \"fiber for all outside-rack\napplications\" camp).  If you want to go 100m with 1000baseT, Cat5e is\nentirely sufficient.<\/p>\n<p>My best guess is that my predecessors had fallen victim to <a href=\"https:\/\/www.youtube.com\/watch?v=4xgx4k83zzc\">Nigel\nTufnel Syndrome<\/a>.  Don't\nbe that guy.  Unless of course you're speccing ultra-thin cables or\nhave found a situation where the Cat6 cable is actually less expensive\nthan the Cat5e cable (in which case...  you win!).<\/p>","pubDate":"Fri, 23 Nov 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-11-23:\/2018\/11\/23\/stop-speccing-cat6.html","category":"misc"},{"title":"ZFS reading list","link":"https:\/\/technotes.seastrom.com\/2018\/11\/13\/ZFS-reading-list.html","description":"<p>We've been doing a lot of ZFS work around here lately, partially\nmotivated by a sick (but not failed!) zpool after a power failure,\npartially motivated by some experimentation with an eye to what our\nnext generation SmartOS environment is going to look like.<\/p>\n<p>At this point it's probably useful to dump out my personal set of ZFS bookmarks \/ reading list items.<\/p>\n<p>There is no specific order.  They're all worth a looksee.<\/p>\n<h4>Six Metrics for Measuring ZFS Pool Performance from ixsystems:<\/h4>\n<p><a href=\"https:\/\/www.ixsystems.com\/blog\/zfs-pool-performance-1\/\">Part 1<\/a> <a href=\"\/assets\/2018-11-13-ZFS-reading-list\/Six_Metrics_for_Measuring_ZFS_Pool_Performance_Part_1.pdf\">(Local PDF mirror)<\/a><\/p>\n<p><a href=\"https:\/\/www.ixsystems.com\/blog\/zfs-pool-performance-2\/\">Part 2<\/a> <a href=\"\/assets\/2018-11-13-ZFS-reading-list\/Six_Metrics_for_Measuring_ZFS_Pool_Performance_Part_2.pdf\">(Local PDF mirror)<\/a><\/p>\n<p><a href=\"https:\/\/static.ixsystems.co\/uploads\/2018\/10\/ZFS_Storage_Pool_Layout_White_Paper_WEB.pdf\">Downloadable PDF of above<\/a> <a href=\"\/assets\/2018-11-13-ZFS-reading-list\/ZFS_Storage_Pool_Layout_White_Paper_WEB.pdf\">(Local PDF mirror)<\/a><\/p>\n<h4>Aaron Toponce's <em>ZFS Administration<\/em><\/h4>\n<p>Circa 2012 overview of ZFS and Zpool administration.  Assumes ZFS on Linux (Debian), but that's a very small part of the whole picture; most of the information given here is cross platform.<\/p>\n<p><a href=\"https:\/\/pthree.org\/2012\/04\/17\/install-zfs-on-debian-gnulinux\/\">ZFS Administration<\/a> \n* <a href=\"\/assets\/2018-11-13-ZFS-reading-list\/Aaron_Toponce__ZPool_Administration.pdf\">(Local PDF mirror - ZPool Administration)<\/a>\n* <a href=\"\/assets\/2018-11-13-ZFS-reading-list\/Aaron_Toponce_ZFS_Administration.pdf\">(Local PDF mirror - ZFS Administration)<\/a>\n* <a href=\"\/assets\/2018-11-13-ZFS-reading-list\/Aaron_Toponce_ZFS_Administration_Appendices.pdf\">(Local PDF mirror - Appendices)<\/a><\/p>\n<h4>Deduplication<\/h4>\n<p>TL;DR - it's probably not worth it to dedupe.  The economics barely worked in 2011.<\/p>\n<p><a href=\"https:\/\/constantin.glez.de\/2011\/07\/27\/zfs-to-dedupe-or-not-dedupe\/\">ZFS - To dedupe or not to dedupe...<\/a>\n* <a href=\"assets\/2018-11-13-ZFS-reading-list\/ZFS-To-Dedupe-or-not-to-Dedupe.pdf\">(Local PDF Mirror - ZFS - To dedupe or not to dedupe...)<\/a><\/p>\n<h4>Compression<\/h4>\n<p>TL;DR - it's almost certainly worth it to turn on ZFS compression.  Algorithm of choice is a matter for research for a particular dataset and CPU combination.  Protip:  Maildir format email stores are crunchy AF.<\/p>\n<p><a href=\"https:\/\/www.servethehome.com\/the-case-for-using-zfs-compression\/\">The Case For Using ZFS Compression<\/a>\n* <a href=\"assets\/2018-11-13-ZFS-reading-list\/The-Case-For-Using-ZFS-Compression.pdf\">(Local PDF Mirror - The Case For Using ZFS Compression)<\/a><\/p>\n<h4>Slow zpool scrub<\/h4>\n<p>TL;DR - zpool scrub is aggressively non-interfering and backs off so as to not get in the way of more important traffic.  This is usually the right thing to do, and zpool scrubs that take forever to finish are understandable in the context of other disk activity.  Occastionally it's not the right thing though.  More on the ecosystem here.<\/p>\n<p><a href=\"https:\/\/serverfault.com\/questions\/499739\/tuning-zfs-scrubbing-141kb-s-running-for-15-days\">Tuning ZFS scrubbing - 141kb\/s running for 15 days<\/a>\n* <a href=\"assets\/2018-11-13-ZFS-reading-list\/nexenta-Tuning-ZFS-scrubbing-141KBps-running-for-15-days-ServerFault.pdf\">(Local PDF Mirror - The Case For Using ZFS Compression)<\/a><\/p>\n<h4>Deleting Files on a Full Filesystem<\/h4>\n<p>Any Copy-On-Write filesystem that is 100.0000000000% full (no free space whatsoever) creates an interesting chicken-or-egg problem when trying to delete a file since there's no place to put the updated metadata before you free the blocks that the file was occupying.  Here are some hints.<\/p>\n<p><a href=\"https:\/\/www.thegeekdiary.com\/how-to-delete-files-on-a-zfs-filesystem-that-is-100-full\/\">How to delete files on a ZFS filesystem that is 100% full<\/a>\n* <a href=\"assets\/2018-11-13-ZFS-reading-list\/How-To-Delete-Files-on-a-ZFS-Filesystem-that-is-100percent-Full.pdf\">(Local PDF Mirror - How to delete files on a ZFS filesystem that is 100% full)<\/a><\/p>","pubDate":"Tue, 13 Nov 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-11-13:\/2018\/11\/13\/ZFS-reading-list.html","category":"misc"},{"title":"Cablemodem Readings","link":"https:\/\/technotes.seastrom.com\/2018\/11\/12\/cablemodem-readings.html","description":"<p>A couple of months ago my friend Bryan sent me a screen shot of the status page on his cablemodem (often available at http:\/\/192.168.100.1 depending on the manufacturer and model of your cablemodem) and asked for my thoughts.<\/p>\n<p><img alt=\"Bryans Cablemodem\" src=\"\/assets\/2018-11-12-cablemodem-readings\/CM_stats.png\" \/><\/p>\n<p>Here's what I wrote him in reply:<\/p>\n<p>This looks reasonably good.  Salient points:<\/p>\n<p>256QAM needs a CNR (which is technically what they're showing you there, not SNR) of 34 dB (or thereabouts) or better.  64QAM only needs 28.  Rule of thumb is each bit that you add to your QAM constellation requires 3 dB more.  that's true for both j.83 video and cablemodem data - they're exactly the same thing except that the cablemodem channels tend to run a shallower reed-solomon convoluter (because latency) and docsis has a PID of 0x1ffe.<\/p>\n<p>I see your received power levels are around +1 dBmv.  0 dBmv is theoretically ideal.  a cablemodem or stb in a clean plant should be good with +10 to -10 dBmv inclusive.  in my FiOS here, launch out of the ONT is around +10 to +11 dBmv.  I feed that through a combiner (for my locally inserted channels) with 3 dB insertion loss and an 8 way splitter which has about 10.5 dB of loss.  Typically (varies by channel) I see rx levels of around -2 dBmv.<\/p>\n<p>The launch levels on your upstream are at the low end of what you want.  38 to 48 dBmv is where you want to be.  The CMTS will tell your cablemodem to adjust its power until it is receiving (at the CMTS) at 0 dBmv.  That adjustment is made for all cablemodems so when received they're all the same loudness.  What varies is the cable plant and amplifier count between the cablemodem and the CMTS in the upstream path.  You're probably thinking that +40 is fairly hot, and it is...  You want it to be, since you want to be loud compared to any potential ingress in the cable plant (local ham radio operators, etc).  But you don't want to be driving more than 51 or 52 dBmv since you'll in all probability be overdriving the first amplifier you run into on the upstream.<\/p>\n<p>You're seeing about 0.03% loss attributable to stuff FEC can't handle, but not 1518 byte ethernet frame loss, it's codeword loss.  Modulation profile dependent, but maybe 230 bytes long.  Because of the bursty nature of noise, you're likely to have substantially less ethernet packet loss than you have codeword loss since a burst of noise may take out 2-3 codewords in squence that are all part of the same IP packet.  More at https:\/\/volpefirm.com\/docsis-reed-solomon-codewords\/<\/p>","pubDate":"Mon, 12 Nov 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-11-12:\/2018\/11\/12\/cablemodem-readings.html","category":"misc"},{"title":"Bye bye Asterisk","link":"https:\/\/technotes.seastrom.com\/2018\/11\/01\/bye-bye-asterisk.html","description":"<p>For about a decade, Gaige and I have run\n<a href=\"https:\/\/www.astlinux-project.org\">Astlinux<\/a> as our preferred phone\nsystem, with upstream VoIP service from\n<a href=\"https:\/\/www.voip.ms\">voip.ms<\/a>, who asr told us about back in 2008\nwhen they were his customer.<\/p>\n<p>Fast forward to the past month.  My mother-in-law just had a house\nbuilt in Virginia and wanted to hang onto her Maine number.  No\nproblem, opened another voip.ms account for her and bought a Cisco\nSPA112 (a comparatively modern ATA available for under $35 on Amazon)\nso she could continue using her DECT cordless phones.<\/p>\n<p>Come to discover as part of playing around with that account, that\nvoip.ms has grown up a lot since the last time we looked at it.\nVoicemail, IVRs, ring groups, hunt groups...  pretty much the only\nfeature that we had on Asterisk that we didn't get on voip.ms was a\nconference bridge, but the ship has sailed on that since free or super\ninexpensive conference bridges are plentiful these days and besides we\nuse <a href=\"https:\/\/zoom.us\">Zoom<\/a> for most stuff anyway.<\/p>\n<p>Gaige and I migrated our stuff in rapid succession, and all of our desktop phones (a mix of Cisco and Polycom) are talking directly to subaccounts on voip.ms.  Last night I went to Equinix to disconnect and remove the <a href=\"https:\/\/www.pcengines.ch\/alix2c3.htm\">Alix 2c3<\/a> boxes that have served us well in this role for years.<\/p>\n<p>Bye bye Asterisk!  I won't miss your funky configuration file format.<\/p>","pubDate":"Thu, 01 Nov 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-11-01:\/2018\/11\/01\/bye-bye-asterisk.html","category":"misc"},{"title":"exporting homebrew (configuration, not beverages)","link":"https:\/\/technotes.seastrom.com\/2018\/10\/12\/homebrew-migration.html","description":"<p>Sorry to disappoint if you thought this was about beer and not <a href=\"https:\/\/brew.sh\">the\npackage manager for macOS<\/a>.  If you have a Mac and\nyou aren't using Homebrew, you should.<\/p>\n<p>By way of background, my main Mac (a MacBook Pro (Retina, 15-inch, Mid\n2015) - the last version with a hardware escape key) has been having\nsome periodic issues with wireless of late, a problem which I\nattribute partially to the fact that I've been doing the \"pull forward\nfrom Time Machine\" dance since at least Lion, and maybe Snow Leopard,\nand two previous laptops.<\/p>\n<p>I opined to Gaige that I thought I was overdue for a\nbuild-from-scratch, and he concurred.  Almost as an afterthought, he\nsaid \"don't forget to dump out Homebrew\".<\/p>\n<p>You can do that?  Indeed you can.  You'd miss it if you were looking\nfor keywords like \"export\" or \"migrate\" but Homebrew can dump out a\nbundle, which is basically a meta-package which consists only of\ndependencies, which you can then install...  \"quickly\" is the wrong\nword, let's say \"painlessly and then go for a long lunch\" on a new\nmachine or reimaged old machine.<\/p>\n<p>Observe:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>maddog:~ rs$ time brew bundle dump --file=rs-brew-dump\n==&gt; Tapping homebrew\/bundle\nCloning into &#39;\/opt\/brew\/Library\/Taps\/homebrew\/homebrew-bundle&#39;...\nremote: Enumerating objects: 76, done.\nremote: Counting objects: 100% (76\/76), done.\nremote: Compressing objects: 100% (72\/72), done.\nremote: Total 76 (delta 5), reused 24 (delta 0), pack-reused 0\nUnpacking objects: 100% (76\/76), done.\nTapped 1 command (163 files, 218.3KB).\n\nreal   0m5.295s\nuser   0m3.017s\nsys    0m1.741s\nmaddog:~ rs$ ls -l rs-brew-dump\n-rw-r--r--  1 rs  staff  905 Oct 12 07:29 rs-brew-dump\nmaddog:~ rs$ egrep &#39;^brew &#39; rs-brew-dump | wc -l\n      57\nmaddog:~ rs$ \n<\/code><\/pre><\/div>\n\n<p>OK, not that many packages installed, but it sure would have been a\npain to discover slowly, over time, each missing package as I needed\nit.<\/p>\n<p>I copied this file over onto the old laptop which had next to nothing\ninstalled via Homebrew on it, and imported thus:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>Robs-2011-MacBook-Pro-13:~ rs$ time brew bundle install --file=rs-brew-dump\nUsing homebrew\/bundle\nTapping homebrew\/cask\nUsing homebrew\/core\nInstalling aften\nInstalling autoconf\nInstalling bind\n...\n...\nqt: A full installation of Xcode.app is required to compile this software.\nInstalling just the Command Line Tools is not sufficient.\nXcode can be installed from the App Store.\nError: An unsatisfied requirement failed this build.\nInstalling qt has failed!\n...\n...\nInstalling yasm\nInstalling youtube-dl\nInstalling avidemux\nHomebrew Bundle failed! 1 Brewfile dependency failed to install.\n\nreal     133m28.508s\nuser     237m59.382s\nsys  44m35.629s\nRobs-2011-MacBook-Pro-13:~ rs$ \n<\/code><\/pre><\/div>\n\n<p>Sweet.  Two hours plus later and only one failure (had qt actually\nbuilt it would have taken another hour and a half; that software is\n<em>slooooow<\/em>).<\/p>\n<p>Back to the app store to install full Xcode.  What's another 5.9gbytes between friends?  Back from lunch, run it again:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>Robs-2011-MacBook-Pro-13:~ rs$ time brew bundle install --file=rs-brew-dump\nUsing homebrew\/bundle\nUsing homebrew\/cask\nUsing homebrew\/core\nUsing aften\nUsing autoconf\nUsing bind\n...\n...\nUsing par2\nUsing pwgen\nInstalling qt\nUsing ruby\nUsing tcptrace\nUsing tcptraceroute\n...\n...\nUsing youtube-dl\nUsing avidemux\nHomebrew Bundle complete! 61 Brewfile dependencies now installed.\n\nreal     93m54.708s\nuser     281m54.360s\nsys  29m2.047s\nRobs-2011-MacBook-Pro-13:~ rs$ \n<\/code><\/pre><\/div>\n\n<p>And there ya have it, same Homebrew packages installed on the spare\nMBP that were installed on my current production Mac.<\/p>\n<p>This should serve me well when I go to reinstall.  Only trick now is\nfiguring out how to do without my laptop for a whole day while the\ninstallation percolates.<\/p>","pubDate":"Fri, 12 Oct 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-10-12:\/2018\/10\/12\/homebrew-migration.html","category":"misc"},{"title":"Bill's BOM - a Large Home Network Upgrade","link":"https:\/\/technotes.seastrom.com\/2018\/10\/02\/Bills-BOM.html","description":"<p>Back in April, I had an opportunity to upgrade a friend and colleague's\nhome network.  Broadly, the existing home network had long-in-the-tooth\n100mbit switches, 100mbit media converters feeding 1994-date-code OM1 fiber\nto the guest cottage and the barn, a few Apple AirPort access points, and a\n10+ year old router.<\/p>\n<p>This is a list of stuff I bought to perform the upgrade to gigabit ethernet\neverywhere, including new APs and a new router.<\/p>\n<ul>\n<li>\n<p>Switch - Juniper EX4200-48T-8P via eBay.  These are teetering on the edge of EOL, but\nprovide a solid layer 2 managed switch with expansion capabilities to hold optics to\ndrive the fiber to the outbuildings, as well as 8 ports of POE to power the access\npoints throughout the house.  Price:  $148.40<\/p>\n<\/li>\n<li>\n<p>Uplink card for switch - Juniper Networks EX-UM-4SFP via eBay.  This is a 4 port gigabit ethernet\nSFP card, for the expansion slot.  Via eBay.  Paid $54.35.<\/p>\n<\/li>\n<li>\n<p>Router - Ubiquiti EdgeRouter 4 \"ER-4-US\" <a href=\"http:\/\/a.co\/d\/99cwDQH\">via Amazon<\/a>.  Price: $165.44.  Price for these is all over the place.<\/p>\n<\/li>\n<li>\n<p>Housekeeping \/ AP Controller Raspberry Pi - CanaKit Raspberry Pi 3 B+ (B Plus) with Premium Clear Case and 2.5A Power Supply <a href=\"http:\/\/a.co\/d\/fArlEQQ\">via Amazon<\/a>.  Price:  $54.99.  Yes, I know there are cheaper Raspberry Pi kits out there.  You may like them better.  If you do, you should buy them.<\/p>\n<\/li>\n<li>\n<p>Micro SD card for the Pi - Sandisk Ultra 16GB Micro SDHC UHS-I Card with Adapter <a href=\"http:\/\/a.co\/d\/3omTzH5\">again via Amazon<\/a> - Price:  $7.71<\/p>\n<\/li>\n<li>\n<p>Juniper-coded multimode SFPs - <a href=\"https:\/\/www.fs.com\/products\/13274.html\">from Fiberstore<\/a> - I didn't have any MM SFPs in my junk box because I've mostly migrated away from multimode at home and in the datacenter, but with that OM-1 buried in the ground, we had to go with the media already installed.  Price:  $6.00 each.  Needed four for the project.  Bought six so as to have spares on hand.  Which is good that we did, because we had an infant mortality on one of them a week after deployment.<\/p>\n<\/li>\n<li>\n<p>Multimode patch cables - LC to ST - <a href=\"https:\/\/www.fs.com\/c\/om1-62-5-125-multimode-901?lc-st=12\">from Fiberstore<\/a> - various lengths, various prices, from $2.80 for a 1m cable to $3.80 for a 5m cable.  Bought extras so as to have spares.  How could you not at these prices?<\/p>\n<\/li>\n<li>\n<p>Media converters (optical to copper) for the outbuildings.  TP-Link Gigabit Ethernet Media Converter, Up to 1000Mbps RJ45 to 1000Mbps SFP Slot <a href=\"http:\/\/a.co\/d\/inKGQx9\">from Amazon<\/a> - bought three (two needed plus a spare).  Paid $27.43 each.<\/p>\n<\/li>\n<li>\n<p>Power injectors for running PoE access points in the outbuildings.  TP-LINK TL-PoE150S PoE Injector Adapter <a href=\"http:\/\/a.co\/d\/bneTPqV\">from Amazon<\/a>.  Needed two, bought three, $19.00 each<\/p>\n<\/li>\n<li>\n<p>Access points - Ubiquiti Networks UAP-AC-PRO-E Access Point <a href=\"http:\/\/a.co\/d\/1Sk6sm1\">from Amazon<\/a>.  Note that we bought the PoE version with no power supply included since everywhere we're running PoE to stoke the access points.  $127.00 each.  We bought six; five needed plus a spare.<\/p>\n<\/li>\n<\/ul>","pubDate":"Tue, 02 Oct 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-10-02:\/2018\/10\/02\/Bills-BOM.html","category":"misc"},{"title":"Raspberry Pi vs. CloudKey","link":"https:\/\/technotes.seastrom.com\/2018\/09\/30\/raspi-vs-cloudkey.html","description":"<p>Recently, we've been rolling out a bunch of <a href=\"http:\/\/a.co\/d\/aWFREIT\">Ubiquiti Networks\nUAP-AC-PRO-E Access Points<\/a>, first to $CTO's,\n$CEO's, and my house, and once we were satisfied that they worked OK,\n$DAYJOB's offices and datacenters.<\/p>\n<p>These access points need a controller in order to work.  The data\ndoesn't flow <em>through<\/em> the controller, rather, that's how you\nconfigure stuff here in the future.  The controller is written in Java\n(sigh) but that means you have some degree of choice on what to run it\non.<\/p>\n<p>Of course \"some degree of choice\" means you need something <em>to<\/em> run it\non.  At my house this was easy - it's available as a .deb so I chose\nto run it inside a Ubuntu LX brand zone.<\/p>\n<p>But what about at Bill's house?  I initially went with a <a href=\"http:\/\/a.co\/d\/iJQjSQC\">Unfi Cloud\nKey<\/a> on the theory that a $77 hardware appliance would\nbe best.  But the Cloud Key lives up to its name and demands that you have\na login into the Ubiquiti Cloud, which purports to allow you to manage\nyour wireless from anywhere in the world.<\/p>\n<p>That's a great idea in theory but I never did get the off-site\nmanagement working and the cloud-based SSO in order to talk to my\nlocal configuration manager is the sort of thing that creates a\nchicken-or-egg problem if you're trying to fix stuff while the\nInternet is broken.<\/p>\n<p>But I was happy with my home based ersatz-Ubuntu setup.  That got me\nto wondering - we ran STB user interfaces on Java at Time Warner Cable, on CPUs\nthat compared unfavorably with a first generation Raspberry Pi...  would\na Raspi2b, 3b, or 3b+ fit the bill?  They cost less than a Cloud Key, and are capable\nof doing all sorts of other random housekeeping stuff such as running (much better than\nyour router's built-in) dhcp and dns servers, monitoring reachability in the\ninterests of catching your last mile ISP in the act, etc.<\/p>\n<p>I gave this a try and indeed performance is satisfactory, though when\nI did this a couple of months ago Ubiquiti did not have its own\nrepository - <a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu\">they do now as of September 17\n2018<\/a>\nand their preferred installation method of \"here install this .deb and\nthen run sudo apt-get update \u2013fix-missing\" did not comport with the\nway that I like to do things.  Fortunately, the dependencies were\nlimited to OpenJDK, mongodb, and jsvc, so I wrote a little Ansible to\nautomatically install the software on a Pi.<\/p>\n<h2>{% highlight yaml %}<\/h2>\n<ul>\n<li>hosts: raspi-3bplus<\/li>\n<\/ul>\n<p>tasks:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>- name: updating apt cache\n  apt: update_cache=yes\n\n- name: mongodb\n  apt: name=mongodb-server state=latest\n\n- name: openjdk-8\n  apt: name=openjdk-8-jre-headless state=latest\n\n- name: jsvc\n  apt: name=jsvc state=latest\n\n- name: Check if unifi controller is installed\n  command: dpkg-query -W unifi\n  register: unifi_check_deb\n  failed_when: unifi_check_deb.rc &gt; 1\n  changed_when: unifi_check_deb.rc == 1\n\n- name: Download unifi 5.8.30\n  get_url: \n    url=&quot;http:\/\/dl.ubnt.com\/unifi\/5.8.30\/unifi_sysvinit_all.deb&quot;\n    dest=&quot;\/tmp\/unifi_sysvinit_all.deb&quot;\n  when: unifi_check_deb.rc == 1\n\n- name: Install unifi 5.8.30\n  apt: deb=&quot;\/tmp\/unifi_sysvinit_all.deb&quot;\n  sudo: true\n  when: unifi_check_deb.rc == 1\n<\/code><\/pre><\/div>\n\n<p _=\"%\" endhighlight=\"endhighlight\">...<\/p>\n<p>How to do the installation is hopefully only of historical interest\nsince as I mentioned there's a repo for that now, but the performance\nwas actually not bad, and \"stick a raspberry pi in the rack\" is how we\ndecided to deploy in a couple of our office locations.<\/p>\n<p>I'll report back later when I have some time to lab up installing entirely via apt.<\/p>","pubDate":"Sun, 30 Sep 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-09-30:\/2018\/09\/30\/raspi-vs-cloudkey.html","category":"misc"},{"title":"Packet capture while looking for a chatty host","link":"https:\/\/technotes.seastrom.com\/2018\/09\/28\/packet-capture.html","description":"<p>Been trying to track down exactly what an intermittently super noisy\nhost is doing.  Lacking netflow in this environment (and wanting an\nactual packet capture of the device in the act) we were thrown back on\nusing a SPAN port and a laptop running tcpdump.<\/p>\n<p>It's well known that one can use -G to limit tcpdump to collecting for\na certain number of seconds.  Somewhat less well known is the fact\nthat you can use formatted string directives in the filename that is\npassed as a parameter to the -w argument.<\/p>\n<p>I asked the NOC team to do this:<\/p>\n<p _=\"%\" endhighlight=\"endhighlight\">{% highlight bash %}\ntcpdump -n -s 1500 -i en0 -G 300 -w capture-%Y%m%dT%H%M%S.pcap<\/p>\n<p>in order to give us a nice, ISO8601-filename-formated time sequence of\n5 minute packet captures.<\/p>\n<p>But we can run out of space on a laptop SSD fairly quickly.  100\nmbit\/second is 1TByte\/day, in round numbers.<\/p>\n<p>We only care about the captures where there's comparatively a large\namount of traffic.  So periodically blowing away everything but the largest 15\n5-minute pcaps should get us the interesting ones.<\/p>\n<p _=\"%\" endhighlight=\"endhighlight\">{% highlight bash %}\nfor i in <code>ls -l | awk 'NF==9 { printf \"%s %s\\n\", $5, $9 }' | sort -rn | tail +15 | sed -e '$ d' | awk '{ print $2 }'<\/code>\ndo\n  rm $i\ndone\u200b<\/p>","pubDate":"Fri, 28 Sep 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-09-28:\/2018\/09\/28\/packet-capture.html","category":"misc"},{"title":"Using trigonometry to calculate conduit bending","link":"https:\/\/technotes.seastrom.com\/2018\/09\/25\/conduit-bending-and-trig.html","description":"<p>The folks at Dengarden have a lot of conduit bending resources.  If\nyou're familiar with the way that conduit bending is usually taught,\nit's via shortcuts and rote memorization of how to do things like\noffsets, kicks, bends, etc.<\/p>\n<p>Suppose you studied trigonometry in high school, as most of us did.\nMaybe you want to apply math that you already know to conduit\nbending.<\/p>\n<p><a href=\"https:\/\/dengarden.com\/home-improvement\/EMT-Electrical-Conduit-Pipe-Bending-the-Math-Behind-a-Conduit-Bending-Guide\">Dengarden's got you covered for that\ntoo<\/a>.\nAnd I've got you covered with a <a href=\"\/assets\/2018-09-25-conduit-bending-and-trig\/dengarden-trig-and-conduit-bending.pdf\">PDF local\ncopy<\/a>\nin case the original goes away.<\/p>\n<p>The only thing I have to add to their documentation is \"don't\noverthink this\".  Don't start thinking about lines through the\ncenterline of the conduit and try to hang your calculations in the\nmiddle of the air - the only line that really matters is one that is\ntangent to the tube where the EMT touches the wall longitudinally.\nRun all your calculations based on that and everything else falls into\nplace.<\/p>","pubDate":"Tue, 25 Sep 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-09-25:\/2018\/09\/25\/conduit-bending-and-trig.html","category":"misc"},{"title":"Insecticide Blues","link":"https:\/\/technotes.seastrom.com\/2018\/06\/15\/insecticide-blues.html","description":"<p>That moment when you break out a fresh can of the \"kills wasps,\nhornets, and other hymenoptera with a 15 foot stream\" stuff... and\nrealize that it's nowhere near as effective as WD-40, brake cleaner,\ninverted cans of dust-off, and whatever other field-expedient paper\nwasp killer you've grabbed in recent memory.<\/p>\n<p>Sadness.<\/p>","pubDate":"Fri, 15 Jun 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-06-15:\/2018\/06\/15\/insecticide-blues.html","category":"misc"},{"title":"Kahlua recipe","link":"https:\/\/technotes.seastrom.com\/2018\/06\/12\/kahlua-recipe.html","description":"<p>I made a batch of homemade Kahlua recently (like you do when\nyou have a commercial espresso machine sitting on your kitchen counter).\nHad more than one person ask me for the recipe.  Information wants to\nbe free, right?  Besides, I found the original recipe which is my\nstarting point online anyway.<\/p>\n<p>Let's talk for a minute about coffee selection.  Fresh is important.\nGood quality is important.  Not over-roasted or burnt is important.\nBut going for some kind of exotic single-varietal is unlikely to\nbe worth your time since the sugar gets on top of the subtleties of\nthe underlying coffee.<\/p>\n<p>I use King Street Coffee's \"house blend\", which is what they use\nfor espresso there.  Under the covers, it's from\n<a href=\"https:\/\/www.loneoakcoffee.com\">Lone Oak Coffee Company<\/a> in Winchester, where\nthe head roaster, Sam Kayser, has <a href=\"https:\/\/www.loneoakcoffee.com\/awards.html\">earned several awards<\/a>, both regional and national.<\/p>\n<p>Measure out five cups of sugar into an ample-sized container.  Your\nyield is going to be a hair over three litres.  We have a pitcher that\nI like using for this but couldn't find it so I used a big stainless\nsteel pot instead.<\/p>\n<p>Measure out the coffee for, and pull, 20 double shots of espresso.  I\nuse a 21 gram basket with a naked portafilter and 20 grams of coffee\nin it, but that's probably needless detail and you no doubt have your\nown ideas of how this should work based on bean selection, machine,\netc.  You should be pulling the shots to the same standard as if you\nwere going to drink them straight.  In other words, channeling,\ngushing, etc - anything that would cause you to discard the shot if\nyou were going to serve it to someone, should likewise cause you to\ndump it into the sink rather than into the pot with the sugar.<\/p>\n<p>Try your best, but you will not manage to get all the sugar to\ndissolve in just 20 double espressos.<\/p>\n<p>Now it's time for the vodka.  The recipe is developed to consume an\nentire handle (1.75L) of Smirnoff Red (80 proof), because I have\nno particular use for a partial bottle of vodka lying around.  Feel\nfree to substitute whatever your favorite brand of vodka is; I\ndon't fancy myself an expert in neutral grain spirits.<\/p>\n<p>Add the bottle of vodka in thirds.  Stir until the sugar is completely\ndissolved.  Add some of your favorite vanilla extract.  We use the\nglycerin-based <a href=\"https:\/\/www.simplyorganic.com\/extracts-and-flavors\/vanillas\/simply-organic-non-alcoholic-vanilla-flavoring-2-fl-oz\/\">Simply Organic Madagascar Vanilla\nFlavoring<\/a>\nfrom our local hippie-chow market.  The amount to add is open to some\ninterpretation; I think it usually is 2-3 tablespoons but I don't keep\nclose track.<\/p>\n<p>Stir thoroughly and bottle promptly.  I've been using <a href=\"https:\/\/www.containerstore.com\/s\/square-hermetic-glass-bottles\/d?productId=10003575&amp;q=hermetic%20bottle\">500ml \"hermetic\" glass bottles from The Container Store<\/a> but that was mainly informed by previously getting tasty alcoholic gifts in same.<\/p>\n<p>Yield is six bottles plus a small drink for the barista.  23% ABV.<\/p>\n<p>NOM!<\/p>","pubDate":"Tue, 12 Jun 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-06-12:\/2018\/06\/12\/kahlua-recipe.html","category":"misc"},{"title":"BFT Heater Mod","link":"https:\/\/technotes.seastrom.com\/2018\/06\/11\/truck-heater-mod.html","description":"<p>For as long as I've owned my '89 F250, I've been annoyed by the fact\nthat it seems to run warmer than it ought to in the cabin.  I had\nwritten this off to the diesel engine running warm, but there was\nalways this nagging suspicion in the back of my mind that this was not\nthe actual story.<\/p>\n<p>It turns out that the design of these trucks is different than I'm\nused to in vehicle heaters.  There is no such thing as truly \"off\";\nthe coolant is always circulating through the heater core in the\ncabin, even with the heat turned off.  Add in a geriatric blend door\nthat doesn't seal properly, and you've got a recipe for a diesel\npowered mobile sauna.  Hardly the thing you want when heading out to\ngo camping in the late spring.<\/p>\n<p>Ford used to make big rigs, back before they sold to Freightliner\n(part of Daimler-whatever-they're-called-this-year) in the late 90s\nand subsecuently discontinued the product line a decade later in favor\nof the Freightliner and Western Star lines.  Apparently this problem\naffects them too; lots of big rigs use pickup truck bits liberally\nthroughout their cabs.<\/p>\n<p>You'll find a bunch of write-ups in various forums about this, usually\ncouched in terms of \"how to make your air conditioning blow cold\".\nMaking my A\/C blow at all would require a conversion from R12 to R134a\nand some TLC from an expert, so same problem as a truck with no A\/C at all.<\/p>\n<p>There are plenty of home-grown approaches out there, from a\nchoke-cable-actuated cutoff valve to a <a href=\"http:\/\/www.dieselwarden.net\/ford\/coolbypass.html\">neat,\nvacuum-valve-actuated-from-the-dashboard\nimplementation<\/a>.<\/p>\n<p>As the BFT makes its way down the road to being a true Frankentruck,\nthough, I care less and less about such things, and though I wasn't\nreally on board for slapping something together out of random bits\nfrom Lowes I was OK with a seasonal shutoff valve that required\npopping the hood.<\/p>\n<p>Despite the always-on design of the OBS Ford pickup truck and some folks wanting to make the problem a lot more difficult than it is,\nit is entirely permissible to block off that loop with a simple valve.\nit turns out that this problem is endemic enough to the Big Rigs that\nthe <a href=\"https:\/\/www.meicorporation.com\">folks who make big rig HVAC\nparts<\/a> have a valve especially for\nthis application - <a href=\"https:\/\/www.ryderfleetproducts.com\/airsource-2455\/valve-shut-off-manual-5-8-x-5-8-p-mei-2455\">Airsource MEI part number\n2455<\/a>.\nIt cost a bit more than Ryder wants from the local\n<a href=\"http:\/\/www.fleetpride.com\">FleetPride<\/a>, but at least I was able to\npick up hose clamps at the same time.<\/p>\n<p>Note that <a href=\"http:\/\/www.thedieselstop.com\/forums\/f24\/heater-core-bypass-53014\/\">some folks think this is a bad idea<\/a> alleging that it will cause the heater core to rust out quickly.  They're an easy swap in this truck.  They cost $50.  I just got a new one put in less than a year ago, so I guess we'll find out!<\/p>\n<p>Installation took less than 90 seconds on a cold engine and only made a little mess of spilled antifreeze.  What a joy to drive home from Northern Maryland and be a little bit chilly rather than being steam roasted.<\/p>","pubDate":"Mon, 11 Jun 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-06-11:\/2018\/06\/11\/truck-heater-mod.html","category":"misc"},{"title":"Camping trip report -- lag screws and pop-ups","link":"https:\/\/technotes.seastrom.com\/2018\/06\/04\/lag-screw-tent-stakes.html","description":"<p>Melody goes to Burning Man and she told me about a trick people use to\nkeep tents from blowing away on the playa.<\/p>\n<p>If pounding rebar into the ground doesn't suit me as a tool-using\nhigher primate, then busting a gut prying it back out again when\nbreaking camp is doubly unpalatable for this non-neanderthal.<\/p>\n<p>Turns out that really big lag bolts do the job admirably on the playa,\nand I figured we'd give it a whirl in the clay and loam soils of\nNorthern Maryland last week.<\/p>\n<p>We got a bunch of <a href=\"https:\/\/www.boltdepot.com\/Product-Details.aspx?product=5352\">1\/2\" x 16\" lag bolts<\/a>,\nas one would use to hook timbers together.<\/p>\n<p>Added in a <a href=\"https:\/\/www.harborfreight.com\/12-in-heavy-duty-electric-impact-wrench-68099.html\">cheapie electric impact wrench<\/a> from Hazard Fraught, though I recommended to Melody that for use in the dusty environment of the playa she might want to pony up for a better model.<\/p>\n<p>I brought along both deep and regular 3\/4\" impact rated sockets.  The deep ones worked better.<\/p>\n<p>Drove the lag screws down into the ground right next to each leg of\nthe pop-up tent, leaving about an inch sticking up so that the anchor\nload was straight pull-out.  Despite my best efforts I couldn't get\nthem to pull straight so I had good confidence that they'd hold.  Even\nso, they came back out again at the end of camp (9 days with plenty of\nrain) with little trouble - it helps a bit to \"tip\" them slightly to\nthe side when backing out so that the threads can get a fresh bite on\nthe soil to lift the bolt out.<\/p>\n<p>So, how did we hook up the pop-ups to the tops of the bolts?  Or more\nproperly, I'm documenting this so that we can remember next year what we did...<\/p>\n<p>For the bottom, we tied 1m loops out of two meters of <a href=\"http:\/\/a.co\/5fFudjk\">neon pink type\n3 paracord<\/a>.  Feel free to substitute whatever\ncolor of paracord you like; we went with neon pink because had we\ndecided to do the anchoring differently, we would have been mitigating\nsome degree of tripping hazard by using the hi-viz stuff.  These were fastened around the\nbolt heads with a simple <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cow_hitch\">lark's head<\/a>.<\/p>\n<p>For the top, we took another 2m piece of paracord and tied <a href=\"http:\/\/a.co\/6crKWJe\">tent guy\nadjusters<\/a> on one end.  Looped over the top of the frame\nof the pop-up (inside), we (actually Tan because my knots suck) took out most of the slack and tied it to the loop on the bolt with a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bowline\">bowline<\/a>.<\/p>\n<p>Took out the remainder of the slack with the slack adjuster and we were done!<\/p>\n<p>Held great through multiple rain and wind storms.<\/p>\n<p>Thanks Melody!<\/p>","pubDate":"Mon, 04 Jun 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-06-04:\/2018\/06\/04\/lag-screw-tent-stakes.html","category":"misc"},{"title":"Apple, iOS, and the Principle of Least Astonishment","link":"https:\/\/technotes.seastrom.com\/2018\/06\/03\/apple-least-astonishment.html","description":"<p>One of the things that Apple design paradigms pride themselves on is\nthe <a href=\"https:\/\/en.wikipedia.org\/wiki\/Principle_of_least_astonishment\">Principle of Least Astonishment<\/a>\n- designs that match users' experience and expectations, as well as\ntheir mental models.<\/p>\n<p>If you use USB to plug your iPad into your computer, click the radio button that says \"This Computer - A full backup of your iPad will be stored on this computer\" and then clicked on the \"back up now\" button, what do you suppose would be getting backed up?<\/p>\n<p>If you guessed \"Most stuff, with some exceptions for security such as\npassword caches, and oh by the way, certainly not the literally\nhundreds of PDFs that you have copied manually into iBooks as you ran\nacross them\", congratulate yourself - you've won today's prize.<\/p>\n<p>Yep, it's true, your \"not-purchased-from-iTunes\" PDF collection <a href=\"https:\/\/support.apple.com\/en-au\/ht204136\">doesn't get backed up<\/a>, which is why <a href=\"https:\/\/discussions.apple.com\/thread\/8254035\">after I did a software update<\/a>, my whole PDF collection has vanished, never to be seen again.<\/p>\n<p>Apple, can you even cloud?<\/p>","pubDate":"Sun, 03 Jun 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-06-03:\/2018\/06\/03\/apple-least-astonishment.html","category":"misc"},{"title":"Non-Gravity Drain for Plumbed-In Espresso Machine","link":"https:\/\/technotes.seastrom.com\/2018\/04\/07\/espresso-machine-drain.html","description":"<p>It's been a little more than two and a half years since I set up an\nexperimental drain for my plumbed-in Rancilio S26 (commercial espresso\nmachine), and I can report that it's working out well.<\/p>\n<p>Background: There's no convenient drain in the corner of the kitchen\nwhere I wanted my machine and grinder set up.  After thinking about it\nfor a while, I decided I'd try a condensate pump (such as one uses\nwith a condensing furnace or central air conditioner) and a branch\ntailpiece drain line adaptor in the sink, of the type that is used to\naccommodate the discharge from a RO drinking water system without\nmaking getting rid of the port which the dishwasher hooks up to.<\/p>\n<p>Long story short, it works great.  I brought fresh water over to the\nmachine with 3\/8\" polyethylene tubing, then put a second run in\nparallel back along the baseboard.  Some gymnastics were required to\nadapt the output of the condensate pump to a push-in connector, but\nyou can find all the bits you need at Home Depot or Lowes.<\/p>\n<p>It seems that every four to six months ago the pump sounds slightly\nfunny when it cycles and I have to pull out the wine fridge and clean\nout accumulated coffee sediment from the sump of the condensate pump\n(which honestly was expected).  Oh yeah, I put a sign on the tray that\nsays \"no milk!\" since I don't want something disgusting growing in the\npump.<\/p>\n<p>Bill of materials:<\/p>\n<p><a href=\"http:\/\/a.co\/bWch4WI\">Condensate pump<\/a><\/p>\n<p><a href=\"http:\/\/a.co\/4aP3xfu\">Drain line adaptor<\/a><\/p>\n<p><a href=\"http:\/\/a.co\/cwS36r4\">Angle stop valve for cold water to machine<\/a><\/p>","pubDate":"Sat, 07 Apr 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-04-07:\/2018\/04\/07\/espresso-machine-drain.html","category":"misc"},{"title":"easyrsa3 redux - crl expiry","link":"https:\/\/technotes.seastrom.com\/2018\/04\/04\/easyrsa3-redux.html","description":"<p>I run a personal instance of Splunk behind a <a href=\"https:\/\/technotes.seastrom.com\/2016\/11\/01\/preventing-drivebys-with-client-certs.html\">client cert protected<\/a> NGiNX proxy.<\/p>\n<p>Suddenly it stopped working.  Nothing seemed to have changed.  Nothing in my logs either, it was just giving me the 400 page that the client side cert had failed.  Nothing in the logs of any use.<\/p>\n<p>What changed?  Nothing changed!<\/p>\n<p>Except the clock.  Turns out that CRLs expire too, and the default expiration for openssl or easy_rsa3 (not sure which) seems to be 180 days.<\/p>\n<p>Starting up nginx in debug mode yielded this:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>2018\/04\/04 14:07:42 [info] 15800#15800: *3 client SSL certificate verify error: (12:CRL has expired) while reading client request headers, client: 108.44.249.87, server: splunk.seastrom.com, request: &quot;GET \/ HTTP\/2.0&quot;, host: &quot;splunk.seastrom.com&quot;\n<\/code><\/pre><\/div>\n\n<p>So I made a change to easy-rsa\/easyrsa3\/vars thus:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>set_var EASYRSA_CRL_DAYS        3600\n<\/code><\/pre><\/div>\n\n<p>We'll see if this sticks.  I'll try to remember to let you know in another half year.<\/p>","pubDate":"Wed, 04 Apr 2018 00:00:00 -0400","guid":"tag:technotes.seastrom.com,2018-04-04:\/2018\/04\/04\/easyrsa3-redux.html","category":"misc"},{"title":"New Dominion Blue Book is out...","link":"https:\/\/technotes.seastrom.com\/2018\/03\/11\/new-blue-book.html","description":"<p>Back when I wrote about <a href=\"\/2014\/12\/04\/no-schedule-ev-for-me.html\">Schedule EV<\/a> and\nwhy it didn't make sense for me, I made reference to the\n<a href=\"https:\/\/www.dominionenergy.com\/library\/domcom\/media\/home-and-small-business\/new-construction\/blue-book.pdf?la=en\">Dominion Blue Book<\/a> -\nour local power company's provisioning manual.<\/p>\n<p>I recently learned that there's a new version out as of last summer.  Still no\nSchedule EV for me, despite having a shiny new electric car to replace the Leaf,\nthe whole \"submeter must be next to your existing meter\" deal makes it a non-starter.<\/p>","pubDate":"Sun, 11 Mar 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-03-11:\/2018\/03\/11\/new-blue-book.html","category":"misc"},{"title":"zfs send with netcat revsited","link":"https:\/\/technotes.seastrom.com\/2018\/03\/11\/zfs-send-with-netcat-revisited.html","description":"<p>Some years ago I wrote about <a href=\"\/2014\/10\/29\/netcat-and-zfs-send.html\">using zfs send with netcat<\/a> (only across trusted networks!\nto overcome the performance issues (cipher speed, internal window size, etc) inherent in sending the zfs send over an ssh connection.<\/p>\n<p>Month before last, or maybe it was the month before that, Gaige and I were migrating some big datasets using the aforementioned recipe,\nbut experiencing problems with the zfs send croaking mid-stream for no apparent reason.<\/p>\n<p>Upon investigation, we discovered that the problem was one of the usual inherent issues with blindly copying from someone else's how-to\nand declaring victory without fully understanding what all the command line flags mean.<\/p>\n<p>Refresher:  I was advocating the following:<\/p>\n<p>Receiving machine:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>nc -l -p 9999 | zfs receive zones\/med\n<\/code><\/pre><\/div>\n\n<p>Sending machine:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>    zfs send -v zones\/med@now | nc -w 20 192.0.2.10 9999\n<\/code><\/pre><\/div>\n\n<p>For some reason I had it in my head that \"-w 20\" meant time to wait\nfor an initial connection (despite the flag being on the wrong end for\na listener) and 20 seconds seemed long enough to me, so win right?<\/p>\n<p>Well, the difficulty is that the actual semantics of \"-w 20\" is \"if\nyou don't see any input for 20 seconds, consider things to have failed\nand nuke the transfer\".<\/p>\n<p>Gaige and I generally run relatively wimpy disk subsystems; they are optimized for storage\ncapacity and price, not transfer speed and with their LFF NL\/NAS drives certainly not for IOPS.<\/p>\n<p>The result?  If some other process is hammering the bejesus out of the disks\nwhile you're trying to do your copies, it's entirely possible for the\nzfs send (which operates at a lower priority anyway) to just hang for 20 seconds\nwithout anything being wrong.<\/p>\n<p>The commands you probably want are more like:<\/p>\n<p>Receiving machine:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>    nc -l -p 9999 | zfs receive zones\/med\n<\/code><\/pre><\/div>\n\n<p>Sending machine:<\/p>\n<div class=\"highlight\"><pre><span><\/span><code>    zfs send -v zones\/med@now | nc -w 1800 192.0.2.10 9999\n<\/code><\/pre><\/div>\n\n<p>so that if nothing happens for a half hour you declare failure.<\/p>","pubDate":"Sun, 11 Mar 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-03-11:\/2018\/03\/11\/zfs-send-with-netcat-revisited.html","category":"misc"},{"title":"I actually did a bad thing...","link":"https:\/\/technotes.seastrom.com\/2018\/02\/14\/i-actually-did-a-bad-thing.html","description":"<p>I <a href=\"\/2018\/02\/09\/i-almost-did-a-bad-thing.html\">recently wrote<\/a> about\nalmost accidentally overloading my basement slab with a huge pile of\ntile that we're storing.<\/p>\n<p>As the saying goes, \"garbage in, gospel out\" - I had made my\ncalculations based on some faulty assumptions, which I fortunately\ncaught before I went to the trouble of buying a shipping container and\nhaving it delivered for storage.  Here are my calculations for posterity.<\/p>\n<p>The tile we are storing comes in rectangular pieces that are 1'x2'.\nSo two square feet.  There are six pieces of tile in a box, which\nweighs about 46 pounds.  Somehow I had gotten it into my head that\nthere were only two pieces of tile in said box.  Oops.<\/p>\n<p>So, 46 pounds for 12 square feet.  Assuming a worst case of 2200\nsquare feet (we will have less than that), that's 184 boxes of tile,\nor 8464 pounds to store.<\/p>\n<p>But that doesn't all go on shelving.  We are storing 74 boxes directly\non the floor, on edge, between the legs of the shelving.  That's 3404\npounds resting directly on the concrete over a 4x8 area.  That should\nbe fine.  Heck, a king size water bed can be put upstairs; it weighs\nabout a ton when the weight of the frame and headboard is added in.<\/p>\n<p>That leaves 110 boxes for upper levels, or 5060 pounds.  Divided by\nfour, that's 1265 pounds per leg; once the weight of the shelving\nitself and whatever camping gear we throw on the upper shelves is\nadded we are probably looking at more like 1500 pounds per leg.<\/p>\n<p>This is a far cry from 5000 pounds, and hardly worthy of concern by\ncomparison, especially when one considers I already have plates under\nthe feet to spread out the load a bit.<\/p>\n<p>Plans for the garage and the shop are still to way overengineer the\nslab so that I don't have to think about things like this anymore just\nin case i get something really cool to put in the garage (a tank\ndoesn't count since the tracks spread out the weight so that it's\nlighter per square foot than a person).  Hmmm, what will I put on my\nwish list?<\/p>","pubDate":"Wed, 14 Feb 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-02-14:\/2018\/02\/14\/i-actually-did-a-bad-thing.html","category":"misc"},{"title":"codicil to the systemd post","link":"https:\/\/technotes.seastrom.com\/2018\/02\/11\/systemd-codicil.html","description":"<p>A few months ago I wrote a blog post that included a <a href=\"https:\/\/technotes.seastrom.com\/2017\/08\/17\/autossh-systemd-raspi.html\">brief introduction to systemd<\/a> that included the following instructions:<\/p>\n<p _=\"%\" endraw=\"endraw\">{% raw %}\n    sudo cp autossh.service \/etc\/systemd\/system\/ ; sudo systemctl enable autossh.service ; sudo reboot<\/p>\n<p>\"The first report is always wrong\" is a sentiment attributed variously to Sun Tzu, Carl von Clausewitz, and even William Tecumseh Sherman, and it turned out to be right this time too.<\/p>\n<p>It turns out that's not the right place to put your service file.\nSomewhat remarkable that systemd managed to do the right thing in\nspite of itself.<\/p>\n<p>Digital Ocean has a nice <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-use-systemctl-to-manage-systemd-services-and-units\">introduction to\nsystemd<\/a> - mirrored <a href=\"\/assets\/2018-02-11-systemd-codicil\/digitalocean_systemctl.pdf\">here<\/a>\nwhich says that you should be \/lib\/systemd\/system or\n\/etc\/systemd\/system ... but on Debian-flavored stuff anyway, a lot of\nthe stuff in \/etc\/systemd\/system is links to \/lib\/systemd\/system.  So\nit looks as if putting stuff there is actually the right place.<\/p>\n<p>More as I figure it out...<\/p>","pubDate":"Sun, 11 Feb 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-02-11:\/2018\/02\/11\/systemd-codicil.html","category":"misc"},{"title":"I almost did a bad thing...","link":"https:\/\/technotes.seastrom.com\/2018\/02\/09\/i-almost-did-a-bad-thing.html","description":"<p>Mrs. RS and I have long wanted to get rid of the ugly beige wall to\nwall carpet in our house, and we finally got material selected, a\ncontractor lined up, and a plan to tile the entire house except the\nkitchen (which hasn't been remodeled yet, no need to do it twice.<\/p>\n<p>We are planning on building an extension on the house with a master\nsuite upstairs and a garage downstairs, so we bought plenty of extra\ntile.  About 2000-2100 square feet of it to be exact.<\/p>\n<p>I didn't know how heavy porcelain tile is.  I mean, a dinner plate is\nmade of porcelain and it's 2\/3 of a square foot and not heavy at all,\nright?  I asked but didn't get a perfect number from our floor guys,\nso I figured on the heavy side we might have a couple of tons.<\/p>\n<p>I was sure wrong.  The tiles are pretty thick, approaching a\ncentimeter, 1' x 2' and come two in a box...  which weighs about 46\npounds.  So somewhere in the neighborhood of 24000 pounds, give or take.<\/p>\n<p>Once I realized this, it was pretty clear that my clever plan of\nputting most of it on pallet racking in the basement (with the balance\nsitting directly on the floor) was going to be a non-starter.  That's\nfour 5000 pound concentrated loads on the basement concrete slab, which are spread\nout to a little less than a square foot each with the scrap aluminum\nplate I got from a friend underneath the rack feet.<\/p>\n<p>Did you know that most residential basement slabs don't have rebar in\nthem?  They're supposed to have some kind of reinforcement but it is\nusually the stuff that looks like hog panels - welded mesh with wires\non a grid layout.  It's called \"welded wire reinforcement\".<\/p>\n<p>International Building Code has fairly lightweight specifications for\nlive loads in residential structures, 40-100 pounds per square foot\nuniformly distributed and no concentrated load specification.  Compare\nthat with office buildings which share 50-100 pounds per square foot\nand 2000 pound concentrated loads, and manufacturing which is 125-250\npsf uniform and 2000-3000 psf concentrated.<\/p>\n<p>Even though the concrete is typically 3000-4000 psi strength, that's\nin compression.  If the slab flexes at all (and it will), there's a\ntension load.  That's what the rebar helps with.<\/p>\n<p>With an appropriate load spreader under each foot, on a ground floor\nin a building designed for manufacturing, I'd have no trouble with\nputting 12 tons worth of tile in shelving.  But my basement slab is\nonly a fraction of the thickness of such a slab, only a fraction of\nthe strength, and doing this was likely to crack the slab, or worse.<\/p>\n<p>Solution: We're going to get a shipping container to put in the yard\nnear the barn for the tile (and other stuff that I might wish to store\nin it) to live in.<\/p>\n<p>When we have the garage built under the master suite extension as well\nas the shop, how will I get a stronger slab without going broke on\nlabor having people hand tie rebar?  <\/p>\n<p>I think the solution is going to be a thicker slab, plus welded bar\nmats and a consult with a structural engineer about what I'm trying to\ndo.  Seems you can get a <a href=\"http:\/\/www.americanbarmat.com\/docs\/feature.pdf\">welded mat of\nrebar<\/a> which looks\nfrom a distance like the aforementioned hog panels but is made out of\nrebar instead of wire.  Might need a double layer, might not, but\nregardless we should put a layer of foam on the bottom and some PEX in\nthe middle for radiant floor heat...  just in case.  :)<\/p>","pubDate":"Fri, 09 Feb 2018 00:00:00 -0500","guid":"tag:technotes.seastrom.com,2018-02-09:\/2018\/02\/09\/i-almost-did-a-bad-thing.html","category":"misc"}]}}