r/WireGuard • • Jan 30 '20

Welcome to r/WireGuard - How to get Help

93 Upvotes

Welcome to the r/WireGuard subreddit!

The best place to find help is on IRC: Sign into #wireguard on Libera, either using an IRC client or with webchat.

If you are looking for help here on Reddit, be sure to use the Need Help flair.

Looking for a Reddit alternative? https://lemmy.ml/c/wireguard

Do read the documentation:

wireguard.com

wg manpage

wg-quick manpage

Provide good information when asking for help


r/WireGuard • • 3h ago

How do you run an ad/tracker blocker together with your own WireGuard VPN on iOS?

4 Upvotes

iOS only lets one VPN (packet tunnel) run at a time. So if you use a WireGuard VPN (Proton, Mullvad, your own server), you can't also run a local filtering app next to it. Most people end up putting a blocking DNS (NextDNS, AdGuard DNS) in the WG config, or relying on the provider's built-in blocking.

I'm the developer of ADFastDNS, an iOS/macOS app that does local DNS filtering (custom wildcard rules, allowlists) plus some network intrusion detection. I'm considering letting it run in front of a WireGuard config you import: the filtering happens on-device, and then your traffic goes out through your VPN.

Before I spend months on it, I'd like to know if this is a real problem for anyone:

  1. Do you use a WireGuard VPN on iOS together with a DNS/ad blocker today? How?

  2. What's missing or annoying in that setup (custom rules, per-domain control, logs, DNS leaks)?

  3. Would you use something like this, or is the DNS= line in the config enough for you?

I'm not selling anything here, just trying to find out if this is worth building.

Happy to answer questions about how it would work.


r/WireGuard • • 22h ago

Tools and Software Running userspace wireguard-go and AmneziaWG obfuscation inside Telegram without VpnService

5 Upvotes

Sharing a project for anyone dealing with strict ISP DPI or wanting per-app WireGuard without giving up Android's VpnService slot.

Instead of creating a tun interface via VpnService, WireGuard Plus (MIT) embeds wireguard-go and gVisor netstack inside the Telegram process via LSPatch (rootless) or LSPosed (rooted) and runs a local SOCKS5 server with UDP ASSOCIATE for tgcalls voice and video media.

A few things I had to work around while building it:

  • Plain gomobile bind AARs crash under LSPatch classloading, so scripts/build-wgbridge.ps1 builds the native bridge reproducibly.

  • The WireGuard endpoint hostname resolves over DoH inside Go before dialing so ISP DNS poisoning doesn't break the handshake.

  • It supports full AmneziaWG parameters (Jc/Jmin/Jmax, S1 to S4, H1 to H4) as well as a decoy junk-packet preset that helps against DPI even on vanilla WireGuard servers.

  • Built-in route verification runs a live TLS exit-IP check, Telegram DC2 reachability check, and a UDP relay check through the tunnel.

Repo and architecture notes: https://github.com/AliHaider704/wgplus

Would appreciate feedback on the Go bridge or AmneziaWG edge cases.


r/WireGuard • • 1d ago

Need Help Wireguard no longer connects after recent update. I'm using Surfshark

Post image
3 Upvotes

r/WireGuard • • 2d ago

Tools and Software I built a FOSS split tunnel app: WireGuard and Tailscale at the same time, different exit per app

6 Upvotes

Hello everyone,

I could not find a good looking app for split tunneling where I can use WireGuard and Tailscale at the same time, with a different exit for each app. So... well, I built one for me, and as it worked quite well for me and some friends, I released it.

What it does: you make routes, each route has its own exit, and you put apps in them. Every route can use a different provider, and they all run at the same time. So for example your browser goes out through Mullvad in Sweden, a streaming app through NordVPN in the US, some apps through your own WireGuard server at home, and banking goes direct with no VPN. Tailscale runs next to it, so your home network stays reachable. You can sign in to a few providers in an easy way, or just import your own WireGuard or OpenVPN configs.

It's free and open source (GPL), no ads, no account. There is an Android and a Mac version, and some enthusiastic user of the android app also made an unofficial Linux port. I am working on an Android TV version as well.

