r/WireGuard • • 16d ago

LockPlus 2: native WireGuard + OpenVPN client for macOS, kill switch enforced by macOS itself (free, MIT)

I've been working in IT for 30 years, as an IT engineer, and I use VPNs every day: WireGuard for my own servers, OpenVPN with one-time codes for work. I never found a Mac client I liked for both. Either there was no real kill switch for both protocols, or the UI was something I didn't want to look at every day. So I built my own. Version 1 was a Go app with a root helper and pf rules. It worked, but I wasn't happy with it. Version 2 is a complete rewrite as a native macOS app.

To be upfront about it: most of the code was written by AI coding agents (Claude). I set the direction, made the decisions, tested it and I'm the one accountable for it. Every security-relevant change went through separate AI security review passes, and I published those reports with their fixes in the repo. That is not a human audit, and LockPlus hasn't had one. If you want to look at the code or the reports and tell me what's wrong, please do.

What it does differently: the tunnel runs in a Network Extension, so there's no root helper and no admin password to connect. The kill switch uses macOS's own includeAllNetworks, which means macOS blocks everything outside the tunnel, also while it reconnects. OpenVPN sign-in with one-time codes works, including a new code on reconnect. That was my main reason to start this.

I measured the limits instead of guessing them. If the tunnel process crashes, macOS lets traffic through for under 2 seconds until it restarts the tunnel (1.3 to 1.7 s in my test runs). That's in the FAQ, together with the other limits.

It's my daily driver now. Before the release I tested it on my own MacBook with all my VPN profiles, and on macOS 26 and 27 VMs.

Limits: macOS 26+ and Apple silicon only, one tunnel at a time (on purpose, because the kill switch is built around one tunnel; several at once is on the list for 2.1), and no OpenVPN TAP, plugins, SSO sign-in or old ciphers like BF-CBC.

Repo, README and FAQ: https://github.com/steiale/lockplus Download (notarized DMG): https://github.com/steiale/lockplus-updates/releases/latest/download/LockPlus.dmg Review reports: https://github.com/steiale/lockplus/tree/main/docs/reviews

If you used LockPlus 1.x or WireGuide+: update to 1.2.0, it offers the move to 2.0 and takes your profiles along.

Feedback and criticism welcome, here or on GitHub.

6 Upvotes

15 comments sorted by

2

u/ksteink 16d ago

Interesting concept. Will check it out

0

u/Steiale 16d ago

Thanks! Means a lot to me. Any feedback and bug finding is welcome. I am also open to add feature requests. So please let me know if you're missing something.

1

u/ksteink 16d ago

It will be nice if it can be installed via homebrew as package install on my work laptop is restricted but policies are more relax if the package is available via homebrew.

Thanks!

3

u/Steiale 16d ago

Glad you mention it. It is already prepared. I just wanted to wait for some more feedback before publishing in brew.. I will let you know asap. But I am with you on this..

1

u/ksteink 16d ago

thanks!

2

u/Steiale 15d ago

Brew is live and also a 2.0.1 update with some hardening and fixes. brew install --cask steiale/tap/lockplus

1

u/ksteink 15d ago

Thanks! I could install it but asked me to toggle ON to create the TAP interface but the privileges on my work laptop doesn't allow me to turn ON the toggle

2

u/Steiale 15d ago

Yes, that one needs an admin, sorry. Some background on why: Apple only allows VPN apps without that approval step if they come from the Mac App Store. Anything distributed outside it, like LockPlus via GitHub and Homebrew, has to run its tunnel as a system extension, and macOS lets only an admin (or MDM) switch that on.

I went this way on purpose: it's open source, fixes ship the same day instead of waiting for App Store review (2.0.1 went out like that today), and compared to LockPlus 1 there's no root helper and no admin password to connect anymore. The kill switch is Apple's own.

The flip side is exactly what you hit on a managed Mac. If your IT wants to pre-approve it: Team ID M53GHX9FAY, extension io.github.steiale.lockplus.mac.tunnel.

1

u/ksteink 15d ago

No issues and this is out of your control. Not big fan of these restrictive policies

2

u/Masterflitzer 13d ago

If the tunnel process crashes, macoS lets traffic through for under 2 seconds until it restarts the tunnel.

i would've thought apple has better engineers than that, it shouldn't let anything through at all...

3

u/Steiale 12d ago

