OPNsense Forum

English Forums => Virtual private networks => Topic started by: spkrb7 on October 03, 2020, 05:44:33 AM

Title: simple Wireguard Road Warrior config by docs no handshake
Post by: spkrb7 on October 03, 2020, 05:44:33 AM
Trying to setup WG for remote access but handshake is not happening. The log from my phone has: "WireGuard/GoBackend/wgopnsense: peer(public key) - Handshake did not complete after 5 second, retrying after 5 seconds, retrying (try 2)". I'm using the officlal opnsense docs for setup. Any help appreciated.
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: mimugmail on October 03, 2020, 06:18:36 AM
Screenshots please
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: spkrb7 on October 03, 2020, 07:39:58 AM
Thanks, appreciate your time, my lan addy is 192.168.1.1. https://imgur.com/a/iIn3q0a (https://imgur.com/a/iIn3q0a)
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: mimugmail on October 03, 2020, 11:12:25 AM
What is the port forward for? Allow rule on WAN for wg Port is active?
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: spkrb7 on October 03, 2020, 12:17:07 PM
Quote from: mimugmail on October 03, 2020, 11:12:25 AM
What is the port forward for? Allow rule on WAN for wg Port is active?
The port forward in the NAT section is per the instructions for WAN to LAN. It doesn't have the green triangle arrow indicating enabled, don't know if that applies there. Rule allowing WAN for wg is active, tried both in and out.
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: mimugmail on October 03, 2020, 02:46:05 PM
Where in the docs is this?
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: spkrb7 on October 03, 2020, 08:46:33 PM
Step 2b:https://wiki.opnsense.org/manual/how-tos/wireguard-client.html#step-2b-setup-firewall-rules (https://wiki.opnsense.org/manual/how-tos/wireguard-client.html#step-2b-setup-firewall-rules)
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: mimugmail on October 04, 2020, 07:53:48 AM
Hm, seems it was changed after I wrote the initial one, but will work too.
Instead for using mywireguardservice net in firewall alias, can you just insert the real network?

Since you have assigned the interface but didn't set the IP address (which is correct), OPNsense might have problems to detect this network because addresses are assigned when starting/stopping daemon
Title: Re: simple Wireguard Road Warrior config by docs no handshake
Post by: spkrb7 on October 04, 2020, 09:32:46 PM
Thanks for the suggestions much appreciated, I just couldn't get the handshake to complete, so I reset to start over when I get time.