What's new

Kamoj Kamoj information add-on V4 for Netgear R7800 X4S and R9000 X10 (Temperatures a.o.)

  • 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!

kamoj

Very Senior Member
Nota Bene: This add-on is obsolete. Please use new version at:
https://www.snbforums.com/threads/kamoj-add-on-v5-for-netgear-r7800-x4s-and-r9000-x10.60590/

Introduction:

This add-on can be used with Netgear stock firmware or Voxel Firmware.

The add-on adds functionality such as Bypassing OpenVPN Client tunnel.
It also adds information (and corrects some) to the routers "debug-page":
http://www.routerlogin.net/debug.htm (Same page as where you enable Telnet)
  • This is an update of an existing add-on (See Release Note below for information).
  • More information and functions are added.
Pre-requisites:

How to install:
#1. Logon (From your web-browser):
http://www.routerlogin.net

#2. Make a backup of current settings (Not needed, but easy done):
Advanced, Administration, Backup Settings, Back Up, Save

#3. Enable Telnet:
http://www.routerlogin.net/debug.htm
Check (Set a tick in the box for) "Enable Telnet". (No apply needed)

#4. Login to the router using telnet:
Hold down the Windows Key, then press the “R“ key.
The Run dialog box appears. In the Open: window, type:
cmd
Click OK.
Code:
telnet www.routerlogin.net
The password is the same as from the normal router login page http://routerlogin.net

#5. Download the add-on:

For R7800:
Code:
curl -k -O https://www.voxel-firmware.com/Downloads/kamoj-debug-page_190208-003657-1_ipq806x.ipk
# or:
wget --no-check-certificate https://www.voxel-firmware.com/Downloads/kamoj-debug-page_190208-003657-1_ipq806x.ipk
For R9000:
Code:
curl -k -O https://www.voxel-firmware.com/Downloads/kamoj-debug-page_190208-003657-1_r9000.ipk
# or:
wget --no-check-certificate https://www.voxel-firmware.com/Downloads/kamoj-debug-page_190208-003657-1_r9000.ipk

#6. Install:
For R7800:
Code:
/bin/opkg install --force-overwrite kamoj-debug-page_190208-003657-1_ipq806x.ipk
For R9000:
Code:
/bin/opkg install --force-overwrite kamoj-debug-page_190208-003657-1_r9000.ipk

#7. Finish the installation with a reboot:
Code:
reboot

#8. To see the result, open your web-browser and again go to:
http://www.routerlogin.net/debug.htm

DONE!

Uninstall/Removal:
Login to the router using telnet and issue these commands:
Code:
/bin/opkg remove kamoj-debug-page
reboot

Content:

dxK3p2x.jpg


Content, Information headers:
  • Router Information
  • CPU Load Total (per core)
  • Memory Usage (Used/Total)
  • Flash Usage (Used/Total)
  • NVRAM Usage (Used/Total)
  • Network Session (Active/Total)
  • CPU Governors and Frequencies
  • Temperatures CPU / WiFi0 / WiFi1
  • Temperatures 802.11ad Radio / Antenna
  • WiFi0
  • WiFi1
  • 802.11ad 60 GHz
  • OpenVPN Clients Available
  • OpenVPN Client Name
  • OpenVPN Client Status
  • DNSCrypt v1 Servers
  • DNSCrypt v2 Servers
  • Stubby DNS Servers
  • Congestion Control; Current ( Available )
  • NTP synchronized
  • DNS status
  • Internet connection status
  • Port Status
  • WAN Speed (average value)
  • eSATA Device
  • USB Device
  • System Version Information
  • System Uptime

