Nexus on restricted networks

CESARops build of lemonade-nexus ยท written 12 November 2026

Some networks block UDP or allow only outbound HTTPS: schools, hospitals, hotels, airports, phone hotspots. On those, a device cannot reach its Nexus server today. This page says what we built for that case, what else we looked at, and why. It builds on the mesh as it is; nothing here replaces a part of it.

What we chose

A WebSocket path on the server's existing HTTPS listener, used only when UDP does not work. UDP stays first. The session survives a change of path.

The order a device tries

StepPathWhen it is usedStatus
1Direct UDPAlways tried firstupstream today
2UDP relayTwo devices cannot reach each other directlyupstream today
3WebSocket over HTTPSUDP is blocked or dies mid-sessionour fork, lab tested

Other options, and why we did not pick them

OptionWhy not
QUIC or HTTP/3 tunnelIt is still UDP. The networks that block the mesh block this too.
TURN over TCP/TLSA second server and protocol to run and secure. The HTTPS listener and its WebSocket support are already there.
WebSocket always, no UDPSimpler, but slower for everyone: 160 to 181 Mbit/s against 463 on UDP in our lab, and a lost TCP segment stalls every stream behind it.
New handshake on every path changeDrops open streams. The session already lives below the network stack, so a path change only needs a new endpoint.
A third-party tunnel or public relay as the main pathTunnels carry WebSockets but not UDP, and traffic would cross machines the operator does not own. It can be a backup address, not the design.
Disguising traffic, domain fronting, getting past inspectionOut of scope on purpose. This is for networks that allow HTTPS. It does not try to defeat a network's rules, and it looks like what it is: a WebSocket to the Nexus server.

Measured

Lab: two network namespaces on one host, with the firewall and delay applied on the client side.

ScenarioPath chosenFirst answer8 MiB upload
Clean networkUDP6 ms463 Mbit/s
All UDP droppedWebSocket264 ms160 Mbit/s
Only TCP 443 allowedWebSocket264 ms181 Mbit/s
80 ms delay and 2% lossUDP168 ms2.6 Mbit/s

What is not proven

If upstream wants it

Questions and corrections are welcome; Thom posts for CESARops.