packaging / direction
Where a gate can run
OpenWrt first, ordinary Linux next, and what OPNsense and pfSense would actually take.
A TollGate gate has to live on something. Today that something is OpenWrt, because that is what community routers run and what the feed can reach. The interesting question is what comes next, and the honest answer depends on what “support” means.
Support is not one thing
There are three different jobs hidden inside “runs on platform X”:
- Packaging. Build the artefact and put it where the platform’s package manager can find it.
- Service integration. Start it under the platform’s init, give it a config file, make it survive a reboot, and wire it into logs and updates.
- Data-plane port. Replace the firewall and redirection layer the gate depends on. On OpenWrt that is
fw4and nftables; on a BSD it ispf; on a plain Linux box it is nftables again, with a different set of hooks.
Packaging is days. Service integration is weeks. A data-plane port is its own workstream. A platform is supported when it runs the conformance suite and survives an upgrade, not when the binary compiles.
OpenWrt, committed
OpenWrt stays first. The reference implementation is written for it, the package is nearly in a feed, and the device zoo is exactly what OpenWrt is good at. The feed is the difference between a release someone downloads from a Nostr event and apk add tollgate.
The work there is not glamorous: a clean upstream PR, the device matrix, and package maintenance as OpenWrt moves. Landing the OpenWrt feed covers it.
Ordinary Linux, next
The gate is a Go binary, and OpenWrt is already Linux. The delta for an ordinary Linux machine is not a second implementation. It is a service unit, an nftables ruleset, a config file and packages.
That matters because the hardware is already there. A Raspberry Pi, a mini PC, a VM or a Proxmox guest can be a gate. Community networks usually have one of those before they have a spare router. The test lab already runs Debian clients, so the CI path exists.
What is gained is reach and debuggability: normal logs, normal systemctl, normal tcpdump. What is lost is the appliance. There is no sysupgrade, no failsafe mode, and no vendor image to fall back to. OS updates become the operator’s job. That is a real trade, and the documentation has to say so.
OPNsense and pfSense, named
OPNsense and pfSense are where a lot of community networks and small ISPs already have an edge. Both are FreeBSD, both use pf, and both ship a captive portal with vouchers and authentication.
The Go gate and the portal logic carry over. The firewall layer does not. Supporting them means a pf backend, a plugin or package, and a decision about the portal:
- Behind their portal. The existing portal authenticates the user; TollGate meters and charges. Less integration work, but two portals in the path and a confusing first screen.
- Instead of their portal. TollGate owns the redirect and the payment page. Cleaner for the user, more work to install and to avoid fighting the platform’s own rules.
Their portals answer “may this device use the network?” TollGate answers “how much has this device paid for?” Those are different questions, and that is why the integration is not just a package.
The first step is a pf backend and an install path, tested against the conformance suite. Full parity is not promised here; this is a named target, not a shipped platform.
What is not a target
RouterOS is closed, its container support is not a general data-plane hook, and the gate would be a guest in someone else’s routing stack. DD-WRT and Tomato carry proprietary blobs and old kernels, and the effort would go into working around them rather than into TollGate. Neither is worth the maintenance.
What is still open
- a
pfbackend, and the tests that prove it - whether TollGate sits behind the OPNsense/pfSense portal or replaces it
- a support matrix: platform × backend × conformance result
- upgrade and rollback on Linux, where there is no
sysupgrade - who owns OS updates on a non-appliance gate
Status
Packaging / direction. OpenWrt is committed. Ordinary Linux is packaging and service integration, with a first package as the next step. OPNsense and pfSense are a named target with a first step, not a promise of parity.
Get involved
tollgate-module-basic-go— the gate.physical-router-test-automation— the suite that defines “supported”.tollgate-os— the image builder.- If you run OPNsense or pfSense at an edge, the useful contribution is describing your firewall and portal setup, not writing code.
Issues and questions: open one in the repo, or message the TollGate team on Nostr (npub1zzt0d0s2f4lsanpd7nkjep5r79p7ljq7aw37eek64hf0ef6v0mxqgwljrv, also in the index).