r/WireGuard • • 6h ago

Pure Java Tailscale library For Embedding Tailnets In Your Java Application

Thumbnail
reddit.com
3 Upvotes

r/WireGuard • • 23h ago

How can I get internet access on a MikroTik public Wi-Fi network with this kind of captive portal configuration?

2 Upvotes

I'm using a public Wi-Fi network. It uses a MikroTik hotspot with a captive portal that requires users to enter a voucher PIN before getting internet access.

I've been studying how the network works from my Ubuntu laptop, mainly to understand its network architecture and authentication mechanisms.

Here is what I've discovered:

**Network information:**

* Gateway: [192.168.13.1](http://192.168.13.1)

* Gateway hostname: mbc.wifi

* Subnet: [192.168.12.0/22](http://192.168.12.0/22)

* Authentication: MikroTik captive portal

* Billing platform: [v2.mbcwifi.com](http://v2.mbcwifi.com)

**Firewall behaviour before authentication:**

* DNS requests to external DNS servers appear to be allowed.

* HTTP requests are intercepted and redirected to the captive portal.

* HTTPS connections appear to be blocked.

* ICMP traffic is blocked.

* The billing website remains accessible.

**Other observations:**

* IPv4 client isolation appears to be enabled.

* Proxy ARP appears to be active.

* IPv6 multicast discovery reveals other connected devices.

* The captive portal uses client-side MD5 hashing with a static salt.

* There appears to be a hidden admin login option in the portal.

**My question:**

Given these observations, are there any known weaknesses or configuration mistakes in MikroTik Hotspot deployments that could allow a client to obtain internet access without going through the normal voucher authentication process?

I'm particularly interested in understanding whether the IPv4/IPv6 configuration, captive portal implementation, or walled-garden configuration could introduce a bypass.

I'm not looking to disrupt other users or access their devices. I'd appreciate explanations of the underlying mechanisms , resources ortools and how such configurations can be assessed.

Has anyone encountered a similar MikroTik setup?


r/WireGuard • • 21h ago

Need Help Can you use WireGuard to watch French Websites?

0 Upvotes

I want to watch this French Cartoon. I tried WireGuard, but instead of me being able to watch the French Cartoon, not only did it fail, it also made my computer stop working until I turned it off. Does it work better for anyone else. I send a link here: https://www.m6.fr/jamie-a-des-tentacules-p_17541


r/WireGuard • • 1d ago

小型项目合作

Thumbnail reddit.com
0 Upvotes

r/WireGuard • • 1d ago

Tools and Software GL.iNet Beryl 7 (GL-B3000) + M-net FTTH (PPPoE / VLAN 40 / DS-Lite): NordVPN WireGuard stuck at "Assigning..." and timing out after toggling off/on

Thumbnail reddit.com
3 Upvotes

r/WireGuard • • 1d ago

Self-hosted WireGuard mesh with AI Server and AI gateway (Docker Compose)

0 Upvotes

I'm the developer of HostAnywhere, a device mesh I've been running as a hosted service. I've now packaged the whole control plane as a Docker Compose deployment so you can run it on your own server.

What the self-hosted deployment enables:

  • WireGuard mesh: connect Mac, Windows, Linux, iPhone and Android devices. Peers connect directly when possible and fall back to the relay when hole-punching fails.
  • Public service URLs: expose services on your devices as <name>.yourdomain, with per-subdomain TLS issued on demand by Caddy. No wildcard certificate or DNS plugin needed.
  • Access control between devices.
  • AI Server: turn any of your machines into a private AI server with a one-click Ollama install, model installs and an optional Open WebUI chat, reachable from your other devices over the mesh.
  • AI gateway: an OpenAI-compatible endpoint in front of your local models, running on your own devices.

The compose stack runs the control plane and relay. The AI Server and AI gateway run on your own devices, coordinated by it.

Requirements: a Linux host with Docker Compose, a public IP and the WireGuard kernel module; a domain with three A records (domain, *.domain, relay.domain); and ports 80/443/7443 TCP plus 51820 UDP open in both your cloud provider's firewall and the OS firewall. If you use Cloudflare DNS, set the records to DNS only, not proxied.

git clone https://github.com/hostanywhere/hostanywhere-selfhost
cd hostanywhere-selfhost
cp .env.example .env
# set DOMAIN and JWT_SECRET (openssl rand -hex 32)
docker compose up -d

Images are prebuilt for amd64 and arm64. No SMTP is needed: the first sign-in magic link is printed in the container logs.

To be upfront:

  • License: not open source. It's free for personal and internal business use, with no device, user or feature limits. Hosting it for third parties (paid or not), reselling or bundling it, or redistributing the images needs a commercial agreement.
  • Not included yet: SSO, and the cloud-hosted AI gateway (the on-device gateway works).

Repo + install docs: https://github.com/hostanywhere/hostanywhere-selfhost

If you'd rather not run the control plane yourself, you can use the hosted version at https://hostanywhere.io: same apps, same mesh, with coordination and relay run for you.

I'd especially like feedback on the install, and on CGNAT, double NAT or strict firewalls where devices can't connect directly.


r/WireGuard • • 3d ago

wireguard for the whole family on one vps

19 Upvotes

hey! setting up a self-hosted VPN server for me, my parents and my brother, about 9 devices total. editing wg0.conf by hand and generating keys for my mom's ipad got old fast

is wg-easy still the go-to WireGuard panel, or has anyone tried the one in beadmin? thanks


r/WireGuard • • 4d ago

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

7 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 • • 5d ago

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

6 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.

Update (v1.7.2): WireGuard Plus now also ships a Windows 10/11 (x64) desktop app alongside the Android LSPosed/LSPatch module. It uses the same userspace wireguard-go + AmneziaWG 1.5 + gVisor netstack + DoH engine over a local loopback SOCKS5 proxy, supporting Telegram Desktop, Portable, AyuGram, Kotatogram, and Unigram without a Wintun adapter or admin privileges. Both platforms now include 1-Click Free WARP, so you no longer need to fetch or import a .conf file manually; one click generates a Cloudflare WARP (AmneziaWG 1.5) config and connects.


r/WireGuard • • 5d ago

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

Post image
3 Upvotes

r/WireGuard • • 6d ago

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

8 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 • • 7d ago

Possible to let a specific device bypass Wireguard?

Thumbnail reddit.com
0 Upvotes

r/WireGuard • • 7d ago

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

Thumbnail
reddit.com
5 Upvotes

r/WireGuard • • 7d 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 • • 8d 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 • • 9d 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 • • 9d ago

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

1 Upvotes
Wiregard's 94% speed loss when connected via ISP's ZTE router => ASUS TUF AX4200 (Wiregard server)

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 • • 10d 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 • • 12d 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 • • 11d ago

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

Thumbnail
gallery
6 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 • • 11d 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 • • 11d 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 • • 11d 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