OPNsense Forum

English Forums => General Discussion => Topic started by: iTimo01 on February 07, 2023, 12:45:36 am

Title: Problems using Gateway in rules
Post by: iTimo01 on February 07, 2023, 12:45:36 am
I currently have a couple of Firewall Rules setup with an OpenVPN Gateway.

I'm trying to move my OpenVPN Configs over to WireGuard.
When setting up everything and changing the Gateway in the rules to the WireGuard one, it doesn't work.

Running an Packet Capture (and also observing the logs with log enabled) it seems like the OPNSense completely ignores the rules and still pushes it out to the OpenVPN gateway.

1 Rule in Question in Attachments
Title: Re: Problems using Gateway in rules
Post by: iTimo01 on February 07, 2023, 03:55:14 pm
So i just installed a new Wireguard Server and set it up alongside the old one.
It still reproduces the same error.

If i create a Gateway Rule pointing "any" from the source IP to the Gateway, then connections that get INITIATED on the source IP get routed through the Gateway.


So while i was writing this i realized the "reply-to" field on the FW Rules.
Setting that to the correct gateway for replies works.