mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/bind: lost ports, templating, update to dnsbl.ch (#743)
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= bind
|
||||
PLUGIN_VERSION= 0.3
|
||||
PLUGIN_VERSION= 0.4
|
||||
PLUGIN_COMMENT= BIND domain name service
|
||||
PLUGIN_DEPENDS= bind913
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
<allownew>true</allownew>
|
||||
<help>Set the IPv6 addresses the service should listen to.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.port</id>
|
||||
<label>Listen Port</label>
|
||||
<type>text</type>
|
||||
<help>Set the port the service should listen to.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.forwarders</id>
|
||||
<label>DNS Forwarders</label>
|
||||
|
||||
@@ -11,8 +11,12 @@
|
||||
<Required>N</Required>
|
||||
<Multiple>Y</Multiple>
|
||||
<OptionValues>
|
||||
<ad>ADWare Lists</ad>
|
||||
<mw>Malware Lists</mw>
|
||||
<ag>AdGuard List</ag>
|
||||
<el>Easy List</el>
|
||||
<ep>Easyprivacy List</ep>
|
||||
<mw>Malwaredomain List</mw>
|
||||
<nc>NoCoin List</nc>
|
||||
<rw>Ransomware Tracker List</rw>
|
||||
</OptionValues>
|
||||
</type>
|
||||
</items>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/bind/general</mount>
|
||||
<description>BIND configuration</description>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -19,6 +19,10 @@
|
||||
<Required>Y</Required>
|
||||
<asList>Y</asList>
|
||||
</listenv6>
|
||||
<port type="PortField">
|
||||
<default>53530</default>
|
||||
<Required>Y</Required>
|
||||
</port>
|
||||
<forwarders type="NetworkField">
|
||||
<FieldSeparator>,</FieldSeparator>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -88,13 +88,22 @@ install() {
|
||||
|
||||
for CAT in $(echo ${1} | tr ',' ' '); do
|
||||
case "${CAT}" in
|
||||
ad)
|
||||
ag)
|
||||
adguard
|
||||
;;
|
||||
el)
|
||||
easylist
|
||||
;;
|
||||
ep)
|
||||
easyprivacy
|
||||
;;
|
||||
nc)
|
||||
nocoin
|
||||
;;
|
||||
mw)
|
||||
rw)
|
||||
rwtracker
|
||||
;;
|
||||
mw)
|
||||
mwdomains
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -27,3 +27,10 @@ command:/usr/local/opnsense/scripts/OPNsense/Bind/dnsbl.sh
|
||||
parameters: %s
|
||||
type:script
|
||||
message:fetching DNSBLs
|
||||
|
||||
[dnsblcron]
|
||||
command:/usr/local/opnsense/scripts/OPNsense/Bind/dnsbl.sh;/usr/local/etc/rc.d/named reload
|
||||
parameters:
|
||||
type:script
|
||||
message:fetching DNSBLs and restart
|
||||
description: Download BIND DNSBLs and restart
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
blacklist.db:/usr/local/etc/namedb/master/blacklist.db
|
||||
named:/etc/rc.conf.d/named
|
||||
named.conf:/usr/local/etc/namedb/named.conf
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
$TTL 86400
|
||||
@ IN SOA opnsense.localdomain. hostmaster.opnsense.localdomain. (
|
||||
2018072201
|
||||
28800
|
||||
7200
|
||||
864000
|
||||
3600 )
|
||||
NS localhost.
|
||||
NS localhost.
|
||||
A 127.0.0.1
|
||||
@ IN A 127.0.0.1
|
||||
* IN A 127.0.0.1
|
||||
* IN AAAA ::1
|
||||
Reference in New Issue
Block a user