Forever free pihole blocking on google cloud compute

KYLee

Senior Member
Joined
May 21, 2000
Messages
2,403
Reaction score
6
see first post
fom web browser also change settings > listening interface
Listen on all interfaces, permit all origins
Where is the Web browser setting that you refer too? Reason is I can browse the Pihole using the Google public IP from Chrome after setting up DNS on my router.
 
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Where is the Web browser setting that you refer too? Reason is I can browse the Pihole using the Google public IP from Chrome after setting up DNS on my router.

Web interface -->Settings --> DNS -->Interface listening behavior

1) Listen on all interfaces
Allows only queries from devices that are at most one hop away (local devices)

2) Listen only on interface wg0

3) Listen on all interfaces, permit all origins
 

hwzlite

Master Member
Joined
Jan 27, 2007
Messages
3,086
Reaction score
3,225

Current status for Singapore, so far only 2 patched to 2.83....

Screenshot-2021-01-22-at-14-28-39.png

Screenshot-2021-01-22-at-14-29-48.png
 

KYLee

Senior Member
Joined
May 21, 2000
Messages
2,403
Reaction score
6
Thanks Xiaofan,

Btw, I have noticed my M1 dynamic address changed to 138.75.X.X from 49.245.X.X. Is that the case? How am I add in firewall so that it covers wider range? Fyi, After I changed the firewall to 138.75.0.0/16 then enable me to browse Pihole.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Thanks Xiaofan,

Btw, I have noticed my M1 dynamic address changed to 138.75.X.X from 49.245.X.X. Is that the case? How am I add in firewall so that it covers wider range? Fyi, After I changed the firewall to 138.75.0.0/16 then enable me to browse Pihole.

Unfortunately I do not have a good answer. Luckily my SingTel public IP has not changed since I set up Pi-hole.
 
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Just upgrade my Pihole installations on Google Cloud (US) and AWS (SG).

Somehow I need to manually restart lighttpd on the Google Cloud free tier. I also need to clean up some of the services to bring down the memory consumption back to below 40% (previously it was 58%).

No problem with AWS but it is only free for one year.
 
Last edited:

KYLee

Senior Member
Joined
May 21, 2000
Messages
2,403
Reaction score
6
Need help for final Linksys router (EA7500) setup. key in the google public address in local network static DNS 1 (34.x.x.x) but does not seem to be captured by the Pihole. Where should I add this IP address in my router?
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Need help for final Linksys router (EA7500) setup. key in the google public address in local network static DNS 1 (34.x.x.x) but does not seem to be captured by the Pihole. Where should I add this IP address in my router?

Setting up DNS server for Linksys routers:
https://www.linksys.com/sg/support-article/?articleNum=135673

Did you set up the right Firewall in the Google Cloud? Read the first page for the details. Each ISP may be different in terms of IP address change.

****
One additional step (at step 1) you need to do is to add port 80 and 53 to your home ip address
eg your home ip 154.205.95.36 (dynamic, isp change every 2 weeks)
put in firewall 154.205.0.0/16 so that it covers wider range
https://console.cloud.google.com/networking/firewalls/
****

BTW, are you using a Container on your local network (QNAP NAS) or are you using the Google Cloud?
 
Last edited:

KYLee

Senior Member
Joined
May 21, 2000
Messages
2,403
Reaction score
6
BTW, are you using a Container on your local network (QNAP NAS) or are you using the Google Cloud?
Yes, Qnap container is working. Trying out the Google cloud. Follow the same way but doesn't work on Google ip address.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Yes, Qnap container is working. Trying out the Google cloud. Follow the same way but doesn't work on Google ip address.

Most likely it is related to the Firewall rules.

For me Google Cloud is pretty okay but it took me a bit of tries to get firewall rules to work under Oracle Cloud free tier. In the end I did not use Pi-hole on Oracle but rather wireguard, v2ray and Trojan as it allows more data transfer than Google.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Previously I did not enable IPv6 for the Pi-hole installation on the Google Cloud. In that case, if I enable IPv6 on my home router, I can detect DNS leak on the Android phone.

Today I just reconfigured the Pihole installation (using "sudo pihole -r") to enable IPv6 and now it seems to be okay.

But it is not easy to detect IPv6 DNS leak.

Reference here:
https://forums.hardwarezone.com.sg/...e-forced-use-their-dns-servers-5379642-2.html

BTW, IPv6 is not available for Whizcomms, Viewquest and MyRepublic and most of the Singtel ONR users, mainly applicable for Starhub, M1 and some Singtel ONT users who have IPv6 enabled.

I found a few options.

1) use the following website to check the dns server for IPv4 and IPv6 and then check if the DNS server listed are the same as intended or not
https://browserleaks.com/ip

2) use dig ("dig" and "dig -6")

Not so sure if the above two are good enough though.
dnsleak.com seems to be carrying out more tests.

The following is the run log after I set up Cloudflare Family protection DNS (IPv4 and IPv6) under my Mac Mini M1. It seems to be okay as Singtel DNS is not appearing in the tests.

