Take a look @
http://www.snbforums.com/threads/adding-unblock-us-dns-using-dnsmasq.8266/page-5
The suggestions / solutions discussed in that thread may be useful to your issue
thank you, it works
Take a look @
http://www.snbforums.com/threads/adding-unblock-us-dns-using-dnsmasq.8266/page-5
The suggestions / solutions discussed in that thread may be useful to your issue
...
Jan 1 03:00:15 pppd[315]: Connect: ppp0 <--> eth0
...
Jan 1 03:00:20 custom script: Running /jffs/scripts/post-mount (args: /tmp/mnt/OPT)
...
Aug 26 11:05:07 admin: Started dnscrypt-proxy from .
...
Aug 26 11:06:06 pppd[315]: System time change detected.
I see no dnscrypt-proxy package both in Optware and Optware-NG, sorry.Is there a manual how to install this on optware? Is it possible?
Use the toolchain included with the Asuswrt-Merlin firmware to compile dnscrypt-proxy. Then you copy the binaries to /jffs/bin. No Optware or Entware required.Is there a manual how to install this on optware? Is it possible?
Or grab one compiled by @lancethepants . Don't forget to thank him.Hi,
Is there a manual how to install this on optware? Is it possible?
I have sued this manual, no internet after reboot and in the lgos I can see issues with certificates...(same as in one of the first posts in this thread)I removed my how-to from the second post, leaving a link to asuswrt-merlin wiki page. After adding fake-hwclock package installation of dnscrypt-proxy is simplified.
Secure DNS queries using DNSCrypt.
Make sure there is no errors in syslog after reboot:
Code:... Jan 1 03:00:15 pppd[315]: Connect: ppp0 <--> eth0 ... Jan 1 03:00:20 custom script: Running /jffs/scripts/post-mount (args: /tmp/mnt/OPT) ... Aug 26 11:05:07 admin: Started dnscrypt-proxy from . ... Aug 26 11:06:06 pppd[315]: System time change detected.
Here's my wiki mod. No Optware or Entware required.I'm not sure how to configure dual resolvers.
#!/bin/sh
logger -t $(basename $0) "started [$$]"
/bin/pidof dnscrypt-proxy > /dev/null 2>&1 || \
(
# Now resolve DNS name for NTP server
ntp_name=$(nvram get ntp_server0)
grep "$ntp_name" /jffs/configs/hosts.add > /dev/null 2>&1 || \
for ip in $(/jffs/bin/hostip $ntp_name)
do
echo $ip $ntp_name >> /jffs/configs/hosts.add
done
# restart NTP client to eliminate 4-5 mins delay
killall ntp
sleep 1
service restart_dnsmasq
service restart_ntpc
sleep 5
# wait up to 5 minutes to make sure the router has the correct time
tmax=300
i=0
while [ $i -le $tmax ]
do
if [ "$(nvram get ntp_ready)" -eq "1" ]
then
break
fi
logger "Waiting for correct time to be set."
sleep 1
i=`expr $i + 1`
done
# dnscrypt-proxy requires the correct time for certificate validation
/jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:60053 --ephemeral-keys --resolver-name=dnscrypt.org-fr --resolvers-list=/jffs/bin/dnscrypt-resolvers.csv --daemonize
/jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:60054 --ephemeral-keys --resolver-name=soltysiak --resolvers-list=/jffs/bin/dnscrypt-resolvers.csv --daemonize
)
...
### dnscrypt
no-resolv
server=127.0.0.1#60053 # dnscrypt
server=127.0.0.1#60054 # dnscrypt
...
If you are okay with the entware approach, then follow the wiki.This little "how-to" spans over 13 pages now! Can somebody try to clarify this procedure and/or duplicate it consistently with success? I'm at a loss between one set of scripts and another, remove this, that, and the other...
PATH=/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/home/ilmostro:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin
I haven't/can't update the wiki as I am running a very different config than standard... My comments above though is essentially it. The fa ke-hwclock makes it pretty easy after the first reboot.Thanks for the update; however, I'm not able to see your changes to the wiki.
:/# 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"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func
That looks fine if you want to use opendns. you can change it later. For now verify on boot that your clock is set correctly very early in your syslog.log after boot. That way we know the fa_ke-hwclock.is working. That is neccessary dependency.In terms of customizing the dnscrypt-related files in "/opt/", I'm not sure what, if anything, should be changed.
Code::/# 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" PREARGS="" DESC=$PROCS PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin . /opt/etc/init.d/rc.func
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
B | (solved) Dnscrypt blocked-names.txt automatically deleted upon modification | Asuswrt-Merlin | 4 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!