Forever free pihole blocking on google cloud compute

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
BTW, you have to change the free tier of Google Cloud instances to use E2-micro VM to avoid charges. They started to charge for the older F1-micro instances from 1 Sept 2021.

From Google:
The Free Tier F1-micro VM is changing to the E2-micro VM as the VM to use for free. On August 1, 2021, E2-micro Free Tier will be introduced. Follow these steps to change your machine type to E2-micro to avoid incurring charges for continuing to use F1-micro after August 31, 2021.

Starting August 1, 2021, change the machine type from F1-micro, or stop your existing F1-micro instance and begin using a E2-micro instance. VMs created with either method will automatically have the Free Tier discount applied to them. The supported regions will remain the same.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
If u own an asus router, can install adguard + unbound on it.
Somehow I do not like adguard at all and I was not able to get https working with Adguard. No issues with Pi-Hole.

I use two networks at home. Previouslly on the pfSense side, I use pfBlockerNG and it is good. Now I am trying out OpenWRT with Adblock and it seems to be good as well.
https://openwrt.org/docs/guide-user/services/ad-blockinghttps://github.com/openwrt/packages/blob/master/net/adblock/files/README.md
On the Asus side, I use stock Asus FW and not Merlin (my RT-AX82U is not supported by Merlin anyway). So it is a bit challenging to use the Unbound based solution. If I am running Merlin, I will probably choose Diversion.
https://diversion.ch/diversion/requirements.html
 
Last edited:

hairymonster

Senior Member
Joined
Jun 16, 2013
Messages
1,308
Reaction score
61
Somehow I do not like adguard at all and I was not able to get https working with Adguard. No issues with Pi-Hole.

I use two networks at home. Previouslly on the pfSense side, I use pfBlockerNG and it is good. Now I am trying out OpenWRT with Adblock and it seems to be good as well.
https://openwrt.org/docs/guide-user/services/ad-blockinghttps://github.com/openwrt/packages/blob/master/net/adblock/files/README.md
On the Asus side, I use stock Asus FW and not Merlin (my RT-AX82U is not supported by Merlin anyway). So it is a bit challenging to use the Unbound based solution. If I am running Merlin, I will probably choose Diversion.
https://diversion.ch/diversion/requirements.html
You definitely can install adguard with or without merlin. Unbound I am not so sure. But I think should be okay. Give it a try.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Indeed Asus router stock firmware has a limitation with regard to Pi-hole. I have to set WAN DNS as Pi-hole IP address and therefore it is not able to differentiate which client is sending the DNS request. So I guess I will have to give up Pi-hole and try different solution on the Asus side.

I am not going to try Adguard. But I will try other solutions. Or maybe in the end I will use pfSense/OpenWRT as the main router and then set the Asus as an AP in the end -- not any time soon though.

Ref: https://discourse.pi-hole.net/t/pi-hole-not-blocking-ads-with-asus-rt-ax88u/39295
 

hairymonster

Senior Member
Joined
Jun 16, 2013
Messages
1,308
Reaction score
61
Indeed Asus router stock firmware has a limitation with regard to Pi-hole. I have to set WAN DNS as Pi-hole IP address and therefore it is not able to differentiate which client is sending the DNS request. So I guess I will have to give up Pi-hole and try different solution on the Asus side.

I am not going to try Adguard. But I will try other solutions. Or maybe in the end I will use pfSense/OpenWRT as the main router and then set the Asus as an AP in the end -- not any time soon though.

Ref: https://discourse.pi-hole.net/t/pi-hole-not-blocking-ads-with-asus-rt-ax88u/39295
Seems to me you want stats per client. Should you want to try adguard on your asus AP, set adguard to listen all interfaces. It should be able to differentiate clients.
 

Hafi

Arch-Supremacy Member
Joined
Mar 30, 2003
Messages
15,340
Reaction score
5,351
You definitely can install adguard with or without merlin. Unbound I am not so sure. But I think should be okay. Give it a try.
you are referring to AdGuard Home or AdGuard DNS? Home is the self-hosted DNS filtering which you still use your own preferred upstream DNS provider whereas AdGuard DNS is using AdGuard own DNS with the app installed in the newer Asus routers.
 

hairymonster

Senior Member
Joined
Jun 16, 2013
Messages
1,308
Reaction score
61
you are referring to AdGuard Home or AdGuard DNS? Home is the self-hosted DNS filtering which you still use your own preferred upstream DNS provider whereas AdGuard DNS is using AdGuard own DNS with the app installed in the newer Asus routers.
Adguard home, hosted on asus router with unbound (also hosted on asus router) as the upstream dns.
 

yusoffb01

Arch-Supremacy Member
Joined
Jun 17, 2008
Messages
16,893
Reaction score
1,799
Indeed Asus router stock firmware has a limitation with regard to Pi-hole. I have to set WAN DNS as Pi-hole IP address and therefore it is not able to differentiate which client is sending the DNS request. So I guess I will have to give up Pi-hole and try different solution on the Asus side.

I am not going to try Adguard. But I will try other solutions. Or maybe in the end I will use pfSense/OpenWRT as the main router and then set the Asus as an AP in the end -- not any time soon though.

Ref: https://discourse.pi-hole.net/t/pi-hole-not-blocking-ads-with-asus-rt-ax88u/39295
dont set wan as pihole, but advanced settings > lan
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Adguard home, hosted on asus router with unbound (also hosted on asus router) as the upstream dns.

Have you tried with newer version of Asus router stock FW? How did you disable the internal DNS server because Adguard Home also needs port 53 access.

BTW, even if you set up Adguard Home on VPS or Raspberry Pi (similar to Pi-hole), It seems to me Adguard Home has problems with newer version of Asus router FW as per the following report. The workaround is to set up the Adguard Home sever as the DHCP server. I will not like to do this myself...
https://github.com/AdguardTeam/AdGuardHome/issues/3287
 

hairymonster

Senior Member
Joined
Jun 16, 2013
Messages
1,308
Reaction score
61
Have you tried with newer version of Asus router stock FW? How did you disable the internal DNS server because Adguard Home also needs port 53 access.

BTW, even if you set up Adguard Home on VPS or Raspberry Pi (similar to Pi-hole), It seems to me Adguard Home has problems with newer version of Asus router FW as per the following report. The workaround is to set up the Adguard Home sever as the DHCP server. I will not like to do this myself...
https://github.com/AdguardTeam/AdGuardHome/issues/3287
So far I tried adguard in 3 asus routers (AC66U as Router mode merlin firmware, AC88U ap mode with merlin firmware and AC3200 ap with merlin firmware)

Only AC88U is on the latest merlin firmware. Adguard will take the IP of AC88U, GUI on port 14711.

All my devices pass the dns queries to AC88U and AC3200. Fyi I have 2x adguard and 2x unbound in the same network. Port 53 on two ip, AC3200 and AC88U. There is no stats per client though.

Try this for adguard
https://github.com/JACK-THINK/SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER/blob/master/README_en-US.md
Try this for unbound.
https://github.com/MartineauUK/Unbound-Asuswrt-Merlin/blob/master/Readme.md
 

xiaofan

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

Thanks for the info. The script does not work for me -- I tried already for the RT-AX82U previously, not for this purpose but for installation of Entware.

I may want to give Unbound a try as I have already installed Entware on the stock RT-AX82U FW.

In the end, I do not think it is worth too much efforts to get the RT-AX82U stock FW working with the Adguard until there is Merlin FW support for it. So it is better for people with routers with Merlin FW support, like the RT-AC86U or RT-AX86U.
 

hairymonster

Senior Member
Joined
Jun 16, 2013
Messages
1,308
Reaction score
61
Thanks for the info. The script does not work for me -- I tried already for the RT-AX82U previously, not for this purpose but for installation of Entware.

I may want to give Unbound a try as I have already installed Entware on the stock RT-AX82U FW.

In the end, I do not think it is worth too much efforts to get the RT-AX82U stock FW working with the Adguard until there is Merlin FW support for it. So it is better for people with routers with Merlin FW support, like the RT-AC86U or RT-AX86U.
You mean to say not able to install adguard with the script?
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
You mean to say not able to install adguard with the script?

The whole script does not work at all for my RT-AX82U. So not need to mention Adguard Home at all.

In reality, I do not need to use the script to run adguard now that I am able to install Entware. I just need to run manual installation. The only issue is how to disable the built-in DNS server's port 53 access. Same I can install unbound as well. But I need to figure out how to use Unbound instead of the built-in dnsmasq.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Manually running Adguard home by downloading the corresponding ARM Linux version binary.

Code:
/tmp/home/root# ./AdGuardHome/AdGuardHome
2021/09/20 14:46:19.752753 [info] AdGuard Home, version v0.106.3
2021/09/20 14:46:19.766418 [info] This is the first time AdGuard Home is launched
2021/09/20 14:46:19.766694 [info] Checking if AdGuard Home has necessary permissions
2021/09/20 14:46:19.767562 [info] AdGuard failed to bind to port 53 due to listen tcp 127.0.0.1:53: bind: address already in use

Please note, that this is crucial for a DNS server to be able to use that port.
2021/09/20 14:46:20.125108 [info] Initializing auth module: /tmp/home/root/AdGuardHome/data/sessions.db
2021/09/20 14:46:20.125657 [info] auth: initialized.  users:0  sessions:0
2021/09/20 14:46:20.125764 [info] Initialize web module
2021/09/20 14:46:20.126075 [info] This is the first launch of AdGuard Home, redirecting everything to /install.html
2021/09/20 14:46:20.126493 [info] AdGuard Home is available on the following addresses:
2021/09/20 14:46:20.185847 [info] Go to http://127.0.0.1:3000
2021/09/20 14:46:20.186349 [info] Go to http://127.0.1.1:3000
2021/09/20 14:46:20.186562 [info] Go to http://[::1]:3000
2021/09/20 14:46:20.186730 [info] Go to http://192.168.50.1:3000
2021/09/20 14:46:20.186869 [info] Go to http://[2400:d803:740e:8113::1]:3000
2021/09/20 14:46:20.187007 [info] Go to http://116.14.129.19:3000
2021/09/20 14:46:20.187139 [info] Go to http://[2400:d803:740e:8113::]:3000
2021/09/20 14:46:20.187430 [info] Go to http://[::740e:8113]:3000
^C
2021/09/20 14:55:17.404598 [info] Received signal "interrupt"
2021/09/20 14:55:17.404682 [info] Stopping AdGuard Home
2021/09/20 14:55:17.404709 [info] stopping http server...
2021/09/20 14:55:17.906354 [info] stopped http server
2021/09/20 14:55:17.906745 [info] Stopped
 

hairymonster

Senior Member
Joined
Jun 16, 2013
Messages
1,308
Reaction score
61
The whole script does not work at all for my RT-AX82U. So not need to mention Adguard Home at all.

In reality, I do not need to use the script to run adguard now that I am able to install Entware. I just need to run manual installation. The only issue is how to disable the built-in DNS server's port 53 access. Same I can install unbound as well. But I need to figure out how to use Unbound instead of the built-in dnsmasq.
Mind sharing with me what happens you run jack's script?
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
Mind sharing with me what happens you run jack's script?

Pretty bad results if I use the online_install script.

Code:
/tmp# cd /tmp && wget -q -O /tmp/install_online --no-check-certificate "https://raw.githubusercontent.com/JACK-THINK/SCRIPTS-BOOTLOADE
R-FOR-ASUS-ROUTER/master/script_bootloader/bin/install_online"
wget: not an http or ftp url: https://raw.githubusercontent.com/JACK-THINK/SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER/master/script_bootloader/bin/install_online

/tmp# curl "https://raw.githubusercontent.com/JACK-THINK/SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER/master/script_bootloader/bin/install_onlin
e" --output install_online
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15576  100 15576    0     0  32845      0 --:--:-- --:--:-- --:--:-- 35002

/tmp# chmod +x ./install_online

/tmp# ./install_online
Segmentation fault
(install_online): 13676 NOTICE: CONNECTION FAILED
(install_online): 13676 FAILURE: ONLINE-INSTALL SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER
 

hairymonster

Senior Member
Joined
Jun 16, 2013
Messages
1,308
Reaction score
61
Pretty bad results if I use the online_install script.

Code:
/tmp# cd /tmp && wget -q -O /tmp/install_online --no-check-certificate "https://raw.githubusercontent.com/JACK-THINK/SCRIPTS-BOOTLOADE
R-FOR-ASUS-ROUTER/master/script_bootloader/bin/install_online"
wget: not an http or ftp url: https://raw.githubusercontent.com/JACK-THINK/SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER/master/script_bootloader/bin/install_online

/tmp# curl "https://raw.githubusercontent.com/JACK-THINK/SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER/master/script_bootloader/bin/install_onlin
e" --output install_online
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15576  100 15576    0     0  32845      0 --:--:-- --:--:-- --:--:-- 35002

/tmp# chmod +x ./install_online

/tmp# ./install_online
Segmentation fault
(install_online): 13676 NOTICE: CONNECTION FAILED
(install_online): 13676 FAILURE: ONLINE-INSTALL SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER
Any reason why you are not using the full command to install?

cd /tmp && wget -q -O /tmp/install_online --no-check-certificate "https://raw.githubusercontent.com/J...R/master/script_bootloader/bin/install_online" && chmod 777 /tmp/install_online && /tmp/install_online
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
37,667
Reaction score
12,865
I get better results if using off-line installation. But it still failed at step 10.
Ref: https://github.com/JACK-THINK/SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER/blob/master/How_to_Use_en-US.md

Code:
./script_bootloader/bin/install
(install): 15342 *--------- INSTALL SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER ON RT-AX58U_EPA ---------*
############### STAGE 1: SET BOOT PARAMETERS ###############
(install): 15342 INFO: ALL THE PREREQUISITES ARE MET
(install): 15342 SUCCESS: STAGE 1
############### STAGE 2: INSTALL ESSENTIAL COMPONENTS ###############
(swap_install): 15435 *--------- INSTALL SWAP ON RT-AX58U_EPA ---------*
(swap_install): 15435 INFO: CREATE /tmp/mnt/ASUS_ROUTER/script_bootloader/usr/swap/var/swapfile.var
(swap_configure): 15447 INFO: SWAP SIZE (MB): 256 | 512 | 1024 | 2048
(swap_configure): 15447 INFO: INPUT THE VALUE: 256
(swap_configure): 15447 INFO: INPUT THE VALUE AGAIN TO CONFIRM: 256
dd: error writing '/tmp/mnt/ASUS_ROUTER/script_bootloader/usr/swap/var/swapfile.var': No space left on device
31017+0 records in
31016+0 records out
/tmp/mnt/ASUS_ROUTER/script_bootloader/usr/swap/bin/swap_configure: line 101: can't fork
(swap_install): 15435 NOTICE: /tmp/mnt/ASUS_ROUTER/script_bootloader/usr/swap/var/swapfile.var CAN'T BE CREATED
/tmp/mnt/ASUS_ROUTER/script_bootloader/usr/swap/bin/swap_install: line 96: can't fork
./script_bootloader/bin/install: line 269: can't fork
 
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