-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add Docker-CE default rules #80
Conversation
|
Thanks! Could you please amend the lint errors the CI suggests and also add the new class to the |
9a5e15e
to
9eac334
Compare
|
Thanks Nacho, I have fixed the lint errors and added the new class to the acceptance tests. |
|
Thanks! Maybe it'd be a good idea to add some unit test coverage to the new class to help us catching regressions in the future and to make sure for instance that the parameters are correctly taken into account. I've written some that you can just import here if you like them or use as skeleton for your own: |
|
Presumably as machines are created and destroyed new rules will be created and deleted ? |
Thanks Nacho, I've taken your example and expanded with other rules. |
I don't know what would be the right approach to make it rock solid. In principle in a default/basic usage there shouldn't be rules added as it relies on the interface and the address space. In any case, I'm sure that there will be cases not covered. |
|
If the OUTPUT-NAT chain is already defined, i get the a duplication declaration error. |
7b3f937
to
9ee40e3
Compare
@tmanninger I have added a couple of class parameters to handle the creation of chains. Does it look good to you now? Thanks for taking a look :-) |
cae7912 Merge pull request voxpupuli#86 from cernops/release_1_3_0 804b96e Prepare release 1.3.0 3f2f50c Merge pull request voxpupuli#85 from cernops/qemu cd2a3cb Add rules for QEMU/libvirt guests 18b211e Merge pull request voxpupuli#80 from luisfdez/dockerce 1bf717d Add optional handling of chains c86e270 Merge pull request voxpupuli#84 from traylenator/version 4d95ea8 Add fact section to README.md 9dca9bc Fix doc defaults 032387d Add nftables.version to structured fact. b61ccb4 Fix rulename spec in spec 283e1c3 Fix syntax c351549 Add newline & more tests 6be2adf Add Docker-CE default rules 7a77d75 Merge pull request voxpupuli#82 from cernops/ibarrien_activemq 771b325 Add rules for Apache ActiveMQ 502b9da Merge pull request voxpupuli#81 from cernops/emacs_readme b1b6150 Add pointer to Yasnippets for some defined types 2fda87a Improve sections' formatting 812ca77 Release 1.2.1-rc0 (voxpupuli#77) git-subtree-dir: code git-subtree-split: 7b8e4635092853a892bd247a05e0025492262b6a
Add Docker-CE default rules
This Pull Request adds the set of rules and chains that docker-ce daemon sets on a CentOS8 machine by default.
These rules are defined in
ip-filter, not playing nicely with the defaults shipped forinet-filter.This merge request adds the set of rules that Docker deploys by default. I don't know how relevant all of them are, but I just followed what the daemon was doing.
This Pull Request (PR) fixes the following issues
None