https://browserleaks.com/ip

DNS Leak Test
Test Results Found 3 Servers, 1 ISP, 2 Locations

Your DNS Servers
IP Address : ISP : Location :
162.158.162.177 Cloudflare, Inc. Singapore, Singapore
162.158.252.58 Cloudflare, Inc. United States, Palo Alto
2400:cb00:35:1024::a29e:a2b1 Cloudflare, Inc. Singapore, Singapore

Code:
mcuee@mcuees-Mac-mini ~ % dig www.google.com   

; <<>> DiG 9.10.6 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58655
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;www.google.com.			IN	A

;; ANSWER SECTION:
www.google.com.		60	IN	CNAME	forcesafesearch.google.com.
forcesafesearch.google.com. 77187 IN	A	216.239.38.120

;; Query time: 54 msec
;; SERVER: 1.1.1.3#53(1.1.1.3)
;; WHEN: Sun Jan 31 13:09:52 +08 2021
;; MSG SIZE  rcvd: 89

mcuee@mcuees-Mac-mini ~ % dig -6 www.google.com

; <<>> DiG 9.10.6 <<>> -6 www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23460
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;www.google.com.			IN	A

;; ANSWER SECTION:
www.google.com.		60	IN	CNAME	forcesafesearch.google.com.
forcesafesearch.google.com. 81191 IN	A	216.239.38.120

;; Query time: 192 msec
;; SERVER: 2606:4700:4700::1113#53(2606:4700:4700::1113)
;; WHEN: Sun Jan 31 13:09:56 +08 2021
;; MSG SIZE  rcvd: 89
 

uncle_josh

Master Member
Joined
Jun 16, 2018
Messages
3,167
Reaction score
796
Hi, anyone knows how to solve invalid domains, see highlighted in red !!

Thanks in advance

Preparing new gravity database
Using libz compression

Target: https://raw.githubusercontent.com/nicholasb2101/PiHole/master/Blocklists/Primary Blocklist.txt
[✓] Status: Retrieval successful
Received 1332931 domains, 16619 domains invalid!
Sample of invalid domains:
- 001linker.net;1
- 00hotmlsecure.live;419
- 01v8-9uvm.com;1
- 03b-9zf.com;1
- 04cpu5.com;1

Target: https://raw.githubusercontent.com/n...ter/Blocklists/Extended Primary Blocklist.txt
[✓] Status: Retrieval successful
Received 482635 domains, 17 domains invalid!
Sample of invalid domains:
- hashbag.cc:8688
- myètherwället.com
- mÿethèrwallét.com
- server.com:1234
- domain=myway.com

Target: https://raw.githubusercontent.com/nicholasb2101/PiHole/master/Blocklists/Secondary Blocklist.txt
[✓] Status: Retrieval successful
Received 1455719 domains, 26 domains invalid!
Sample of invalid domains:
- särahah.eu
- särahah.pl
- fus?on.org
- gu?.h??t
- kd?wql?t.?nf?

Target: https://raw.githubusercontent.com/nicholasb2101/PiHole/master/Blocklists/Tertiary Blocklist.txt
[✓] Status: Retrieval successful
Received 682026 domains, 309 domains invalid!
Sample of invalid domains:
- bireysel-zîraat.com
- www.hualañe.cl
- secret.ɢoogle.com
- a-ablecontractorsglobalservices.com;419
- abarisholdingsltd.co.uk;419

Target: https://raw.githubusercontent.com/nicholasb2101/PiHole/master/Blocklists/Supplemental Blocklist.txt
[✗] Status: Not found
[✗] List download failed: no cached list available
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Previously I did not enable IPv6 for the Pi-hole installation on the Google Cloud. In that case, if I enable IPv6 on my home router, I can detect DNS leak on the Android phone.

Today I just reconfigured the Pihole installation (using "sudo pihole -r") to enable IPv6 and now it seems to be okay.

But it is not easy to detect IPv6 DNS leak.

Reference here:
https://forums.hardwarezone.com.sg/...e-forced-use-their-dns-servers-5379642-2.html

BTW, IPv6 is not available for Whizcomms, Viewquest and MyRepublic and most of the Singtel ONR users, mainly applicable for Starhub, M1 and some Singtel ONT users who have IPv6 enabled.

In the end, I found the issue is with my SingTel 6rd IPv6 DNS server settings in the Asus router -- need to leave that empty so that the IPv4 DNS (Pi-hole) will take effect. After the change, no more DNS leak even with IPv6 enabled.

On the other hand, I am evaluating pfSense router/firewall on a Celeron J4105 mini PC router, which can integrate pfBlockerNG with similar function as Pi-hole. So far it seems to be pretty good.
 
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
My Singtel IPv4 address was pretty stable previously (no change over several months and no change even after reboot of the router). So it is easy for me to change the Firewall settings on the free Google Cloud. Recently it starts to change pretty often and it becomes a bit troublesome. Now I am considering setting a local Pi-hole instance on the Raspberry Pi 3B+.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top