Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
[SOLVED] WireGuard: After adding a second peer, the first can't connect anymore
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] WireGuard: After adding a second peer, the first can't connect anymore (Read 659 times)
Brink7564
Newbie
Posts: 12
Karma: 1
[SOLVED] WireGuard: After adding a second peer, the first can't connect anymore
«
on:
May 08, 2024, 07:08:07 pm »
So I just tested this again and it seems like there might be a bug, else I don't understand this behaviour.
I created a WireGuard instance as per the road warrior documentation to connect my phone to my network, and it worked like a charm. I could reach both the Internet and my local network perfectly fine. I then proceeded to add a peer for my laptop, which also worked like a charm.
However, when I now try to connect with my phone, the handshake succeeds, but I can't connect anywhere anymore. Trying to access anything in my local network or the Internet results in timeouts. I checked the WireGuard logs and the firewall live view, but they don't show any obvious hints.
I already went through this a second time because I thought it may be my configuration or I missed something the first time around, but that does not seem to be the case as the exact same thing happened again. What surprises me is that it was working in the first place, so it shouldn't be a connection issue. And the handshake succeeds too, so it seems the connection gets established.
What might be the reason for this? And more importantly, a solution?
«
Last Edit: May 08, 2024, 08:57:16 pm by Brink7564
»
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: WireGuard: After adding a second peer, the first can't connect anymore
«
Reply #1 on:
May 08, 2024, 07:16:51 pm »
Sound like you mixed the masks with /24 and /32, may read the docs again
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Brink7564
Newbie
Posts: 12
Karma: 1
Re: WireGuard: After adding a second peer, the first can't connect anymore
«
Reply #2 on:
May 08, 2024, 08:56:51 pm »
Quote from: mimugmail on May 08, 2024, 07:16:51 pm
Sound like you mixed the masks with /24 and /32, may read the docs again
You're right, thank you! I had put 0.0.0.0/0 in the Allowed IP's field thinking I want to allow all traffic through the VPN. But that setting is done on the client, not the server... Thanks again; made my day!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
[SOLVED] WireGuard: After adding a second peer, the first can't connect anymore