Bug #12536
closedSetting a default gateway of "None" does not remove the default gateway from the routing table
100%
Description
selecting Default gateway as NONE should remove the default route from routing table.
making default GW as "NONE" will not remove the default route.
Mark Gateway as "Down" does not remove the default route.
disabling the interface or using the command route delete 0.0.0.0/0 [gateway ip] are the only way to remove it.
selecting Default gateway as NONE (GUI) should take an effect to remove the default route from the routing table.
Related issues
Updated by Viktor Gurov almost 3 years ago
- Related to Bug #11692: ``fixup_default_gateway()`` should not remove a default gateway managed by a dynamic routing daemon added
Updated by Viktor Gurov almost 3 years ago
removing the default gateway, if set to 'none', may result in the removal of the route of dynamic routing protocols
https://github.com/pfsense/pfsense/blob/master/src/etc/inc/gwlb.inc#L1115-L1117:
if ($gwdefault == "-") { // 'none', dont set the default gateway, useful if routes are managed by frr/bgp/ospf or similar return; }
Updated by Viktor Gurov almost 3 years ago
Updated by Jim Pingle almost 3 years ago
- Status changed from New to Pull Request Review
- Assignee set to Viktor Gurov
- Target version set to CE-Next
- Plus Target Version set to Plus-Next
Updated by Viktor Gurov over 2 years ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset de7393765b213e376a90e7d6631363fb6640e400.
Updated by Jim Pingle over 2 years ago
- Target version changed from CE-Next to 2.7.0
- Plus Target Version changed from Plus-Next to 22.05
Updated by Alhusein Zawi over 2 years ago
making default GW as "NONE" removes the default GW routing table.
But Mark Gateway as Down does not remove the default route.(Status>Gateways shows offline GW)
2.7.0.a.20220226.0600
Updated by Viktor Gurov over 2 years ago
- Status changed from Feedback to New
Alhusein Zawi wrote in #note-7:
making default GW as "NONE" removes the default GW routing table.
But Mark Gateway as Down does not remove the default route.(Status>Gateways shows offline GW)
2.7.0.a.20220226.0600
fix:
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/642
Updated by Jim Pingle over 2 years ago
- Status changed from New to Pull Request Review
Updated by Viktor Gurov over 2 years ago
- Status changed from Pull Request Review to Feedback
Applied in changeset aa159178950af447aeb463a5159f4d7ed467eb18.
Updated by Alhusein Zawi over 2 years ago
- Status changed from Feedback to Resolved
fixed
Mark Gateway as Down/Disable this gateway removes the default GW from the routing table.
22.05.a.20220311.0600
Updated by Jim Pingle over 2 years ago
- Subject changed from Default gateway as "NONE" to Setting a default gateway of "None" does not remove the default gateway from the routing table
Updating subject for release notes.