I know it's not the most technically advanced tool out there and split tunnelling can be configured directly in the router - but I built the apps on purpose as I travel a lot, and I am not into technicalities. I wanted something nice looking and easy to cinfigure: import your WireGuard configs, pick an exit for each app, done.

Android: https://github.com/quiet-crafts/unbraid

Mac: https://github.com/quiet-crafts/unbraid-mac

Website: unbraid.app

Do note that development has been mainly done via AI.

Hope you find it usefull. Feedback is welcome.


r/WireGuard • • 3d ago

Possible to let a specific device bypass Wireguard?

Thumbnail reddit.com
0 Upvotes

r/WireGuard • • 3d ago

Tools and Software [Open Source] A few updates to Privateerr for PIA WireGuard + port-forwarding

Thumbnail
reddit.com
4 Upvotes

r/WireGuard • • 3d ago

Tools and Software Could not configure Gluetun docker via wireguard using fastestvpn

1 Upvotes

Hi Guys,

I am trying to rack my brain in configure gluetun docker via wireguard using my new provider fastestvpn. I've obtained the WG.conf file and using the windows wireguard software and it works just fine. Here's the config...

[Interface]

PrivateKey = 2ByXXXXXXXXXXXXXXXXXXXXXX

Address = 172.16.95.247/32

DNS = 10.8.8.8

[Peer]

PublicKey = 658XXXXXXXXXXXXXXXXXXXXXXX

AllowedIPs = 0.0.0.0/0

Endpoint = us-mia.jumptoserver.com:51820

