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 a parameter to control the fate of discarded traffic #7

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

nbarrientos
Copy link
Collaborator

This patch implements the second feature requested via #2, adding a parameter to configure how discarded packets will be handled. By default, they'll be rejected by the last rule in each chain with icmpx type port-unreachable as it's always been, however it's possible now to set the parameter to false so the packets are handled instead via the policies of the chains which at the moment are all drop.

Closes #2.

@duritong
Copy link
Collaborator

LGTM @keachi wdyt

Copy link
Collaborator

@keachi keachi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one little nit picking.

manifests/init.pp Show resolved Hide resolved
@keachi keachi merged commit 5e0146c into voxpupuli:master Nov 17, 2020
@traylenator traylenator added the enhancement New feature or request label Dec 10, 2020
figless pushed a commit to figless/puppet-nftables that referenced this pull request Aug 25, 2021
5e0146c Merge pull request voxpupuli#7 from cernops/reject_with
7072774 Add a parameter to control the fate of discarded packets

git-subtree-dir: code
git-subtree-split: 5e0146c
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

Successfully merging this pull request may close these issues.

The fate of forbidden packets should be configurable
4 participants