Hi i am trying to use dnscrypt proxy. I have it installed and set up but cant get it to work with dnsmasq. In the wikie for dnscrypt it says you have to change the file at /etc/config/dhcp. From here:
http://wiki.openwrt.org/inbox/dnscrypt
Start snip!
" Assuming you are using dnsmasq, edit the bold lines in /etc/config/dhcp
config dnsmasq
option domainneeded 1
option boguspriv 1
option filterwin2k 0
option localise_queries 1
option rebind_protection 1
option rebind_localhost 1
option local '/lan/'
option domain 'lan'
option expandhosts 1
option nonegcache 0
option authoritative 1
option readethers 1
option leasefile '/tmp/dhcp.leases'
# option resolvfile '/tmp/resolv.conf.auto'
option noresolv 1
list server '127.0.0.1#2053'
list server '/pool.ntp.org/208.67.222.222'
# list server '208.67.222.222'
# list server '208.67.220.220'
◾
We have disabled /tmp/resolv.conf.auto file since it instruct dnsmasq to use your ISP's DNS.
◾
noresolv option also disables /etc/resolv.conf file for similar reason.
◾
127.0.0.1#2053 is the DNSCrypt address.
◾
/pool.ntp.org/208.67.222.222 adds an exception for pool.ntp.org, which will be resolved through the standard unencrypted DNS channel. DNSCrypt requires precise time, otherwise it will not resolve any domain, including pool.ntp.org. So if your device's time was incorrect, it could never update its time, and therefore DNSCrypt would never work. So we set this exception so that pool.ntp.org queries will always bypass DNSCrypt and resolve with the standard unencrypted OpenDNS method.
Reboot router or restart dnsmasq for the changes to take effect. "
End snip!
Now i have tryed copying and pasting that dhcp text in to /etc/config/dhcp but it stops my router from resolving dns.
Here is my what i have at /etc/config/dhcp to start with:
snip!
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
list addnhosts '/etc/block.hosts'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '6h'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
End snip!
I think it mite have some thing too do with NTP server the one i am using is 0.europe.pool.ntp.org wich is at 46.4.24.238 I think.
Can some one help me to get my /etc/config/dhcp correct please?