Additional functions:
  • Bypassing the OpenVPN client tunnel
    Short guide:
    Use your web-browser and login to the router using address: http://www.routerlogin.net
    Go to Advanced: -> Setup: -> LAN Setup -> Address Reservation
    Select "+ Add"
    Select the device to bypass VPN with the radio button to the left
    Change the "Device Name" to include the string "NOVPN"
    Select "Add"
    Select "Apply"

    Now the router will reinitiate itself: "Please wait a moment"
    Done!
    Purpose: Extending Netgear Nighthawk(R) X4S R7800 functionality, using Netgear Genie web GUI and Voxel FW

    Function: Bypass the OpenVPN client tunnel to/from specific local IP's

    Usage: Reserve DHCP addresses, and add the string "NOVPN" in the "Device Name"
    In the Netgear Genie WEBGUI: Advanced: -> Setup: -> LAN Setup -> Address Reservation
    Several devices can be reserved and excluded from OpenVPN this way before doing "Apply".
    Example: +Add
    Address Reservation Table : Select your device with the radio button to the left
    IP Address : Don't change this
    MAC Address : Don't change this
    Device Name : Add a Name containing the string "NOVPN", e.g.
    : "NOVPN-Netflix" or "TVBOX-NOVPN"
    +Add
    +Apply : Now the router will reinitiate itself: "Please wait a moment"
    Verify:
    Visit e.g. https://checkmyip.com/ from your device to check the external IP-address

    Devices with known static ip-addresses:
    - Enable Telnet in web GUI: http://www.routerlogin.net/debug.htm
    - Start a command window or your telnet client and connect to the router, e.g:
    - telnet www.routerlogin.net and login using your normal router password
    Create a setting in the router flash-memory with e.g. the following commands:
    - nvram set NO_VPN_LST_ALWAYS="192.168.1.201 192.168.1.202"
    - nvram commit
    - reboot

    To switch off the bypassing for all NOVPN-devices:
    nvram set kamoj_no_bypassvpnip=1
    nvram commit
    reboot

    To switch on the bypassing for all NOVPN-devices again:
    nvram unset kamoj_no_bypassvpnip
    nvram commit
    reboot
  • Fast time synchronization even when the (e.g. Netgear) NTP server is not working.
  • Show all devices in "Attached Devices" and "Access Control" - even when idle/sleeping.
  • Show all devices in DEV_show_device.htm
  • Supervision of the WAN connection, and make Power LED amber if no connection.
Thanks:
To Voxel for all help and support he's given to many people during long time.
He is a true professional, higly intelligent, kind, humble and supportive person.

To everyone active in the forum, especially those that has commented on my add-on:
Voxel, percy3, Tom_Batty, Murtaza12, farenheit, heidarren, GaselK, boby7, Philip, spege63,
Darren_H97, HowIFix, MinkyMomo, RebelShadow, W1lliam, XBryan, blundersdome, bzq2810,
thiggins, vladlenas, kinakuta, XunilinuX, Sizzlechest, Tom Brough, Lord_Vader, Jauger

/Kamoj

Release Note / Changes since last release:

Previous version can be found here:
https://www.snbforums.com/threads/k...800-x4s-and-r9000-x10-temperatures-a-o.49907/
https://www.snbforums.com/threads/k...on-for-netgear-r7800-x4s-and-r9000-x10.48965/
https://www.snbforums.com/threads/k...tgear-r7800-x4s-running-voxel-firmware.48139/

Previously installed version doesn't need to be uninstalled.
Installation of this version will upgrade to latest version.

Added Information:
  • Added color coding of Port Status Connection Speed
  • Added "OK" for working DNSCrypt v2 Servers and Stubby.
  • Added "OK" for NTP synchronized.
Changed:
Corrected:
  • Bug identifying EXT4 file system on USB-devices
  • Bug when identifying USB-devices with several partitions
Added Functionality:
  • Bypass the OpenVPN client tunnel to/from specific devices/local IP's
  • Corrected the form DEV_show_device.htm to show all devices - not only for 2.4 GHz WiFi
  • Adding check of nvram variable kamoj_no_bypassvpnip
  • kamoj_no_ntp_check : Don't try to speed up setting correct date and time
  • kamoj_no_temp_check : Don't supervise top temperature
  • kamoj_no_wan_speed : Don't measure current WAN speed
  • kamoj_no_add_ons : Don't run other Kamoj add-ons
  • kamoj_no_show_idle : Don't try to show idle/sleeping devices
  • kamoj_no_wan_pwr : Don't make Power LED amber when WAN connection is lost
  • kamoj_no_bypassvpnip : Switch off the OpenVPN Client tunnel bypassing
  • kamoj_ping_www : Domain name for ping. Default is www.cloudflare.com
  • kamoj_ping_ip : IP-address or "gateway" to automatically used current gateway. Default is 1.1.1.1
How to use these nvram variables:
  • To switch off a function, run e.g. these commands (end with "nvram commit")
Code:
nvram set kamoj_no_wan_pwr=1
nvram set kamoj_ping_www=www.google.com
nvram set kamoj_ping_ip=gateway
nvram commit
reboot
  • To switch on a function again, run e.g. these commands(end with "nvram commit")
Code:
nvram unset kamoj_no_wan_pwr
nvram unset kamoj_ping_www
nvram unset kamoj_ping_ip
nvram commit
reboot
 
Last edited:
Fantastic! Will try soon. Thank you very, very much!!
 
Great add-on. A must-have for r7800 and r9000 owners.
 
@kamoj i noticed you have all three dns servers enabled.
DNSCrypt v1 and v2 and stubby.
Is this a recommended setup ?
I only enabled DNSCrypt v2 and i believe is enough.
Not ?
 
