OPNsense Forum

English Forums => Virtual private networks => Topic started by: crissi on December 30, 2021, 03:32:48 pm

Title: OpenVPN selective Routing issue
Post by: crissi on December 30, 2021, 03:32:48 pm
Hello,

i have an issue with selective routing. I have OpenVPN running and connected. The whole LAN net is going out to Internet via the OpenVPN connection, as set in the Firewall Rule as Gateway. Now i created an Alias with www.whatsmyip.com and added before the VPN Gateway another Rule with Source LAN net and Destination the Alias and Gateway Default (ISP Connection)

When testing www.whatsmyip.com i see the public address over WAN, when testing with a other Tool, i see the IP from the VPN, so all good.

Then i restarted the Firewall, and tested again the same Websites, but this time, the excluded Alias with whatsmyip.com dont show me the WAN IP as expected, the Alias show me the VPN connected IP., whats is wrong, as the Request should be routed over the WAN Connection.

Could it be, that the Firewall States have not been flushed during the reboot ? How can i prevent this?

Thx!