-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Raw rules not persisted with default config #233
Comments
Didn't know where to fit this in above. This is on a Docker host; the libvirt host has the libvirt rules. But in both cases these should be gone, and the |
I really recommend you use the iptables cookbooks instead of this cookbook as it works much better with iptables. |
I had tried it in a branch, but they don't support the raw rules. Let me give it another shot— thanks, @ramereth |
@chaim1221 FWIW we're trying to get that cookbook good enough to eventually be pulled into as a native resource |
👻 Brief Description
Using
raw 'SOME_RULE'
does not persist rules with Debian/Ubuntu./etc/iptables/rules.v4
is created but it is not enforced. Setup failskitchen test
and I have to manually doiptables-restore
(a hack in code does not work). I have tested this on both a KVM system (I thought it was libvirt) and a Docker system (I thought it was Docker) but I have tried putting the firewall recipe directives both before and after those installs, and those are common use cases anyway— they should not interfere with the managed firewall.🥞 Cookbook version
depends 'firewall', '~>2.7.1'
👩🍳 Chef-Infra Version
16.10.17
(pinned for stability)Version of chef-client in your environment.
🎩 Platform details
Host is Ubuntu 21.04 running Kitchen and vagrant libvirt provider (because we use KVM in prod).
Steps To Reproduce
my_cookbook::firewall.rb
attributes::firewall.rb
integration::firewall_test.rb
kvm.rb
docker.rb
.kitchen.yml
🚓 Expected behavior
The firewall is configured with the expected rules and passes all tests.
➕ Actual behavior
Add any other context about the problem here. e.g. related issues or existing pull requests.
You probably will notice I've contributed before :) not above submitting a PR but I do not understand what is happening here. UFW is disabled as expected. netfilter-persistent is enabled as expected. :onfire:
The text was updated successfully, but these errors were encountered: