mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
dns/dnscrypt-proxy: change log directory, go stable (#1038)
(cherry picked from commitd20af79c94) (cherry picked from commita891fa3f5b)
This commit is contained in:
parent
335d9912a2
commit
0c6bc733ae
7 changed files with 22 additions and 8 deletions
|
|
@ -1,8 +1,7 @@
|
|||
PLUGIN_NAME= dnscrypt-proxy
|
||||
PLUGIN_VERSION= 0.1
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_COMMENT= Flexible DNS proxy supportung DNSCrypt and DoH
|
||||
PLUGIN_DEPENDS= dnscrypt-proxy2
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
PLUGIN_DEVEL= yes
|
||||
|
||||
.include "../../Mk/plugins.mk"
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@
|
|||
<allownew>true</allownew>
|
||||
<help>Set the IP address and port combinations this service should listen on, e.g 127.0.0.1:5353 and/or [::1]:5353</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.allowprivileged</id>
|
||||
<label>Allow Privileged Ports</label>
|
||||
<type>checkbox</type>
|
||||
<help>This will allow you to run the service on port 53.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.max_clients</id>
|
||||
<label>Max Client Connections</label>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@
|
|||
<default>127.0.0.1:5353,[::1]:5353</default>
|
||||
<Required>N</Required>
|
||||
</listen_addresses>
|
||||
<allowprivileged type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</allowprivileged>
|
||||
<max_clients type="IntegerField">
|
||||
<default>250</default>
|
||||
<Required>Y</Required>
|
||||
|
|
|
|||
2
dns/dnscrypt-proxy/src/opnsense/scripts/OPNsense/Dnscryptproxy/setup.sh
Executable file
2
dns/dnscrypt-proxy/src/opnsense/scripts/OPNsense/Dnscryptproxy/setup.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
mkdir -p /var/log/dnscrypt-proxy/
|
||||
chown _dnscrypt-proxy:_dnscrypt-proxy /var/log/dnscrypt-proxy/
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
[start]
|
||||
command:/usr/local/etc/rc.d/dnscrypt-proxy start
|
||||
command:/usr/local/opnsense/scripts/OPNsense/Dnscryptproxy/setup.sh;/usr/local/etc/rc.d/dnscrypt-proxy start
|
||||
parameters:
|
||||
type:script
|
||||
message:starting dnscrypt-proxy
|
||||
|
|
@ -11,7 +11,7 @@ type:script
|
|||
message:stopping dnscrypt-proxy
|
||||
|
||||
[restart]
|
||||
command:/usr/local/etc/rc.d/dnscrypt-proxy restart
|
||||
command:/usr/local/opnsense/scripts/OPNsense/Dnscryptproxy/setup.sh;/usr/local/etc/rc.d/dnscrypt-proxy restart
|
||||
parameters:
|
||||
type:script
|
||||
message:restarting dnscrypt-proxy
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ timeout = {{ OPNsense.dnscryptproxy.general.timeout }}
|
|||
keepalive = {{ OPNsense.dnscryptproxy.general.keepalive }}
|
||||
|
||||
log_level = 2
|
||||
log_file = 'dnscrypt-proxy.log'
|
||||
log_file = '/var/log/dnscrypt-proxy/dnscrypt-proxy.log'
|
||||
use_syslog = false
|
||||
|
||||
cert_refresh_delay = {{ OPNsense.dnscryptproxy.general.cert_refresh_delay }}
|
||||
|
|
@ -115,16 +115,16 @@ cache = false
|
|||
{% endif %}
|
||||
|
||||
[query_log]
|
||||
file = 'query.log'
|
||||
file = '/var/log/dnscrypt-proxy/query.log'
|
||||
format = 'tsv'
|
||||
|
||||
[nx_log]
|
||||
file = 'nx.log'
|
||||
file = '/var/log/dnscrypt-proxy/nx.log'
|
||||
format = 'tsv'
|
||||
|
||||
[whitelist]
|
||||
whitelist_file = 'whitelist.txt'
|
||||
log_file = 'whitelisted.log'
|
||||
log_file = '/var/log/dnscrypt-proxy/whitelisted.log'
|
||||
log_format = 'tsv'
|
||||
|
||||
[sources]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
{% if helpers.exists('OPNsense.dnscryptproxy.general.enabled') and OPNsense.dnscryptproxy.general.enabled == '1' %}
|
||||
dnscrypt_proxy_enable="YES"
|
||||
{% if helpers.exists('OPNsense.dnscryptproxy.general.allowprivileged') and OPNsense.dnscryptproxy.general.allowprivileged == '1' %}
|
||||
dnscrypt_proxy_suexec="YES"
|
||||
{% endif %}
|
||||
{% else %}
|
||||
dnscrypt_proxy_enable="NO"
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue