Project

General

Profile

Feature #9251

DNS Resolver (Unbound) Python Integration

Added by BBcan177 . 9 months ago. Updated about 1 month ago.

Status:
Feedback
Priority:
Normal
Category:
DNS Resolver
Target version:
Start date:
01/03/2019
Due date:
% Done:

100%

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 . 9 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 9 months ago

+1 : good feature !
nice work!

#3 Updated by Renato Botelho about 1 month ago

  • Category set to DNS Resolver
  • Status changed from New to Feedback
  • Assignee set to Renato Botelho
  • Target version set to 2.5.0
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Also available in: Atom PDF