What's new

Kamoj Kamoj Add-on Beta testing

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

I also thank Voxel and Kamoj for great work. I also sent a private message to Kamoj.
Ladies and gentlemen, our R7800 is very stable with the Voxel firmware and the Kamoj add-on. Netgear should send the boys the equipment for free.

I have a question. Is it possible to add another ddns client in the software. As of March, Netgear with No-IP requires a renewal every 30 days. Netgear was sharply scared.
Ditto on the kudos to Voxel and Kamoj! If feasible, the idea of adding another DDNS client would certainly be an improvement, and something I would use.

BL
 
I also thank Voxel and Kamoj for great work. I also sent a private message to Kamoj.
Ladies and gentlemen, our R7800 is very stable with the Voxel firmware and the Kamoj add-on. Netgear should send the boys the equipment for free.

I have a question. Is it possible to add another ddns client in the software. As of March, Netgear with No-IP requires a renewal every 30 days. Netgear was sharply scared.
I don't use it myself and have no experience of it.
If someone presents a ready complete solution, I can add it to the add-on.

From @Voxel's Entware: Inadyn is a small and simple Dynamic DNS, DDNS, client with HTTPS support
https://www.snbforums.com/threads/custom-firmware-build-for-r7800-v-1-0-2-37sf.41317/post-351434
https://troglobit.com/projects/inadyn/
 
Where needed I use duckdns.org with lots of configuration settings here. I vote if possible to add it to @kamoj add-on.
I personally prefer it for its simplicity, endurance and configuration easiness.
Few examples for OS using linux cron
Code:
linux cron
if your linux install is running a crontab, then you can use a cron job to keep updated
we can see this with

ps -ef | grep cr[o]n

if this returns nothing - then go and read up how to install cron for your distribution of linux.
also confirm that you have curl installed, test this by attempting to run curl

curl

if this returns a command not found like error - then find out how to install curl for your distribution.
otherwise lets get started and make a directory to put your files in, move into it and make our main script

mkdir duckdns
cd duckdns
vi duck.sh

now copy this text and put it into the file (in vi you hit the i key to insert, ESC then u to undo) you must change your token and domain to be the one you want to update
you can pass a comma separated (no spaces) list of domains
you can if you need to hard code an IP (best not to - leave it blank and we detect your remote ip)
hit ESC then use use arrow keys to move the cursor x deletes, i puts you back into insert mode

echo url="https://www.duckdns.org/update?domains=exampledomain&token=a7c4d0ad-114e-40ef-ba1d-d217904a50f2&ip=" | curl -k -o ~/duckdns/duck.log -K -

now save the file (in vi hit ESC then :wq! then ENTER)
this script will make a https request and log the output in the file duck.log
now make the duck.sh file executeable

chmod 700 duck.sh

next we will be using the cron process to make the script get run every 5 minutes

crontab -e

copy this text and paste it at the bottom of the crontab

*/5 * * * * ~/duckdns/duck.sh >/dev/null 2>&1

now save the file (CTRL+o then CTRL+x)
lets test the script

./duck.sh

this should simply return to a prompt
we can also see if the last attempt was successful (OK or bad KO)

cat duck.log

if it is KO check your Token and Domain are correct in the duck.sh script

and openwrt
Code:
OpenWrt
the first part of the instructions are for people who want an easier install, but will accept http
if you want to use https, then you need to follow the further instructions
the wiki at http://wiki.openwrt.org/doc/howto/ddns.client may be helpful if you have issues
you must change your token and domain to be the one you want to update
we install the ddns packages

opkg update
opkg install ddns-scripts

then setup the ddns-scripts

ddns-scripts

edit the config at /etc/config/ddns

config service "duckdns"
        option enabled          "1"
        option domain           "exampledomain.duckdns.org"
        option username         "exampledomain"
        option password         "a7c4d0ad-114e-40ef-ba1d-d217904a50f2"
        option ip_source        "network"
        option ip_network       "wan"
        option force_interval   "72"
        option force_unit       "hours"
        option check_interval   "10"
        option check_unit       "minutes"
        #option ip_source       "interface"
        #option ip_interface    "eth0.1"
        #option ip_source       "web"
        #option ip_url          "http://ipv4.wtfismyip.com/text"
        option update_url       "http://www.duckdns.org/update?domains=[USERNAME]&token=[PASSWORD]&ip=[IP]"
        #option use_https       "1"
        #option cacert          "/etc/ssl/certs/cacert.pem"

now start it up

sh
. /usr/lib/ddns/dynamic_dns_functions.sh # note the leading period
start_daemon_for_all_ddns_sections "wan"
exit

we can now test the script by running the command

/usr/lib/ddns/dynamic_dns_updater.sh duckdns

if you want to use https - you will need to download Start SSL's ca bundle and install it
first we install curl and download the PEM file

opkg update
opkg install curl
mkdir -p /etc/ssl/certs
curl -k https://certs.secureserver.net/repository/sf_bundle-g2.crt >  /etc/ssl/certs/ca-bundle.pem

then you need to re-alter the config at /etc/config/ddns (uncomment these 2 lines)

        option use_https       "1"
        option cacert          "/etc/ssl/certs/ca-bundle.pem"

refer to the wiki on debugging etc http://wiki.openwrt.org/doc/howto/ddns.client
 
The kamoj add-on already have support for 6 different cron jobs, in the Settings menu!
E.g. set "When:" to:
Code:
*/5 * * * *
and "Command:" to:
Code:
echo url="https://www.duckdns.org/update?domains=domain&token=a7c4d0ad-114e-40ef-ba1d-d217904a50f2&ip=$(ip route|awk '/^default/{print $3}')"|curl -k -o /tmp/duck.log -K -
and tick the check-box and press OK.

Where needed I use duckdns.org with lots of configuration settings here. I vote if possible to add it to @kamoj add-on.
 
The kamoj add-on already have support for 6 different cron jobs, in the Settings menu!
E.g. set "When:" to:
Code:
*/5 * * * *
and "Command:" to:
Code:
echo url="https://www.duckdns.org/update?domains=domain&token=a7c4d0ad-114e-40ef-ba1d-d217904a50f2&ip=$(ip route|awk '/^default/{print $3}')"|curl -k -o /tmp/duck.log -K -
and tick the check-box and press OK.
and it seems that that example from duckdns is also fautly:

ip route|awk '/^default/{print $3}' does not give the public IP address of the router (at least it doesn't with my R7800).

but I would just leave the ip part empty and have duckdns autodetect your IP.
i.e. put this in the cron-job:
Code:
echo url="https://www.duckdns.org/update?domains=<domain>&token=<token>&ip="|curl -k -o /tmp/duck.log -K -
(and replace <domain> with your domain and <token> with your token
 
Changes in kamoj-addon beta version 5.4b25
--------------------------------------------------
- System Information: Added: Ookla Speed Test
- System Information: Added: Voxel release info
- System Information: Added: Netgear release info (@kc6108)
- System Information: Fixed: 5 GHz Summary shows "Content-type: text/html" and 5 GHz Details shows "ath0 No scan results"
(@blueliner)
- System Information: Fixed: WiFi Details: layout formatting error (@sppmaster)
- Restart Supervision + Settings: Added Supervision of IPv6/Radvd. (@microchip)
- Restart Supervision: WiFi Supervision now stops Guest net if off.
- Restart Supervision: Added nvram variable "kamoj_restart_long_ping_timeout" to set timeout for
the last try to ping before restarting. (Default value is 5)
- Restart Supervision: Disable "Router Auto Firmware Update" (at boot)
- Settings: pop-up added: WARNING: dmesg timestamps will limit Aegis log file to 10000 entries
- Settings: Added: Force only https connection to router's web interface (@stern67, @KW.)
- Better device identification in R9000.
- OpenVPN Client: Show log: Removed the limit for max number of lines.
- Wireguard Client: Show log: Removed the limit for max number of lines.
- System Information: Show Supervision Log: Changed max number of lines to 2000.
- System Information: dmesg Log: Removed the 1000 lines limit.
- System Information: OS Log: Removed the 1000 lines limit.
- System Information: System Log: Removed the 1000 lines limit.
- System Information: Console Log: Removed the 1000 lines limit.
- System Information: Cron jobs: Removed duplicate display of Netgear cron jobs.
- DNS Privacy/Ad-Blocking: DNSCrypt 2: Removed the limit for max number of lines.
- DNS Privacy/Ad-Blocking: Stubby: Removed the limit for max number of lines.
- DNS Privacy/Ad-Blocking: Adguard: Removed the limit for max number of lines.
- DNS Privacy/Ad-Blocking: Dnsmasq: Removed the limit for max number of lines.
- General: Moved cursor to beginning of output fields in many forms. (E.g. Show Flash Info)
- General: Extended uhttpd timeout to 90 s.
- Minor fixes
- FAQ.txt updated
 
Last edited:
Changes in kamoj-addon beta version 5.4b24
--------------------------------------------------
- Kamoj web-pages: Reworked all server requests to allow for long time replies and longer text answers.
This will solve some problems with blank fields/pages at high cpu load etc.
(@HELLO_wORLD, @n1llam1, @Voxel)
- Settings: Added: Supervision of WiFi (Radios, Devices, Interfaces)
This will repair WiFi that ceased to work after e.g. FW update.
This might not be able to re-connect clients that lost control,
but try it and report back please!
- System Information: Added information about WiFi networks.
Now you don't need any special software to scan WiFi networks.
The scanning takes some 10 seconds, so be patient.
I have some doubts about the results, but anyone is welcome to comment
the output from this function, so I can improve (or ditch it).
- Settings: Congestion Control: Adapted to Voxel default preference.
- Remove TrendMicro cron job if QoS disabled (R9000)
- FAQ.txt updated
 
Installed kamoj-addon beta version 5.4b25. all good expect for the typical 5ghz channel being off for initial 10 minutes then it activate. supervise wifi fuction is not helping to speed up activation process. not a big deal. Thank You as always Kamoj.
 
Hello,

Installed 5.4b25 and all is running well.

- System Information: Fixed: 5 GHz Summary shows "Content-type: text/html" and 5 GHz Details shows "ath0 No scan results"
(@blueliner)

This change seems to have worked...5 GHz WiFi summary and details have worked each time I have tried it. I also made some adjustments to speed up kamoj_restart_ping_timeout now that there is the option for kamoj_restart_long_ping_timeout.

The added selections for version(s) information and Ookla speedtest is handy too!

Thanks,
BL
 
except for the typical 5ghz channel being off for initial 10 minutes then it activate.
Are you perhaps using a DFS channel?
Last time I checked, also 5GHz didn't seem to work when on a DFS channel. However, I never had the patience to wait 10 minutes to see if it would eventually solve itself.
When switching to a normal channel, I immediately got the 5GHz Wifi signal back.
 
Thanks for latest update @kamoj.
All running ok and my wi fi speed has actually increased.This version and the last seems better for wi fi. Not had any dropouts
 
Are you perhaps using a DFS channel?
Last time I checked, also 5GHz didn't seem to work when on a DFS channel. However, I never had the patience to wait 10 minutes to see if it would eventually solve itself.
When switching to a normal channel, I immediately got the 5GHz Wifi signal back.
Hello, yes using DFS. it's more stable for me and avoid collision with other 5ghz around. if it is realted to that i guess it is a normal behaviour and it's ok for me to keep it like that.
 
i have another noob question. i have activated "force HTTPS"... now i'm unable to login inside the router. do you know how to connect and how to disable that setting using telnet? Thank You

NET::ERR_CERT_REVOKED
Subject: www.routerlogin.net

edit: i have fixed it by log in from my Android phone and remove the flag.
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

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