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 for Netgear R7800 X4S and R9000 X10

Discussion in 'NETGEAR AC Wireless' started by kamoj, Sep 22, 2018.

  1. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    409
    Nota Bene: This add-on is obsolete. Please use new version at:
    https://www.snbforums.com/threads/kamoj-information-add-on-v4-for-netgear-r7800-x4s-and-r9000-x10-temperatures-a-o.55063/

    Introduction:

    [/B]
    This add-on adds information (and corrects some) on 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).
    • Bugs are corrected and much more information is added.
    • Support for R9000 is 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 easyily 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:
    Code:
    telnet www.routerlogin.net
    #5. Download the add-on:

    For R7800:
    Code:
    wget --no-check-certificate https://www.voxel-firmware.com/Downloads/kamoj-debug-page_180920-211912-1_ipq806x.ipk
    For R9000:
    Code:
    wget --no-check-certificate https://www.voxel-firmware.com/Downloads/kamoj-debug-page_180920-211912-1_r9000.ipk
    #6. Install:

    For R7800:
    Code:
    /bin/opkg install --force-overwrite kamoj-debug-page_180920-211912-1_ipq806x.ipk
    For R9000:
    Code:
    /bin/opkg install --force-overwrite kamoj-debug-page_180920-211912-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:
    • 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 Proxy 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
    Kamoj-addon-R7800+R9000.png

    Additional functions:
    Fast time synchronization even when Netgear ntp is not working.
    Show all devices in "Attached Devices" and "Access Control" - even when idle/sleeping.

    Future:
    You are welcome to wish for more information to be added,
    or even other add-ons.

    Next add-on planned to be released is "By-pass OpenVPN for specific devices".
    This "Policy based routing lite" will be fast and easy to control with original GUI!

    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:
    Darren_H97, HowIFix, MinkyMomo, RebelShadow, W1lliam, XBryan, blundersdome, bzq2810, thiggins, vladlenas

    /Kamoj



    Release Note / Changes since last release:

    Previous version can be found here:
    https://www.snbforums.com/threads/k...tgear-r7800-x4s-running-voxel-firmware.48139/

    Corrected:
    • Missing Scroll bar (blundersdome)
    • Missing WiFi Channel Number (W1lliam, MinkyMomo)
    • Memory Usage. Calculation of used memory.
    • NTP synchronized

    Added:
    • R9000/R8900 version
    • CPU Load: System Load average. (Darren_H97)
    • CPU Governor and Frequencies: Added more information (utilization and % of max)
    • Temperatures WiFi: Max Temperature values taken from internal nvram memory if existing, else Netgear R9000 temperatures for max fan speed are used.
    • WiFi: Side channels added
    • Info about 60GHz WiFi (R9000/R8900 only)
    • DNSCrypt Proxy Servers: Information added
    • NTP synchronized: early-time-sync with curl from google.com until ntp time is synched
    • Internet connection status: use nslookup i.s.o. traceroute
    • Port Status, Speed, Duplex (WAN + LAN). (Darren_H97)
    • WAN speed
    • eSATA device info
    • Information about USB storage attached. (Darren_H97)
    • WiFi-driver info added to System Info.
    • Current time and time zone added to Uptime, and presentation changed.
    • Conditional display added for:
    - CPU Governors and Frequencies (R7800)
    - CPU Frequencies (R9000)
    - Temperatures 802.11ad Radio / Antenna (R9000)
    - 802.11ad 60 GHz (R9000)
    - OpenVPN Clients Available
    - OpenVPN Client Name
    - DNSCrypt Proxy Servers
    - eSATA Device
    - USB Device​
     
    Last edited: Feb 16, 2019
  2. Phillip

    Phillip New Around Here

    Joined:
    Oct 4, 2018
    Messages:
    2
    How do I get OpenVPN Client to work to auto-connect the Router to say a PIA VPN account every time it boots up?
     
  3. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    409
    You can read Voxels Readme file and install and auto-start the openvpn-client with the help of a USB-device,
    or do it manually, e.g.:

    Suppose you have the *.ovpn configuration-file from your vpn provider.
    1. Rename the file to: piavpn.ovpn
    2. Edit piavpn.ovpn by changing the line "auth-user-pass" to: auth-user-pass piavpn.auth
    3. Create piavpn.auth. It shall contain exactly 2 lines.
      The 1st line with your (at PIA VPN) USERNAME
      the 2nd line with PASSWORD
    4. Create the directory /etc/openvpn/config/client
      (This directory has to be created. If already existing, remove all other files from there!)
      Code:
      mkdir -p /etc/openvpn/config/client
    5. Copy both files (piavpn.ovpn and piavpn.auth) to this directory/etc/openvpn/config/client.
    6. Reboot or start manually:
      Code:
      /etc/init.d/openvpn-client start
    7. You can view the log file with:
      Code:
      cat /var/log/openvpn-client.log
     
  4. Phillip

    Phillip New Around Here

    Joined:
    Oct 4, 2018
    Messages:
    2
    Thanks so much, this is exactly what I was looking for. Much appreciated, and works like a charm.
     
  5. percy3

    percy3 Regular Contributor

    Joined:
    Sep 21, 2018
    Messages:
    101
    @kamoj Updated debug page is far more better. I just noticed there are every 10 seconds following entries in the syslog:
    sysinit: cat: /tmp/debug_11ad_temperature: No such file or directory
    sysinit: cat: /tmp/debug_antenna_temperature: No such file or directory
    sysinit: sh: Off: bad number
    sysinit: sh: Off: bad number
    Any idea where is it comming from?
     
    kamoj likes this.
  6. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    409
    Thank you very much for your feedback!

    It's a "feature" introduced when adding supervision/info about the X10 60 GHz WiFi.
    All temperatures are sampled every 10 second, and "warnings" are issued for non-X10 routers.
    Nothing to worry about.
    This is fixed already for next update of the add-on, including Stubby support.
    It will be released when Voxel is back in town.

    Can you tell me what you liked with the updated page?

    Sorry for making you worried!

     
  7. percy3

    percy3 Regular Contributor

    Joined:
    Sep 21, 2018
    Messages:
    101
    I was just wondering. Anyway I like info on load per different time intervals, temperature is kind of nice feature too and having network interfaces details in one place is the best.
     
  8. percy3

    percy3 Regular Contributor

    Joined:
    Sep 21, 2018
    Messages:
    101
    And there is one thing I miss, or even two of them:
    - Serial numer to appear on debug page.
    - Possibility to set power LED to bahave like Internet LED. Usually I use physical switch to disable all LEDs but the power one. Might be good (not even sure it is possible) for power LED to turn orange once there is no Internet.
     
  9. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    409
    Thank you for the suggestions!
    No problem at all. Will probably be included in next version. Just want to try how it works with the R9000,

     
  10. percy3

    percy3 Regular Contributor

    Joined:
    Sep 21, 2018
    Messages:
    101
    I guess there is a function for obtaining serial no: get_sn()
     
  11. percy3

    percy3 Regular Contributor

    Joined:
    Sep 21, 2018
    Messages:
    101
    Below you can find code for showing serial number (to be included into /www/debug_detail.htm file:
    Code:
    <tr><td></td><td><b>Serial Number</b></td><td><% get_sn() %></td></tr>
    
    I have it after line 258. Also, to get rid of error messages for R7800 router, it is enough to disable all lines containing wifi60G within Temperature section of the file /usr/bin/addon_info_update.sh
    I have also two additional suggestions:
    - to allow configuration of syslog server IP address
    - to show CPU frequency in GHz instead of MHz.
     
    kamoj likes this.
  12. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    409
    Thank you percy3.
    The new version is already finalized, and undergoing tests on R7800 and R9000 routers.

    I have noted your suggestions and will consider for a (if any) new version.
    (WAN speed is already auto-scaling B/s, KB/s, MB/s e.g, so maybe that's the way to go?)

    Configuration of syslog will go into another kind of add-ons.
    I have some other add-ons already.
    E.g. OpenVPN Client acceleration, Option 60+61 (for Sky a.o), Bypass of OpenVPN for certain devices, IPs or ports, Kill Switch, Supervision of WAN/DNS/VPN with reset/reboot, Congestion Control.
    So syslog config is a good suggestion.
     
  13. percy3

    percy3 Regular Contributor

    Joined:
    Sep 21, 2018
    Messages:
    101
    And another idea for modification of the debug page:
    currently Internet connection status provides ping result for arbitrarily chosen IP (1.1.1.1).
    I would prefer default gateway there so something like: IP_FOR_TEST=$(config get wan_dhcp_gateway) although I am not sure the same entry holds default gateway with manually configured WAN interface settings.
     
  14. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    409
    OK, I have enabled that for next release!
    Thank you for the suggestion.

    To get correct wan/gateway - even in AP-mode:
    Code:
    ip route | awk '/^default/{print $3}'
     
    percy3 likes this.
  15. percy3

    percy3 Regular Contributor

    Joined:
    Sep 21, 2018
    Messages:
    101
    @kamoj Feel free to share test version. I am using R7800.
     
  16. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    409
    Thank you for the interest and offer.
    But it's finalized already.
    Maybe I have time to write the release notes this weekend. I hope so.
     
    Starrbuck and Voxel like this.