GHOSTPORT
← Back to Dev Log

Self-Healing Architecture

Why we treat "router down" as a privacy emergency — and what we built so you never have to.
August 23, 2026 • GhostPort Technologies • Infrastructure

Privacy isn't a setting you turn on once. It's a live system. And live systems fail.

The moment a privacy router goes offline — for any reason, for any duration — your ISP sees raw traffic again. DNS queries hit their resolver. Your browsing patterns land in their logs. Your devices announce themselves to the open internet without a tunnel in the way. That exposure doesn't announce itself. There's no alarm. Your browsing just keeps working, because your home network keeps working. You'd never know unless you went looking.

We call this the exposure window: the gap between when something breaks and when automated recovery closes it. For most routers, that window is "until the owner notices." For a privacy router, that's not acceptable. So we built three layers to close it automatically.

This is the technical story of what we built, how it works, and what we learned.

What happens when the tunnel drops

A WireGuard tunnel is peer-to-peer. If the Pi loses contact with the exit node, it doesn't fail loudly — traffic just stops flowing through the encrypted path. The kernel's routing table still shows the tunnel interface as up. Applications have no idea anything changed. Your browser will eventually time out, but by then packets may have already leaked.

On the radio side, the situation is worse. A wireless AP restart takes seconds. A client reconnects. No one in the house noticed anything happened. Meanwhile, if the tunnel was down during that restart, a burst of traffic went out unprotected. The exposure window can be thirty seconds and leave no trace in any log a customer would ever see.

⚠ The silent failure problem

Your ISP doesn't need long. A 5-minute outage is enough for their systems to log DNS queries, TCP connection attempts, and SNI headers from TLS handshakes. That data goes into the same behavioral profile they've been building for years — and in 2026, most ISPs have made monetizing that profile a significant revenue line.

Neither does surveillance infrastructure. Law enforcement tools that buy commercially aggregated location and traffic data don't need sustained access. A brief gap in your tunnel is a brief window of visibility. For targeted individuals, that's enough.

The answer isn't to pretend tunnels don't fail. They do. Hardware fails, packets get dropped, uplinks hiccup, power blinks. The answer is to know about failures faster than a human would notice them, and recover before the exposure window grows.

Layer 1 — The WireGuard tunnel watchdog

Layer 1 / Tunnel Health

A dedicated watchdog service polls WireGuard peer handshake timestamps on a fixed interval. WireGuard performs a cryptographic handshake with each peer roughly every 180 seconds under normal conditions. If that handshake doesn't happen, the peer is going dark.

Two thresholds trigger different responses:

3 min
Stale threshold — warning logged
5 min
Dark threshold — ops team alerted
Auto
Recovery logged when handshakes resume
24/7
Watchdog runs as a managed system service

At the 3-minute mark, a stale handshake gets flagged and logged. This is the yellow zone — a brief gap in handshake timing is normal during network transitions, and triggering alerts at 3 minutes would generate noise. So this threshold writes a warning and keeps watching.

At 5 minutes dark, the watchdog considers the peer genuinely unreachable and sends an alert through our operations bridge. That notification reaches on-call in seconds. Separately, WireGuard's own keepalive mechanism begins attempting to re-establish the tunnel from the client side.

When handshakes resume, recovery is logged automatically with a timestamp, so the full outage duration is recorded even if no human saw the alert before recovery completed.

Why handshakes and not ping?

WireGuard is deliberately stateless from the OS's perspective — a "connected" WireGuard interface and a dead one look identical to the kernel's routing layer. Pinging the tunnel endpoint only tells you whether the IP is reachable at the network layer; it doesn't tell you whether the cryptographic session is alive. A handshake timestamp tells you the last time both parties agreed on session keys. That's the actual health signal.

Layer 2 — The compound-trigger dual-radio watchdog

Layer 2 / Radio Health

The second layer lives on the AP itself. When we upgraded to a dual-radio architecture — two physical radios bridged at Layer 2, one handling the 2.4 GHz band and one handling 5 GHz AX — we also had to rethink what "the AP is down" actually means. A single-radio failure looked different from a complete AP failure, and the watchdog needed to know the difference.

Before this work, GhostPort devices ran a single radio. One radio means one point of failure, and a hard throughput ceiling determined by that radio's physical capabilities. Early operator testing hit that ceiling at around 40 Mbps on the 2.4 GHz band under normal home conditions. That's enough for most uses, but it's not where modern Wi-Fi 6 hardware should land.

The T-0228 upgrade brought in a second radio: a MediaTek MT7921 handling a dedicated 5 GHz AX channel. Both radios are bridged at Layer 2 — from a client's perspective, they appear as two SSIDs backed by the same network. Traffic can flow through either band based on client capability and signal quality.

40 Mbps
Previous ceiling — single 2.4 GHz radio
590 Mbps
Validated download — dual-radio 5 GHz AX
2
Physical radios, bridged at Layer 2
Both
Radios must confirm failure before watchdog fires

