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

Blocking a host also blocks DNS resolving #1240

Open
seniordevel opened this issue Dec 14, 2024 · 1 comment
Open

Blocking a host also blocks DNS resolving #1240

seniordevel opened this issue Dec 14, 2024 · 1 comment

Comments

@seniordevel
Copy link

I created a rule to block a host, e.g.
.*doubleclick\.net

The host is blocked as expected, but now I am completely unable to resolve the host, since DNS resolution -referring this host - is blocked too.
This behaviour contradicts any known firewall behaviour, for example known from iptables for many decades.

@gustavo-iniguez-goya
Copy link
Collaborator

Hi @seniordevel ,

If you created a rule to block that domain name, the rule will be applied to any port.
If you want to allow DNS resolution, you'll have to create a rule to block connections to that domain + allowed destination ports ( for example: [x] To this port: ^(80|443)$)

Bear in mind that nor iptables and nor nftables block connections by process or md5 for example, so behaviour may differ from those or any other apps.

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

No branches or pull requests

2 participants