What's new

Unbound unbound_manager (Manager/Installer utility for unbound - Recursive DNS Server)

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

How do I get the "Addons" tab back?
I already had it, but after a router reboot, the Addons tab is gone. (Router uptime was 14 days)
I can't remember if I have accidentally "unìnstalled" the tab? Is this even possible?

Edit:
I started unbound_manager now it says this
Code:
1  = Update unbound Installation  ('/opt/var/lib/unbound/')
2  = Update unbound Installation Advanced Mode ('/opt/var/lib/unbound/')
3  = Advanced Tools


e  = Exit Script

E:Option ==> s

        ***ERROR unbound NOT running! - option unavailable
Strange...
Doesn't unbound automatically start after a router reboot?

Edit2:
I tried to reinstall the GUI, but these errors appeared:
Code:
unbound (pid 11424) is running... uptime: 0 Days, 00:02:25 version: 1.9.6 # rgnldo Github Version=v1.06 Martineau update (Date Loaded by unbound_manager Sun Mar 1 12:40:08 MEZ 2020)

1  = Update unbound Installation  ('/opt/var/lib/unbound/')
2  = Update unbound Installation Advanced Mode ('/opt/var/lib/unbound/')
3  = Advanced Tools


e  = Exit Script

E:Option ==> sgui


Do you want to add router GUI TAB to display stats?

        Reply 'y' or press [Enter]  to skip
y

        Installing @juched's GUI TAB to display unbound stats.....
        unbound_stats.sh downloaded successfully
        unboundstats_www.asp downloaded successfully

        Mounting Unbound_Stats.sh WebUI page as user1.asp
/jffs/addons/unbound/unbound_stats.sh: line 305: p: not found
sed: /tmp/menuTree.js: No such file or directory
grep: /tmp/menuTree.js: No such file or directory
grep: /tmp/menuTree.js: No such file or directory
sed: invalid option -- 1
BusyBox v1.25.1 (2020-02-11 07:40:58 MSK) multi-call binary.

Usage: sed [-inrE] [-f FILE]... [-e CMD]... [FILE]...
or: sed [-inrE] CMD [FILE]...

        -e CMD  Add CMD to sed commands to be executed
        -f FILE Add FILE contents to sed commands to be executed
        -i[SFX] Edit files in-place (otherwise sends to stdout)
                Optionally back files up, appending SFX
        -n      Suppress automatic printing of pattern space
        -r,-E   Use extended regex syntax

If no -e or -f, the first non-option argument is the sed command string.
Remaining arguments are input files (stdin if none).
grep: /tmp/menuTree.js: No such file or directory
sed: /tmp/menuTree.js: No such file or directory
sed: /tmp/menuTree.js: No such file or directory
mount: mounting /tmp/menuTree.js on /www/require/modules/menuTree.js failed: No such file or directory

        Router Configuration recommended pre-reqs status:

        [✔] Swapfile=1048572 kB
        [✔] DNS Filter=ON
        [✔] DNS Filter=ROUTER
        [✔] WAN: Use local caching DNS server as system resolver=NO
        [✔] Enable local NTP server=YES
        [✔] Enable DNS Rebind protection=NO
        [✔] Enable DNSSEC support=NO

        Options:

        [✔] unbound Logging
        [✔] unbound CPU/Memory Performance tweaks
        [✔] Router GUI statistics TAB installed



unbound (pid 11424) is running... uptime: 0 Days, 00:02:41 version: 1.9.6 # rgnldo Github Version=v1.06 Martineau update (Date Loaded by unbound_manager Sun Mar 1 12:40:08 MEZ 2020)

1  = Update unbound Installation  ('/opt/var/lib/unbound/')
2  = Update unbound Installation Advanced Mode ('/opt/var/lib/unbound/')
3  = Advanced Tools


e  = Exit Script

E:Option ==>
 
Last edited:
I asked because have experienced problems with unboung starting after reboot with alpha build. When downgrade to 384.15 stable biuld No problems at all.
 
f2b29a67ca3e1182ba82a650f8632a5b.jpg


