OPNsense Forum

English Forums => 26.1 Series => Topic started by: damian on February 12, 2026, 11:53:43 PM

Title: Wireguard Issues and Error
Post by: damian on February 12, 2026, 11:53:43 PM
Hi Everyone,

Please accept my apologies for asking a newbie question here - I'm sure you're up to your necks with far greater matters.

I'm trying to setup the following connection using OPNSence 26.1 installed on a VPS (with root access):
Wireguard (In) -> VLAN (Intermediary) -> LAN (Public IP)*

*Note: I only have the 3 interfaces with no WAN present

I've been through the OPNSense manual and followed every guide I could find online but nothing works.

The Wireguard instance doesn't accept connections at all - there's no Handshake. I have set up and instance, then Interfaces: Assignments, assigned Outbound NAT and Firewall rules, double, triple and quadruple-checked the instance, keys, and ports. Nothing.

I also get the following error using Firewall Rules:
There were error(s) loading the rules: /tmp/rules.debug:137: direction must be explicit with rules that specify routing - The line in question reads [137]: pass on wg0 route-to ( vlan01 10.6.5.0 ) inet from {(wg0:network)} to {(vlan01:network)} keep state ( no-sync  ) label "dd6671fc-4a3b-4e9e-bf4c-f9f624c74090" # WG0-VLAN

When I change the "state" condition I get the same error but for the state condition I selected i.e. synproxy, modulate, sloppy, no state. The error is the same regardless of selected state.

Could someone point me to something the right direction please? Thank you
Title: Re: Wireguard Issues and Error
Post by: damian on February 13, 2026, 12:20:34 AM
Apologies for the mistakes in my post - I've had a very long 3 weeks.

Corrections:
1. "I have set up and instance" = I have set up an instance
2. "Could someone point me to something the right direction please?" = Could someone point me in the right direction please?

Thank you