Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
[solved] Can't get OPNsense to act as WG Server & Client simultaneously
« previous
next »
Print
Pages: [
1
]
Author
Topic: [solved] Can't get OPNsense to act as WG Server & Client simultaneously (Read 884 times)
frankw
Newbie
Posts: 13
Karma: 0
[solved] Can't get OPNsense to act as WG Server & Client simultaneously
«
on:
December 05, 2022, 08:02:02 pm »
Hi all, strange issue here.
I have configured OPNsense first as a client to do selective routing (specific hosts) via Mullvad using the guide on the website, and that is working fine. I have created an interface, a gateway and set up all firewall rules.
I have
also
then configured OPNsense as a server (road warrior setup), which I have also done successfully. I've created an interface for this and a separate subnet, and clients can connect and access internal and external resources (as per my fw rules).
However...the two do not work together simultaenously.
When both are enabled (under WireGuard, Local), the road warrior clients can no longer get a handshake, but Mullvad continues to work. When I disable Mullvad, the road warrior clients work fine. Both have their own interface. I am
not
trying to route any of the road warrior clients via Mullvad.
Any thoughts on what the issue could be? I saw this same issue mentioned in the
comments here
, but without successful resolution. Thanks!
«
Last Edit: December 06, 2022, 12:19:25 am by frankw
»
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Can't get OPNsense to act as WG Server & Client simultaneously
«
Reply #1 on:
December 05, 2022, 08:24:05 pm »
First off, there is no Wireguard client or server, it's all just peers. Once you get your head around that it'll be a lot easier to understand.
Are you using any overlapping IP's or ports by any chance?
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Can't get OPNsense to act as WG Server & Client simultaneously
«
Reply #2 on:
December 05, 2022, 10:43:21 pm »
The two do happily work together. I have this setup. We will need to see your configuration to troubleshoot. If you followed the guides correctly, then it should be fine.
BTW, these are the relevant guides:
https://wiki.opnsense.org/manual/how-tos/wireguard-client.html
https://wiki.opnsense.org/manual/how-tos/wireguard-selective-routing.html
Logged
frankw
Newbie
Posts: 13
Karma: 0
Re: Can't get OPNsense to act as WG Server & Client simultaneously
«
Reply #3 on:
December 05, 2022, 11:33:19 pm »
Quote from: Demusman on December 05, 2022, 08:24:05 pm
Are you using any overlapping IP's or ports by any chance?
That's exactly what it was, I was using the same port, I think maybe I thought it was listening on different interfaces. Always the simple things
Thank you both for your ideas - and for the excellent guides
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
[solved] Can't get OPNsense to act as WG Server & Client simultaneously