Many thanks to all involved [emoji4]


Sent from my iPad using Tapatalk
 
I started unbound_manager now it says this
Code:
1  = Update unbound Installation  ('/opt/var/lib/unbound/')
2  = Update unbound Installation Advanced Mode ('/opt/var/lib/unbound/')
3  = Advanced Tools


e  = Exit Script

E:Option ==> s

        ***ERROR unbound NOT running! - option unavailable
Strange...
Doesn't unbound automatically start after a router reboot?
Yes, unbound should start automatically after a REBOOT;

What errors prevented unbound from starting?

I tried to reinstall the GUI, but these errors appeared:
Code:
unbound (pid 11424) is running... uptime: 0 Days, 00:02:25 version: 1.9.6 # rgnldo Github Version=v1.06 Martineau update (Date Loaded by unbound_manager Sun Mar 1 12:40:08 MEZ 2020)

1  = Update unbound Installation  ('/opt/var/lib/unbound/')
2  = Update unbound Installation Advanced Mode ('/opt/var/lib/unbound/')
3  = Advanced Tools


e  = Exit Script

E:Option ==> sgui


Do you want to add router GUI TAB to display stats?

        Reply 'y' or press [Enter]  to skip
y

        Installing @juched's GUI TAB to display unbound stats.....
        unbound_stats.sh downloaded successfully
        unboundstats_www.asp downloaded successfully

        Mounting Unbound_Stats.sh WebUI page as user1.asp
/jffs/addons/unbound/unbound_stats.sh: line 305: p: not found
sed: /tmp/menuTree.js: No such file or directory
grep: /tmp/menuTree.js: No such file or directory
grep: /tmp/menuTree.js: No such file or directory
sed: invalid option -- 1
BusyBox v1.25.1 (2020-02-11 07:40:58 MSK) multi-call binary.

Usage: sed [-inrE] [-f FILE]... [-e CMD]... [FILE]...
or: sed [-inrE] CMD [FILE]...

        -e CMD  Add CMD to sed commands to be executed
        -f FILE Add FILE contents to sed commands to be executed
        -i[SFX] Edit files in-place (otherwise sends to stdout)
                Optionally back files up, appending SFX
        -n      Suppress automatic printing of pattern space
        -r,-E   Use extended regex syntax

If no -e or -f, the first non-option argument is the sed command string.
Remaining arguments are input files (stdin if none).
grep: /tmp/menuTree.js: No such file or directory
sed: /tmp/menuTree.js: No such file or directory
sed: /tmp/menuTree.js: No such file or directory
mount: mounting /tmp/menuTree.js on /www/require/modules/menuTree.js failed: No such file or directory

        Router Configuration recommended pre-reqs status:

        [✔] Swapfile=1048572 kB
        [✔] DNS Filter=ON
        [✔] DNS Filter=ROUTER
        [✔] WAN: Use local caching DNS server as system resolver=NO
        [✔] Enable local NTP server=YES
        [✔] Enable DNS Rebind protection=NO
        [✔] Enable DNSSEC support=NO

        Options:

        [✔] unbound Logging
        [✔] unbound CPU/Memory Performance tweaks
        [✔] Router GUI statistics TAB installed



unbound (pid 11424) is running... uptime: 0 Days, 00:02:41 version: 1.9.6 # rgnldo Github Version=v1.06 Martineau update (Date Loaded by unbound_manager Sun Mar 1 12:40:08 MEZ 2020)

1  = Update unbound Installation  ('/opt/var/lib/unbound/')
2  = Update unbound Installation Advanced Mode ('/opt/var/lib/unbound/')
3  = Advanced Tools


e  = Exit Script

E:Option ==>
Unfortunately there is a typo in @juched's script, the intended copy command 'cp' is incorrect
Code:
if [ ! -f "/tmp/menuTree.js" ]; then
       p -f "/www/require/modules/menuTree.js" "/tmp/"
fi

I suggest you use amtm to install one of the scripts that also supports the addons TAB, then retry the 'sgui' command.
 
Thanks, I installed uiDivStats and uiScribe, but the "Addons" button does not reappear... *sad*
 
Run
Code:
uiDivStats startup

I've just hotfixed the reason why it didn't appear after install....my bad
I wanted to install uiDivStats, but this happend:
Code:
 Enter option  j5
_____________________________________________

 This installs uiDivStats - WebUI for Diversion statistics
 on your router.

 Author: Jack Yaz
 https://www.snbforums.com/threads/uidivstats-webui-for-diversion-statistics.56393/
_____________________________________________

 Continue? [1=Yes e=Exit] 1

uiDivStats: Welcome to uiDivStats v1.3.1, a script by JackYaz

uiDivStats: Checking your router meets the requirements for uiDivStats

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.3-1) installed in root is up to date.
/jffs/scripts/uiDivStats: line 1256: can't open /jffs/addons/uiDivStats.d/uidivstats_www.asp: no such file
sed: /tmp/menuTree.js: No such file or directory
uiDivStats: New version of uidivstats_www.asp downloaded

uiDivStats: Mounting uiDivStats WebUI page as user2.asp

uiDivStats: Starting Diversion statistic generation...

But thanks! The Addons button is back again! :)
 
The Addons button is back again! :)
Does unbound_manager 'sgui' command now correctly add the unbound statistics GUI TAB?
 
I asked because have experienced problems with unboung starting after reboot with alpha build. When downgrade to 384.15 stable biuld No problems at all.
I am running RT-AC86U 384.16_alpha1-ga40d2d5f30 and when developing/testing unbound_manager, I regularly need to REBOOT, and unbound always starts automatically.

What errors are you experiencing that is seemingly causing '/opt/etc/init.d/S61unbound' to fail to start unbound?
 
I wanted to install uiDivStats, but this happend:
Code:
 Enter option  j5
_____________________________________________

 This installs uiDivStats - WebUI for Diversion statistics
 on your router.

 Author: Jack Yaz
 https://www.snbforums.com/threads/uidivstats-webui-for-diversion-statistics.56393/
_____________________________________________

 Continue? [1=Yes e=Exit] 1

uiDivStats: Welcome to uiDivStats v1.3.1, a script by JackYaz

uiDivStats: Checking your router meets the requirements for uiDivStats

Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package grep (3.3-1) installed in root is up to date.
/jffs/scripts/uiDivStats: line 1256: can't open /jffs/addons/uiDivStats.d/uidivstats_www.asp: no such file
sed: /tmp/menuTree.js: No such file or directory
uiDivStats: New version of uidivstats_www.asp downloaded

uiDivStats: Mounting uiDivStats WebUI page as user2.asp

uiDivStats: Starting Diversion statistic generation...

But thanks! The Addons button is back again! :)
Please post this on the appropriate thread now, thanks!
EDIT: also hotfixed
 
Last edited:
What can I say?

Brilliant. Thanks to all involved for all their hard work. Unbound has been working flawlessly for ages and now with the bonus of the GUI.

Thank you all.
 
NEW: Add commandline option to restart unbound i.e. 'unbound_manager restart'

@juched unbound_manager will retrieve the GUI TAB files from your Github, so you no longer need to tediously create unnecessary external Pull-requests.

If you agree, I will modify unbound_manager to also retrieve the Ad Block files from your repository?

Thanks, I guess this changes how I use git now :)

I am ok with the same for ad block, but the current change on my repo moves sites/permlist/blockhost to /opt/share/unbound/configs so they need to be downloaded the first time, and then not touched after so people do not loose their settings.
 
RT-AX88U 384.16 Alpha 1 updated to Unbound Manager v2.14 and 'sgui'. Everything works great. Even reboots on the Alpha 1.

Thank you to all involved! @Martineau, @juched, @Jack Yaz and all the silent contributors and of course, to all the testers to make this happen. :)

This just keeps getting better and better.
 
Does unbound_manager 'sgui' command now correctly add the unbound statistics GUI TAB?
Not for me. I get the following
"unbound NOT installed! or 'extended-stats:' template NOT defined in 'unbound.conf'?
 

Similar 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!
Top