Giter Site home page Giter Site logo

Comments (13)

IngoZenz avatar IngoZenz commented on July 28, 2024 1

it supports only 1 forward per host per IP4 / IP6

from personaldnsfilter.

boernsen-development avatar boernsen-development commented on July 28, 2024

I just found a workaround:
Instead of putting !googlevideo.com below *google* put !*googlevideo.com above it. It has to be wildcarded and above.

If there is no deeper issue behind it, I think this issue could be solved by correcting the comments in additionalHosts.txt and possibly change the predefined ordering in it.

from personaldnsfilter.

IngoZenz avatar IngoZenz commented on July 28, 2024

yes it seems it works as designed. In your first sample, there was no explicit entry for test.googlevideo.com, therefore it was blocked via the *google* rule hitting first. In your 2nd sample it hits the !*googlevideo.com rule first, thererfor it is whitelisted, whereas e.g. googleads.com would be blocked by *google* rule.

from personaldnsfilter.

boernsen-development avatar boernsen-development commented on July 28, 2024

So is !googlevideo.com not considered explicit or is it only considered explicit for googlevideo.com, but not for any sub-domain? I think this is what I misunderstood from:

# PRIORITIES in case of conflicting entries
# 1. Explicit entries without wildcards
# 2. Wildcard entries prioritized along the sequence in this file
# 3. Downloaded blocklist

from personaldnsfilter.

IngoZenz avatar IngoZenz commented on July 28, 2024

Exactly... Expicit means that there is an explicit entry for a domain /sub domain

from personaldnsfilter.

boernsen-development avatar boernsen-development commented on July 28, 2024

Thanks for clarifying!

Technically, I would say this issue can be closed. Only a few suggestions for additionalHosts.txt I would like to leave here for consideration to avoid confusion for others:

  • mention the role of subdomains in the description of priorities as it seems that automatically derived subdomains are neither treated as explicit nor as wildcard
  • move the whitelist section of the default file to the top and/or mention that if one wants to whitelist subdomains of matching wildcarded blacklist entries, this has to be done at the top AND using wildcards

from personaldnsfilter.

mosajjal avatar mosajjal commented on July 28, 2024

another question that might be relevant here or needs its own issue: does "forward to custom ip" support wildcards? I'm keen to use this project as a companion piece to my SNI proxy and hard-coding some dns suffixes will save the users a bunch of useless road trips to the server

from personaldnsfilter.

IngoZenz avatar IngoZenz commented on July 28, 2024

Today the custom IP forwards do not support wildcards.
What is possible is to change the IP used for filtered hosts - maybe that's an option.

from personaldnsfilter.

mosajjal avatar mosajjal commented on July 28, 2024

yes I saw a few "127.0.0.1" strings hardcoded in the app. would you be open to a PR for a setting to customize that? it'll solve my issue for sure :) could be a good one for some honeypot/fakenet implementations too

from personaldnsfilter.

IngoZenz avatar IngoZenz commented on July 28, 2024

You can customize it already today via following dnsfilter.conf settings:

# Returned IP for resolving blocked host
ipV4BlockedHost = 0.0.0.0
ipV6BlockedHost = ::

from personaldnsfilter.

mosajjal avatar mosajjal commented on July 28, 2024

oh nice. yes just saw it and it works flawlessly :) thanks!

from personaldnsfilter.

zwrmueller avatar zwrmueller commented on July 28, 2024

Today the custom IP forwards do not support wildcards

Hi,
is it possible to forward 1 host to 2 IPs?

Like:

myhost 192.168.1.21
myhost 192.168.1.22

That example above seems not to work, as (allways) the last entry is used ...

from personaldnsfilter.

zwrmueller avatar zwrmueller commented on July 28, 2024

Ok, thanx.
Would love it to see it the other way round, but thanx for quick response.

from personaldnsfilter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.