You are not very informative, I/we need more information.
E.g.:
What does the debug page show when "internet stops working"?
What does Netgear Genie home page show when "internet stops working"?
Are you behind another router? Are you in Router/AP/Bridge mode?
What are your devices? Running WiFi or cable connection?

This is my first add-on with VPN bypass, so that is probably not what's wrong.
If you care to help and find out you should disable the different add-on until it works ok.

I really hope you can do this for me and the whole community. Please.

See above in the first posting how to do:
Spoiler: How to change change add-on behaviour, using nvram variables

Ok have just tried this and the bypassing of VPN works, however my internet stops working after 5-10 mins.
I have to reset etc to get it back up and running.
I remember this happened to me last time and I ended up removing the add-on.
Any advice as I would really like to have this working
 
The picture is edited to show all possible combinations. It even mixes R7800 and R9000! :D
You can enable all 3 "dns servers" if you want, but only one will be used, as described in Voxel's documentation.

@kamoj i noticed you have all three dns servers enabled.
DNSCrypt v1 and v2 and stubby.
Is this a recommended setup ?
I only enabled DNSCrypt v2 and i believe is enough.
Not ?
 
Thank you for attaching the picture, that helps a lot!

You have a DNSCrypt2 problem.

I suggest you to try these steps one by one, in this order:
  1. See if internet keeps working if you don't load the debug page after reboot.
  2. Install percy3's fix for this DNSCrypt2 problem:
    https://www.snbforums.com/threads/d...-ons-for-r7800-r9000.48445/page-3#post-442143
  3. Disable DNSCrypt v2 - As it is enabled, but not running. (Have you changed servers?):
    /etc/init.d/dnscrypt-proxy-2 disable
    nvram set dnscrypt2=0
    nvram commit
    reboot
  4. Login to router and execute these commands:
    nvram set kamoj_no_show_idle=1
    nvram commit
    reboot
  5. Enter your VPN-providers DNS-address(es) in the routers normal DNS settings.
  6. Do some fault finding by disabling add-on functions, as described in the first port of this thread:
    See above in the first posting how to do:
    Spoiler: How to change change add-on behaviour, using nvram variables

I have had an issue with the addon before so it is probably something on my end, just dont know what.

Different addons? What other addons are there?
I have only installed this. :)
 
["farenheit, post: 466979, member: 59613"]
Same issue again. Sigh.

Please try this:
  1. Run these three commands and give me the output please:
    Code:
    cat /tmp/nslookup_ok
    ps w | awk /nslookup/
    cat /etc/openvpn/ovpnclient-up.sh

  2. Change address for nslookup:
    Code:
    nvram set kamoj_ping_ip="8.8.8.8"
    nvram commit
    reboot

  3. Check if it is working

  4. Check if it is working without the OpenVPN Client started

  5. Disable all add-on functions to start with (and make sure to NOT open the debug page after reboot):
    Code:
    nvram set kamoj_no_ntp_check=1
    nvram set kamoj_no_temp_check=1
    nvram set kamoj_no_wan_speed=1
    nvram set kamoj_no_add_ons=1
    nvram set kamoj_no_show_idle=1
    nvram set kamoj_no_wan_pwr=1
    nvram set kamoj_no_bypassvpnip=1
    nvram set kamoj_ping_www=www.google.com
    nvram set kamoj_ping_ip=8.8.8.8
    nvram commit
    reboot

  6. Check if it is working

  7. If it is working, enable the functions one at a time and find out when it stops working again.
    If you still have the problem enable all add-on functions again:
Code:
nvram unset kamoj_no_ntp_check
nvram unset kamoj_no_temp_check
nvram unset kamoj_no_wan_speed
nvram unset kamoj_no_add_ons
nvram unset kamoj_no_show_idle
nvram unset kamoj_no_wan_pwr
nvram unset kamoj_no_bypassvpnip
nvram unset kamoj_ping_www
nvram unset kamoj_ping_ip
nvram commit
reboot
 
How is the signal coming from your ISP come to your R9000?
Is there a modem or router or switch etc between the ISP line and your R9000 router?
 
Might be good to see contents of log files from around the issue. From telnet (or ssh) console:
less /tmp/log/dnscrypt-proxy-2.log (ignore that one since I realized you are not using DNSCrypt)
and
less /tmp/log/messages
and for both files scroll to the time when you have lost your connection.
Signal is fine and I don't have a problem with the internet,speeds or VPN. It's only when I use the add-on my router doesn't like something.
In answer to your original question, the router is connected to my ISPs modem.
 
