-
Notifications
You must be signed in to change notification settings - Fork 350
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
T5794: firewall: change firewall priority in oder to be loaded after all interfaces #3988
Conversation
👍 |
@Mergifyio backport sagitta circinus |
✅ Backports have been created
|
Won't this accept/allow all connections on startup until the firewall has been loaded, as the default action of the firewall without config is to accept all connections? |
Can there maybe be a hook that just sets the default policy to DROP everything non-localhost on boot and then resets the policy to ACCEPT or the config during the firewall config apply phase? Idk how it would look in nftables, but iptables commands would just be
For now I'm just gonna place this in |
Change Summary
Load firewall after all interfaces are created in the system.
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
firewall
Proposed changes
How to test
Config shared in the example works and is correctly loaded into the system after reboot:
And nftables:
Smoketest result
test_firewall --> OK
Checklist: