Closed ghost closed 7 years ago
Hi there -- if you put position 0
, you're putting your rule ahead of the *filter
table declaration. You probably don't want to do that, unless you're trying to make a rule for another table, like *nat
or *mangle
. The default position, when omitted, is 50. If you don't need to jump ahead and insert special things inside the file containing rules, you should probably leave it at the default.
You can see the existing file and positions at https://github.com/chef-cookbooks/firewall/blob/master/attributes/iptables.rb#L6-L12.
This mechanism you're running into is the first thing described under "iptables considerations" in the README.md as well: https://github.com/chef-cookbooks/firewall#iptables-considerations
Thanks. I'll close this issue.
Cookbook version
2.6.2
Chef-client version
13.2.20
Platform Details
CentOS release 6.9 (Final)
cookbook
Chef Output