Closed ramereth closed 7 years ago
I think the problem is the following: chain
is the name_attribute
in iptables_ng_chain
. Therefore, nat_postrouting
gets overwritten by POSTROUTING
. Check whether the following works:
iptables_ng_chain 'nat_postrouting' do
table 'nat'
end
Yup that does work!
I've been working on updating our wrapper cookbook to use the latest version of this cookbook and I've run into an issue that only seems to affect chains that use tables other than
filter
.Here's the code I'm using:
When I run it in test kitchen I get the following:
I've tried looking around to see what might be causing it but I suspect it might be a bug with the new version. I've confirmed this also affects
FORWARD
chains but I haven't looked at the other tables since we don't use it. When I run ChefSpec, everything passes which makes me think it's a bug with this cookbook.Can you please let me know what might be causing it?
Thanks!