GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Installation on OpenWrt Installation on OpenWrt
Frank Denis edited this page
The following instructions are for installing from the official OpenWrt repository, but note that updates are at the discretion of the package maintainer, so the version may not always be up to date.
Type Add
Restart opkg update
opkg install dnscrypt-proxy2
uci add_list dhcp.@dnsmasq[0].server='127.0.0.53'
uci commit dhcp
/etc/init.d/dnsmasq restartUse vi /etc/dnscrypt-proxy2/dnscrypt-proxy.toml /etc/init.d/dnscrypt-proxy restart In a package installation, the configuration files are located in Then click Warning: Before attempting the following, ensure that you have Edit config dnsmasq
# Ignore ISP's DNS by not reading upstream servers from /etc/resolv.conf
option noresolv '1'
# Ensures that /etc/resolv.conf directs local system processes to use dnsmasq and hence dnscrypt-proxy
option localuse '1'
# Disable dnsmasq cache because we don't want to cache twice and the dnscrypt-proxy cache is superior
option cachesize '0'Restart /etc/init.d/dnsmasq restart
logread -l 100 | grep dnsmasqAccurate date/time is required for certificate validation, this is especially important for devices without a battery-backed RTC (Real Time Clock). An incorrect date/time may cause the server handshake to fail. This produces a "chicken and egg" situation where DNS queries cannot be resolved until an NTP server is accessed, but it can't because the NTP server hostname cannot be resolved through DNS. One simple solution is to add some IP addresses of well-established NTP servers so that DNS is not required at all. In list server '216.239.35.0' # Google list server '216.239.35.4' # Google list server '216.239.35.8' # Google list server '216.239.35.12' # Google list server '162.159.200.123' # Cloudflare list server '162.159.200.1' # Cloudflare Then restart the service: Alternatively, if you only use DNSCrypt servers, consider the option For the perfectionists, add this option to config interface 'wan' # or 'wan6' option peerdns '0' By default, most clients will use the DNS server assigned by DHCP, which is the device running Add the following rules into # Redirect unencrypted DNS queries to dnscrypt-proxy # This will thwart manual DNS client settings and hardcoded DNS servers like in Google devices config redirect option name 'Divert-DNS, port 53' option src 'lan' option dest 'lan' option src_dport '53' option dest_port '53' option target 'DNAT' # Block DNS-over-TLS over port 853 # Assuming you're not actually running a DoT stub resolver config rule option name 'Reject-DoT, port 853' option src 'lan' option dest 'wan' option dest_port '853' option proto 'tcp' option target 'REJECT' # Optional: Redirect queries for DNS servers running on non-standard ports. Repeat for 9953, 1512, and 54. See https://github.com/parrotgeek1/ProxyDNS for examples. # Warning: can break stuff, don't use this one if you run an mDNS server config redirect option name 'Divert-DNS, port 5353' option src 'lan' option dest 'lan' option src_dport '5353' option dest_port '53' option target 'DNAT' And reload Firewall: For advanced users, you can block access to IP addresses of known DoH servers with the package banIP. It has a built-in DoH blocklist, or you can use the larger list by jpgpi250. Note that you must specify the DoH servers that you actually use in its allowlist; otherwise, dnscrypt-proxy will not be able to use DoH itself.
config dnsmasq
# equivalent to --log-queries=extra in dnsmasq
option logqueries '1'
# where to write log file to
option logfacility '/tmp/dnsmasq_queries.log'Note: These logs accumulate quickly, so it is recommended to write to an external share or storage device, as embedded devices have limited flash write cycles and storage space. openwrt > dnscrypt-proxy -resolve google.com
This will also detect if the server supports DNSSEC, print its real IP address, and check if it returns fake responses for nonexistent domains. openwrt > cat /etc/resolv.conf
search lan
nameserver 127.0.0.1The above value for Note: These entries might only show when dhcp option The DNS leak test and DNS randomness test show the actual IP of your DNS server(s). You should make sure that any reported name or IP is NOT associated with the ISP you are using. If you see the ISP presence in the test results, something is wrong with the configuration, since it's bypassing your The following site can check whether the resolver can connect to upstream servers using IPv6 and perform DNSSEC validation: https://en.internet.nl/connection/ Cloudflare also has a web page to check that you're using their resolvers: https://www.cloudflare.com/ssl/encrypted-sni/
Clone this wiki locally |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |