OPNsense Forum

English Forums => Virtual private networks => Topic started by: JRC on March 30, 2024, 11:36:15 PM

Title: Wireguard Roadwarrior setup not working (unable to complete handshake)
Post by: JRC on March 30, 2024, 11:36:15 PM
The client is not able to finish the handshake and I cannot work out why.

I followed the instruction here: https://docs.opnsense.org/manual/how-tos/wireguard-client.html and I have double and triple checked my settings and they match these settings, but I am unable to connect from any client, I am getting errors about the handshake not completing.

At this point I am at a loss as to what to do to get this working. I am not entirely sure what I need to post here to help work this out.

The interface I created in step 4(a) is called "Wireguard"

Outbound NAT Rule:
WAN Wireguard net * * * Interface address * NO Wireguard NAT Rule


WAN Rule:
  IPv4 UDP * * WAN address 51820 * * Open Wireguard Port

Wirguard Interface FW Rule:
    IPv4 * Wireguard net * * * * * Allow Traffic from Wireguard Clients

Normalization Rule:
WireGuard (Group), Wireguard any any Wireguard MSS Clamping IPv4

OpnSense V24.1.4


Any suggestions?


Also, some notes in the documentation:
Title: Re: Wireguard Roadwarrior setup not working (unable to complete handshake)
Post by: Bob.Dig on March 31, 2024, 11:45:58 AM
Do you have a public IPv4-address in the first place? If so, log that firewall rule on your WAN and see, if it gets any hits from you.
Title: Re: Wireguard Roadwarrior setup not working (unable to complete handshake)
Post by: JRC on April 01, 2024, 12:31:06 AM
I do have a public IPV4, and the firewall logs where not showing anything from my test setup (hotspot off my phone, also had a public IPV4).

When I tried to access my other services, I could see the traffic flowing (I was filtering by source IP), but when I tried to connect to the VPN I saw nothing.

It's possible that my cell provider is blocking VPN traffic, but I think this is very unlikely (Andoid phone on GoogleFi).
Title: Re: Wireguard Roadwarrior setup not working (unable to complete handshake)
Post by: JRC on April 01, 2024, 02:59:08 AM
Eh, I gave up on this, and just spun up a VM with openVPN on it, and did a port forward. I'll use Firewall rules to control which VLAN/Service/Servers remote clients can and cannot get to.