A.安装shellclash
用ssh输入命令(2选1)回车根据提示即可安装:
#jsdelivrCDN源
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
#fastgit源
export url='https://raw.fastgit.org/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
putty连接路由并打开clash设置:7-6-6
进阶设置-配置内置dns服务-Dnsmasq转发开启
设置好后重启clash
B.安装adg
winscp连接路由
etc新建文件夹命名AdGuardHome 右键权限0755
解压AdGuardHome并传入AdGuardHome文件夹 右键权限0755
putty输入下列命令:
cd /etc/AdGuardHome
./AdGuardHome -s install
service AdGuardHome enable
访问 192.168.31.1:3000,进入引导流程,继续设置管理端口为3000,dns监听端口设为5353
putty输入下列命令:
iptables -t nat -A PREROUTING -p udp –dport 53 -j REDIRECT –to-ports 5353
iptables -t nat -A PREROUTING -p tcp –dport 53 -j REDIRECT –to-ports 5353
iptables-save >/etc/iptables-script
iptables-restore </etc/iptables-script
winscp打开etc/rc.local 在exit 0之前加入:
/usr/sbin/iptables-restore </etc/iptables-script
保存
完美显示客户端
adg下载「已更新fake_AdGuardHome107.37.zip」
https://www.aliyundrive.com/s/uHbGJ3gJ9W9
密码
暂无评论内容