sous-chefs / firewall

Development repository for the firewall cookbook
https://supermarket.chef.io/cookbooks/firewall
Apache License 2.0
99 stars 150 forks source link

Check if raw string contains ipv4 address #171

Open foxdalas opened 7 years ago

foxdalas commented 7 years ago

Description

[Describe what this change achieves]

Issues Resolved

[List any existing issues this PR resolves]

Check List

troyready commented 7 years ago

Obviously some housecleaning is needed here (e.g. issue description, taking out the version bump), but it would be nice to something like this included.

Currently, if I specify a raw rule with an ipv4 address in it, it gets added to /etc/iptables/rules.v6 which causes the netfilter service restart to fail (more specifically /usr/share/netfilter-persistent/plugins.d/25-ip6tables start exits non-zero).