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

Limit Queries to specific IPs? #3221

Closed
ColinShark opened this issue Aug 28, 2019 · 2 comments
Closed

Limit Queries to specific IPs? #3221

ColinShark opened this issue Aug 28, 2019 · 2 comments

Comments

@ColinShark
Copy link

Hi there,

I'm currently using CoreDNS on Version 1.6.2 to be able to connect to my dedicated Minecraft Bedrock Server with my Nintendo Switch (as it isn't possible without DNS manipulation).

I have now received an email from the Federal Office for Security in Information Technology in Germany, as my resolver is recursively answering queries from all IP addresses.

How can I limit source IP addresses that are allowed to query my DNS?

My current Corefile is as follows:

.:9999 {
    rewrite name exact mco.lbsg.net <IP of my MC server>
    log
    forward . tls://9.9.9.9 {
        tls_servername dns.quad9.net
        health_check 5s
    }
}
@chrisohaver
Copy link
Member

I dont have the whole picture, but it seems you're running coredns on a system that has a public interface, so you'd want to run coredns so it only listens on the private interface. You can do this with the bind plugin.

To answer your question about client IP ACL function:

There is the external firewall plugin in coredns/policy. It can be used to provide source ip ACL function.

There is also PR #3103, not merged yet, but I expect it should be soon. It provides a simpler ACL function.

@miekg
Copy link
Member

miekg commented Sep 2, 2019

The new acl (soon to be merged) or bind plugin can help. Closing.

@miekg miekg closed this as completed Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants