Your whole network.
One set of rules.
WholeGuard for OpenWrt puts the same Rust core as the Mac app on your router, as a transparent gateway. Phones, TVs, consoles and laptops follow your rules without a proxy setting on any of them, and you manage everything from a web console built into the package — on a laptop or on your phone.
The router already sees every packet.
WholeGuard asks the router's firewall to hand LAN traffic to it, answers the network's DNS, and sends each connection where your rules say — direct, rejected, or through one of your servers. Nothing on the devices changes.
- Install the packageUpload the .ipk in LuCI › System › Software, or run opkg install. The firewall modules it needs are installed with it.
- Set it up in a browserOpen Services › WholeGuard in LuCI, or port 9090. A short guide asks for a console password, a starting rule set, your servers and the routing data.
- Turn the gateway onFrom the next connection, every device on the LAN is routed by your rules. Turn it off and the network goes straight back to how it was.
Decide per device, not per address.
Every device on the LAN shows up with its live rate, running total and the hosts it talks to most. One dropdown decides what happens to its traffic.
- Follow rules, bypass (straight out, untouched), block internet, or a fixed exit — any policy group or one of your servers.
- Policies follow the device. They are tied to the hardware address in its DHCP lease, so a new IP doesn't hand the policy to someone else.
- When a device's old address goes to another device, its policy pauses instead of landing on the wrong one, and resumes when it comes back.
- Device details show first and last seen, connection counts and top hosts; the Connections page shows which device opened what.
Zero setup on every device.
The router's firewall hands LAN traffic to WholeGuard before it leaves. Devices keep their normal network settings and never learn a proxy exists.
TPROXY for TCP and UDP
The kernel's own TCP stack handles connections and WholeGuard only moves bytes — much lighter on a router CPU than a user-space network stack. REDIRECT mode covers older kernels, TCP only.
Local traffic stays local
Private and reserved ranges, the router itself and your port forwards are never intercepted, so printers, NAS shares, UPnP and incoming connections work as before.
Three modes
Rules, Global (everything through one exit) or Direct (nothing intercepted), one click away in the sidebar of every page.
IPv6 when you want it
IPv4 is taken over by default. IPv6 takeover is a switch in Settings › Gateway for networks that use it.
Manual ports, if you prefer
SOCKS5 and HTTP proxy ports for the occasional device you'd rather point at the router by hand.
Leaves cleanly
On stop — and when it fails to start — WholeGuard removes its firewall rules and points DNS back at your original servers, so the LAN is never left without a working resolver.
Resolution for the whole network.
WholeGuard answers the LAN's DNS through dnsmasq, so a domain rule matches no matter how a device connects.
Fake-IP
Devices get an instant answer from a reserved range and the router maps each connection back to its domain. Domain rules always apply, and a lookup is saved.
Upstreams raced
DoH, DoT and plain UDP resolvers are asked in parallel and the fastest valid answer wins. Split DNS sends chosen domains to chosen servers.
Hard-coded DNS caught
Devices that ignore DHCP and send queries to a public resolver on port 53 are answered by the router anyway.
Built-in encrypted DNS kept in view
Browsers and operating systems that quietly switch to a well-known public DoH provider are refused, fall back to the router, and their sites show up on the Connections page. On by default, one switch to turn off.
Blocklists and hosts
Block ad and tracker domains at the DNS layer, pin names to addresses in a hosts table, and exempt names that need real addresses.
Records you can audit
Every answer with its upstream, timing and client. Look up any name against each upstream side by side.
The same rules as on the Mac.
The router runs the core the desktop app uses, so rules, policy groups and exits mean exactly the same thing in both places.
Rules
Drag to reorder, switch off, read hit counts, and dry-run a host to see which rule catches it. Rules that need routing data you haven't downloaded are skipped and flagged, not silently broken.
Policy groups
Manual, automatic by latency, fallback and load balance. Groups can nest, a name pattern pulls matching servers in automatically, and manual choices survive restarts.
Your servers
Paste server links or add a hosted node list that refreshes on a schedule. A server that is renamed or moves port keeps its identity, so the rules and choices pointing at it stay put.
Exits that are checked
Latency tests also verify certificates and DNS answers through each server. An exit caught tampering with either is flagged and kept out of automatic groups.
Starting points
Pick a starting rule set in the setup guide and edit from there; templates are one click away on the Rules page.
Routing data
GeoIP and domain-category data download on their own after setup and refresh every week.
Manage it from the couch.
The console ships inside the package — about 55 KB compressed — and is served by the router itself. Nothing to install and no cloud service in between.
Laptop and phone layouts
A full sidebar on a laptop; on a phone, a bottom tab bar and tables that drop columns instead of scrolling sideways.
Inside LuCI
Services › WholeGuard opens the console within LuCI. From an HTTPS LuCI, where browsers won't embed a plain-HTTP page, it opens in a new window instead.
Connections and logs
Every connection with its device, destination, matched rule, exit, bytes and — once it closes — why. Plain-HTTP connections are flagged. Structured logs change level without a restart.
Same look as the Mac app
The same ten palettes — light, dark or following the system — in English or 简体中文.
Locked down
A console password set during setup (PBKDF2, HttpOnly sessions), plus DNS-rebinding and cross-site request checks. Forgot it? wholeguard-router reset-password on the router.
Backup and restore
Servers, groups, rules, DNS and gateway settings export to one file — never the password — and restore on this router or another.
Different jobs, same rules.
The router covers the whole household, all the time. The Mac app is the workbench for looking inside requests. Run both if you like — each counts as one device on your license.
| Router edition | Mac app | |
|---|---|---|
| Which devices | Everything on the LAN, with no settings on any of them | The Mac itself, plus devices you point at it as a proxy |
| When it runs | Always — it lives on the router | While the Mac is on and awake |
| Rules, policy groups, DNS | Yes | Yes |
| Per-device policy | Yes, following each device's hardware address | Yes, on the Gateway page |
| Looking inside traffic | Connections: device, destination, rule, exit, bytes | Full requests: headers, bodies, timing, HAR |
| Decryption, rewrite, mock, breakpoints, scripts | No — not compiled into the router build | Yes, opt-in per host |
| Interface | Web console and LuCI, in any browser | Native macOS app |
Requirements
| Firmware | OpenWrt 22.03 or later with firewall4 (nftables). Packages are .ipk, for OpenWrt 22.03 to 24.10; packages for OpenWrt 25.x (apk) aren't available yet. Vendor firmware isn't supported. |
| Processor | ARM64 (aarch64), ARMv7 and x86-64. MIPS builds are experimental. |
| Storage | About 12 MB installed (a 5 MB download), plus about 4 MB of routing data fetched after setup |
| Kernel modules | kmod-nft-tproxy, kmod-nft-socket, kmod-nft-nat, kmod-nft-fib and ip-full, installed with the package |
| Console | http://<router>:9090, or LuCI › Services › WholeGuard. Reachable from the LAN; you set its password during setup. |
| Network | Servers you supply. WholeGuard ships with none and sells none. |
Not sure which package fits? Run opkg print-architecture on the router; the last line is the architecture to pick.
Limits worth knowing
- Nothing is decrypted on the router. The interception code isn't compiled in, so HTTPS stays opaque. Request bodies, rewrites and scripts are Mac features.
- Traffic that starts on the router itself — package updates, for example — goes out directly. WholeGuard routes what the LAN sends.
- Devices on another router's Wi-Fi never pass through this one, so they aren't listed or routed.
- Per-device policies follow devices through this router's DHCP leases. On a router that doesn't hand out addresses, or for devices with static addresses, a policy stays on the address it was set for.
Router questions
Do I need to change anything on my devices?
No. Devices keep their usual network settings; the router's firewall and DNS do the rest. For a device you'd rather configure by hand, the router also offers SOCKS5 and HTTP proxy ports.
What happens to my network if WholeGuard stops?
Before it exits — on a normal stop, and when it fails to start — WholeGuard removes its firewall rules and points dnsmasq back at your original DNS servers, so the LAN carries on without it. If it crashes, procd starts it again. If it was killed and not restarted, wholeguard-router cleanup puts everything back by hand.
Will it slow my router down?
WholeGuard uses TPROXY, so the kernel's own TCP stack handles connections and WholeGuard only moves bytes — far lighter than a user-space network stack on a router CPU. Rule, device and exit changes apply without a restart. Throughput still depends on your router's CPU and on the encryption your servers use.
Can the router decrypt HTTPS?
No. The decryption code isn't compiled into the router build, so nobody can switch it on. Decryption, rewrites, breakpoints and scripts are Mac features — opt-in per host, and only for traffic you're entitled to inspect.
Does the router count as a device on my license?
Yes. A router is one device, like a Mac or a phone, and every plan includes the router edition. See pricing.
How do I uninstall it?
Run opkg remove wholeguard, or remove it in LuCI › System › Software. The service stops first, which takes down its firewall rules and restores dnsmasq.
Put your rules on the router.
Install the package, follow the setup guide, and the next connection from every device on your network goes where your rules say.