Unbound custom options via community repo

Started by mimugmail, July 15, 2021, 04:52:32 PM

Previous topic - Next topic
Hi,

as a couple of users complain about removing the custom options I added a new plugin to the community repo:
https://www.routerperformance.net/opnsense-repo/

Please be aware that it won't work on install pre-21.7! :)


Thanks for this plugin. I didn't install 21.7 preprod yet, will wait for official version. Can I start copying the current custom settings in the plugin or will I have duplicated custom settings?

Make a backup of this Box before upgrade, remove, upgrade, Install plugin, add content to new submenu

With this plugin installed, do the contents of the box get included in a Config file backup of the system or no?

They will :)
But with a restore you also need the plugin installed

Quote from: mimugmail on July 19, 2021, 07:25:13 AM
They will :)
But with a restore you also need the plugin installed

This is true for all custom plugins, right?

So in case of a failure or reinstall from scratch, first we have to install all custom plugins, then restore the backed up configuration, correct?

Thanks a lot for your repository and your work, I had an RPi for AdGuardHome and now I installed it on opnsense. Works beautifully. :)

The order is not important, but it needs both to work :)

Quote from: mimugmail on July 19, 2021, 06:54:46 PM
The order is not important, but it needs both to work :)

Thanks. :)

Now I completed AdGuard configuration, but unfortunately it requires editing the yaml file. Would've been great if the plugin showed a textbox with the yaml file so we could edit it directly from opnsense GUI.

Do you accept FR for the plugins? :)


Quote from: mimugmail on July 19, 2021, 08:33:33 PM
Sure, but usually you dont need to touch it

That is true, you need to touch it 3-4 times (if you know what you're doing) the first day though. :)

Thanks again for the support.

@mimugmail I upgraded to 21.7 dev build in order to use your custom options.

However, I am not seeing expected changes to my Unbound.  Where exactly are the custom options written on disk?  I checked /var/unbound/conf.d and etc, both empty.

Tomorrow is 21.1.9 and new dev build, this should be it.
Otherwise:

opnsense-code core
cd /usr/core
make upgrade

Quote from: mimugmail on July 26, 2021, 09:54:56 PM
Tomorrow is 21.1.9 and new dev build, this should be it.
Otherwise:

opnsense-code core
cd /usr/core
make upgrade

I tried:

# opnsense-code core
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
Updating SunnyValley repository catalogue...
SunnyValley repository is up to date.
Updating mimugmail repository catalogue...
mimugmail repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        cvsps: 2.1_2 [OPNsense]
        git: 2.32.0_1 [OPNsense]
        p5-Error: 0.17029 [OPNsense]

Number of packages to be installed: 3

The process will require 23 MiB more space.
4 MiB to be downloaded.
[1/3] Fetching git-2.32.0_1.txz: 100%    4 MiB 571.4kB/s    00:08
[2/3] Fetching p5-Error-0.17029.txz: 100%   27 KiB  27.5kB/s    00:01
[3/3] Fetching cvsps-2.1_2.txz: 100%   41 KiB  41.9kB/s    00:01
Checking integrity... done (0 conflicting)
[1/3] Installing p5-Error-0.17029...
[1/3] Extracting p5-Error-0.17029: 100%
[2/3] Installing cvsps-2.1_2...
[2/3] Extracting cvsps-2.1_2: 100%
[3/3] Installing git-2.32.0_1...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
[3/3] Extracting git-2.32.0_1: 100%
=====
Message from git-2.32.0_1:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
Cloning into '/usr/tools'...
remote: Enumerating objects: 10466, done.
remote: Counting objects: 100% (461/461), done.
remote: Compressing objects: 100% (181/181), done.
remote: Total 10466 (delta 282), reused 379 (delta 253), pack-reused 10005
Receiving objects: 100% (10466/10466), 9.98 MiB | 3.02 MiB/s, done.
Resolving deltas: 100% (6474/6474), done.
make: "/usr/tools/Makefile" line 68: Cannot open /usr/tools/config/21.1/build.conf
make: Fatal errors encountered -- cannot continue

July 27, 2021, 07:31:30 AM #13 Last Edit: July 27, 2021, 07:45:44 AM by franco
Config for 21.1 was removed since tomorrow 21.7 is released. Removing it never seems like a good idea. ;)

I reverted the change for now so it should be working for the time being.


Cheers,
Franco

My wife always asks me why I not delete email of 2015  ;D