Bug #12244
closedGateways with "Use non-local gateway" set are added to the local routing table with the gateway's interface MAC with UHS (host) flags even if a remote route through an external gateway is provided by OSPF
0%
Description
This issue: https://redmine.pfsense.org/issues/11433 claims that 2.5.0 regressed things by not adding gateways with "Use non-local gateway" to the routing table.
For the local routing case, this likely was a regression.
However, for the case where you get a route to the non-local gateway via OSPF, and that route is through an external router/gateway (not directly connected), it is incorrect to also add a local route to the routing table.
What pfSense 2.4.5-p1 does in this situation is that it correctly adds the OSPF route to the routing table (which has e.g. USG flags).
But it also, incorrectly adds another local route with USH flags pointing the gateway IP address at the MAC address of the local interface the gateway is configured on to the routing table.
This is quite wrong, and then when attempts are made to reach this IP address, the routing table says "oh, it's a host at MAC ##:##:##:##:##, you can talk to it directly" when it should instead say "hey, go talk to this router attached on interface xyz to find out what your next hop to that address is!"