The compound trigger is the key design choice. In dense residential environments, it's common for a single band to drop clients temporarily due to interference, channel congestion, or a neighbor's router stomping on the same channel. A single-radio trigger would fire watchdog recovery constantly in those environments, cycling the AP unnecessarily and introducing its own instability.

The compound trigger requires both radios to confirm failure before escalating. If the 5 GHz radio drops clients but the 2.4 GHz band is still active, the watchdog logs the single-radio anomaly but holds. If both radios go dark within the threshold window, the compound condition is satisfied and recovery fires. This means a genuine AP failure gets caught quickly, while transient single-band interference generates a log entry and nothing else.

The upload investigation (an honest update)

The 590 Mbps download number is real and reproducible. We've validated it across multiple test sessions. What we haven't solved yet: upload.

The ISP delivers roughly 200 Mbps upload measured directly from the test device, bypassing GhostPort entirely. Routed through GhostPort's 5 GHz path and the WireGuard tunnel, the same link caps at approximately 71 Mbps. That's about a third of what the pipe can carry.

The gap comes from multiple compounding factors — Wi-Fi half-duplex overhead, WireGuard's per-packet encryption and encapsulation, and some behavior in how the laptop's radio negotiates rates under sustained upload load. We've isolated it to those three layers but haven't fully attributed the split between them. We're continuing the investigation and will publish findings when we have them. The short version: if you're a GhostPort customer doing large uploads, you'll notice a throughput difference compared to your raw ISP speed. That's real, it's being worked on, and we'd rather tell you about it directly than have you find it on a speed test.

Layer 3 — Multi-region data plane failover

Layer 3 / Regional Redundancy

The third layer operates at the infrastructure level. GhostPort separates the control plane — the fleet management API, device registration, and operations bridge — from the data plane, which is the actual WireGuard relay your traffic exits through.

Why separate them? A control plane failure shouldn't affect active tunnels. And a data plane failure shouldn't require rebuilding your device's configuration. The two concerns are independent, so the infrastructure treats them independently.

The data plane runs in multiple US regions. When a regional relay has a problem — uplink issues, EC2 maintenance, infrastructure events — the operator can switch the exit node by issuing a single command from the Pi's management interface. The Pi rewrites the WireGuard endpoint and public key, and traffic begins flowing through the new region within seconds. No re-provisioning, no factory reset, no waiting on support.

We'll be direct about what this isn't yet: it's not fully automated. The region switch is one command, not zero commands. We've evaluated automatic failover based on tunnel health metrics, and we'll ship it when we're confident the decision logic is reliable enough that automatic switches don't create more problems than they solve. False automatic failovers during transient network events would be worse than a human-initiated switch on a confirmed outage. The architecture is ready for automation; the confidence threshold isn't there yet.

How the layers work together

The three layers are independent and complementary. A tunnel watchdog event doesn't automatically trigger a region switch, and a radio restart doesn't affect tunnel health. Each layer handles its own failure domain. Together, they cover the main causes of an exposure window:

The radio layer runs in parallel. A Wi-Fi restart takes seconds. By the time a radio failure would cause a tunnel stale event, the AP is already back up and clients have reconnected. The radio watchdog's job is to make that restart fast and deliberate rather than relying on hardware's own recovery behavior.

The net result: an exposure window that used to be "until someone notices" is now bounded to the watchdog polling interval plus the time to execute a recovery action. For most failure modes, that's under five minutes. For minor glitches, it's under thirty seconds.

What was happening while other routers were down

The reason we take exposure windows seriously is that the threats on the other side of them are concrete, documented, and ongoing. Here's a representative sample of what happened in 2026 while gaps in network privacy protection were open.

