Forever free pihole blocking on google cloud compute

Hafi

Arch-Supremacy Member
Joined
Mar 30, 2003
Messages
15,340
Reaction score
5,351
Thanks for the input. Yes now I am just experimenting so I use all free stuff, from the VPS to the domains to the SSL certs.

I am using the Cloudflare DNS and not FreeNOM DNS for the domains. Cloudflare seems to cache the domains so ping is much faster and actually point to Cloudflare IPs and not the original VPS IPs.

You have to use Cloudflare nameservers if you want to utilize Cloudflare free service, it acts as a reverse proxy so your VPS IP address is not leaked but then if you are hosting copyright/spam content, takedown complaints will still be forwarded to your VPS hosting company.
 

Hafi

Arch-Supremacy Member
Joined
Mar 30, 2003
Messages
15,340
Reaction score
5,351
You're suppose to script it such that it auto-renew. ;)

for the non-techies like me... this is like asking a woman to drive a manual gear saloon car when she only took test to drive auto gear. =:p
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
You have to use Cloudflare nameservers if you want to utilize Cloudflare free service, it acts as a reverse proxy so your VPS IP address is not leaked but then if you are hosting copyright/spam content, takedown complaints will still be forwarded to your VPS hosting company.

Haha, no hosting of copyright/spam contents. I am pretty careful in this regard. I do not even do BT.

Anyway, free VPS providers allow very little free network bandwidth for the outbound traffic. Google forever tier 1GB per month, Microsoft Azure 5GB per month (one year free), Amazon AWS 15GB per month (one year free). Only Oracle seems to be more generous but I have not even got the basic Pi-hole web interface working on Oracle.

The first goal is actually to get PiHole web interface HTTPS capable.
 
Last edited:

Hafi

Arch-Supremacy Member
Joined
Mar 30, 2003
Messages
15,340
Reaction score
5,351
It seems to me both have its advantages.

Cloudflare "Origin Certificates" free TLS certs are up to 15 years. It is used for installation on the "origin" server.

But it states that "Origin Certificates are only valid for encryption between Cloudflare and your origin server". So it is kind of incomplete encryption.

Ref:
https://moz.com/blog/traditional-vs-lets-encrypt-vs-cloudflare

https://sitemonki.com/blog/letsencrypt-vs-clouflare-for-free-ssl-provider-for-your-website/

https://nickjanetakis.com/blog/lets-encrypt-vs-cloudflare-for-https

My previous limited exposures to the certificates were actually with more stringent and much more expensive Windows kernel driver signing certificates because of my involvement with some open source projects.

if you ask me while its not a bad thing, most websites other than e-commerce and banks doing financial transactions do not need SSL. To me as a layman, as long as the certificate is installed, there no errors while browsing and the "green Lock" shows up fine on the address bar then everything is good to go. If what I have is only a Wordpress blog flaunting about the latest iphone 12 or RTX 3090, the security of a SSL certificate is irrelevant to me. ;) It is there because the latest browsers require it else it would showed up as insecure (broken lock) scaring away my site visitors. :( We are not techies who needs to drill into specifics so we want something that is set and forget and then we go on to concentrate on other things. :o
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
if you ask me while its not a bad thing, most websites other than e-commerce and banks doing financial transactions do not need SSL. To me as a layman, as long as the certificate is installed, there no errors while browsing and the "green Lock" shows up fine on the address bar then everything is good to go. If what I have is only a Wordpress blog flaunting about the latest iphone 12 or RTX 3090, the security of a SSL certificate is irrelevant to me. ;)

