Architecture · Internals · Systems
A technical breakdown of how Anthrill Linux bridges decentralized overlay networks, transparent routing via NSC, multi-stream package management with Mesk, and a zero-bloat init system directly into the everyday Linux desktop experience.
They talk an awful lot about how the conventional Web is dead,
but I still haven't figured out how they actually solved this problem.
This text was written specifically for that situation. So, let's dive in.
Centralized chokepoints vs. decentralized resilience.
Take something like DNS, for example — despite the decentralization built into caching DNS protocols, 16.4% of all domains are served by Cloudflare's authoritative DNS. Seriously, imagine that cluster going down, and in an instant, 16% of domains across the entire internet simply stop resolving.
Sure, that sounds esoteric. And sure, Cloudflare would throw all their resources into getting everything back up as fast as humanly possible. On top of that, Cloudflare runs a massive catalog of completely different, yet no less infrastructure-critical and ubiquitous services — including CDNs, DDoS protection, and much more. But alas, these kinds of outages (or similar incidents) happen regularly anyway.
In decentralized networks, this simply cannot happen. Anthrill's developers are, first and foremost, advocates of decentralization for privacy reasons — we already detailed what's wrong with today's internet in our manifesto. But bridging decentralized networks into the conventional network also brings other benefits that we don't really see a point in spelling out explicitly right now: anyone who has ever used anything like this before already knows why they need something like Anthrill Linux.
Native overlay integration without sacrificing convenience.
The core essence of the project is to bring convenience, decentralization, and genuine independence into the everyday user experience of a standard Linux user, while making "anonymity" or "privacy" dramatically easier to attain (via the NSC clearnet killswitch). Below, I will describe how this is actually implemented.
Anthrill declares native support for the following networks:
Tier 1 Networks (Primary)
Tier 2 Networks (Supported)
How do you implement their native integration into everyday user workflows without sacrificing convenience along the way?
The answer: NSC. NSC is the central traffic controller inside your system, designed to "sort out" connections by destination domain, geosite, IP/geoip, and overlay network. Depending on your rules, it sends a connection directly, blocks it, or passes it to a configured proxy. The application just connects to its destination as usual.
Transparent overlay routing, policy enforcement, and killswitch.
In practical terms: with the appropriate rules and local proxies configured, you can simply open http://reg.i2p in your browser and browse startpage.com concurrently in another tab. NSC sends the first connection to i2pd and handles the second according to your clearnet policy. You don't have to keep switching the browser's proxy settings yourself.
For precise domain routing, NSC gets the name through FakeDNS. By default, it returns real DNS answers from an authorized resolver. An explicit fake policy makes it return a synthetic address from 198.18.0.0/15, with the original domain recorded before the answer reaches the application. When the application connects, NSC recovers that domain and evaluates the route for this particular connection. This also lets it tell domains apart when they share a real IP. With REAL answers, a shared IP alone cannot identify the domain a connection uses. Names like .i2p and .onion need an explicit FAKE policy or an overlay resolver; they never go to the public DNS upstream.
Under the hood, TC eBPF checks packet admission, while nftables and policy routing deliver intercepted traffic to transparent local listeners. The daemon handles domain rules, proxy handshakes, and the actual forwarding in userspace. The base profile covers local IPv4 TCP and UDP: SOCKS5 provides CONNECT and UDP ASSOCIATE, while HTTP proxies handle TCP through CONNECT or supported cleartext HTTP in forward mode. Native IPv6 overlays, including Yggdrasil, need an extension profile; unsupported traffic is blocked in a protected setup.
NSC is also treated as a privacy engine: you can fine-tune traffic routing or use features like the network killswitch. Routing rules are checked in order, with the first match choosing direct, block, or a named proxy, subject to the killswitch. The routing specification uses selectors like domain:, suffix:, geosite:, and geoip:. With the relevant geosite data loaded, you can construct rule chains like:
[[rule]]
action = "block" # or "proxy" / "direct"
target = "geosite:category-ads-all"
[[rule]]
action = "block"
target = "geosite:win-spy"
[[rule]]
action = "proxy"
proxy_name = "i2pd"
target = "suffix:i2p"
[[rule]]
action = "proxy"
proxy_name = "xray"
target = "clearnet"
[[proxy]]
alias = "xray"
url = "socks5://127.0.0.1:10808" # use your configured SOCKS5 port
[[proxy]]
alias = "i2pd"
url = "socks5://127.0.0.1:1080" # use the port configured in i2pd
[policy]
clearnet = "killswitched"
killswitch_mode = "allow-proxy" # allow-proxy OR full
dns_mode = "fake" # explicit choice for precise domain rules; default is real
[dns]
# Documentation address: replace with your authorized DNS resolver.
upstreams = ["udp://192.0.2.53:53"]
Here:
.i2p connections go through the configured i2pd proxy
There are two killswitch modes. allow-proxy lets applications reach clearnet through proxies configured in NSC. full permits only overlay destinations, so a clearnet site remains blocked even through Tor or an I2P outproxy. A direct exception requires killswitch_exception = true in the matching rule. DNS upstream, proxy, and overlay peer connections get narrowly scoped service exceptions tied to trusted services. With the default clearnet = "allowed", the killswitch is inactive.
Configuration changes use SIGHUP, keeping domain mappings alive while new connections use the new rules. NSC starts at boot and runs until shutdown; after a crash, protection stays in place and recovery requires a reboot. Restarting the daemon midway through a client session is outside this design.
We worked hard to keep the configuration as simple and clear as possible, even for someone seeing it for the very first time. NSC, coupled with an isolated IP stack, are the system's key components.
Package management over unstable, multi-overlay environments.
Mesk is our package manager, designed to provide the fastest and most reliable package delivery possible over unstable connections. Working hand-in-hand with NSC, it can dynamically switch mirrors across different networks, and features its own package delivery protocol built on top of HTTP — MPTP.
The core mechanism of MPTP is concurrency — both across multiple packages and within an individual package. Mesk downloads a single package in multiple streams using small ranges whose sizes are determined dynamically based on EWMA and several auxiliary factors. At the same time, it concurrently pulls the package from another mirror in an adjacent overlay network in the exact same manner! You can configure limits for maximum download speed, maximum threads per package, or overall concurrency across multiple packages.
There isn't an awful lot more that needs to be said about it — it is interesting from an engineering standpoint rather than for the average user, since its CLI is hardly different from something like apt. We don't believe in overcomplicating simple, intuitive interfaces for base utilities. (Yeah, pacman, we see you). But leaving it unmentioned was simply not an option.
A fast, simple, and rock-solid init system.
The distribution's init system, built with the goal of being as simple, fast, and stable as possible. Initially, we wanted to adopt an existing one, but systemd constantly forced us to wait several minutes while its next target reported readiness; its developers eventually acknowledged issues with disks being overwhelmed by binary logs years later; and runit just wasn't particularly convenient.
Because of this, we decided to bring together the best of all worlds:
And with that, the core technical details are covered.