Same reaction here when I measured it. With the kill switch on, macOS (includeAllNetworks) blocks everything outside the tunnel while it's connected, reconnecting or failed. But when the tunnel process itself crashes, macOS briefly treats the session as ended and lets traffic through until it has restarted the tunnel. In my runs on macOS 26 and 27 that was 1.3 to 1.7 seconds.

I'd rather say that up front than claim "no leaks ever", so it's in the FAQ with the measurements. LockPlus 1 used its own firewall rules and didn't have this gap, but it needed a root helper and an admin password, which is the trade-off I moved away from.

What I can do on my side is make crashes rarer. That was part of 2.0.2: profile files are now parsed in a separate sandboxed helper instead of inside the tunnel process, so a broken or malicious profile can't take the tunnel down anymore.

2

u/Masterflitzer 12d ago

tbh. very good job about finding this out, you should create a bug report at apple, iirc they take things like this seriously and would probably fix it, you have all the data and proof so it's even more likely they can reproduce it with your help to work on this, it's not only a harmless bug, but also a security issue

i would actually test this project on my macbook because it sounds super interesting, but mine is also mdm managed from my work and i don't have any private mac devices

3

u/Steiale 12d ago

I actually found a serious OVPN security hole while coding and testing. The report was sent to openvpn and they are looking into it.

2

u/Masterflitzer 11d ago

doing the lords work

1

u/Steiale 12d ago

LockPlus 2.0.2 is out. It's mostly a security update, plus two things people asked for. If you already run 2.0.x it shows up in the app (Check for Updates…); Homebrew has it too (brew upgrade --cask lockplus).

What changes for you

  • Profiles start from LockPlus. Starting a profile from System Settings › VPN or with scutil --nc start now only works for your Auto-Connect profile. Any other start from outside the app is refused with "Connect it from LockPlus". This also stops other user accounts on the same Mac from connecting your profiles with your saved credentials. Connecting from the window or the menu bar works as before.

New

  • Open profiles from Finder: double-click a .ovpn, use Open With for .conf and .zip, or drop files on the Dock icon. You always see the import preview first; nothing is saved until you confirm.
  • Test Connection (Diagnostics, ⌘R): checks that IPv4, IPv6 and DNS really go through the tunnel. It only contacts LockPlus's own test page, and only when you start it. It says "through the tunnel" only when the test actually proved it.

Security

  • Profile files are checked in a separate, sandboxed helper with no network and no file access. The tunnel component, which runs as root, no longer parses untrusted profiles itself. A broken or malicious profile now hits a throwaway sandbox instead of the part that carries your traffic, which also removes a whole class of ways to crash the tunnel.
  • The tunnel component only talks to LockPlus builds at least as new as itself, so an older signed copy can't be used against a newer tunnel.
  • The end of a pause, the end of an update and your Auto-Connect choice are sealed with a key in your keychain and used once, so another program can't replay them to start a profile.
  • Zip imports are capped (1 MB per profile, 64 MB unpacked).

How it was checked

Every security-relevant change goes through two independent AI review engines from different model families: Anthropic's Fable and OpenAI's Codex (GPT-6-Astra at maximum reasoning effort). Both get the same threat model: other users on the Mac, malware running as you, a hostile network, a malicious profile file. Findings get fixed, then both review again, round after round, until neither reports a high-severity issue. For 2.0.2 that took seven rounds. Two model families really don't share the same blind spots: each regularly found things the other had missed.

Reviews alone aren't enough, so the release candidate also ran end to end on macOS 26 and 27 virtual machines. That run found two bugs no review had seen (the new profile checker crashed in the signed build, and a paused profile didn't reconnect while the app was closed). Both were fixed, re-reviewed by both engines and re-tested on the VMs before release.

Every report, every finding and how it was fixed is public in the repo. To be clear about what this is: an AI review is not a human security audit. Most of the code is written by AI coding agents; I decide, test and I'm accountable for it. If you find something, a GitHub issue or a private vulnerability report is very welcome.

Known issue

If LockPlus quits unexpectedly, Edit Config… may open nothing until the next normal start. Quit with ⌘Q and open it again. Fixed in 2.1.

Coming in 2.1 (in testing now)

Rules per Wi-Fi network, Shortcuts and a Focus filter, a widget and a Control Center toggle, continuous checking that the routes and DNS on your Mac match your profile, and a "Don't make automatic requests" switch. Same review process, and the release notes will list every bundled component with its version.

Links

Thanks for all the feedback so far, it's shaping what goes into each release.