You are not logged in.

#1 2018-07-22 19:34:16

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Pi-hole not filtering ads

Hello,

I've installed a Pi-hole server on EC2 using the Arch Linux AMI from Uplink Laboratories. I followed the wiki so what I did is:

- installed pi-hole-server from AUR
- uncommented "conf-dir=/etc/dnsmasq.d/,*.conf" from /etc/dnsmasq.conf
- added log-queries=extra
- restarted and enabled dnsmasq.service
- pihole updateGravity
- pihole logging on
- pihole tail
- locally set up to use my new DNS server (/etc/resolv.conf is showing it correctly)
- cleared Chrome cache
- navigate around and ads still showing up
- nothing is logged by pihole
- nslookup archlinux.org -my server address- => still nothing logged in pihole

Why nothing gets logged by "pihole tail" and why ads are still loaded?

Offline

#2 2018-07-22 20:14:47

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: Pi-hole not filtering ads

Are you routing internet traffic through PiHole?


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#3 2018-07-22 20:28:45

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Pi-hole not filtering ads

Probably not. I think my DNS server is just forwarding requests to Google's DNS servers.

How do you do that?

Offline

#4 2018-07-22 20:54:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Pi-hole not filtering ads

What is the IP of the pihole box?
Post the output of `cat /etc/resolv.conf`


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2018-07-23 18:12:48

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Pi-hole not filtering ads

Locally:

➜  ~ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 52.214.17.59

The IP address is 52.214.17.59

Last edited by EgidioCaprino (2018-07-23 18:13:41)

Offline

#6 2018-07-23 18:53:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Pi-hole not filtering ads

Did you configure the web GUI?  If so, are you seeing traffic at all?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2018-07-23 19:07:09

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Pi-hole not filtering ads

No, I didn't configured it.

I do this on the server

[root@ip-172-31-7-138 ~]# pihole tail
  [i] Press Ctrl-C to exit
11:09:55 dnsmasq[13624]: 6 80.82.77.139/54631 reply direct.shodan.io is 216.117.2.180
11:09:56 dnsmasq[31156]: 7 80.82.77.139/52351 query[TXT] ID.SERVER from 80.82.77.139
11:09:56 dnsmasq[31156]: 7 80.82.77.139/52351 forwarded ID.SERVER to 8.8.8.8
11:10:01 dnsmasq[31161]: 107 80.82.77.139/57218 query[TXT] HOSTNAME.BIND from 80.82.77.139
11:10:01 dnsmasq[31161]: 107 80.82.77.139/57218 forwarded HOSTNAME.BIND to 8.8.8.8
18:48:36 dnsmasq[13624]: 207 52.73.169.169/40841 query[A] www.cybergreen.net from 52.73.169.169
18:48:36 dnsmasq[13624]: 207 52.73.169.169/40841 forwarded www.cybergreen.net to 8.8.4.4
18:48:36 dnsmasq[13624]: 207 52.73.169.169/40841 forwarded www.cybergreen.net to 8.8.8.8
18:48:36 dnsmasq[13624]: 207 52.73.169.169/40841 reply www.cybergreen.net is 104.18.33.114
18:48:36 dnsmasq[13624]: 207 52.73.169.169/40841 reply www.cybergreen.net is 104.18.32.114

I do this from local

➜  ~ nslookup archlinux.org 52.214.17.59                         
Server:		52.214.17.59
Address:	52.214.17.59#53

Non-authoritative answer:
Name:	archlinux.org
Address: 138.201.81.199
Name:	archlinux.org
Address: 2a01:4f8:172:1d86::1

Nothing gets logged on the server. Why?

If `/etc/resolv.conf` is showing the correct DNS server I guess I'm actually using it.

Offline

#8 2018-07-23 19:14:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Pi-hole not filtering ads

Not sure... on the pihole box, does the pihole script work?

pihole -c
|¯¯¯(¯)_|¯|_  ___|¯|___        Core: version is 3.3
| ¯_/¯|_| ' \/ _ \ / -_)        Web: version is 3.3
|_| |_| |_||_\___/_\___|        FTL: v3.0
 ——————————————————————————————————————————————————————————
  Hostname: yourhole          (Arch  )
    Uptime: 3 days, 22:31:08                                                    
 Task Load: 0.00 0.00 0.00     (Active: 1 of 35 tasks)
 CPU usage: 0%                 (4x 1.2 GHz @ 323k)
 RAM usage: 16%                (Used: 148 MB of 936 MB)
 HDD usage: 63%                (Used: 4 GB of 7 GB)
  LAN addr: 192.168.1.250      (Gateway: 192.168.1.1)
   Pi-hole: Active             (Blocking: 280717 sites)
 Ads Today: 10%                (Total: 675 of 7055)
Local Qrys: 6%                 (1 DNS servers)
   Blocked: ads30.adcolony.com                                                  
Top Advert: ads.nexage.com                                                      
Top Domain: api-global.netflix.com                                              
Top Client: rachels-iphone

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2018-07-23 20:12:14

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Pi-hole not filtering ads

It outputs this

|¯¯¯(¯)_|¯|_  ___|¯|___        Core: version is 3.3
| ¯_/¯|_| ' \/ _ \ / -_)        Web: version is 3.3
|_| |_| |_||_\___/_\___|        FTL: v3.0
 ——————————————————————————————————————————————————————————
  Hostname: ip-172-31-7-138    (Arch  )
    Uptime: 1 day, 00:59:32                                                                                                           
 Task Load: 0.00 0.00 0.00     (Active: 0 of 25 tasks)
 CPU usage: 0%                 (2.4 GHz)
 RAM usage: 25%                (Used: 244 MB of 982 MB)
 HDD usage: 27%                (Used: 2 GB of 8 GB)
  LAN addr: 172.31.7.138       (Gateway: 172.31.0.1)
   Pi-hole: Active             (Blocking: 0 sites)
 Ads Today: 0%                 (Total: 0 of 0)
Local Qrys: 0%                 (2 DNS servers)
   Blocked: FTL offline                                                                                                               
Top Advert:                                                                                                                           
Top Domain:                                                                                                                           
Top Client: 

Offline

#10 2018-07-23 20:52:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Pi-hole not filtering ads

Well, you got something misconfigured... recommend you re-read the wiki article and verify setup is correct.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#11 2018-07-23 21:48:16

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Pi-hole not filtering ads

I'm sorry, but from my understanding the wiki just says to
- install pi-hole-server
- set up dnsmasq by changing a couple of lines (which I did)

The wiki is not helping here.

Offline

#12 2018-07-23 22:37:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Pi-hole not filtering ads

It's been too long since I had to tinker with pi-hole.  Recommend you try posting to their upstream discussion board: https://discourse.pi-hole.net


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#13 2018-07-24 07:19:20

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Pi-hole not filtering ads

Offline

Board footer

Powered by FluxBB