Regression #11806
closedIPv4 link-local (``169.254.x.x``) gateway does not function
0%
Description
On 2.5.1, there is a regression caused by the change in #11713 which ends up treating IPv4 link local addresses like IPv6. It incorrectly attempts to add a %
scope to the address and fails, since it doesn't exist for IPv4. Due to that incorrect usage, if an IPv4 link uses a link-local address from 169.254.x.x as its gateway, the route is not added to the table.
Limiting the change from #11713 to only IPv6 addresses partially solves the problem but also results in "route has not been found" errors similar to those reported in #11713, so that change alone is not sufficient to solve the problem.
See https://forum.netgate.com/topic/162935/pfsense-2-5-1-not-recognizing-my-default-ipv4-route for additional details.
Updated by Viktor Gurov over 3 years ago
Jim Pingle wrote:
Limiting the change from #11713 to only IPv6 addresses partially solves the problem but also results in "route has not been found" errors similar to those reported in #11713, so that change alone is not sufficient to solve the problem.
For some reason it doesn't suppress (`2>/dev/null`) "route has not been found" errors on boot:
https://github.com/pfsense/pfsense/blob/3af1961155caafb890cfb635d7278e1498ae7423/src/etc/inc/util.inc#L2682
Updated by Viktor Gurov over 3 years ago
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/221
"route has not been found" - another issue and not related to IPv4 Link-Local gateways (caused by `ipsec_setup_routes()`)
I can see such error with non-IPv4 Link-Local gateways too
Updated by Viktor Gurov over 3 years ago
Viktor Gurov wrote:
Jim Pingle wrote:
Limiting the change from #11713 to only IPv6 addresses partially solves the problem but also results in "route has not been found" errors similar to those reported in #11713, so that change alone is not sufficient to solve the problem.
For some reason it doesn't suppress (`2>/dev/null`) "route has not been found" errors on boot:
https://github.com/pfsense/pfsense/blob/3af1961155caafb890cfb635d7278e1498ae7423/src/etc/inc/util.inc#L2682
Could be STDOUT/STDERR issue, like #11430
Updated by Jim Pingle over 3 years ago
- Status changed from New to Pull Request Review
- Assignee set to Viktor Gurov
- Target version changed from CE-Next to 2.6.0
Updated by Jim Pingle over 3 years ago
- Status changed from Pull Request Review to Feedback
PR was merged yesterday.
Updated by Jim Pingle over 3 years ago
- Subject changed from IPv4 link-local (169.254.x.x) gateway does not function to IPv4 link-local (``169.254.x.x``) gateway does not function
Updating subject for release notes.
Updated by Jim Pingle about 3 years ago
- Target version changed from 2.6.0 to 2.5.2