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

Cannot set masquerade in zone #129

Closed
michaelroth opened this issue Mar 24, 2017 · 1 comment
Closed

Cannot set masquerade in zone #129

michaelroth opened this issue Mar 24, 2017 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@michaelroth
Copy link

Is it possible to set masquerade in zone using this module, I've not found any informatiom about that.

Example:

/usr/bin/firewall-cmd --permanent --zone=public --add-masquerade

As a workaround I'm doing this:

exec { 'firewalld_add_masquerade_public':
command => '/usr/bin/firewall-cmd --permanent --zone=public --add-masquerade',
unless => '/usr/bin/grep masquerade /etc/firewalld/zones/public.xml > /dev/null',
}

I need this to build a NAT Gateway.
I'm using CentOS 7.3

@michaelroth michaelroth changed the title Cannot set masquerade Cannot set masquerade in zone Mar 24, 2017
@michaelroth michaelroth reopened this Mar 24, 2017
@crayfishx
Copy link
Contributor

This isn't currently supported - it's a fairly easy addition to the firewalld_zone resource type, will get this added

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

No branches or pull requests

2 participants