Routing between two GWs connected to single WAN
-
Hi folks,
I have been searching for a solution to the issue stated below, but haven't yet come across a post/documentation on it. Hence, I am posting here.
I have a WAN interface (IP 10.0.120.69/23) connected to two routers (10.0.120.250/23 and 10.0.120.254/23). Default GW is set as WAN GW. WAN GW is set to 10.0.120.250/23
Now, I have added another GW "SR1_GW" as 10.0.120.254/23 and added a static route to 10.0.113.0/27 network via this GW.
But, when I try a traceroute to any IP in the 10.0.113.0/27 network, I see 10.0.120.250/23 as the first hop whereas, it should have been 10.0.120.254/23.
I am using pfSense 1.1 by the way.
What am I missing? Please help.
-
First, if you really are on 1.1 then it is time to upgrade. I have no idea what features were not in 1.1, but I do know that loads of bug and security fixes have come along since then.
What you describe should work on a current version (like 2.1.5 or 2.2 coming). But if you have policy-routing rules on LAN that direct traffic to gateways/gateway groups then that can be directing traffic directly out some other gateway, not hitting the routing table.
Put a pass rule at the top of LAN to pass source LANnet, destination 10.0.113.0/27, gateway none - that will ensure that that traffic falls through to the routing table and uses the static route.