Last edited:
Based on my experience there might be an issue with some corrupted files/errors in the config file that could even survive reset to original settings. You might try reset plus mtd erase netgear command. Obviously you will lose all the config and mods with that step.

Thanks, will try and get a log the next time it drops.
At the moment i have disabled all add-ons and it seems to be holding ok.
Will wait for a couple of hours before i enable an add-on one day at a time.
 
From console:
mtd erase netgear
reboot
In addition you can try reset to default values either from GUI or by pressing and holding hardware reset button.
If you will put those commands as written above you should end up with clean config.
Might be good to create backup of the config prior to the reset (but do not apply it after reset, at least not immediately).
 
Sorry to hear that. I have R7800 and was sure mtd toolkit is available on R9000 as well. Try searching on the web for R9000 nvram erase.
Also to doublecheck there is indeed no mtd you can run:
find / -name mtd

I get the following error trying to issue the above command:
Code:
 === IMPORTANT ============================
 Use 'passwd' to set your login password
 this will disable telnet and enable SSH
------------------------------------------


BusyBox v1.4.2 (2019-02-18 12:30:24 UTC) Built-in shell (ash)
Enter 'help' for a list of built-in commands.


  __        __   _                            _
  \ \      / /__| | ___ ___  _ __ ___   ___  | |_ ___
   \ \ /\ / / _ \ |/ __/ _ \| '_ ` _ \ / _ \ | __/ _ \
    \ V  V /  __/ | (_| (_) | | | | | |  __/ | || (_) |
     \_/\_/ \___|_|\___\___/|_| |_| |_|\___|  \__\___/

   _   _ _       _     _   _                    _    _
  | \ | (_) __ _| |__ | |_| |__   __ ___      _| | _| |
  |  \| | |/ _` | '_ \| __| '_ \ / _` \ \ /\ / / |/ / |
  | |\  | | (_| | | | | |_| | | | (_| |\ V  V /|   <|_|
  |_| \_|_|\__, |_| |_|\__|_| |_|\__,_| \_/\_/ |_|\_(_)
           |___/

root@R9000:/$
root@R9000:/$ mtd erase netgear
/bin/ash: mtd: not found
root@R9000:/$
root@R9000:/$
 
Last edited:
Hi percy3, and thank you for your help and good suggestions!

While trying to find out farenheit's issue I implemented your wish for WiFi device info.
It will be in next version of the add-on!

Example output:
Code:
Wed Feb 20 00:55:26 GMT 2019
###2.4G### 
D-LINK CAMERA             192.168.0.124   00:11:22:33:44:55    70Mbps     -43dBm
NEATGEAR Camera           192.168.0.106   01:11:22:33:44:55    70Mbps     -64dBm
Zyxel Extender            192.168.0.112   02:11:22:33:44:55   292Mbps     -53dBm
 
###5G### 
SAMSUNG-GALAXY-TAB        192.168.0.119   03:11:22:33:44:55   422Mbps     -46dBm
LG-PHONE GSM              192.168.0.111   04:11:22:33:44:55   845Mbps     -43dBm

###2.4G Guest###
Sony Xperia GSM           192.168.0.107   05:11:22:33:44:55   101Mbps     -44dBm

What do you think?

@kamoj,

Is there a way to list as well networks identification and in output replace MAC addresses with names? Something like:
###2.4G###
host_a 52Mbps -59dBm
host_b 114Mbps -79dBm
host_c 70Mbps -63dBm

###5G###
host_d 845Mbps -63dBm

###2.4G Guest###
host_e 70Mbps -63dBm
host_f 1Mbps -71dBm
 
Looks great! The only info I can think of in addition is connection time but I guess that would be available only from DHCP lease and not necessary is going to provide info about last disconnection. So probably of not much use.

Hi percy3, and thank you for your help and good suggestions!

While trying to find out farenheit's issue I implemented your wish for WiFi device info.
It will be in next version of the add-on!

Example output:
Code:
Wed Feb 20 00:55:26 GMT 2019
###2.4G###
D-LINK CAMERA             192.168.0.124   00:11:22:33:44:55    70Mbps     -43dBm
NEATGEAR Camera           192.168.0.106   01:11:22:33:44:55    70Mbps     -64dBm
Zyxel Extender            192.168.0.112   02:11:22:33:44:55   292Mbps     -53dBm
 
###5G###
SAMSUNG-GALAXY-TAB        192.168.0.119   03:11:22:33:44:55   422Mbps     -46dBm
LG-PHONE GSM              192.168.0.111   04:11:22:33:44:55   845Mbps     -43dBm

###2.4G Guest###
Sony Xperia GSM           192.168.0.107   05:11:22:33:44:55   101Mbps     -44dBm

What do you think?
 

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!

Staff online

Top