OPNsense Forum

English Forums => General Discussion => Topic started by: directnupe on March 13, 2018, 10:12:48 pm

Title: GetDns and Stubby from FreeBsd Ports
Post by: directnupe on March 13, 2018, 10:12:48 pm
Dear Franco and/or Fabian, - and anyone who can assist
Hello to the both of you - if you are not one in the same. Forgive me if that is the case. DNS over TLS is provided by DnsPrivacy.
It is in the ports tree - I managed to use Opnsense ports - this is an excellent distro by the way.
My issue is that U do not know how to get the packages ( s ) up and running once they are installed. If there is a start up script - or commands to start them please help. I know how to run this on Lede / Openwrt - so I have an idea of how to configure Stubby. Also - it runs in conjunction with Unbound.

Here is link - https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
FreshPorts - https://www.freshports.org/dns/getdns/

I am relatively new to this so any and all assistance you can offer will be greatly appreciated. Also, I think that many Opnsense would appreciate learning how install configure and utilize this piece of software.
Thanks in advance and I appreciate all the hard work that you guys do to make this an outstanding firewall distro.
God Bless,

Directnupe
Title: Re: GetDns and Stubby from FreeBsd Ports
Post by: fabian on March 14, 2018, 07:34:54 pm
you need an RC config file under /etc/rc.conf.d which includes your config options. This is usually. For an example you can look at the templates in the plugins.
Title: Re: GetDns and Stubby from FreeBsd Ports
Post by: directnupe on March 15, 2018, 09:45:50 pm
Dear Mr. Fabian,
Hello and I hope that you are well. I use GetDns and Stubby on Lede / OpenWrt and I have been able to install them both on OpnSense which is based on FreeBsd 11. Opnsense has ports which are directly linked to FreeBsd Ports.

That being said - when I install GetDns and Stubby from Ports - I can not get those to start. I was advised by the developers to :

A -   it is the rc system. You need to put a file into /etc/rc.conf.d with the same name as the service file and add the config options.

and

B -  you need an RC config file under /etc/rc.conf.d which includes your config options. This is usually. For an example you can look at the templates in the plugins

So, what I am specifically asking you is can you please send me a start up script or scripts for GetDns and Stubby so that they will run at boot time. I am new to FreeBsd - have used Pfsense.

This is a link to Opnsense Wiki for boot up options -   https://docs.opnsense.org/development/backend/autorun.html

Also when I do " make config " there are the Harden Options - PIE and Read Only - Bind - should I leave those in order to get GETDNS and Stubby working.

Any and all assistance which you can offer will be greatly appreciated. Again, I am totally in the blind where scripting is concerned.

Thanks and God Bless You and Yours -

Always In peace,

Directnupe
Title: Re: GetDns and Stubby from FreeBsd Ports
Post by: fabian on March 15, 2018, 10:02:42 pm
I run stuff at startup in my plugins using this option in my service config file (for example FRR):
https://github.com/opnsense/plugins/blob/master/net/frr/src/opnsense/service/templates/OPNsense/Quagga/frr#L4