Closed nmische closed 2 years ago
Hi Nathan,
Thanks for looking into this. Please see the latest comments under https://github.com/rtkwlf/cookbook-simple-iptables/issues/37 for the issue with appending.
For the issue with the weight, could you please do some more investigation into which rule is throwing the comparison error on your system? The resource defines a default value of 50 for the weight
attribute, so I'm afraid that the solution of providing the default again in the recipe merely papers over the real issue.
Thanks!
I'm having problems finding the root cause of the weight issue. This is the resource definition causing the problem:
simple_iptables_rule "TOMCAT_HTTP_REDIRECTS" do
table "nat"
direction "PREROUTING"
rule [ "--protocol tcp --dport 80 --jump REDIRECT --to-port 8080",
"--protocol tcp --dport 443 --jump REDIRECT --to-port 8443" ]
jump false
end
Potential fix for issue #37. A bit of a hack, but it seems to work. This also addresses an issue I ran into with sorting weight.