[USG Flex H Series] - How to block "en-mass" a list of URLs, like an adblocker/tracker list

Options
13

All Replies

  • Maverick87
    Maverick87 Posts: 556
    Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
    image  Guru Member
    Options

    Hi @Zyxel_Judy,

    OK thank you… so some points:

    • It's important update the user guide/help page for the EBL; if wildcards are not supported now, we need to know;
    • For supporting wildcards, it's possible to open an Idea or you are already work on this? Wildcards are very important. Also it's so strange, because seems to work: image.png image.png image.png

    If you see the zyfeed, into the EBL is my wildcart-test.txt that have two sites:

    • http://samsung.com
    • http://*.casa.it

    And seems that via log, the Zyfeed-test is fully loaded.
    So, why in this case "http://*.casa.it" is fully loaded?

    There are some stranges, you say that the wildcard is not supported by EBL, instead here seems to work.

  • Maverick87
    Maverick87 Posts: 556
    Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
    image  Guru Member
    Options

    Hi @Zyxel_Judy,
    I've created two files, one with wildcard and one with no wildcard:

    image.png

    Both files are correctly loaded, also if the wildcard-test file contains wildcard:

    image.png image.png

    And these are the tests:

    image.png image.png image.png image.png

    So seems that:

    • Wildcard and non-wildcard are fully loaded into the EBL;
    • DNS/URL Filter non-wildcard site seems to be blocked
    • DNS/URL Filter wildcard site seems not be blocked

    So the EBL load both, but only the non-wildcard site are effectively blocked.

    Very strange

  • Zyxel_Judy
    Zyxel_Judy Posts: 2,883
    Zyxel Certified Network Engineer Level 2 - Nebula Zyxel Certified Network Engineer Level 2 - Switch Zyxel Certified Network Engineer Level 2 - Security Zyxel Certified Network Engineer Level 1 - Nebula
    image  Zyxel Employee
    edited November 16
    Options

    Hi @Maverick87,

    The file containing the wildcard entry did load into the EBL as a whole; however, the wildcard entry itself failed to parse — you’ll see “Error parsing” in the log for https://*.nip.io.

    A URL with a wildcard does not show a parsing error, but it won’t hit (match) during a scan. It is also enhanced in the future.

    The EBL contains the entry https://nip.io, so the DNS Filter DB stores nip.io, and the URL Filter DB stores https://nip.io. This is also why nip.io (by DNS Thread Filter) and https://nip.io (by URL Thread Filter) are matched/blocked, but 192.168.0.1.nip.io and https://192.168.0.1.nip.io are not.

    Zyxel_Judy

  • Maverick87
    Maverick87 Posts: 556
    Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
    image  Guru Member
    Options

    Now, I've changed the files, using an hostname (so without http/s).

    In the wildcard file, I've added "*.casa.it" (without http/s), and into the no-wildcard file, I've added "immobiliare.it" (without http/s).

    image.png image.png

    I've syncronized the EBL file and this is the result:

    image.png

    So…. the EBL fails to load wildcards, only when is used as simple hostname; into the wildcard file there are two lines:

    • Line 1: https://*.nip.io
    • Line 2: *.casa.it

    The log show an error parsing only for the line 2, not for line 1 (that contains wildcard).

    I've added some others wildcards site/hostname:

    image.png

    And this is the log:

    image.png

    So seems that the wildcard parse problem is verified only when is used as hostname, not when is used in combination with http/s protocols.

  • Maverick87
    Maverick87 Posts: 556
    Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
    image  Guru Member
    Options

    Hi @Zyxel_Judy,
    really not… if you see the image of the log there aren't any parser error.

    image.png

    Check the second image:

    • Match default rule DROP (not interesting)
    • Update DNS/URL filter EBL completed → zyfeed-test-no-wildcard
    • Update DNS/URL filter EBL completed → zyfeed-test
    • Update DNS/URL filter EBL completed → SamsungTV-domains
    • Match default rule DROP (not interesting)

    So all the three EBL list are loaded successfully without any parse error.

  • Zyxel_Judy
    Zyxel_Judy Posts: 2,883
    Zyxel Certified Network Engineer Level 2 - Nebula Zyxel Certified Network Engineer Level 2 - Switch Zyxel Certified Network Engineer Level 2 - Security Zyxel Certified Network Engineer Level 1 - Nebula
    image  Zyxel Employee
    Options

    Hi @Maverick87,

    As I corrected in my previous comment, the symptom you observed happens because a URL with a wildcard doesn’t show a parsing error on import, but it won’t actually hit (match) during a scan. This is something we plan to enhance in the future.

    We’ve added “support wildcard in EBL” as a feature request to our roadmap (no release timeline determined yet), so you don’t need to create a separate Community Idea post for it.

    Zyxel_Judy

  • Maverick87
    Maverick87 Posts: 556
    Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
    image  Guru Member
    Options

    Hi @Zyxel_Judy,
    OK thank you, so you don't open a new Idea?

    For enhancing the EBL feature with uBlock/AdBlock parser, also this is in roadmap or you need an Idea?

  • Zyxel_Judy
    Zyxel_Judy Posts: 2,883
    Zyxel Certified Network Engineer Level 2 - Nebula Zyxel Certified Network Engineer Level 2 - Switch Zyxel Certified Network Engineer Level 2 - Security Zyxel Certified Network Engineer Level 1 - Nebula
    image  Zyxel Employee
    Options

    Hi @Maverick87,

    Right, please do not open a new idea for “support wildcard in EBL”, because it is already on our roadmap. This means we will implement it, and it is planned for the middle of 2027.

    For the uBlock/AdBlock parser request, we currently have no plan to implement it. Please convert the file to follow the current rule format instead.

    Zyxel_Judy

  • Maverick87
    Maverick87 Posts: 556
    Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
    image  Guru Member
    Options

    Hi @Zyxel_Judy,

    In the middle of 2027? Oh jesus! Ok :)

    In the meantime, you have an idea on how I can retrieve all subdomains based on a domain:

    For example: .samsung.com — you say how and if I can discover all the "*" of a domain?

    Thank you

  • Zyxel_Judy
    Zyxel_Judy Posts: 2,883
    Zyxel Certified Network Engineer Level 2 - Nebula Zyxel Certified Network Engineer Level 2 - Switch Zyxel Certified Network Engineer Level 2 - Security Zyxel Certified Network Engineer Level 1 - Nebula
    image  Zyxel Employee
    Options

    Hello,

    The subdomain discovery — that one’s a bit out of our lane here, since it’s more of a general topic than a USG FLEX H feature question. Worth searching for general subdomain-enumeration tools online for that.

    Zyxel_Judy