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

Add an option to disable NAT #23

Closed
LionelCons opened this issue Nov 25, 2020 · 1 comment · Fixed by #25
Closed

Add an option to disable NAT #23

LionelCons opened this issue Nov 25, 2020 · 1 comment · Fixed by #25

Comments

@LionelCons
Copy link

Most of what is instantiated by default can be disabled with the $in_* and $out_* variables. This is good and allows for a clean and minimal nftables configuration.

Unfortunately, the NAT related bits cannot be disabled. This creates two tables and four chains which are not used (by default).

It would be cleaner to have an option to remove all the NAT related code. init.pp could simply have something like:

if ($nat) {
    include nftables::ip_nat
}
@nbarrientos
Copy link
Collaborator

I'll send a patch.

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

Successfully merging a pull request may close this issue.

2 participants