We need to configure certain IP addresses to only run on WAN01.

Started by gunking2, Today at 05:00:04 AM

Previous topic - Next topic
I have a setup with 3 WAN connections (WAN01, WAN02, and WAN03).

I need to create a rule that forces traffic from a specific server (with IP xx) to exit exclusively via WAN01.

Currently, I am encountering an issue: when only WAN01 is active, external users can consistently access the server. However, as soon as WAN02 or WAN03 come online, external access is disrupted, and users are no longer able to reach the server.

Could you please provide a solution for this?

Hello, you have an asymmetric-routing issue.

Create a LAN firewall rule: Source = server IP xx, Destination = Any, Gateway = WAN01. Place it above any Multi-WAN rules.

In Firewall → NAT → Destination NAT, open the server's rule and set Firewall rule to Manual.

Then go to Firewall → Rules → WAN01, open the rule for the redirected service, click Show advanced options, and set Reply-to gateway to the WAN01 gateway.

This forces replies back through WAN01, preventing the issue when WAN02 or WAN03 are online.

I hope this helps
Hardware: N5105 Intel Celeron  
                       OPNsense | Home Lab | Linux & Home Automation
                               "Secure the network, automate the rest."

Quote from: (MARLOO) on <strong>Today</strong> at 05:46:46 AMHello, you have an asymmetric-routing issue.

Create a LAN firewall rule: Source = server IP xx, Destination = Any, Gateway = WAN01. Place it above any Multi-WAN rules.

In Firewall → NAT → Destination NAT, open the server's rule and set Firewall rule to Manual.

Then go to Firewall → Rules → WAN01, open the rule for the redirected service, click Show advanced options, and set Reply-to gateway to the WAN01 gateway.

This forces replies back through WAN01, preventing the issue when WAN02 or WAN03 are online.

I hope this helps




Thank you very much.

However,

Regarding the instructions provided—specifically, going to Firewall → NAT → Destination NAT, opening the server's rule, and setting the "Firewall rule" to "Manual"—this did not work. I tried an alternative:

I went to Firewall → NAT → Destination NAT, opened the server's rule, and set the "Firewall rule" to "Register rule." (This got the system working again.)