However, when I try to put in the information for the conf file it doesn't work in gluetun container... Here's my configuration (note that us-mia.jumptoserver.com 's ip address is 37.120.157.250 )

- VPN_SERVICE_PROVIDER=fastestvpn

- VPN_TYPE=wireguard

- WIREGUARD_PUBLIC_KEY=658XXXXXXXXXXXXXXXXXXXXXXXXXX

- WIREGUARD_PRIVATE_KEY=2ByXXXXXXXXXXXXXXXXXXXXXXXXXX

- VPN_ENDPOINT_IP=37.120.157.250

- VPN_ENDPOINT_PORT=51820

- VPN_DNS_ADDRESS=10.8.8.8

- WIREGUARD_ADDRESSES="X.X.X.X/32"

- WIREGUARD_ALLOWED_IPS=0.0.0.0/0,::/0

Any help on how to configure would greatly appreciated. Thanks.


r/WireGuard • • 4d ago

Tools and Software What survives when a NetBird-managed WireGuard mesh loses its management server, and what we built around it (open source)

4 Upvotes

I'm dlf-dds on GitHub, one of goat's maintainers, posting in a personal capacity, not on behalf of any organization. We maintain goat, an open-source system whose network layer is WireGuard managed by NetBird. Most of what follows applies to any NetBird or WireGuard mesh.

If the management server goes down, the tunnels that were already up stay up. WireGuard is point-to-point: once two peers hold each other's keys and endpoints, management, signal and relay are out of the data path, and a keepalive holds the NAT mapping. An established direct tunnel rides out a management outage.

Now move one of the peers. A laptop roams, or a satellite or mobile link hands out a new address, while signal is still down. The other side cannot find it again until signal returns. Relayed peers are the most fragile: after a signal and relay restart they can get stuck "Connecting" and need netbird down && netbird up (upstream issue netbird#4540). Scenarios: https://github.com/usareur-af/goatdocs/blob/main/docs/reference/resilience.md

What we did about it.

  • Profiles, never one global login. Our tutorials create a named NetBird profile per environment and pass --profile on every netbird up, because a bare netbird up re-enrols whichever profile you used last and overwrites its login.

  • A relay in Rust. goat-relay is a clean-room reimplementation of the NetBird relay's data plane, written against our write-up of its wire protocol. Its first numbered release is v0.1.0 (tag goat-relay/v0.1.0), and it is tested in CI.

  • Mesh policy from git. NetBird access rules and group membership are generated from reviewed files; the dashboard is read-only by default and a converger undoes hand edits.

  • Services bind to the mesh address. Our data-fabric router binds only to the host's NetBird mesh IP, so it is unreachable off the mesh.

Designed, not built. A cut-off site running its own management and signal so peers there can re-find each other with no outside link. A NetBird client only uses the one signal address its management server gives it, so a local signal server on its own is not enough; the site needs its own management too.

Above the mesh, goat runs Zenoh publish/subscribe with certificate identity from an offline CA, and Ory for people. The one-box tutorial: https://github.com/usareur-af/goatcore/blob/main/docs/tutorials/00-goatlite.md

How do you handle roaming peers during a signal outage?


r/WireGuard • • 5d ago

Need Help Installing 2021 version on my VPS, better to update to 2026 version?

4 Upvotes

As the title says,

I installed WireGuard mainly for gaming on my Oracle VPS through and this is the version I have "wireguard-tools v1.0.20210914"

apt install wireguard

then realized it says the module is out of date, do I need to update the tools and everything 'till 1.0.20260223?


r/WireGuard • • 5d ago

94% speed loss when connecting ASUS TUF-AX4200 to ISP's ZTE router

1 Upvotes

Hope someone may be able to clarify or help with the 94% speed loss when connecting ASUS TUF-AX4200 as my Wireguard server to my ISP's ZTE ONT/ Router. Details below:

  1. ISP provides a ONT/ Router with a down/ up speed of 1000/ 600 Mbps

  2. The router topology is: ISP's ONT/ Router LAN port => ASUS TUF-AX4200 WAN port (this router has a chipset optimized for Wireguard)

  3. As it is behind CGNAT, I'm using IPv6 DDNS

  4. When enabling Wireguard, the speed loss is way too high... 94%!

I have already checked firewall rules, MTU settings in wiregards client settings but nothing solves the speed issue. Acessing from outside my home network has the same outcome.

I have other 5 wireguard servers and and a bit familiar on setting it up (far from expert level though). Any thoughts on what could be the root cause for this 94%+ speed degradation?


r/WireGuard • • 6d ago

Would you use an open-source network for routing through a friend’s or community-run internet gateway?

6 Upvotes

The idea is a free, open-source app that lets a small group of people create a private network and optionally route internet traffic through a gateway hosted by a friend or community member in another country(ps : lets you avoid stupid gov rules). The gateway operator would be visible, and users could choose who they trust. The ISP would still carry the encrypted connection; the selected gateway would be the point where traffic exits to the public internet.

The goal is more user control and less reliance on a VPN company. To websites, users could appear under the gateway’s IP address rather than their own, which may provide pseudonymity when they’re not logged into an identifiable account. The gateway operator could still associate a user’s connection with its outgoing traffic, so users would need to trust the operator. The first version would focus on private, invited groups, use an established tunnel such as WireGuard, minimize logs, and include a kill switch and clear privacy disclosures.
I’m also exploring whether an additional encryption layer could be useful. Possible building blocks include ECDH or post-quantum ML-KEM (Kyber) for establishing shared keys, with AES-256-GCM or ChaCha20-Poly1305 for encrypting data.

There are already tools like WireGuard, Tailscale exit nodes, commercial VPNs, and Tor, each with different trust models and capabilities. I’m trying to understand whether a simpler, open, self-hostable option for trusted groups would solve a real problem.


r/WireGuard • • 8d ago

iOS app is 3 year old. No security fixes ever needed?

74 Upvotes

I’m puzzled by the WireGuard iOS app being 3 years old without updates. Is WireGuard.com the “official” source? Am I missing something?


r/WireGuard • • 7d ago

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

Thumbnail
gallery
5 Upvotes

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.


r/WireGuard • • 7d ago

LazyWolf: a self-hosted WireGuard control plane — QR claim codes, per-device service grants, single Go binary

2 Upvotes

Plain WireGuard is great, but onboarding devices means hand-editing configs, and there's no notion of "this device may reach RDP but not SSH." Tailscale solves that with a hosted control plane. LazyWolf is my attempt at the middle: a self-hosted control plane that speaks plain WireGuard.

How it works: one Go binary on a Windows box runs the WireGuard server and a web console. The console issues signed, single-use claim codes (QR or text). A device claims one, gets its keypair and config, and the console records which services that device is allowed to reach. The data plane is stock WireGuard — no protocol changes.

What's real: 581 Go tests, crash-consistent store, no telemetry. What's missing: no relay/NAT traversal (UDP only, needs a public endpoint), no installer or code signing, no iOS client yet, no auto-update. Source snapshot 0.1.5, Apache-2.0.

https://github.com/llw2011/LazyWolf

Technical questions welcome — especially about the claim flow and whether the per-service model holds up.


r/WireGuard • • 7d ago

juist: a peer-to-peer mesh VPN that distributes WireGuard peers/keys with no coordination server

0 Upvotes

I have been building juist, a mesh VPN where nothing runs in the middle, neither a vendor's server nor your own. WireGuard is used for the p2p tunnels, and NAT traversal comes from Tailscale's open-source (BSD) libraries.

I use it to reach my homelab (because Tailnet Lock or Headscale did not go far enough for me).

Tunnels are quantum-safe: Every WireGuard handshake mixes in a preshared key that each pair of devices agrees on with ML-KEM-768 after the first log sync. The log itself is signed with ML-DSA-44.

Features:

  • No control plane: devices find each other on the LAN, through each other, or via the public BitTorrent DHT. They punch through NAT and fall back to a relay that one of your own devices runs.

  • Membership is a signed log: adding or removing a device takes a k-of-n quorum of admins, whose keys stay on their own devices. Every device checks the log itself.

  • Fail-closed if you want: always-on "voucher" devices vouch hourly. A device that has not been vouched for in 48h keeps tunnels only to vouchers.

  • Homelab services: access policies, exit nodes, subnet routes, names, publishing services through an ingress.

  • Linux (Debian/Ubuntu/Fedora packages) and FreeBSD, plus an Android app (F-Droid repo).

Install: curl -fsSL https://juist.nning.io/install | sh
Repo: https://github.com/nning/juist
Docs: https://juist.nning.io

Disclaimer: Juist has been developed with AI agents (Opus 5.5). I direct the design and test it on my own hardware but I did not write any line of code and no human has audited it yet. The docs explain the architecture, design, development process, and quality assurance. Feedback and breaking it are very welcome, do not run anything critical behind it yet.


r/WireGuard • • 7d ago

I had an IP leak on my VPN that's hosted through digital ocean

0 Upvotes

I'm using wireguard. I use a gl mt3000 to connect to the internet. I had an IP leak and I'm wondering what may have caused it. I had a consultant set it up for me. I'm asking them what could have caused it but they're slow to answer. Could someone explain it to me like I'm 5? Thanks


r/WireGuard • • 9d ago

Server-side split tunneling and cascades for AmneziaWG: per-client exits, per-exit routing tables, no leaks on failure (open source panel)

Thumbnail
gallery
10 Upvotes

Disclaimer up front: this is for AmneziaWG, a WireGuard fork that disguises the handshake so tunnels survive DPI in countries like Russia, China and Iran. I'm the author. If you don't deal with blocking, it's still a server-side policy routing setup on plain Linux (nftables, routing tables, conntrack, tc), and I think this crowd will find the design interesting.

AWG Router is a web panel that turns an AWG server into the entry point of a cascade. Clients connect only to it, and it decides per connection where traffic leaves: direct from the entry server, or through one of several upstream AWG tunnels / SOCKS5 proxies. Client configs stay standard because the policy lives entirely on the server.

**How the routing works:**

- Each exit gets its own interface `awgrN` with its own routing table. SOCKS5 exits use hev-socks5-tunnel as a TUN

- Client packets are marked with nftables (an `ip awgr` table) based on rules: countries, ASNs, subnets, URL lists

- The tunnel address on the upstream server is SNATed, so it never clashes with your client subnet

- If an exit tunnel disappears, an `unreachable` route stays in its table, so traffic fails closed instead of leaking out the default route (unless you explicitly choose direct or another exit as the fallback)

- Load balancing pins each client to an exit, and every connection stores its exit in conntrack (`ct mark`). Moving a client only affects its new connections, and existing flows don't break

- Domain rules for SOCKS5 exits: TCP 80/443 is redirected to a small handler that reads SNI/Host and hands the name to the proxy, so ISP DNS spoofing doesn't matter. Non-matching connections go back through an nftables `type route` chain with the client's mark

- Shaping is tc HTB + fq_codel on `awg0` and `awgrN`, with ingress through `ifb`

- Optional DNS forwarder: queries go through the client's exit (DoH/DoT), with a separate cache per exit. A resolver on the entry server otherwise makes CDNs pick nodes near the entry, not the exit

On the AWG side, it exposes every 3.1 parameter (Jc/Jmin/Jmax, S1–S4, H1–H4, I1–I5, header protection, padding) and ships presets for I1–I5 that mimic STUN, QUIC, DNS and SIP, with randomised parts. Masking can also be set per client.

It's all Python standard library, with no pip dependencies. The routing is tested end-to-end in network namespaces, including a real AWG client↔server tunnel.

Repo (MIT): https://github.com/r-slashslash/AWG-Router


r/WireGuard • • 10d ago

Need Help Wireguard on Proxmox container

5 Upvotes

Hi,

To deploy Wireguard with Alpine container on Proxmox v9, may I know below 2 lines not required anymore in the container configuration file ?

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

And "wireguard-go" need to be installed ? Currently installed below packages only.

ifupdown-ng-wireguard
ifupdown-ng-wireguard-quick
wireguard-tools
wireguard-tools-openrc
wireguard-tools-wg
wireguard-tools-wg-quick

Thanks


r/WireGuard • • 10d ago

Need Help Wireguard handshake packages gets filtered. Alternatives?

3 Upvotes

I'm currently using wireguard with wg-quick. However, I'm not really able to get a handshake with another peer from another local network. After some painful debugging it looks like that the handshake-package gets filtered after it left the router (the other peer doesn't receive any package according to tcpdump).

I don't want to use headscale because it's a bit bothersome to assign static IPs to your peers... also I'm on NixOS and it should have a mobile app. What do you recommend?


r/WireGuard • • 12d ago

Tools and Software Vortix 0.6: NetBird support, running alongside your WireGuard/OpenVPN tunnels

Thumbnail
gallery
17 Upvotes

I posted Vortix here about 5 months ago and a lot of you tried it, so here's an update.

Since then it's landed in Homebrew core and Arch extra, and 0.6 adds NetBird. NetBird can now run next to your own WireGuard or OpenVPN tunnel: its network goes through NetBird, everything else through your tunnel, in the same TUI with the same kill switch.

brew install vortix or visit https://github.com/Harry-kp/vortix

If you run NetBird, I'd especially like to hear what breaks.


r/WireGuard • • 12d ago

Tools and Software Update on my open-source VPN: Knoten v0.3.1 is out!

9 Upvotes

Hey everyone, A couple of months ago I posted the first alpha (v0.2.0-alpha) of Knoten, my open-source, self-hosted WireGuard mesh VPN built in Go. Thanks a lot for the feedback on that post!

v0.3.1-alpha is out now, and it's a big rework of how Knoten works under the hood.

NAT is still not supported, so it's not ready for home routers yet. That's the next big thing on the list.

What's new:

  • WireGuard runs inside Knoten: Before, Knoten drove the kernel's WireGuard through wg-quick and config files. Now it embeds wireguard-go and runs the tunnel itself. That means no extra tools to install, fewer things that can break between Knoten and WireGuard, and it's the groundwork for NAT traversal and running without full root. When the peer list changes, only the peers that changed get updated, the other connections keep running.

  • It remembers its peers: Each machine keeps its identity, settings and peers in one file (meshd.json). If a machine restarts while the coordination server is down, it still reconnects to its peers right away.

  • No more modes: Before you had to pick between a coordination server or a manual peer list. Now you can use one, the other, or both. Every peer is marked static, synced or blocked, so each machine decides what's allowed in its own tunnel, even if the server says otherwise.

  • Clean shutdown: The interface exists only while Knoten runs. Stop it (or even if it crashes) and the interface is gone.

What's next:

  • IPv6 addresses generated from each machine's key, so the server doesn't have to hand out addresses anymore.

  • Windows support (it currently runs only on Linux).

  • A coordination server with no database, so it's easy to replace or run several.

  • Per-machine identity and access that expires.

  • NAT traversal and a relay for machines that can't reach each other directly.

GitHub: https://github.com/Yacin1102/Knoten

It's still a student project and I'm learning a lot while building it, so any feedback, criticism or questions are welcome!


r/WireGuard • • 13d ago

Need Help Wireguard er7602 Cgnat

Thumbnail reddit.com
3 Upvotes