Project

General

Profile

Feature #9251

DNS Resolver (Unbound) Python Integration

Added by BBcan177 . 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/03/2019
Due date:
% Done:

0%

Estimated time:

Description

Add the python module integration to the DNS Resolver (Unbound)

The only remaining function, would be to mount the /bin and /lib folders to the /var/unbound folder.

mkdir -p /var/unbound/usr/local/bin
mkdir -p /var/unbound/usr/local/lib
mount_nullfs -o ro /usr/local/bin/ /var/unbound/usr/local/bin
mount_nullfs -o ro /usr/local/lib/ /var/unbound/usr/local/lib

I have coded the following for pfBlockerNG for testing purposes, but this will need to be adapted for pfSense and called at bootup before Unbound starts or it will fail to load without the mounts. It will also need notices/log info message code added.
https://gist.github.com/BBcan177/b5d9506f9d1ca1ff2457f62bbaaaf878

History

#1 Updated by BBcan177 . 3 months ago

The final code for mounting the /bin and /lib folders has been submitted for review (Services.inc):
https://github.com/pfsense/pfsense/pull/4029/commits/a4ca3a94fe7dbbed2177bcb3eccbd667bc6ca993

#2 Updated by Joshua Sign 3 months ago

+1 : good feature !
nice work!

Also available in: Atom PDF