1.root用户登录,安装wget组件
apt install wget -y
2.运行代码
bash <(wget --no-check-certificate -qO- http://uee.me/dbhvv)
3.根据提示创建用户以安装Clash
4.根据提示创建用户密码
5.根据提示输入本机IP(因为是将Debian系统作为旁路网关,所以必须跟主路由同一网段)
6.根据提示输入网关(主路由IP ) 7.根据提示输入DNS(这个无所谓,找个最快的就可以了)
9.等候脚本自动执行,期间会安装一个iptables-persistent,都选“是”。
10.安装完成,按照提示配置设备就可以了
启动Clash
sudo systemctl start clash.service
重启Clash
sudo systemctl restart clash.service
查看Clash运行状态
sudo systemctl status clash.service
实时滚动状态
sudo journalctl -u clash.service -f
打开文件
nano /etc/ssh/sshd_config
取消注释,修改
PermitRootLogin yes
重启服务
service sshd restart
#####DNS污染对Clash(for Windows)的影响