chef-cookbooks / iptables

Development repository for Chef Cookbook iptables
https://supermarket.chef.io/cookbooks/iptables
Apache License 2.0
102 stars 141 forks source link

Use persistent iptables package for Debian/Ubuntu config #90

Closed gfediere closed 6 years ago

gfediere commented 6 years ago

Description

Issues Resolved

None but i will solve issue #58 in the next commit by checking consistency of /etc/sysconfig/iptables or /etc/iptables/rules.v4 depending of the system

Check List

tas50 commented 6 years ago

This looks like a serious improvement to how we were handling rules previously. Just move that config file logic into a variable and out of the attribute and we'll get this shipped. Thanks

gfediere commented 6 years ago

@tas50 just pushed changes tell me if you are ok with it.

zabudskyi commented 6 years ago

Actually it seems it will resolve issue with Ubuntu 18.04. Now iptables rules are not restored after reboot. I had to add systemd service, though not sure it's good approach.