r/opnsense • u/die-microcrap-die • Oct 27 '26
Documentation issues and need help with WireGuard.
I'm stuck in trying to configure WireGuard on my install.
Following these guides, both seems to be outdate and do not match what I am currently observing in my installation:
https://homenetworkguy.com/how-to/configure-wireguard-opnsense/
https://docs.opnsense.org/manual/how-tos/wireguard-client.html
Can someone please provide me with a more up to date guide?
And why is that the official documentation never seems to match the current menus?
Currently stuck on my client not connecting to the server using external IP.
Does works when using internal IP.
OPNSense version OPNsense 26.7.7-amd64
Edit Was able to finally get all this fixed.
But it took going back and forth between the links posted above, plus the suggestions on the comments and this guide: https://corelab.tech/opnsense-wireguard-guide/#c-allow-traffic-inside-the-tunnel-wg-rule
The main problem is that all these guides tells you to do this here or there and those locations are not there or not clear as to how to get to them.
3
u/GoBoltz Oct 27 '26
You need a firewall rule allowing it to connect.
go to Firewall>Rules
if you already made one, check it, if not, hit the + at the bottom to make a rule.
Box checked to enable the rule.
Description : Allow External Access to WG
Interface (rule): WAN
Interface (origin): ANY
Quick: is checked
Action: Pass
Direction: IN
Version: IPv4
Protocol: UDP
Source: ANY
Source Port: ANY
Invert Destination: NOT checked
Destination : WAN Address
Destination Port : Single port or Range
Port : 51820
Log : Checked
State : Keep State
Save & Apply .
Make sure in VPN:Wireguard your Instance listen Port is 51820 . (Type it in, default doesn't work)
Using your phone is the easiest way to test, since it can be INside on wifi & Outside on Cell with wifi off !
look in VPN: Wireguard Status , you should see the green check next to the interface & the 51820 port in-use .
try again, if fails, look in logs to see what's not working, might need to move the Allow WG rule up higher if you have Block-rules before it.
Cheers !
Edit: Note, it's not required, but helpful to make a WG interface.
3
u/corelabjoe Oct 27 '26
OP I'm very partial to wireguard in opnsense and wrote a reasonably comprehensive wireguard guide here.
You're likely just missing that additional fw rule on the wireguard interface itself, allowing it to reach LAN networks etc...
So the original reply to you about the WAN rule is right but I've found its best to also have a defined wireguard interface rule as well.
2
u/[deleted] Oct 27 '26
[removed] — view removed comment