{"version":"https://jsonfeed.org/version/1.1","language":"en","title":"zotan.pw >> blog","description":"Blog of a disabled neurodivergent queer person unhappy with the state of the world","home_page_url":"https://zotan.pw/blog","feed_url":"https://zotan.pw/blog/feed.json","favicon":"https://zotan.pw/favicon.ico","items":[{"id":"beauty-in-structure","url":"https://zotan.pw/blog/beauty-in-structure","title":"The beauty in [infra]structure","content_html":"<p>For a very long time, like many autistic people growing up, I've approached the world almost exclusively through pattern recognition. Every experience, every situation had to function by a set of rules, and if nobody could tell me what those were, I tried to figure it out for myself. To the dismay of childhood me, this did not work for everything. Where it did work, however, I saw the beauty in the structure that was behind every tiny detail of reality, and I felt calm and safe in the middle of it. In that image I constructed an environment, my safe place, where everything operated to a specific ruleset that I was fully aware of.</p>\n<h3 id=\"and-then-i-got-into-computers\">And then I got into computers</h3>\n<p>Almost a decade ago, I started transferring this concept into the computer realm by means of infrastructure. What started out as a Banana Pi in a hallway closet quickly spiraled into several connected cloud servers that all had a precise list of tasks. Working on this (to me, at the time) megaproject always made me feel safe, because even if the world around me was overwhelming or didn't operate to the ruleset I'd have liked it to, this tiny (albeit digital) world I created kept working exactly as I wanted to, and if it didn't I finally had the ability to <em>change</em> it.</p>\n<p>I spent hundreds, if not thousands of hours optimizing every script, every workflow, every part of this system across many years. It wasn't just a project, it was <em>my</em> project. And even if most people I knew at the time didn't appreciate or understand enough about it to get what I was doing, I was content with myself because <em>I</em> understood, and that was enough for me at the time. I managed to carve my own niche into the world, specific to my wants and needs.</p>\n<h3 id=\"life-moves-pretty-fast\">Life moves pretty fast</h3>\n<p>Over the years, this system kept growing, and with it, the number of users it served. It went from being my happy place to a system I'm maintaining for my friends, and at the same time the number of people who appreciated me for this work grew immensely. It quickly became the thing I was known for, the person who does all the infra work and keeps things running. While this did have its merits, there came a point where I got progressively more distressed at any broken part of this system because I felt like I was being judged or perceived as a failure by everyone who otherwise appreciated me for maintaining it. Rationally, I was aware this wasn't true, but emotionally I couldn't get there. It started to feel more like a chore, not like something I would do for fun.</p>\n<p>Working in a frankly toxic work environment as a systems administrator did not help the situation. I became even more emotionally connected to the state of the infrastructure I was maintaining and when it wasn't working properly, I didn't have the capacity to fix it, precisely because it was broken. The very thing that used to keep me safe turned into the source of my distress.</p>\n<h3 id=\"taking-a-step-back\">Taking a step back</h3>\n<p>For a while, I couldn't really maintain the system anymore. I spent the little energy I did have to get it into a state where it would mostly keep running by itself, even if that sacrificed functionality or performance. In life terms, I spent my time doing other - less digital - things. Struggling to find a sense of identity in something other than infrastructure, I felt like I was floating in a void. Rapidly cycling between different interests and activities in an attempt to find something that could even come close to the role maintaining infrastructure used to have in my life. In a way, I felt lost, like someone or something had taken away the thing that was at my very core, that every ounce of stability in my life was based on.</p>\n<p>A big step forward in this regard was the server migration project (the target server of which is running this very website engine) I finished earlier this year. This made me have a more positive outlook on the way things were heading in regards to maintaining my infrastructure, however I still wasn't able to work on this kind of thing without all the bad feelings associated with it coming back.</p>\n<h3 id=\"reconfiguration\">Reconfiguration</h3>\n<p>The effort however, paid off. A couple weeks ago, something clicked in my brain. It was significantly more sudden than I had expected, but I was finally back at the point I started off all those years ago, once again feeling one with and safe in the sea of orchestrated infrastructure I accumulated across my lifetime. Every tiny component with its own mission, tasks and responsibilities, trying its best. Like a wind-up robot being sent out for a specific purpose and returning with the result to the query. Looking at infrastructure this way is absolutely stunning and beautiful to me, and I'm glad I once again have the ability to do so.</p>\n<p>I think many people don't appreciate the intricacies of the systems powering &quot;the internet&quot; anymore these days, instead treating it like a black box. This, of course, has its merits as well, but I believe that despite all the evil that technology is being used for nowadays, we can still use it to aid us in our lives in a healthy way, guide it to help us achieve whatever our own beliefs may be. Nuance is often lost in discussion, especially on the internet, but I think painting technology as either pure good or pure evil won't do us any good in the long run.</p>\n<h3 id=\"closing-thoughts\">Closing thoughts</h3>\n<p>To many, system administration is a thankless job, because it only becomes visible when something goes wrong. Either everything is working perfectly and people question what you are doing all day, or everything is on fire and people question your competency.</p>\n<p>As a thought experiment, think about all the systems that had to work to make you be able to read this blog post. From your machine, the browser, the operating system, the hardware, connected to an ISP network with all of its thousands of cables, routers and configuration files, through kilometers upon kilometers of fibre, terminating in a data center running my server, running an operating system, running a blog engine. Every part of this process has been meticulously engineered, by hundreds if not thousands of people working in their field of speciality, and it is working consistently and reliably.</p>\n<p>That's what true beauty in [infra]structure means to me.</p>\n","date_published":"2022-12-10T00:00:00Z"},{"id":"site-update-2022","url":"https://zotan.pw/blog/site-update-2022","title":"Site update: 2022 Edition","content_html":"<p>Longer term readers of this blog probably know this already, but the website that this blog is a subpage of hasn't exactly changed much over the past few years. Small content updates here and there did happen, but nothing major.</p>\n<p>About a week ago I started completely rewriting the website in ASP.NET for a variety of reasons. First and foremost, the <a href=\"https://git.ztn.sh/zotan/zotan.pw-web-legacy\" target=\"_blank\">old</a> site was a mess of handwritten HTML with a bit of PHP thrown in, which was completely fine for the original use case the website had, which was a simple index page with exclusively static content. Over the years the annoyances and jank caused by this setup increased quite significantly, especially as I added things like the blog (the one you are reading right now!), the <a href=\"https://travelynx.de\" target=\"_blank\">travelynx</a> integration and the dynamic footer.</p>\n<p>What caused the rewrite project (that I had been planning to start for over a year) to finally happen was the idea of a <a href=\"/np\">now playing</a> page inspired by those a couple friends started to maintain. This idea quickly snowballed into a complete rewrite because of technical limitations of the old website codebase, as well as the usual ADHD project flow we know and love.</p>\n<h3 id=\"the-rewrite\">The rewrite</h3>\n<p>After finally getting started with this project, it went along relatively quickly, albeit with more of a &quot;lots of rapid progress interrupted by hour-long tiny problem debugging sessions&quot; progression. Quickly realizing that most of the work needed for a complete site rewrite would already be implemented if I just finished the <a href=\"/np\">now playing</a> bit, I started reimplementing all of the pages the old site had to offer in the new ASP.NET codebase and started preparations for deprecating the old site.</p>\n<p>Initially, I didn't plan to rewrite the blog part and instead move it over as-is, but a couple friends convinced me to try a <a href=\"https://github.com/xoofx/markdig\" target=\"_blank\">Markdown renderer</a> and it turned out to be one of the easier parts of the rewrite. Polishing it to work <em>exactly</em> like the old site was significantly more difficult however, though I suppose this is expected with a somewhat nontrivial software project.</p>\n<p>I also finally got to use a lot of nice features I had read about in the last couple C# language version changelogs in this project, which was refreshing. I really like the direction the language is taking, even though I know this is a rather spicy take. People have been trying to get me to learn Rust for a while now, but I've not managed to catch on to that just yet.</p>\n<p>The old travelynx.txt file (for displaying train travel &amp; location information) was replaced by a SQLite database, which was also used for the <a href=\"/np\">now playing</a> page that needed some kind of data store. Currently said page isn't entirely complete, as I've not found a good way to import Apple Music listening data just yet (even though that's how this whole project started) as the beautifully named <em>Music User Token</em> (I apologize for my cynicism) expires after less than 24 hours. If I eventually discover a good way to make this happen, or I find myself using another music medium with a solid data feed, I will of course try my best to integrate it into the page.</p>\n<p>The new site, in addition to having a couple new features (see below) and a significantly improved backend, also has subtle style improvements across the board in order to make the whole site feel a bit more personal and cohesive. Overall I am unreasonably happy about this project. Not because it's anything groundbreaking or impressive, but because my website now feels substantially more like me, like <em><strong>my</strong></em> homepage, my little corner of the internet. And I'm proud I finally got to that point. If you have feedback on any of the new or changed things, please <a href=\"/#contact\">contact me</a>!</p>\n<p>Some of the smaller changes include:</p>\n<ul>\n<li>Proper breadcrumbs in the header</li>\n<li>Functional warning if connected via IPv4</li>\n<li>JSONFeed &amp; Atom support for the blog</li>\n<li>Finally, after however many years, a favicon</li>\n</ul>\n","date_published":"2022-11-26T00:00:00Z"},{"id":"tdor-2022","url":"https://zotan.pw/blog/tdor-2022","title":"Trans Day of Remembrance","content_html":"<p><em>In memory of all those that we lost along the way</em></p>\n<p>I cannot and likely will never be able to comprehend the hate that so many people feel for what we are.</p>\n<p>But that’s not what matters today. What matters today is that we’re still fighting, we’re still here, and we’ll keep\nbuilding each other up when we’re feeling down. And we’ll continue to fight, together. As a community. Because if\nthere’s one thing I want, is to not have to light more candles next year.</p>\n<p>Today is trans day of remembrance, trans day of resistance, trans day of revenge, whatever you want to call it. Because\nwe must never lose sight of what we’ve lost, and never lose sight of what we’re fighting for. A better future for trans\npeople everywhere. Because we shouldn’t just get to survive, we should get to thrive, even in this godforsaken world\nthat’s falling apart.</p>\n<p>So let’s stick together and keep going. Keep being there for each other. Keep being the community that’s become the\nfirst place that truly felt like home to me, the first place that I've ever truly felt safe in.</p>\n<p>In the last year too many trans lives ended early. I feel like this track carries the emotion of grief I am feeling\ntoday.</p>\n","date_published":"2022-11-20T00:00:00Z"},{"id":"ipv6-networking","url":"https://zotan.pw/blog/ipv6-networking","title":"IPv6-native networking: a project report","content_html":"<p>If you have reached this post, chances are you already know my <a href=\"https://zotan.network\" target=\"_blank\">AS211579</a>\nproject.\nThis post serves as a summary of the things I learnt and the roadblocks\nI had to overcome on the way to get the network to its current state.</p>\n<h3 id=\"goals-and-setup\">Goals and setup</h3>\n<p>For those who don't know the project, here's a quick recap. After having\ndabbled a bit with <a href=\"https://dn42.eu\" target=\"_blank\">DN42</a> last year during the first lockdown, I wanted to do the real\nthing, in\nthe same global routing system your ISP is using to reach this very web\nserver. While this sounds unnecessarily convoluted and complicated to\naccomplish, it was actually pretty easy and not that expensive. The easy\npart is almost completely due to my knowledge gained by interacting with\nDN42 and the awesome people in #dn42 on the <a href=\"https://hackint.org\" target=\"_blank\">hackint</a> IRC, who have\nhelped me with debugging the stupidest of mistakes. If you're interested\nin any of the things I'm about to talk about, be sure to check out the\ncommunity behind it, it's seriously amazing.</p>\n<p>Alright, we've established the goals, where do we go from here? I\nquickly found a sponsoring AS (something you need for the <em>cheap</em> part)\nand had all the documents on the way to RIPE (the regional internet\nregistry responsible for, among others, Europe and Asia). Once all that\nwas processed, a nice person from one of the many network group chats\nI'm in (Wim, if you are reading this, thank you so much), hooked me up\nwith a free /40 IPv6 subnet for all my routing needs. Next, I got BGP\nVMs. Good places to get them are either\n<a href=\"https://vultr.com\" target=\"_blank\">Vultr</a> (cloud provider)\nor various smaller providers like\n<a href=\"https://ifog.ch\" target=\"_blank\">iFog</a>. Peering mostly\nhappened on <a href=\"https://locix.online\" target=\"_blank\">LocIX</a>.\nFrom there, I provided connectivity to home routers, laptops and other\ncomputer-y devices via WireGuard.</p>\n<h3 id=\"going-a-step-further\">Going a step further</h3>\n<p>Once my projects (mostly RPKI) eclipsed the performance level provided\nby the VMs, I contacted the nice people at\n<a href=\"https://meerfarbig.net\" target=\"_blank\">Meerfarbig</a> for a\ndedicated machine. That one is the primary server running the network to\nthis day. If you are trying to set up a similar thing and are looking\nfor specifics, feel free to <a href=\"/#contact\">contact me</a> and I will give you\nappropriate resources.</p>\n<h3 id=\"the-trials-and-tribulations-of-networking-without-ipv4\">The trials and tribulations of networking without IPv4</h3>\n<p>Now for the fun part, and the likely reason you are here in the first\nplace: all the things that broke along the way. You see, as you might be\nable to tell from the title, my project goal was to set up an\nIPv6-native network. That implies NAT64, DNS64, 464XLAT and a whole bag\nof other fun things. But let's start at the beginning.</p>\n<p>When you have IPv6-only networks, especially when talking about eyeball\nnetworks (the kind mostly used for content consumption, e.g. viewing\nwebpages and their content), you will want a way to reach IPv4-only\nservers. Many popular websites still presently don't support IPv6. At\ntime of writing, this includes GitHub, which is fairly important for\ndeveloping things. A less important (but still relevant) example is\nReddit. For now, we can't reach those websites. What do we do from here?</p>\n<p>Our (first) solution is called NAT64, which translates packets between\nIPv6 and IPv4, hence the name. The software I chose for this task is\n<a href=\"https://jool.mx\" target=\"_blank\">Jool</a>. Setting it up was\nfairly trivial, and I quickly set up three redundant NAT64-gateways that\nannounce the NAT64-WKP (well-known prefix, <span\nclass=\"highlight-bg\">64:ff9b::/96</span>). So far so good, but how do we\nget our systems to actually <em>use</em> those gateways?</p>\n<p>For that, we need to look at DNS, which is responsible for translating\nour domain names (e.g. <span class=\"highlight-bg\">github.com</span>) to\nan address we can connect to (e.g. <span\nclass=\"highlight-bg\">140.82.121.3</span>). If we configure the resolver\nthat does that lookup to synthesize an AAAA record for our IPv4-only\ndomain, we can connect to it! And that's what I'm doing. Using\n<a href=\"https://www.nlnetlabs.nl/projects/unbound/about/\"\ntarget=\"_blank\">unbound</a>, the address <span\nclass=\"highlight-bg\">140.82.121.3</span> (from the real A record) is\ntranslated to <span class=\"highlight-bg\">64:ff9b::140.82.121.3</span>,\nor <span class=\"highlight-bg\">64:ff9b::8c52:7903</span> in encoded form,\nand returned as a synthesized AAAA record. Once we configure our system\nto use this resolver, <em>most</em> IPv4-only sites work perfectly! If you are\nasking why I said most there, I hope you are in for a ride.</p>\n<h3 id=\"xlat-and-questioning-whether-connecting-computers-together-was-a-good-idea\">464XLAT and questioning whether connecting computers together was a good idea</h3>\n<p>The answer to that question is no, obviously. And it keeps chipping away\nat <a href=\"https://xkcd.com/2259/\" target=\"_blank\">my sanity</a>. But\nsince we're here, I might as well roll with it. So, what does 464XLAT\neven mean? It's a specific combination of systems in place to ensure\nconnectivity to IPv4 hosts from IPv6-only networks. Namely, in addition\nto DNS64 and the NAT64 gateway (called PLAT in this setup, provider-side\naddress translator), we need a second piece of software, the CLAT\n(client/customer-side address translator).</p>\n<p>Why, you ask? Because lots of rather popular software (for example,\nSkype and Spotify) not only use IPv4, but hardcoded IPv4 literals. That\nmeans that instead of connecting to <span\nclass=\"highlight-bg\">somedomain.tld</span>, the software tries to\nconnect to <span class=\"highlight-bg\">192.0.2.255</span>, which will\nfail without a CLAT, since we are only capturing (and synthesizing AAAA\nrecords for) DNS queries. A CLAT will take that packet and translate it\nto an IPv6 packet destined for the DNS64-synthesized address of the\ntarget host, the same one the resolver would have synthesized, had we\nnot used literals.</p>\n<p>Okay, sounds simple enough, how do we do this? Most mobile operating\nsystems (Android and iOS) and some desktop operating systems (Windows)\nsupport this natively, though support outside of cellular connections is\nlimited to non-existent. Since we are working with WireGuard here, this\nwon't help us. The solution I used here is giving all clients a private\nIPv4 address, and instead running the CLAT on the router the tunnel\nterminates on. For compatibility reasons I use addresses from the prefix\n<span class=\"highlight-bg\">100.64.0.0/10</span> meant for CGNAT (which\nis almost what we are doing here) for this purpose.</p>\n<h3 id=\"trying-to-get-it-all-to-work\">Trying to get it all to work</h3>\n<p>After the configuration part, getting NAT64 to run was fairly easy,\ndespite some initial issues with routing the NAT64-WKP. Once I turned on\n464XLAT however, everything broke. <span class=\"highlight-bg\">::1</span>\n(the IPv6 loopback address) was unreachable. Traceroutes that shouldn't\neven have gone through the 464XLAT stopped working. I ran into bugs in\nJool. Two fairly major ones, to be exact. However, the developers were\nvery helpful in debugging the problems, and got both of them resolved\nwithin about two months (shoutouts to ydahhrk!). If you intend on\ndeploying a similar setup, I recommend going for the -git version, since\nthose bugs are fixed there already.</p>\n<h3 id=\"one-more-thing\">One more thing</h3>\n<p>One last roadblock was wireguard-quick for macOS. For those unfamiliar\nwith these issues, I'm glad you didn't go through that debugging rabbit\nhole. To start with, if you are tunneling all of your traffic and your\nWiFi or Ethernet connection doesn't support IPv6 while your tunnel does,\nmacOS will sometimes decide to be smart and not attempt to request AAAA\nrecords at all, thereby making the IPv6 connectivity of the tunnel\nredundant. To work around this issue I created a very dodgy-looking\nscript that is run post-up by wireguard-quick, which creates a custom\nnetwork service for the tunnel interface. If you have this problem and\nwant this script, please <a href=\"/#contact\">contact me</a> directly as I don't\nfeel comfortable publishing something that terrible on my website.</p>\n<p>Back to wireguard-quick, though. It turns out that the macOS version is\nparticularly dodgy, since the bypass for the &quot;we only have one routing\ntable to work with&quot; problem the devs went for is adding a more specific\noverride route for the tunnel endpoint, which depends on parsing\nunchecked output of commands that print the routing table to determine\nthe default gateway. For reasons I can't explain, this breaks when you\ncreate a custom network service as mentioned above, and it tries to set\nthe default gateway to <span class=\"highlight-bg\">link#32</span> or\nsimilar. This fails, and therefore the tunnel breaks, as tunnel traffic\nis then routed back through the tunnel in an infinite loop. After\ncontacting the devs in the #wireguard channel on\n<a href=\"https://libera.chat\" target=\"_blank\">libera.chat</a>, my patch\nwas accepted and this specific problem shouldn't occur anymore, though\nthat doesn't change the bodge that is the route monitor code of\nwg-quick.</p>\n<h3 id=\"epilogue\">Epilogue</h3>\n<p>That concludes the network setup. Everything is running smoothly and\nthus far, no further bugs were found. I provide IPv6-tunnels for a few\nfriends who haven't reported any problems either, so at least for now I\nthink that this project is complete.</p>\n<p>I have already removed IPv4 addresses from a few services I run, and I\nhope to do so for the entirety of my online presence by the end of 2021,\nmaybe with a few exceptions for critical services used by friends from\nAustria where major telcos still don't support IPv6.</p>\n<p>Maybe the end of IPv4 is actually near, at least in my small corner of\nthe internet. Thanks for reading, and have a wonderful day.</p>\n","date_published":"2021-08-23T00:00:00Z"}]}