Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-450) Enable rule inversion #394

Merged
merged 1 commit into from Aug 1, 2014
Merged

Conversation

hunner
Copy link
Contributor

@hunner hunner commented Jul 30, 2014

iptables has many rule arguments that may be inverted by prefixing with
an exclamation mark. This commit enables inversion for most every
property currently in the firewall provider that supports inversion by
prefixing the value with a bang+space.

Array elements must have all array elements prefixed with a bang+space
otherwise a warning will be raised, as it would look confusing to negate
a single value and then have iptables negate all of them.

@hunner
Copy link
Contributor Author

hunner commented Jul 31, 2014

Failures on 2.7... for some reason travisci doesn't show up https://travis-ci.org/puppetlabs/puppetlabs-firewall/builds/31287407

@vzctl
Copy link
Contributor

vzctl commented Aug 1, 2014

tried out tcp_flags negation on 3.6.2 and it works

iptables has many rule arguments that may be inverted by prefixing with
an exclamation mark. This commit enables inversion for most every
property currently in the firewall provider that supports inversion by
prefixing the value with a bang+space.

Array elements must have all array elements prefixed with a bang+space
otherwise a warning will be raised, as it would look confusing to negate
a single value and then have iptables negate all of them.
apenney pushed a commit that referenced this pull request Aug 1, 2014
(MODULES-450) Enable rule inversion
@apenney apenney merged commit a0c7d9b into puppetlabs:master Aug 1, 2014
@hunner hunner deleted the fix_negate branch August 12, 2014 16:15
@ogarraux
Copy link

Hey, should inversion work on interfaces (iniface / outiface)? It doesn't seem to for me: Invalid value "! docker0". Valid values match /^[a-zA-Z0-9-._+]+$/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants