What's new

Kamoj Kamoj Addon 5.5 Beta for Netgear R7800/R8900/R9000 with Voxel FW

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Finally got it working, thanks for the add-on! I used top in Putty to check for the running processes. It took a while for Adguard Home to start, sometimes it crashed. Pressing erase configuration and again starting via the menu helped. I could see the Adguard Home process starting to run and finally it was up and running. Now everything works great, but I did not yet try to reboot the router (still don't need to). Keep fingers crossed!
Thanks for everything, very helpful.
Cheers!
 
My R7800 router has been working very well with Voxel and Kamoj software.....Thanks to them for that ... hope you are both well.
I have changed from openvpn to wireguard and encountered a problem.I have ticked the setting for the network led to change to amber with loss of the internet.
Wireguard turns on ok and the network led is white and vpn status green.
When I click on router information button as the page opens the network led turns amber. and the error
Wireguard Client Status
vpn_dis_connect.jpg
ERROR wg0: No wg0 195.140.213.240 is shown
The wireguard status is still green and there no loss of internet.Turning wireguard off and back on and the network led turns white.This is the same on 3 different servers I have tried.
I enclose the log




 

Attachments

  • wireguard log.txt
    9.7 KB · Views: 25
Dear all, started 2 days ago using the addon in order to get adblocking on R7800. Addon install worked out fine. Running it also no problems. Starting Adguard is not working consistently. Using DNScrypt proxy v2 works great, fast and blocking ads. I had Adguard running yesterday, but a reboot this morning stopped it, and it won't run again. The selection jumps back to "None-not recommended". When checking router information it says:
Adguard Homeport: 6060 port: 5300. DNS Servers: 5. Is installed but not running, but is on in nvram.
I also have discovered on my router Netgear, R9000 that with the latest add-on b40 every time I do a reboot on the router Adguard Home does not start properly.
***UPDATE*** not sure if its the new version of AdGuard Home, but now everything works perfectly...

it will not start at times sometimes another reboot would fix it, and other times I would have to erase configuration reinstall, and it would work.

I am now trying DNSscrypt V2 with AdAway block list, but upon rebooting the router, the AdAway list will not update, and as a result ads would get in through the router I'll have to go in and manually click update list now. Anyone else having this problem?

The logs would show something like this:
Code:
[2024-03-03 06:05:03] [CRITICAL] Unable to retrieve source [relays]: [Get "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md": dial tcp 185.199.111.133:443: connect: connection refused]
[2024-03-03 06:05:03] [FATAL] Get "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md": dial tcp 185.199.111.133:443: connect: connection refused
 
Last edited:
I also have discovered on my router Netgear, R9000 that with the latest add-on b40 every time I do a reboot on the router Adguard Home does not start properly.
***UPDATE*** not sure if its the new version of AdGuard Home, but now everything works perfectly...

it will not start at times sometimes another reboot would fix it, and other times I would have to erase configuration reinstall, and it would work.

I am now trying DNSscrypt V2 with AdAway block list, but upon rebooting the router, the AdAway list will not update, and as a result ads would get in through the router I'll have to go in and manually click update list now. Anyone else having this problem?

The logs would show something like this:
Code:
[2024-03-03 06:05:03] [CRITICAL] Unable to retrieve source [relays]: [Get "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md": dial tcp 185.199.111.133:443: connect: connection refused]
[2024-03-03 06:05:03] [FATAL] Get "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md": dial tcp 185.199.111.133:443: connect: connection refused
Hi jberry,

The IP 185.199.111.133 belongs to github & githubusercontent, so from the log you show I'm not sure whether something on your router is blocking access to one of those domains or that IP. I know for a fact that the default AdGuard install blocks access to "githubusercontent.com".

Can you try to whitelist both "github.com" and "githubusercontent.com", then try to update the block lists again and report back?
 
Hi jberry,

The IP 185.199.111.133 belongs to github & githubusercontent, so from the log you show I'm not sure whether something on your router is blocking access to one of those domains or that IP. I know for a fact that the default AdGuard install blocks access to "githubusercontent.com".

Can you try to whitelist both "github.com" and "githubusercontent.com", then try to update the block lists again and report back?
When I was using DNScrypt V2 with AdAway block list, AdGuard Home was not running, it was actually uninstalled, so not sure what was blocking, all I can assume is when the router is booting up, wireguard client is trying to connect and at the same time its trying to update the AdAway block list, but since WG client is in the process of connecting the 185.199.111.133 connection doesn't complete.
 
aegis is blocking github, for whatever unknown reason, I had to whitelist some of github's IP addresses to work
 
For everyone using the excellent Aegis by @HELLO_wORLD and experiences issues or want to share tips, please use the Aegis thread, e.g.:
Aegis (simple yet effective protection)

For whitelistning of raw.githubusercontent.com and github.com you may e.g. create the file:
/opt/bolemo/etc/aegis-user.whitelist
containing:
Code:
#raw.githubusercontent.com:
185.199.108.133
185.199.109.133
185.199.110.133
185.199.111.133

#github.com:
140.82.121.0/24
140.82.112.4
140.82.114.3

and then restart Aegis.
 
Changes in kamoj-addon beta version 2024-04-05 5.5b41
---------------------------------------------------------------
- AdGuard Home: Improved port detection in new configuration file format - again. (addon_adguard.sh)
- Aegis: Added: aegis-user.whitelist (if it not already exists) containing github ip addresses. (addon_aegis.sh)
- General: Refactored: Use centralized time synchronization (addon_vars.sh)
- Stubby: Corrected time synchronization (stubby)
- VPN: Added "pk" as recognized abbreviation of Pakistan. (kamoj_vpn.sh)
- VPN: Added "--fail" to curl commands for better error detection. (kamoj_vpn.sh)
- VPN: Fixed incorrect logging of that VPN is not OK when not used. (kamoj_vpn.sh) (@jberry)
- Renamed "VPN Service" to "VPN Server" in menus. (postinst, postrm)
- OpenVPN Server: Adapted to Voxel changes (CHACHA20-POLY1305 + lz4-v2) (openvpn)
- Wireguard: R9000: Try to reinstall deleted wireguard.ko (wg-client) (@jberry)
- Wireguard: Don't stop/restart DNS when starting Wireguard client. (wg-client) (experimental)
- Prepared for SSID for IoT. (qcawifi.sh, dni_wlan)
- Minor editorials. (net-wan, addon_info_update.sh, addon_supervision.sh, R9000: debug_dutinfo.sh)
 
Updated to latest Kamoj.
I tried the implemented aegis install (I normally did this manually). The github whitelist doesn't seem to work however, so did that manually again.
Other than this, all went smoothly! 😄
 
Testing Router Firmware Version (Voxel) V1.0.4.72HF and Kamoj Add-on V5.5b41
I do notice sometimes when I do a reboot on the R9000 AdGuardHome doesn't start, system log just shows it doesn't find AGH on 0.0.0.0:53 but other times its fine, will test this more later :)
Thank you for reporting!

When this happens, please run these commands and share the result:
Code:
sed -n '/^dns:/,/port:/p' /opt/kamoj/addons/defaults/AdGuardHome.yaml
nvram get lan_ipaddr
 
Thank you for reporting!
You are welcome! I apologize for the recording the system information log.

When this happens, please run these commands and share the result:
I did reboot 3 times just now, and AdGuard Home starts up with no issues / problems. I did accidently solve one problem I was having with AdGuard Home, every time I reboot, it always defaults back to the old 'Upstream DNS servers' I initially used. I always changed it to cloudflare, but after every reboot it goes back to Google DNS upstream servers (initial DNS servers I used), and would always have to change it. I fixed it by clicking 'Backup config to USB', with no USB attached, and rebooted the R9000 router, and it worked it saved the latest Upstream DNS servers of cloudflare, so that's fixed, and AGH starts every time hmmmmm.... I will execute the code if I ever notice AGH not start up, thanks again for another update @kamoj !! :)
 
I installed latest Voxel .73HF for R9000, reinstalled Kamoj b41 addon. Now AdGuard is not starting when I did a reboot:

Code:
2024-04-20 23:31:18 37.58 [ADDONS] addons.sh 9392: Router boot finished after 37.56 seconds
2024-04-20 23:31:18 38.06 [ADDONS] addons.sh 9392: start
2024-04-20 23:31:19 38.22 [ADDONS] addons.sh 9392: *INFO:No usable USB device found. Using router internal storage at: /
2024-04-20 23:31:19 38.23 [ADDONS] addons.sh 9392: Device DEV=, Mounted as USB at=/, with label=
2024-04-20 23:31:19 38.49 [ADDONS] addons.sh 9392: Setting Congestion Control
2024-04-20 23:31:19 38.74 [ADDONS] addons.sh 9392: Time is synchronized (F)
2024-04-20 23:31:19 38.77 [ADDONS] addons.sh 9392: AdGuard Home: Install
2024-04-20 23:31:51 70.47 [ADDONS] addons.sh 9392: AdGuard Home: Install FAILED. WAN is UP
2024-04-20 23:31:51 70.48 [ADDONS] addons.sh 9392: Checking Wireguard settings...
2024-04-20 23:31:51 70.49 [ADDONS] addons.sh 9392: Checking OpenVPN settings...
2024-04-20 23:31:51 70.49 [ADDONS] addons.sh 9392: No OpenVPN configuration found. Switching off OpenVPN Client.
2024-04-20 23:31:51 70.62 [ADDONS] addons.sh 9392: Restarting failed Wireguard Client.
2024-04-20 23:31:59 78.26 [ADDONS] addons.sh 9392: Antenna LEDs on
2024-04-20 23:31:59 78.69 [ADDONS] addons.sh 9392: addon_info_update.sh start_addon_functions
2024-04-20 23:31:59 78.70 [ADDONS] addons.sh 9392: Disable analytics etc:
2024-04-20 23:31:59 78.71 [ADDONS] addons.sh 9392: Set: block_netgear_ngxcld=1
2024-04-20 23:32:00 79.25 [ADDONS] addons.sh 9392: Set: show_enable_rae_form=1
2024-04-20 23:32:00 79.58 [ADDONS] addons.sh 9392: Set: disable_rae_analytics=1
2024-04-20 23:32:00 79.91 [ADDONS] addons.sh 9392: Set: disable_fb_wifi=1
2024-04-20 23:32:01 80.32 [ADDONS] addons.sh 9392: Set: disable_streamboost=1
2024-04-20 23:32:01 80.91 [ADDONS] addons.sh 9392: Set: disable_traffic_meter=1
2024-04-20 23:32:02 81.30 [ADDONS] addons.sh 9392: hdd_spindown
2024-04-20 23:32:02 81.30 [ADDONS] addons.sh 9392: addon_supervision
2024-04-20 23:32:02 81.31 [ADDONS] addons.sh 9392: start_users_cronjobs
2024-04-20 23:32:02 81.31 [ADDONS] addons.sh 9392: adblocking
2024-04-20 23:32:02 81.36 [SUPERVISION] addon_supervision.sh 26271: Starting addon_supervision: supervision_daemon
2024-04-20 23:32:02 81.46 [ADDONS] addons.sh 9392: R9000 Router V1.0.4.73HF 5.5b41 brwan wireguard
2024-04-20 23:32:02 81.47 [ADDONS] addons.sh 9392: Supervision of Internet, OpenVPN, Wireguard, DNSCrypt2, Stubby, AdGuard, Dnsmasq, net-wall, net-lan, iptables, dhcp gateway, WiFi, ipv6 (Radvd)...
2024-04-20 23:32:02 81.48 [ADDONS] addons.sh 9392: Addon start-up time: 43.92 seconds
2024-04-20 23:32:42 121.58 [SUPERVISION] addon_supervision.sh 26271: Supervision is now starting...
==============================================================================
^ DNS adguard is not listening
2024-04-20 23:32:45 124.75 [SUPERVISION] addon_supervision.sh 26271: ERROR: adguard is not responding to 0.0.0.0:5300
2024-04-20 23:32:45 124.78 [SUPERVISION] addon_supervision.sh 26271: ERROR: Restart of DNS adguard didn't help.
2024-04-20 23:32:45 124.84 [SUPERVISION] addon_supervision.sh 26271: wireguard_is_running: Ok
2024-04-20 23:32:46 125.26 [SUPERVISION] addon_supervision.sh 26271: SUCCESS: Restart of Ping IP 60 was OK, and took 1 sec. ()
v
==============================================================================
==============================================================================
^ DNS adguard is not listening
2024-04-20 23:32:54 133.96 [SUPERVISION] addon_supervision.sh 26271: ERROR: adguard is not responding to 0.0.0.0:5300
2024-04-20 23:32:54 133.99 [SUPERVISION] addon_supervision.sh 26271: ERROR: Restart of DNS adguard didn't help.
2024-04-20 23:32:54 134.05 [SUPERVISION] addon_supervision.sh 26271: wireguard_is_running: Ok
2024-04-20 23:32:54 134.14 [SUPERVISION] addon_supervision.sh 26271: SUCCESS: Restart of Ping IP 60 was OK, and took 1 sec. ()
v
==============================================================================
==============================================================================
sed -n '/^dns:/,/port:/p' /opt/kamoj/addons/defaults/AdGuardHome.yaml nvram get lan_ipaddr
dns:
bind_hosts:
- 0.0.0.0
port: 5300

192.168.9.9 <--- Which is correct thats my LAN IP address.

***Second Reboot Did Work*** AGH did start up, ran the command again, and showed the same 0.0.0.0 port:5300 and 192.168.9.9 which is my LAN...
***Third Reboot Did Work***
***Fourth Reboot Did Work***
I am guessing maybe another reboot is needed once AGH is activated, then it works after every reboot.
EDIT:
***Fifth Reboot Did Not Work***
Code:
2024-04-20 23:56:05 36.90 [ADDONS] addons.sh 9151: Router boot finished after 36.87 seconds
2024-04-20 23:56:05 36.97 [ADDONS] addons.sh 9151: start
2024-04-20 23:56:05 37.12 [ADDONS] addons.sh 9151: *INFO:No usable USB device found. Using router internal storage at: /
2024-04-20 23:56:05 37.12 [ADDONS] addons.sh 9151: Device DEV=, Mounted as USB at=/, with label=
2024-04-20 23:56:06 37.51 [ADDONS] addons.sh 9151: Setting Congestion Control
2024-04-20 23:56:06 37.82 [ADDONS] addons.sh 9151: Time is synchronized (F)
2024-04-20 23:56:06 37.87 [ADDONS] addons.sh 9151: AdGuard Home: Install
2024-04-20 23:56:11 43.15 [ADDONS] addons.sh 9151: AdGuard Home: Install FAILED. WAN is UP
2024-04-20 23:56:11 43.16 [ADDONS] addons.sh 9151: Checking Wireguard settings...
2024-04-20 23:56:11 43.17 [ADDONS] addons.sh 9151: Checking OpenVPN settings...
2024-04-20 23:56:11 43.18 [ADDONS] addons.sh 9151: No OpenVPN configuration found. Switching off OpenVPN Client.
2024-04-20 23:56:11 43.31 [ADDONS] addons.sh 9151: Restarting failed Wireguard Client.
2024-04-20 23:56:19 50.67 [ADDONS] addons.sh 9151: Antenna LEDs on
2024-04-20 23:56:19 51.10 [ADDONS] addons.sh 9151: addon_info_update.sh start_addon_functions
2024-04-20 23:56:19 51.11 [ADDONS] addons.sh 9151: Disable analytics etc:
2024-04-20 23:56:19 51.12 [ADDONS] addons.sh 9151: Set: block_netgear_ngxcld=1
2024-04-20 23:56:20 51.73 [ADDONS] addons.sh 9151: Set: show_enable_rae_form=1
2024-04-20 23:56:20 52.05 [ADDONS] addons.sh 9151: Set: disable_rae_analytics=1
2024-04-20 23:56:20 52.39 [ADDONS] addons.sh 9151: Set: disable_fb_wifi=1
2024-04-20 23:56:21 52.85 [ADDONS] addons.sh 9151: Set: disable_streamboost=1
2024-04-20 23:56:21 53.38 [ADDONS] addons.sh 9151: Set: disable_traffic_meter=1
2024-04-20 23:56:22 53.81 [ADDONS] addons.sh 9151: hdd_spindown
2024-04-20 23:56:22 53.82 [ADDONS] addons.sh 9151: addon_supervision
2024-04-20 23:56:22 53.82 [ADDONS] addons.sh 9151: start_users_cronjobs
2024-04-20 23:56:22 53.83 [ADDONS] addons.sh 9151: adblocking
2024-04-20 23:56:22 53.87 [SUPERVISION] addon_supervision.sh 22968: Starting addon_supervision: supervision_daemon
2024-04-20 23:56:22 53.97 [ADDONS] addons.sh 9151: R9000 Router V1.0.4.73HF 5.5b41 brwan wireguard
2024-04-20 23:56:22 53.98 [ADDONS] addons.sh 9151: Supervision of Internet, OpenVPN, Wireguard, DNSCrypt2, Stubby, AdGuard, Dnsmasq, net-wall, net-lan, iptables, dhcp gateway, WiFi, ipv6 (Radvd)...
2024-04-20 23:56:22 53.99 [ADDONS] addons.sh 9151: Addon start-up time: 17.11 seconds
***Sixth Reboot Did Not Work***
 
Last edited:
***Seventh Reboot Did Work***
Code:
2024-04-21 00:03:27 37.03 [ADDONS] addons.sh 9145: Router boot finished after 37.02 seconds
2024-04-21 00:03:27 37.06 [ADDONS] addons.sh 9145: start
2024-04-21 00:03:27 37.20 [ADDONS] addons.sh 9145: *INFO:No usable USB device found. Using router internal storage at: /
2024-04-21 00:03:27 37.20 [ADDONS] addons.sh 9145: Device DEV=, Mounted as USB at=/, with label=
2024-04-21 00:03:28 37.62 [ADDONS] addons.sh 9145: Setting Congestion Control
2024-04-21 00:03:28 37.95 [ADDONS] addons.sh 9145: Time is synchronized (F)
2024-04-21 00:03:28 38.00 [ADDONS] addons.sh 9145: AdGuard Home: Install
2024-04-21 00:03:42 52.30 [ADDONS] addons.sh 9145: AdGuard Home: Install OK. WAN is UP
2024-04-21 00:03:42 52.32 [ADDONS] addons.sh 9145: WAN is UP: addon_adguard.sh
2024-04-21 00:03:42 52.33 [ADDONS] addons.sh 9145: AdGuard Home: Start. WAN is UP
2024-04-21 00:03:46 55.82 [ADDONS] addons.sh 9145: Checking Wireguard settings...
2024-04-21 00:03:46 55.83 [ADDONS] addons.sh 9145: Checking OpenVPN settings...
2024-04-21 00:03:46 55.84 [ADDONS] addons.sh 9145: No OpenVPN configuration found. Switching off OpenVPN Client.
2024-04-21 00:03:46 55.98 [ADDONS] addons.sh 9145: Restarting failed Wireguard Client.
2024-04-21 00:03:58 68.14 [ADDONS] addons.sh 9145: Antenna LEDs on
2024-04-21 00:03:59 68.55 [ADDONS] addons.sh 9145: addon_info_update.sh start_addon_functions
2024-04-21 00:03:59 68.57 [ADDONS] addons.sh 9145: Disable analytics etc:
2024-04-21 00:03:59 68.57 [ADDONS] addons.sh 9145: Set: block_netgear_ngxcld=1
2024-04-21 00:03:59 69.20 [ADDONS] addons.sh 9145: Set: show_enable_rae_form=1
2024-04-21 00:04:00 69.63 [ADDONS] addons.sh 9145: Set: disable_rae_analytics=1
2024-04-21 00:04:00 70.01 [ADDONS] addons.sh 9145: Set: disable_fb_wifi=1
2024-04-21 00:04:00 70.37 [ADDONS] addons.sh 9145: Set: disable_streamboost=1
2024-04-21 00:04:01 70.90 [ADDONS] addons.sh 9145: Set: disable_traffic_meter=1
2024-04-21 00:04:01 71.33 [ADDONS] addons.sh 9145: hdd_spindown
2024-04-21 00:04:01 71.33 [ADDONS] addons.sh 9145: addon_supervision
2024-04-21 00:04:01 71.34 [ADDONS] addons.sh 9145: start_users_cronjobs
2024-04-21 00:04:01 71.35 [ADDONS] addons.sh 9145: adblocking
2024-04-21 00:04:02 71.42 [SUPERVISION] addon_supervision.sh 27424: Starting addon_supervision: supervision_daemon
2024-04-21 00:04:02 71.49 [ADDONS] addons.sh 9145: R9000 Router V1.0.4.73HF 5.5b41 brwan wireguard AdGuardHome
2024-04-21 00:04:02 71.50 [ADDONS] addons.sh 9145: Supervision of Internet, OpenVPN, Wireguard, DNSCrypt2, Stubby, AdGuard, Dnsmasq, net-wall, net-lan, iptables, dhcp gateway, WiFi, ipv6 (Radvd)...
2024-04-21 00:04:02 71.52 [ADDONS] addons.sh 9145: Addon start-up time: 34.49 seconds
So not sure why AGH starts up most of the time, but also fails sometimes..... maybe the order of starting up? while WireGuard client is connecting???
 
good afternoon

@kamoj
could you advise where i did mistake.
have problem to installing last addon

Python:
root@R9000:/tmp/mnt/sda1$ /bin/opkg install -V1 --force-overwrite /kamoj-addon_240405-153039-5.5b41_r9000.ipk
Collected errors:
 * wfopen: /kamoj-addon_240405-153039-5.5b41_r9000.ipk: No such file or directory.
 * pkg_init_from_file: Failed to extract control file from /kamoj-addon_240405-153039-5.5b41_r9000.ipk.
 
just info

both files are downloaded correctlly (hope)

Python:
root@R9000:/tmp/mnt/sda1$ ls
kamoj-addon_240405-153039-5.5b41.md5
kamoj-addon_240405-153039-5.5b41_r9000.ipk
 
[/CODE]
So not sure why AGH starts up most of the time, but also fails sometimes..... maybe the order of starting up? while WireGuard client is connecting???
Are you perhaps using Entware on your USB stick?

I had to lower the sleep in autorun/scripts/post-mount.sh


I had some kind of race condition between Entware script remounting a lot of folders from the usb-stick, vs the AGH starting up.
Lowering the sleep from 30 to 20 solved by issue.
 
just info

both files are downloaded correctlly (hope)

Python:
root@R9000:/tmp/mnt/sda1$ ls
kamoj-addon_240405-153039-5.5b41.md5
kamoj-addon_240405-153039-5.5b41_r9000.ipk

You need to remove the leading / from /kamoj-addon_240405.....
(now you say the files are in / instead of /tmp/mnt/sda1)

Or use the full path
 
Are you perhaps using Entware on your USB stick?

I had to lower the sleep in autorun/scripts/post-mount.sh


I had some kind of race condition between Entware script remounting a lot of folders from the usb-stick, vs the AGH starting up.
Lowering the sleep from 30 to 20 solved by issue.
Thanks for the response, sorry I am not using a USB at all :/
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top