LAN client to second gateway

Started by almador, June 24, 2021, 10:06:18 PM

Previous topic - Next topic
Hi all,

I'm quite stumped with a stupid problem.
My unit has 2 WAN connections and by thus 2 gateways.

Now I want to force traffic from a specific lan client to go over the second gateway.
So I created an alias containing the IP of the client and then;

Fw rules - LAN_1 - new rule - pass (quick) - src the alias - destination any - port any - gateway the second gateway

This then results that the client wan ip address is the one of the second gateway and I can ping 1.1.1.1 BUT I lose connection to the opnsense LAN IP, which is also my DNS so no name resolution

What does work:

Fw rules - LAN_1 - new rule - pass (quick) - src any- destination wan server address - port any - gateway the second gateway

But that doesn't solve my issue because I want all traffic from that client to go over the second wan connection

Any ideas?

small update, issue still exists but I notice something else.
When doing a traceroute to the IP address of the firewall, then the first is the firewall but it has also a second hop and a third hop (wan addresses).

the client and the firewall are in the same subnet 10.10.10.0/23