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 rule for filtering outgoing DNS server traffic #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bastelfreak
Copy link
Member

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Copy link
Member

@smortex smortex left a comment

Choose a reason for hiding this comment

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

I am a bit worried about the way this feels complex, but understand that consistency is sometimes better that simplicity, so maybe this is fine? That's clearly not a no-go for me, so I'll approve this, but maybe users of the module will want to share their mind.

manifests/rules/out/dnsserver.pp Outdated Show resolved Hide resolved
Stdlib::IP::Address::V4 => "ip saddr ${dns}",
}
nftables::rule { "default_out-dnsservertcp-${index}":
content => "${content} tcp sport 53 accept",
Copy link
Member Author

Choose a reason for hiding this comment

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

derp, I need to rethink this. DNS servers don't respond with src port 53 but a random port. Maybe we can just close the PR.

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.

None yet

2 participants