It is there because the latest browsers require it else it would showed up as insecure (broken lock) scaring away my site visitors. :( We are not techies who needs to drill into specifics so we want something that is set and forget and then we go on to concentrate on other things. :o

Haha, I see. I have nothing important planned on the sites.

I am pretty comfortable with Linux and console though, not really a power user as I do not do things like scripting or programming, but no problems with understanding the shell scripts and common commands. Last time I was even able to patch and build Linux and FreeBSD kernels, as well as building Windows kernel drivers -- now lazy and not having the time and need to do so. So I rather try to do simple things and use shortcuts on the internet. Still I will try to understand how the scripts work.

In the end, I will try both solutions from Cloudflare and Let's Encrypt.
 
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Hmm, why Apache? I think lighttpd is better for low memory free tier VPS like the free tier Google.

I will follow the following guide for using Let's Encrypt with lighttpd.
https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771

Mission accomplished using Let's Encrypt and the above Pi-hole HTTPS web interface guide for the Google Cloud free tier Pi-hole deployment.

Domain name: free from FreeNom
Domain name DNS server and proxy: Cloudflare free plan
SSL certificate: free from Let's Encrypt

Edit to add: one lesson learned, other than "A" DNS record, "TXT" DNS record needs to be added in order not to have problems with Let's Encrypt.
 
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Anyway, free VPS providers allow very little free network bandwidth for the outbound traffic. Google forever tier 1GB per month, Microsoft Azure 5GB per month (one year free), Amazon AWS 15GB per month (one year free). Only Oracle seems to be more generous but I have not even got the basic Pi-hole web interface working on Oracle.

Finally got the Pi-hole web interface and Adguard Home web interface working on two free tier severs.

The main problem is with the Double Firewall setup of the Oracle cloud. I need to set up the correct inbound rules in the console, and then I need to set up the firewall rules correctly on the virtual machines themselves using iptables.

Edit to add:
Oracle Cloud Always Free tier is not fast as there is no SG based sever, but it offers 10TB of outbound data, so it can be a good test bed for servers like web server and VPN server.

https://www.oracle.com/cloud/free/#free-cloud-trial

Always Free Services from Oracle Cloud

Databases
Your choice of Autonomous Transaction Processing or Autonomous Data Warehouse. 2 databases total, each with 1 OCPU and 20 GB storage.

Compute
2 virtual machines with 1/8 OCPU and 1 GB memory each.

Storage
2 Block Volumes, 100 GB total. 10 GB Object Storage. 10 GB Archive Storage.

Additional Services
Load Balancer: 1 instance, 10 Mbps bandwidth.

Monitoring: 500 million ingestion datapoints, 1 billion retrieval datapoints.

Notifications: 1 million sent through https per month, 1,000 sent through email per month.

Outbound Data Transfer: 10 TB per month.

Logging and Logging Analytics: 10GB of storage per month.
 
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Finally I have got v2ray vless xtls working on Oracle Cloud.

Ref:
https://www.v2fly.org/config/protocols/vless.html

https://www.youtube.com/watch?v=SsUy3uZB3AQ
The Chinese blogger really got great speed with V2Ray (VLESS) and Trojan, above 700Mbps with his 800Mbps broadband.

I do not have fast VPS so I use free Oracle Cloud server in San Jose (CA, USA).
Here is the speed I got with V2ray+XTLS+TCP, not bad with a free VPS. I have also tried Wireguard and it is also not bad.

10418649235.png

Another instance.
10419176926.png
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
It seems to me different router has different methods of using the alternative DNS severs.

Right now I have set two Pi-Hole DNS servers in my RT-AX82U router, first one using the free Google Free Tier (server in US), the seond one using the Amazon AWS one year free (server in SG).

What I found is that both servers got used.

Previouslly I set one Pi-Hole server and one back-up Adguard DNS in Huawei AX3 Pro router, it seems to use the first one only and the backup was not used.

BTW, so far both Pi-Hole DNS installations are very solid. Still occassionally I will log in and then upgrade the system and sometimes reboot the server.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
nice. but throughput :( . maybe lowering encryption and stuff might help

The free tier Oracle server is in San Jose and they limit the bandwidth. Unfortunately they do not have free tier server in Singapore.

As for the encryption, I think v2ray vless xtls is already lower than the previous V2ray vmess. And Trojan is also less than v2ray vmess.

The reason to go with Oracle is because of the data allowed. Google Cloud, AWS and Azure free tiers all have very little outbound data quota.
 

Trans-Am

Supremacy Member
Joined
Apr 2, 2014
Messages
7,393
Reaction score
426
It seems to me different router has different methods of using the alternative DNS severs.

Right now I have set two Pi-Hole DNS servers in my RT-AX82U router, first one using the free Google Free Tier (server in US), the seond one using the Amazon AWS one year free (server in SG).

What I found is that both servers got used.

Previouslly I set one Pi-Hole server and one back-up Adguard DNS in Huawei AX3 Pro router, it seems to use the first one only and the backup was not used.

BTW, so far both Pi-Hole DNS installations are very solid. Still occassionally I will log in and then upgrade the system and sometimes reboot the server.
Seem like Asus router is in load balance mode instead of fall-over

Sent from A universe Where pink PWNED everything using GAGT
 

Trans-Am

Supremacy Member
Joined
Apr 2, 2014
Messages
7,393
Reaction score
426
I have just learn to setup my Pihole via QNAP container. Currently running at default setting. Are these the blocklists that I should add? Is there a way to block Youtube Ads?
https://hosts.oisd.nl/
https://dbl.oisd.nl/
https://raw.githubusercontent.com/mk...ut/domains.txt
https://raw.githubusercontent.com/ta...ster/hosts.all
https://block.energized.pro/unified/formats/hosts.txt

Thanks.
I am using this list

https://firebog.net/

Those list, some are quite aggressive.

Sent from A universe Where pink PWNED everything using GAGT
 

yusoffb01

Arch-Supremacy Member
Joined
Jun 17, 2008
Messages
16,893
Reaction score
1,799
I have just learn to setup my Pihole via QNAP container. Currently running at default setting. Are these the blocklists that I should add? Is there a way to block Youtube Ads?
https://hosts.oisd.nl/
https://dbl.oisd.nl/
https://raw.githubusercontent.com/mk...ut/domains.txt
https://raw.githubusercontent.com/ta...ster/hosts.all
https://block.energized.pro/unified/formats/hosts.txt

Thanks.

youtube serves video ads which cannot be blocked by pihole because it is the same domain as normal videos. Use vancedapp.com for android or ublock origin on computers
 
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