-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Allow specific gateways to be excluded from default gatway switching #3609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit adds a feature to allow you to optionally prevent gateways from being chosen as default during Gateway Switching operations in a multi-WAN environment when the "Enable default gateway switching" option is enabled. Changes/new features - adds a `no_defgw_switch` flag to gateway config that will cause a gateway to be excluded from the defgw selection process - indicate this setting (as an icon) in the System > Gateway list view - updated help text for Default gateway switching in System > Advanced > Misc to better describe the use of the function - adds some debug logging for gw change events - selecting a gw as the default gw automatically hides this option, as having the 2 both enabled does not make sense - added input validation to automatically disable the no_defgw_switch bool when saving a gw as default from the GUI Files changed: /etc/inc/gwlb.inc /usr/local/www/system_advanced_misc.php /usr/local/www/system_gateways.php /usr/local/www/system_gateways_edit.php
|
I had to out of necessity create a version of this patch that applies cleanly to 2.3.3. In case anyone needs it and missed it in the commits, you can apply it from: 87d5f65 |
|
Can you please rebase your fork? |
|
Yes, will do today. I'm sorry, I have been terribly backlogged last few weeks. |
|
Made a different pullrequest which allows the same (disabling a gateway to become the default) and also setting priorities for the others, #3757 |
|
Please resolve the conflict |
Rebase of my old PR pfsense#3609
|
I rebased/rewrote this - new PR is #3827 |
This commit adds a feature to allow you to optionally prevent gateways from being chosen as default during Gateway Switching operations in a multi-WAN environment when the "Enable default gateway switching" option is enabled. Some possible use cases:
This only controls the default gateway of the firewall itself; it does not change the behavior of Policy Based Routing.
Changes/new features
no_defgw_switchflag to gateway config that will cause a gateway to be excluded from the default gw selection processno_defgw_switchbool when saving a gateway you've marked as default from the GUI)Files changed:
/etc/inc/gwlb.inc
/usr/local/www/system_advanced_misc.php
/usr/local/www/system_gateways.php
/usr/local/www/system_gateways_edit.php