Open sbraz opened 1 year ago
This upcase was put in place due to the merge with action
, which had allowed required the ACCEPT, REJECT and DROP values to be passed as lowercase.
The upcase was an attempt to keep the code as compliant as possible but had not considered the custom values.
Will clean it up now.
Describe the Bug
Hi, I noticed a discrepancy between the behaviour of the
chain
andjump
parameters. According to https://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO-7.html, user-defined chains should use lowercase names.If I follow this convention, it works when passed to
chain
butjump
forcefully converts my chain name to uppercase.Expected Behavior
The value of the
jump
parameter should not be forced to uppercase.Steps to Reproduce
Steps to reproduce the behaviour:
returned 2: iptables v1.8.7 (nf_tables): Chain 'CUSTOM' does not exist
Environment
Additional Context
This line should be removed: https://github.com/puppetlabs/puppetlabs-firewall/blame/v7.0.2/lib/puppet/provider/firewall/firewall.rb#L867