1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

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

Discussion in 'NETGEAR AC Wireless' started by kamoj, Feb 16, 2019.

  1. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    315
    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:

    [​IMG]


    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.
    Future:
    You are welcome to wish for more information to be added,
    or even other add-ons.

    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: Apr 4, 2019
    Stain, Gitsum, Tom_Batty and 14 others like this.
  2. Voxel

    Voxel Very Senior Member

    Joined:
    Dec 9, 2014
    Messages:
    1,083
    Highly recommended. kamoj well done.

    Voxel.
     
    Tom Brough, kamoj and L&LD like this.
  3. eevanskiteboards

    eevanskiteboards Occasional Visitor

    Joined:
    Nov 17, 2018
    Messages:
    24
    I can't wait to install this when I get home!! This is awesome!! Thank you
     
    kamoj likes this.
  4. eevanskiteboards

    eevanskiteboards Occasional Visitor

    Joined:
    Nov 17, 2018
    Messages:
    24
    I can't wait to install this when I get home!! This is awesome!! Thank you
     
    kamoj likes this.
  5. Lord_Vader

    Lord_Vader Occasional Visitor

    Joined:
    Dec 15, 2017
    Messages:
    32
    Fantastic! Will try soon. Thank you very, very much!!
     
  6. GaselK

    GaselK New Around Here

    Joined:
    Jul 8, 2018
    Messages:
    8
    Great add-on. A must-have for r7800 and r9000 owners.
     
    kamoj likes this.
  7. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    Awesome Kamoj.
    Can't wait to try this
     
    kamoj likes this.
  8. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    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: Feb 18, 2019
  9. GaselK

    GaselK New Around Here

    Joined:
    Jul 8, 2018
    Messages:
    8
    @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 likes this.
  10. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    315
    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

     
  11. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    315
    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.

     
    GaselK likes this.
  12. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    Error
    Not Connected
    Router
    Both cable and wifi
    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. :)
     

    Attached Files:

  13. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    315
    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

     
    farenheit likes this.
  14. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    1. I dont usually check debug page all the time. So have already tried this, by not checking.
    Not sure how to install this fix? Linux/Unix is not my strength lol.

    Also tried this and this has not worked. :(

    1. Trying this now...
    2. Have tried this in the past to no avail.
    Which addon-on behaviours can i disable ?
     
  15. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    I have attached an image of the debug page with DNSCrypt disabled.
     

    Attached Files:

  16. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    This seems to have worked so far. Will keep you posted. Thanks Kamoj
    *Edit*
    Same issue again. Sigh.
     
    Last edited: Feb 18, 2019
  17. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    315
    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
    
     
  18. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    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 /|   <|_|
      |_| \_|_|\__, |_| |_|\__|_| |_|\__,_| \_/\_/ |_|\_(_)
               |___/
    
    [email protected]:/$
    [email protected]:/$ cat /tmp/nslookup_ok
    one.one.one.one
    [email protected]:/$
    [email protected]:/$ ps w | awk /nslookup/
    [email protected]:/$
    [email protected]:/$ cat /etc/openvpn/ovpnclient-up.sh
    #!/bin/sh
    
    /sbin/ledcontrol -n power -c green -s on
    [email protected]:/$
    [email protected]:/$
     
  19. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    315
    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?
     
  20. farenheit

    farenheit Regular Contributor

    Joined:
    Jul 11, 2018
    Messages:
    61
    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.