Enable Python support in Unbound
Unbound has optional Python support, which is not currently enabled. Enabling this option will allow packages such as pfBlocker to leverage Python scripts to take actions based on events in Unbound.
Python is already included in base, so there should not be any additional dependencies.
#4 Updated by Doug Twitchell about 2 years ago
To use python with unbound the module also needs to be enabled in the configuration file with:
module-config: "python iterator"
or with DNSSEC:
module-config: "validator python iterator"
I've created a patch that does this, but if python is listed as a module, there must also be a python: section with a python-script: directive or unbound-checkconf will fail. A good solution might be a GUI option to enter a python script, which would trigger the module-config change and put the script in the right place and mount the python libraries in the chroot. There are other issues as well, but this is the only one that requires code changes. See here: https://forum.pfsense.org/index.php?topic=134352.0