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

Use pihole regex filter? #11

Open
jbreitbart opened this issue Aug 29, 2021 · 14 comments
Open

Use pihole regex filter? #11

jbreitbart opened this issue Aug 29, 2021 · 14 comments
Assignees

Comments

@jbreitbart
Copy link

I did take a quick look at your scripts and it looks like you are filtering the dns query log with a regex and add all matched domains to the blacklist. I am wondering why you are not directly using a blacklist regex filter in pihole? Something like

image

@ftonioli
Copy link

Hello,

Good point of view!

Appears to be working.

Disabled all previus insertion and leave only regex enable.

image

@deividgdt
Copy link
Owner

Hi @jbreitbart ,

Some time ago I tried this method, but basically Youtube stop working after apply this regexp. Anyway, I'll test it again and I'll inform with the results.

Kind regards,

@deividgdt deividgdt self-assigned this Aug 30, 2021
@jbreitbart
Copy link
Author

Some time ago I tried this method, but basically Youtube stop working after apply this regexp. Anyway, I'll test it again and I'll inform with the results.

It looks like you are correct. Is your script doing any further filtering?

@ftonioli
Copy link

ftonioli commented Aug 30, 2021 via email

@ftonioli
Copy link

ftonioli commented Aug 30, 2021 via email

@ftonioli
Copy link

ftonioli commented Aug 30, 2021 via email

@langkhach270389
Copy link

Hi @jbreitbart ,

Some time ago I tried this method, but basically Youtube stop working after apply this regexp. Anyway, I'll test it again and I'll inform with the results.

Kind regards,

Hi boss. I think service check subdomain after 5 minutes. That mean dns A-record TTL < 1800-5*60. Blocked

@deividgdt
Copy link
Owner

Hi @jbreitbart

It looks like you are correct. Is your script doing any further filtering?

No, it's as simply as that, just one regexp. The log file is been read every 5 mins (approx) and all those googlevideo subdomains that match the regexp are directly blocked.

@ftonioli
Copy link

ftonioli commented Sep 29, 2021

Hello,

Me again.

Looks like something is not working.

Almost nothing more is blocked:

image

See that nothing is add during this block of time:

[2021-09-29 06:59:40] No new subdomains to added.
[2021-09-29 07:04:40] Checking /var/log/pihole.log...
[2021-09-29 07:04:41] No new subdomains to added.
[2021-09-29 07:09:41] Checking /var/log/pihole.log...
[2021-09-29 07:09:41] No new subdomains to added.
[2021-09-29 07:14:41] Checking /var/log/pihole.log...
[2021-09-29 07:14:41] No new subdomains to added.
[2021-09-29 07:19:41] Checking /var/log/pihole.log...
[2021-09-29 07:19:41] No new subdomains to added.
[2021-09-29 07:24:41] Checking /var/log/pihole.log...
[2021-09-29 07:24:41] No new subdomains to added.
[2021-09-29 07:29:41] Checking /var/log/pihole.log...
[2021-09-29 07:29:42] No new subdomains to added.
[2021-09-29 07:34:42] Checking /var/log/pihole.log...
[2021-09-29 07:34:44] No new subdomains to added.

@deividgdt
Copy link
Owner

Hi @ftonioli, did you install the latest version (3.7)?

Hello,

Me again.

Looks like something is not working.

Almost nothing more is blocked:

image

See that nothing is add during this block of time:

[2021-09-29 06:59:40] No new subdomains to added. [2021-09-29 07:04:40] Checking /var/log/pihole.log... [2021-09-29 07:04:41] No new subdomains to added. [2021-09-29 07:09:41] Checking /var/log/pihole.log... [2021-09-29 07:09:41] No new subdomains to added. [2021-09-29 07:14:41] Checking /var/log/pihole.log... [2021-09-29 07:14:41] No new subdomains to added. [2021-09-29 07:19:41] Checking /var/log/pihole.log... [2021-09-29 07:19:41] No new subdomains to added. [2021-09-29 07:24:41] Checking /var/log/pihole.log... [2021-09-29 07:24:41] No new subdomains to added. [2021-09-29 07:29:41] Checking /var/log/pihole.log... [2021-09-29 07:29:42] No new subdomains to added. [2021-09-29 07:34:42] Checking /var/log/pihole.log... [2021-09-29 07:34:44] No new subdomains to added.

@ftonioli
Copy link

ftonioli commented Sep 29, 2021 via email

@mibere
Copy link

mibere commented Oct 2, 2021

I'm not sure, but is it correct that after

Database "update"

in line 265 there is no Gravity update?

See line 179 and 180:

Database "update"
pihole updateGravity > ${GRAVITY_LOG} 2>&1 &

@ftonioli
Copy link

ftonioli commented Oct 2, 2021 via email

@ftonioli
Copy link

ftonioli commented Oct 5, 2021

Hello,

A few new domains were added, but for sure, nothing is blocked anymore. :(

YT 1 x 0 pi-hole

:(

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

5 participants