将规则文件下载至dnsmasq的附加目录:
1 2 3 | cd /etc/dnsmasq.d wget https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf wget https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/bogus-nxdomain.china.conf |
从github下载dnscrypt-proxy并配置、安装系统服务(apt里面的版本有bug):
1 2 3 4 5 6 7 8 | https://github.com/jedisct1/dnscrypt-proxy/releases/download/2.0.19/dnscrypt-proxy-linux_arm64-2.0.19.tar.gz tar xzvf dnscrypt-proxy-linux_arm64-2.0.19.tar.gz cp example-dnscrypt-proxy.toml dnscrypt-proxy.toml #复制样例、自行更改监听端口以及缓存等配置 #安装为服务、自启 ./dnscrypt-proxy -service install systemctl start dnscrypt-proxy systemctl enable dnscrypt-proxy |
结束。
0 条评论