-
Notifications
You must be signed in to change notification settings - Fork 457
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
add ipset support #383
add ipset support #383
Conversation
Can you please rebase this? |
@mhaskel shall we merge it now please ? :) I'm rebasing it 3rd time already. |
@@ -217,6 +219,8 @@ def self.rule_to_hash(line, table, counter) | |||
# --tcp-flags takes two values; we cheat by adding " around it | |||
# so it behaves like --comment | |||
values = values.gsub(/(!\s+)?--tcp-flags (\S*) (\S*)/, '--tcp-flags "\1\2 \3"') | |||
# ditto for --match-set | |||
values = values.sub(/--match-set (\S*) (\S*)/, '--match-set "\1 \2"') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is possible to be inverted, do we want to add (!\s+)?
and "\1\2 \3"
to the regex, and add it to https://github.com/puppetlabs/puppetlabs-firewall/blob/master/lib/puppet/provider/firewall/iptables.rb#L318 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that's a good idea.
CLA signed by all contributors. |
sorry for the late reply. i resolved all the comments, let me know if there's anything else. |
@mhaskel @hunner could you take a look when you have time? |
add ipset support
This is a rebased version of #348 and a fix for MODULES-1173.