r/WireGuard • • 1h ago

A continuation of the WireGuard app for macOS, with some of the most valuable open pull requests merged and notarized by Apple

Post image
41 Upvotes

The WireGuard app for macOS has had no commits since February 2023 (version 1.0.16), and many valuable pull requests were left open in the GitHub mirror. Since I have an active Apple Developer subscription, I decided to take the effort: I reviewed the open pull requests, merged the 8 of the 28 that seemed most valuable to me, plus 3 that had been closed, and published a new version of the app, signed with Developer ID and notarized by Apple. If you would like to see your pull request merged too, ping me (here or in an issue). It is version 2, for macOS only, still a beta: the beta ends once the project has its own name and icon.

If upstream resumes merging pull requests and publishes a new app in the App Store, I will be happy to retire my fork. For the time being, it is a useful place for anybody who needs nested VPN tunnels, for example a WireGuard tunnel on top of eduVPN.

How it came about: I needed a WireGuard tunnel to my lab that runs inside my institute's eduVPN tunnel, which the official app cannot do. macOS sends a VPN app's own packets past every other VPN, straight out over Wi-Fi. My fork binds each tunnel's socket to the interface the routing table chooses, so the inner tunnel goes through the outer one.

What else it adds:

  • Several tunnels at the same time, with split DNS per tunnel (pull request #63).
  • Ten more pull requests from the mirror (seven open, three closed), each credited to its author in the changelog.
  • A system extension, which Apple requires for a VPN distributed outside the App Store, and automatic updates.

https://github.com/alberti42/wireguard-apple

Please review it. If you read the source code, write your review in a gist of your own, starting from the template, which you can copy from https://raw.githubusercontent.com/alberti42/wireguard-apple/main/docs/review-template.md , and link it in an issue. I will list all independent reviews in the README. Each release ZIP carries a build attestation, signed by GitHub, that ties it to the commit it was built from, so anyone can check that a download matches reviewed code; the README explains how.

The fork is not affiliated with the WireGuard project.

PS: While drafting this post, I found earlier posts in this subreddit about other macOS clients, such as WireGuide and LockPlus, so there are now several options to try. I have not tried them myself. What sets my fork apart is that it is probably the closest to the original app: it continues the official code, merges the pull requests that were left open, and adds a few features of my own.


r/WireGuard • • 12h ago

News WireGuard v2 could bring native post quantum encryption to VPNs

Thumbnail reddit.com
51 Upvotes

r/WireGuard • • 21h ago

IP Cams lag when connected to MT-3000 Wireguard VPN Server

0 Upvotes

Recently helped a friend out to stop port-forwarding cams and decided to buy a MT-3000 to use as a VPN server for remote viewing. Still using Xfinity issued modem/router combo and just port-forwarding standard Wireguard port that points to the MT-3000 for VPN services. I've adjusted cam res all the way down to D1 and even VGA on some but still they connect and then lag after viewing for a period of time. Current ISP speeds without VPN should be somewhere around 500Mbps down/50Mbps up. So even with the VPN overhead and adjusting res on cams all the way down to where they are that should be enough to constantly view. I have a similar cam setup at my house although I am running OpenVPN server directly on my home router (ASUS/non issued Xfinity equip) and I have no issues at all connecting back to my cams over VPN and that's using TCP instead of Wireguards UDP which is supposed to be faster and less overhead.

Not sure what gives...any assistance would be greatly appreciated. Thanks!


r/WireGuard • • 2d ago

WireGuards protocol might break due to AI

Thumbnail lists.zx2c4.com
465 Upvotes

Turn on PSKs if you haven't already


r/WireGuard • • 1d ago

Solved Wireguard Profile Temp Expiration Using Unifi UDM

7 Upvotes

So here's the situation: I work for a public entity. We occasionally have auditors come, and we offer a VPN profile so they can connect to our network, which gives them access to the county servers without having access to our local network, effectively using it as a passthrough for them. It works great; however, we found that our passthrough was being used during their audit of other public entities in the area, so they have authentication via our passthrough to the county.

Here's where my question comes in: We use UniFi UDM's WireGuard VPN option; however, there's no option to pause/temp-expire the profile without removing it completely, and since it's always the same people, I don't want to have to supply new profiles every time they come. So they were given individual profiles without a PSK, and now I'm wondering if I can add a PSK (obviously not give it to them) to effectively "pause" their access, then remove the PSK to "resume" their profile access.

Is using the PSK option in that manner a viable way to effectively "pause" and "resume" their access without completely removing the profile?

Edit: This has been solved. I have it set up so there is an instance with special policies meant only for the auditors. What I didn't know is that you can actually just pause the whole instance, which makes creating a PSK for each person unnecessary.


r/WireGuard • • 1d ago

Where does your WireGuard server's private key live? Ours are no longer on disk. What we changed and what you can copy

0 Upvotes

Quick note first: I work at doxx.net. This is what we changed on our own servers and the parts you can copy on yours. Not promoting we just thought it was cool !

The problem

A WireGuard server's private key is its identity. On most setups it is a file on disk. Anyone who images the disk, reads a backup or takes the box can pretend to be that server until you notice and rotate the key.

What we did

Each of our locations runs a small daemon that builds the keys in memory at boot:

  1. One half of a 32-byte salt is compiled into the daemon.
  2. The other half is fetched from our config server over a pinned certificate, with a credential we can revoke per node. It is stored only as ciphertext.
  3. The two halves meet in RAM, and 96 private keys for that location are derived from them.
  4. The keys go to WireGuard over a local socket, and the daemon zeroes its own copies.

Seize the disk and you get one half, which derives nothing. Pull the power and the RAM is gone.

What you can copy without any of that

  • Find where your key is. On most setups it is a file under /etc/wireguard.
  • Check what else can read it: backups, snapshots, disk images, other users.
  • Keep it off the config file if you can. wg-quick can load it at start from a secrets store, for example `PostUp = wg set %i private-key <(pass WireGuard/private-keys/%i)`.
  • Decide how you would rotate it, and how your clients would get the new public key, before you need to. Limits

None of this protects a running server from someone who already has root on it. The key has to exist in memory to run a tunnel. What it changes is how much a stolen disk or a seized box is worth.

Where does your server's private key live, and when did you last rotate it?

The full write-up: https://www.doxx.net/blog/the-key-that-was-always-there/


r/WireGuard • • 1d ago

Rotating WireGuard pre-shared keys from a pair of USB sticks (open source, unaudited, feedback wanted)

4 Upvotes

WireGuard's optional pre-shared key is there so that a future break of Curve25519 doesn't expose your traffic. In most setups that PSK is set once and never changed. I wrote a small tool that rotates it automatically from keys that never travel over a network.

How it works:

  • An offline machine fills two USB sticks with the same list of random 256-bit keys. One stick goes to each end of the tunnel.
  • One end leads and the other follows. They agree on a key number over UDP, authenticated with a proof derived from that key. The key itself is never sent.
  • Each side then applies it with wg set <iface> peer <key> preshared-key /dev/stdin, so the PSK never appears on a command line.
  • There are no clocks involved. Keys are numbered, so there's nothing to drift.
  • The new PSK takes effect at WireGuard's next handshake, so the tunnel doesn't drop when it rotates.
  • If the sticks run out of keys, the tunnel stays on the last one and logs an error.

What it is not:

  • It doesn't replace WireGuard's handshake. Curve25519 is still used; this only keeps the PSK layer fresh.
  • It has not been independently audited. Two self-reviews found ten flaws, which are fixed and listed in SECURITY.md, and I assume there are more.
  • It has only been tested against wireguard-go in network namespaces, with a relay dropping and replaying the control messages. It hasn't run on kernel WireGuard or real hardware yet.
  • You need physical access to both ends, so it's for machines you control, not cloud VMs.

It's a single Python file. The same sticks can also encrypt file transfers, one key per file.

Code: https://github.com/joshuataniwha/twinusb
Overview: https://twinusb.com

I'd most like feedback on the key-agreement messages, what happens when the two ends fall out of step, and whether rotating the PSK this way causes problems I haven't hit. Please don't rely on it for anything important yet.


r/WireGuard • • 2d ago

Port Forwarding with Wireguard

Thumbnail reddit.com
3 Upvotes

r/WireGuard • • 3d ago

Wireguard stopped working

Thumbnail reddit.com
1 Upvotes

r/WireGuard • • 4d ago

Need Help Cloudflare warp app not working.

1 Upvotes

So on my pixel 9 pro xl. The warp app barely connects so I reinstalled it and now it doesn't connect at all. It works fine on my other phone and my PC. So is there a way I can use wireguard and connect cloudflare warp using it and not use the actual warp app? Warp app is so buggy for me and it gives fatal errors and device not authorized by organization errors. If I get through, device not authorized by the organization error. It's starts giving fatal error and stuff. It connected when I reinstalled the app and opened it with my mobile data instead of wifi. But I'm using WiFi for all my other devices and it works. But not my phone.


r/WireGuard • • 4d ago

Tools and Software I built a WireGuard server that runs inside an iOS app (wireguard-go + gVisor netstack, no Network Extension)

0 Upvotes

Tether is an iOS app that listens for WireGuard on the iPhone's hotspot address. Your laptop, iPad or travel router uses a normal WireGuard client, and Tether terminates the tunnel in userspace: wireguard-go decrypts, gVisor's netstack ends the TCP and UDP flows, and each one is opened again from the iPhone's own sockets. So the traffic leaves as the phone's, not as hotspot traffic.

Setup is a QR code or a .conf you download from the phone. GL.iNet and UniFi travel routers work as clients too.

Open source (MIT): https://github.com/viktor-svirsky/tether

Happy to answer questions about running wireguard-go inside an iOS app.


r/WireGuard • • 5d ago

Need Help Best way to access to Java Web application from outside of my LAN

2 Upvotes

Hi,

In my company (7 users) need to access to java aplication web from a raspberry pi to access to the application.

I've configured Wireguard but I think it's too unsafe.

Based on your experience, what method would you recommend for providing this access? Please keep in mind that I’m not looking for anything expensive or complicated.

Or do you think the WireGuard method I mentioned is the right one?

Thanks!


r/WireGuard • • 5d ago

Need Help Can't wrap my head around how to avoid LAN IP conflicts

0 Upvotes

Hi all,

I've been a Tailscale user, but I wanted to try out Wireguard. Tailscale is giving me fits on my iOS devices, and I was hoping direct WG would resolve this and also give a little boost in performance.

What I can't figure out, though, is how to avoid IP conflicts between my LAN and the wifi/LAN I might be connected to while making a WG connection back home.

Tailscale has been good in this regard - I am set up to use my machine "familiar names" on all my devices (e.g., http://homeassistant). When I'm home, this resolves either with Netbios on Windows machines or my LAN DNS (TP-LINK ER605) for Apple. When I'm away, Tailscale resolves the machine name (I always connect to Tailscale when away from my home LAN). No conflicts.

I'm under the impression that WG will require me to use my local IP address (e.g., 192.168.0.10), whether home or away, to access my machines. I know this can cause conflicts if I'm on a public/non-home wifi/LAN. Short of re-tooling my whole home LAN to move all of my current static IPs to new, somewhat random static IPs, how does one avoid this? Is there a way to continue to use my "familiar" machine names on Wireguard, without having to have all traffic route through my home network (I'd like to only have WG tunnel to my home network when accessing a device on it)?

Thanks!

EDIT: I probably wasn't clear... my issue is not in selecting the appropriate address for my wireguard tunnels, but instead ensuring that the addresses for accessing my home LAN devices resolve appropriately when I'm using wireguard on a remote/public network. My experience has been that, at times, when trying to access a local LAN machine at 192.168.0.5 (for example) when on a public wifi, my device tries to resolve that address on the public wifi instead of going through the tunnel to my LAN.


r/WireGuard • • 6d ago

Need Help Is it safe to open a port on my router for Wireguard VPN?

Thumbnail reddit.com
0 Upvotes

I'm in the planning stage, so nothing has been configured yet. I'm staring at a piece of notebook paper right now instead of a terminal to give you an idea of where I'm at.


r/WireGuard • • 7d ago

Ideas WG2FA: self-hosted WireGuard with TOTP 2FA, where a peer only exists while its owner has a valid 2FA session

3 Upvotes

A device's peer is loaded only while you're logged in with 2FA, and removed when the session expires or is revoked. Other features: VPN profiles (routes, DNS, MTU, session length), site-to-site router configs (MikroTik, OpenWrt, OPNsense/pfSense, wg-quick), a web GUI with audit log, a self-service portal, and macOS/Windows clients.

It's a single Go binary that uses kernel WireGuard or wireguard-go, with Docker and Podman Quadlet deployment.

Repo: https://github.com/jwklijnsma/wireguard

Known gaps: IPv4 only for now, and no DNS leak protection on Windows yet. I'd really appreciate security-minded feedback.

Built with help from AI coding tools; design decisions and testing are mine.


r/WireGuard • • 6d ago

Tools and Software WG-Control - a Wireguard automator for Android

0 Upvotes

WGControl provides a more automated way to control your WireGuard tunnels depending on your device's current situation.

!!This is a VibeCode product!!!

As I host my own WireGuard server to access my home network and use my Pi-hole from abroad, I have been using Tasker to disable the tunnel whenever I connect to my home Wi-Fi network. However, as my family has grown and I was looking for a solution that doesn't require running Tasker on every device, I decided to build an app tailored exactly to my needs.

So, without further ado, I present WGControl:

https://codeberg.org/FadeFX/WGControl

Features:

  • Controls the official wireguard app
  • Controls the official AmneziaWG app
  • No ads or trackers—just functionality
  • Switches WireGuard/AmneziaWG tunnels via their official broadcast interfaces
  • Switches tunnels based on connected Wi-Fi or Bluetooth devices
  • Checks internet connectivity before (re)activating a tunnel
  • Scans visible Wi-Fi networks
  • Add Wi-Fi networks manually
  • Allows selecting multiple Wi-Fi networks that disable/enable the tunnel
  • Wildcard support in Wi-Fi names (only ? for one letter)
  • Allows selecting multiple Bluetooth devices that disable the tunnel (since wireless Android Auto does not work over a VPN)
  • Automatically detects most android auto devices on connection
  • Prompts via notification upon pairing unknown Bluetooth devices to ask if it is an Android Auto device
  • Protects settings with an admin password (Kids Mode)
  • Enables logging for behavior analysis (stored for a configurable time up to 24 hours)
  • Full-text filter in the protocol viewer
  • Quick enable/disable toggle in notifications
  • Option to disable the tunnel for x minutes
  • Quick enable/disable toggle in quick settings
  • Backup and restore settings with optional encryption (using the admin password)
  • Widget with status display and toggle functionality
  • Manages multiple tunnels (per Wi-Fi connection, mobile data, and mobile roaming). Background: I usually use a split tunnel, only connecting to my devices over the tunnel, while the rest of the trafic goes over the open internet. However, in certain situations I want a full tunnel for complete security. This is also useful for users of commercial VPN services.

Get it here:

https://codeberg.org/FadeFX/WGControl/releases

F-Droid:

https://f-droid.org/packages/org.supersane.wgcontrol

To be done:

  • Optional MAC address identification for WiFi networks
  • Tiny Server component to provide cryptographic homenet identification
  • You tell me...

r/WireGuard • • 7d ago

Replacing GoodCloud after the Nov 20 incident: Cloudflare DDNS + WireGuard, Tailscale, or both?

Thumbnail reddit.com
3 Upvotes

r/WireGuard • • 7d ago

Tools and Software Self-healing config for PIA on ASUS routers

3 Upvotes

r/WireGuard • • 8d ago

Need Help How do you handle CVEs in wireguard-go?

0 Upvotes

I’m using wireguard-go in a mobile app.

When a CVE comes up in something like golang.org/x/crypto, do you update the dependency yourself or wait for an upstream update?


r/WireGuard • • 9d ago

iOS with AT&T wireless [ Recent struggles ]

6 Upvotes

I've had the iOS WG client on my AT&T for several years and it's been flawless. Around August timeframe, I started having issues sustaining my connection. The tunnel connects back to house over standard UDP 51820 port in my PFSense Firewall. I performed a packet capture last week when the tunnel went down and saw no external traffic attempts on that port. [ but maybe I won't see UDP attempts anyways? ]

- WG Tunnels work great on static remote devices [ external routers or peer servers in cloud ]

- I tried switching my iOS tunnel over to IPv6 and experienced same issues [ with a separate cloudflare DNS name for IPv6 ]

- The tunnel "does" work sometimes on my iPhone for a bit, it just doesn't sustain.

- Have not had a chance to test this on phone when connected to an outside WiFi, mainly because I think the issue is when it switches towers or interfaces on the phone.

Coincidentally, I did update my PFSense router around the same time I started noticing this. I've semi-ruled this out though since the handshake appears to die and not attempt new connections.

Is this something with AT&T's mobile network that I need to workaround? I'm about to deploy the tunnels to spouse and kids and starting to consider using Tailscale instead...

Attaching a iOS log snippet for feedback. It repeats similar cycle over and over:

[NET] peer(pT8P…llW4) - UAPI: Updating endpoint
2026-11-17 07:32:06.469
[NET] Routine: receive incoming v4 - stopped
2026-11-17 07:32:06.469
[NET] Routine: receive incoming v6 - stopped
2026-11-17 07:32:06.470
[NET] UDP bind has been updated
2026-11-17 07:32:06.470
[NET] Routine: receive incoming v4 - started
2026-11-17 07:32:06.470
[NET] Routine: receive incoming v6 - started
2026-11-17 07:32:07.031
[NET] peer(pT8P…llW4) - Handshake did not complete after 5 seconds, retrying (try 2)
2026-11-17 07:32:07.031
[NET] peer(pT8P…llW4) - Sending handshake initiation
2026-11-17 07:32:12.122
[NET] peer(pT8P…llW4) - Handshake did not complete after 5 seconds, retrying (try 3)
2026-11-17 07:32:12.122
[NET] peer(pT8P…llW4) - Sending handshake initiation
2026-11-17 07:32:14.635

EDIT: Also found this user post on Ubiquiti but I was not able to find reference to others with this problem as the OP mentions. Wireguard breaks on AT&T 5G


r/WireGuard • • 10d ago

Self-hosted VPN with user authentication?

19 Upvotes

Self-hosted VPN with user authentication?

I have five regional OpenVPN gateways running in Docker on my home server using a commercial VPN subscription. Each gateway has its own WireGuard interface, allowing users to choose which location they want to connect to.

My current setup looks like this:

User Devices (WireGuard App)
             |
      My VPN Server
             |
     Regional Gateways
     ├── Toronto
     ├── New York
     ├── London
     ├── Tokyo
     └── Amsterdam
             |
   Commercial VPN Provider
             |
          Internet

I currently use WireGuard Portal to manage peers and generate QR codes.

Instead of distributing WireGuard configs, I'd like users to log in to an app using their own credentials, select a VPN location and connect, just like a regular commercial VPN app. I'd also like to centrally manage and revoke user access.

Is there any open-source, self-hosted application that can do this while utilizing my existing VPN setup?


r/WireGuard • • 9d ago

A tiny auto-switcher for WireGuard on Windows (native ARM64): tunnel off at home, on everywhere else

0 Upvotes

The official WireGuard client for Windows is great, but it has no auto-connect: I kept forgetting to turn the tunnel on in cafés, or leaving it on at home. I tried WG Tunnel, which does this, but on my Surface Laptop (Snapdragon) it felt too heavy for what I needed. So I built something small that does only this one job.

WG-AutoSwitch is a native Windows service plus a tray app that turns your WireGuard tunnels on or off depending on the network you're connected to.

What it does

  • Trusted networks (e.g. home) → tunnel off; everything else → tunnel on. No network → off.
  • Different tunnel per network if you like (e.g. home VPN vs. office VPN).
  • A network only counts as trusted when several things match: gateway MAC address plus DNS suffix, SSID or BSSID. An SSID alone is easy to fake.
  • Waits for captive portal login (hotels, trains) before connecting.
  • Imports .conf files, e.g. straight from the OPNsense peer generator.
  • Uses the official WireGuard for Windows installation. No custom VPN code, it only starts and stops the tunnel services.

Why it's light

  • Native C++/Win32, about 150 KB, native ARM64 and x64
  • Event-driven: no polling and no timers while idle, so no battery drain
  • Runs as a least-privilege virtual service account, not LocalSystem
  • No telemetry. The only network request is an optional daily update check on GitHub, which you can turn off.
  • English and German UI

Honest notes

  • It was written with the help of Claude (AI). The code is public under MIT, so feel free to review it.
  • The releases are not code-signed yet: I've applied to the SignPath Foundation, so SmartScreen may warn you for now.

GitHub: https://github.com/benerages/wg-autoswitch

Feedback, bug reports and feature ideas are very welcome. I'd especially like to hear from other Windows-on-ARM users.


r/WireGuard • • 11d ago

WireGuard client iPhone weird behavior

4 Upvotes

Have opnsense 26.7.9_3 at home
Trying to get a iPhone road warrior setup going

WireGuard client on iPhone, tunnel setup using a QR code in opnsense

Config “looks” good.

Endpoint in iPhone before activating correctly says xx.yy.zz.30:51820

When activating the tunnel, the endpoint instantly changes to an IPv6 address with port 51820

When I deactivate, the endpoint changes back to the ipv4 address i specified..

Is this normal?