将规则文件下载至dnsmasq的附加目录:
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
Code language: JavaScript (javascript)
从github下载dnscrypt-proxy并配置、安装系统服务(apt里面的版本有bug):
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
Code language: PHP (php)
结束。
了解 Starx's Home 的更多信息
Subscribe to get the latest posts sent to your email.
0 条评论