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

Generate parser list #248

Merged
merged 3 commits into from
Oct 16, 2013
Merged

Generate parser list #248

merged 3 commits into from
Oct 16, 2013

Conversation

senax
Copy link
Contributor

@senax senax commented Sep 15, 2013

Updated pull-request, now with spec test.

This patch should fix parsing iptables-save output from iptables lines as generated by system-config-firewall-tui.

Example line: -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

Before patch: firewall { '9004 dc0f1adfee77aa04ef7fdf348860a701':
ensure => 'present',
action => 'accept',
chain => 'INPUT',
dport => ['NEW'],
proto => 'tcp',
state => ['22'],
table => 'filter',
}

After patch: firewall { '9004 dc0f1adfee77aa04ef7fdf348860a701':
ensure => 'present',
action => 'accept',
chain => 'INPUT',
dport => ['22'],
proto => 'tcp',
state => ['NEW'],
table => 'filter',
}

@kbarber-jenkins-bot
Copy link

Can one of the admins verify this patch?

apenney pushed a commit that referenced this pull request Oct 16, 2013
@apenney apenney merged commit 5e2b054 into puppetlabs:master Oct 16, 2013
@apenney
Copy link
Contributor

apenney commented Oct 16, 2013

Thanks for this! Sorry it's taken so long to get to, this module has been neglected for a while now. I'll try to do better about keeping on top of things.

cegeka-jenkins pushed a commit to cegeka/puppet-firewall that referenced this pull request Oct 23, 2017
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.

4 participants