firewall
firewall copied to clipboard
Check if raw string contains ipv4 address
Description
[Describe what this change achieves]
Issues Resolved
[List any existing issues this PR resolves]
Check List
- [ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
- [ ] New functionality includes testing.
- [ ] New functionality has been documented in the README if applicable
- [ ] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD
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).