● 2026 privacy incident log
ISP / AI Training • January 2026
Starlink Quietly Updated Its Privacy Policy to Train AI on Customer Traffic
On January 15, 2026, SpaceX updated the Starlink global privacy policy to allow customer data to train machine learning models — including sharing that data with third-party AI collaborators. The change covered location data, IP addresses, payment details, and "communication data" including shared files and behavioral inferences. It applied to all 9 million-plus Starlink subscribers automatically. Customers who didn't scroll to the bottom of their account settings and uncheck a box were opted in. The language appeared in the policy without announcement; an archived November 2025 copy confirmed no equivalent clause existed before January. Source: Elephas Resources
ISP / Advertising • 2025–2026
Comcast's Residential ISP Segment Pulled $3.7 Billion in Ad Revenue in 2025
Comcast's Residential Connectivity & Platforms segment — the division that runs Xfinity broadband — recorded $3.7 billion in advertising revenue for full-year 2025, according to the company's SEC filings. The figure comes from the same division that provides internet service to roughly 30 million US households. The business model: customers pay Comcast for access, and Comcast monetizes behavioral data derived from that access to advertisers. There is no federal law requiring them to stop. Source: Comcast 10-K, SEC EDGAR
Data Breach • 2026
40 Million Charter Customer Records Stolen
A criminal gang obtained at least 40 million Charter Communications customer records, according to TechCrunch's mid-year breach roundup. Charter operates the Spectrum brand, making it one of the largest cable ISPs in the United States. The records were among the largest exfiltrations reported in the first half of 2026. The ISP that holds your data isn't just a privacy risk through its own policies — it's a target. Source: TechCrunch
Government / Surveillance • April 2026
FBI Declared a "Major Cyber Incident" After Its Own Surveillance System Was Compromised
In April 2026, the FBI declared a major cyber incident after identifying that one of its domestic surveillance systems had been breached, potentially exposing the phone numbers of people under federal surveillance. The same month, Congress extended Section 702 — the surveillance authority that allows the NSA to collect communications involving foreign targets, including Americans' communications swept up incidentally — over objections from civil liberties advocates on both sides of the aisle. The dual event illustrated the scale of government surveillance infrastructure and its own vulnerability to the same attacks it's designed to conduct. Source: TechCrunch
Facial Recognition / Breach • 2026
Madison Square Garden's Facial Recognition Database Leaked in 45 GB Ransomware Dump
Ransomware group ShinyHunters stole and leaked roughly 45 gigabytes of data from Madison Square Garden Entertainment, including data from the facial recognition system MSG has deployed across its venues for years. MSG's face-scanning system has been publicly controversial since at least 2023, when it was revealed the company used it to deny entry to lawyers representing clients in lawsuits against MSG. The breach turned a surveillance apparatus into a public leak. Source: TechCrunch
AI / Government Surveillance • 2026
Government Agencies Pushing to Use AI to Analyze Warrantless Data Broker Purchases
Multiple US government agencies have been pushing to use AI to analyze data purchased from commercial data brokers — data obtained without warrants, justified under the same third-party doctrine that courts are slowly dismantling case by case. Anthropic's talks with the Department of Defense collapsed after Anthropic insisted on safeguards to prevent their AI from being used for mass surveillance of Americans. The pressure to automate surveillance at scale is real, documented, and coming from inside the institutions that are supposed to oversee it. Source: EPIC • NBC News

None of these incidents required the victim to do anything wrong. No bad passwords, no phishing clicks, no misconfigured apps. Some of them required nothing from the victim at all — just being a customer of a company that decided their data was an asset to be monetized or that had a security posture that didn't hold up.

The exposure window problem sits in the same category. The threat isn't hypothetical. The question is whether your infrastructure closes the window before the other side can use it.

What this means for you

If you're running GhostPort hardware, the three-layer watchdog stack is active automatically. You don't configure it. You don't maintain it. When a failure happens, the watchdog handles the response. If recovery requires a human action — a region switch, a hardware restart — operations is alerted before you'd notice anything was wrong.

If you're not running GhostPort hardware and you're relying on another privacy tool — a VPN app, a Pi-hole, a manual WireGuard setup on a spare router — ask yourself honestly: how long would a failure of that tool go undetected? Do you have a health monitor on it? Does it send you an alert if the tunnel drops? What's the recovery path if it does?

Most DIY privacy setups have no answer to those questions. That's not a criticism of the people who built them. It's a category of work that's easy to skip when you're focused on getting the privacy function right. But self-healing is part of getting it right.

Privacy infrastructure that monitors and heals itself.

ghostporttechnologies.com
WireGuard. Watchdog. Three layers deep. Automatic.

Sources

  1. GhostPort Technologies. Internal watchdog service documentation, 2026. WireGuard stale/dark thresholds and bridge alert behavior.
  2. GhostPort Technologies. T-0228 dual-radio bridged AP engineering log, May 2026. Dual-radio br0 architecture, 590 Mbps download validation.
  3. Elephas Resources. "Starlink Updated Its Privacy Policy on January 15. If You Don't Opt Out, Your Data Trains AI." January 2026. elephas.app
  4. Coywolf. "Starlink updates Privacy Policy to allow AI model training with personal data." January 2026. coywolf.com
  5. Comcast Corporation. Form 10-K, Fiscal Year 2025. Residential Connectivity & Platforms advertising revenue figures. sec.gov
  6. Whittaker, Zack et al. "Hacked, leaked, and held for ransom: The worst breaches of 2026 so far." TechCrunch, July 7, 2026. techcrunch.com
  7. NPR. "Congress extends controversial surveillance powers for 10 days." April 17, 2026. npr.org
  8. EPIC (Electronic Privacy Information Center). "Government AI Is Coming for Your Data." 2026. epic.org
  9. NBC News. "AI is making it very easy for the government to spy on you. Some lawmakers are worried." 2026. nbcnews.com
🎨
ACCENT COLOR
A+
TEXT SIZE