OPNsense Forum

English Forums => 23.7 Legacy Series => Topic started by: deviantintegral on August 23, 2023, 04:06:15 pm

Title: Issues connecting with Wireguard
Post by: deviantintegral on August 23, 2023, 04:06:15 pm
I've been having an odd issue with my Wireguard setup, both on 23.1 and 23.7. When I connect from my iPhone or Mac running the official wireguard client, many times handshakes will not pass. Sometimes, the "Data sent" counter will go up by tens of MB a second, which is impossible given the network speed, and normal traffic doesn't actually work. If I reconnect the tunnel several times, it will eventually connect fine with no issues. There's no obvious errors in the logs that I see. tcpdump shows the wireguard server responding to the connection.

I also have Wireguard set up on a linux host, and the same two clients never have a problem connecting.

Any suggestions on troubleshooting this?
Title: Re: Issues connecting with Wireguard
Post by: ProximusAl on August 23, 2023, 09:12:25 pm
I’ve seen this before.

Don’t use the app to start the tunnel.

On iOS use settings VPN and I bet it connects flawlessly every time.
Title: Re: Issues connecting with Wireguard
Post by: deviantintegral on August 25, 2023, 03:08:56 pm
Wow, that is it! Thank you. I wonder if it's a bug in VPNKit.

I reported this upstream to the WG mailing list, but the email is currently stuck in a moderation queue.