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!!
 
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
 
Last edited:
@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 ?
 
kamoj said:
You are not very informative, I/we need more information.
E.g.:
What does the debug page show when "internet stops working"?
Error
kamoj said:
What does Netgear Genie home page show when "internet stops working"?
Not Connected
kamoj said:
Are you behind another router? Are you in Router/AP/Bridge mode?
Router
kamoj said:
What are your devices? Running WiFi or cable connection?
Both cable and wifi
kamoj said:
This is my first add-on with VPN bypass, so that is probably not what's wrong.
I have had an issue with the addon before so it is probably something on my end, just dont know what.
kamoj said:
If you care to help and find out you should disable the different add-on until it works ok.
Different addons? What other addons are there?
I have only installed this. :)
kamoj said:
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
 

Attachments

  • NWorking.png
    NWorking.png
    198.8 KB · Views: 718
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. :)
 
kamoj said:
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.
  1. I dont usually check debug page all the time. So have already tried this, by not checking.
kamoj said:
Not sure how to install this fix? Linux/Unix is not my strength lol.

kamoj said:
Disable DNSCrypt v2 - As it is enabled, but not running. (Have you changed servers?):
  1. /etc/init.d/dnscrypt-proxy-2 disable
    nvram set dnscrypt2=0
    nvram commit
    reboot
Also tried this and this has not worked. :(

kamoj said:
Login to router and execute these commands:
  1. nvram set kamoj_no_show_idle=1
    nvram commit
    reboot
  1. Trying this now...
  2. kamoj said:
    Enter your VPN-providers DNS-address(es) in the routers normal DNS settings.
    Have tried this in the past to no avail.
  3. kamoj said:
    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
Which addon-on behaviours can i disable ?
 
I have attached an image of the debug page with DNSCrypt disabled.
 

Attachments

  • Debug.png
    Debug.png
    196.1 KB · Views: 504
kamoj said:
  1. Login to router and execute these commands:
    nvram set kamoj_no_show_idle=1
    nvram commit
    reboot
This seems to have worked so far. Will keep you posted. Thanks Kamoj
*Edit*
Same issue again. Sigh.
 
Last edited:
["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
 
kamoj said:
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

Code:
=== IMPORTANT ============================
 Use 'passwd' to set your login password
 this will disable telnet and enable SSH
------------------------------------------


BusyBox v1.4.2 (2019-02-06 17:52:10 UTC) Built-in shell (ash)
Enter 'help' for a list of built-in commands.


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

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

root@R9000:/$
root@R9000:/$ cat /tmp/nslookup_ok
one.one.one.one
root@R9000:/$
root@R9000:/$ ps w | awk /nslookup/
root@R9000:/$
root@R9000:/$ cat /etc/openvpn/ovpnclient-up.sh
#!/bin/sh

/sbin/ledcontrol -n power -c green -s on
root@R9000:/$
root@R9000:/$
 
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?
 
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.
 

Sign Up For SNBForums Daily Digest

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