What's new

DNSCrypt-Proxy Logging

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

sammyano

Regular Contributor
Hello gys, please is there a script or means to reduce or even stop the hourly logging of dnscrpt - proxy to syslog. There are around 5 or 6 lines relating to fetching cert / valid etc
 
Yes. See --loglevel command line key.


Cheers ryzhov_al, can advise if the enclosed command will reduce or remove logging total, I want to see logging when router or service is restarted but not on hourly basis

# dnscrypt-proxy --help
...
-m --loglevel=...
...
 
For Entware start script:
Code:
admin@RT-N66U:/tmp/home/root# cat /opt/etc/init.d/S09dnscrypt-proxy
#!/bin/sh

ENABLED=yes
PROCS=dnscrypt-proxy
ARGS="--local-address=127.0.0.1:65053 --daemonize -R opendns --loglevel=5"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func
As a result, syslog will be clearer:
Code:
admin@RT-N66U:/tmp/home/root# tail  /tmp/syslog.log
Jun 15 22:11:01 cron[22563]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:12:01 cron[22670]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:13:01 cron[22777]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:14:01 cron[22884]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:15:01 cron[22992]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.5mins^I)
Jun 15 22:15:01 cron[22994]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:16:01 cron[23104]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:16:24 dnscrypt-proxy[23233]: Starting dnscrypt-proxy 1.4.0
Jun 15 22:16:24 admin: Started dnscrypt-proxy from .
Jun 15 22:16:24 dnscrypt-proxy[23233]: Proxying from 127.0.0.1:65053 to 208.67.220.220:443
 
For Entware start script:
Code:
admin@RT-N66U:/tmp/home/root# cat /opt/etc/init.d/S09dnscrypt-proxy
#!/bin/sh

ENABLED=yes
PROCS=dnscrypt-proxy
ARGS="--local-address=127.0.0.1:65053 --daemonize -R opendns --loglevel=5"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func
As a result, syslog will be clearer:
Code:
admin@RT-N66U:/tmp/home/root# tail  /tmp/syslog.log
Jun 15 22:11:01 cron[22563]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:12:01 cron[22670]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:13:01 cron[22777]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:14:01 cron[22884]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:15:01 cron[22992]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.5mins^I)
Jun 15 22:15:01 cron[22994]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:16:01 cron[23104]: (admin) CMD (/opt/bin/run-parts /opt/etc/cron.1min^I)
Jun 15 22:16:24 dnscrypt-proxy[23233]: Starting dnscrypt-proxy 1.4.0
Jun 15 22:16:24 admin: Started dnscrypt-proxy from .
Jun 15 22:16:24 dnscrypt-proxy[23233]: Proxying from 127.0.0.1:65053 to 208.67.220.220:443

What about for the standalone script?
 
Please add --loglevel=5 option to standalone script you are using.

ryzhov_al - Just checked my log and still seeing the hourly entry after running this command -
/jffs/bin
-m --loglevel=5

Please can you advise if am running the correct commad @ the right location?
 
ryzhov_al - Just checked my log and still seeing the hourly entry after running this command -
/jffs/bin
-m --loglevel=5

Please can you advise if am running the correct commad @ the right location?

Put it in the Wan-Start script, there is a dnscrypt command there, I placed it there and it works, you can see the process with the top command.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top