OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: mimugmail on July 15, 2021, 04:52:32 pm

Title: Unbound custom options via community repo
Post by: mimugmail on July 15, 2021, 04:52:32 pm
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! :)

Title: Re: Unbound custom options via community repo
Post by: alexdelprete on July 18, 2021, 05:44:19 pm
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?
Title: Re: Unbound custom options via community repo
Post by: mimugmail on July 18, 2021, 07:26:49 pm
Make a backup of this Box before upgrade, remove, upgrade, Install plugin, add content to new submenu
Title: Re: Unbound custom options via community repo
Post by: Napsterbater on July 18, 2021, 10:40:13 pm
With this plugin installed, do the contents of the box get included in a Config file backup of the system or no?
Title: Re: Unbound custom options via community repo
Post by: mimugmail on July 19, 2021, 07:25:13 am
They will :)
But with a restore you also need the plugin installed
Title: Re: Unbound custom options via community repo
Post by: alexdelprete on July 19, 2021, 03:31:38 pm
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. :)
Title: Re: Unbound custom options via community repo
Post by: mimugmail on July 19, 2021, 06:54:46 pm
The order is not important, but it needs both to work :)
Title: Re: Unbound custom options via community repo
Post by: alexdelprete on July 19, 2021, 07:08:50 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? :)
Title: Re: Unbound custom options via community repo
Post by: mimugmail on July 19, 2021, 08:33:33 pm
Sure, but usually you dont need to touch it
Title: Re: Unbound custom options via community repo
Post by: alexdelprete on July 19, 2021, 08:36:19 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.
Title: Re: Unbound custom options via community repo
Post by: ctrlbrk on July 26, 2021, 09:51:54 pm
@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.
Title: Re: Unbound custom options via community repo
Post by: 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
Title: Re: Unbound custom options via community repo
Post by: ctrlbrk on July 26, 2021, 10:25:30 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:

Code: [Select]
# 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
Title: Re: Unbound custom options via community repo
Post by: franco on July 27, 2021, 07:31:30 am
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
Title: Re: Unbound custom options via community repo
Post by: mimugmail on July 27, 2021, 07:38:21 am
My wife always asks me why I not delete email of 2015  ;D
Title: Re: Unbound custom options via community repo
Post by: cookiemonster on July 28, 2021, 05:59:01 pm
Thanks for this mimugmail. A couple of basic questions if I may.
I'm on 21.1.8.
I've just added your repo according to your site's instructions and I think I've found it.
# pkg search -g -r mimugmail \* | grep bound
os-unboundcustom-maxit-1.0     Unbound Custom Options
Is this the right package?
Also, of more interest. Does it extend the built-in unbound or replace it?, and thus having to disable Unbound in "Services"?
Title: Re: Unbound custom options via community repo
Post by: ctrlbrk on July 28, 2021, 06:03:24 pm
It only extends it with a new "custom" submenu under Unbound service.

That said, I don't believe it's working yet.
Title: Re: Unbound custom options via community repo
Post by: cookiemonster on July 28, 2021, 06:07:09 pm
Ah OK, I'll wait then. Thx.
Title: Re: Unbound custom options via community repo
Post by: rackenthogg on July 29, 2021, 07:11:46 am
@mimugmail

Hi,
You declare no compatibility with LibreSSL. So to use your unbound plugin I need to switch to OpenSSL Opnsense flavour?

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! :)
Title: Re: Unbound custom options via community repo
Post by: mimugmail on July 29, 2021, 08:46:11 am
@mimugmail

Hi,
You declare no compatibility with LibreSSL. So to use your unbound plugin I need to switch to OpenSSL Opnsense flavour?

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! :)

As no SSL code is involved inside the plugin it will also work with libre (I just tested it) :)
Title: Re: Unbound custom options via community repo
Post by: Mr.Goodcat on May 18, 2022, 06:17:37 pm
As no SSL code is involved inside the plugin it will also work with libre (I just tested it) :)

Sorry for reviving this old thread, but was the plugin removed from your comunity repo? For some reason I can't seem to find it anymore :o
Title: Re: Unbound custom options via community repo
Post by: Patrick M. Hausen on May 18, 2022, 06:39:50 pm
There's an official supported way to create custom configuration, now.

https://docs.opnsense.org/manual/unbound.html#advanced-configurations
Title: Re: Unbound custom options via community repo
Post by: mimugmail on May 18, 2022, 07:23:20 pm
As no SSL code is involved inside the plugin it will also work with libre (I just tested it) :)

Sorry for reviving this old thread, but was the plugin removed from your comunity repo? For some reason I can't seem to find it anymore :o

Hm, maybe I missed it during rebase for .pkg extension
Title: Re: Unbound custom options via community repo
Post by: Mr.Goodcat on May 22, 2022, 01:12:24 pm
Hm, maybe I missed it during rebase for .pkg extension

Any chance it's coming back? :)
Title: Re: Unbound custom options via community repo
Post by: Patrick M. Hausen on May 22, 2022, 02:38:27 pm
There's an officially supported way to achieve the same:

https://docs.opnsense.org/manual/unbound.html#advanced-configurations
Title: Re: Unbound custom options via community repo
Post by: mimugmail on May 22, 2022, 08:19:57 pm
Can you open an issue in my repo. I also need to add Unifi6 again