containers / netavark

Container network stack
Apache License 2.0
515 stars 83 forks source link

Detect firewalld by default #722

Open p3lim opened 1 year ago

p3lim commented 1 year ago

https://github.com/containers/netavark/blob/9c40d1f6372a21248ebbd4edff31148ee8de54aa/src/firewall/mod.rs#L67

This section has not been updated since firewalld 1.1.x came out 16 months ago, requiring users to set NETAVARK_FW=firewalld globally (e.g. in /etc/environment) to properly use firewalld if present.

Been testing it today along with @erig0 (firewalld lead), who requested me to open an issue with you to finalize this support.

Tested with:

Luap99 commented 1 year ago

We have been talking about it lately, we should definitely enable it if it works correctly.

Some outstanding work to do so:

These are the things I can think of right now. And then we should run test/200-bridge-firewalld.bats and see if any test cases are failing there.

cc @mheon

mheon commented 1 year ago

That all sounds correct.

Of these: