系统运维 / 路由交换

Redmi-AX6000路由器科学上网详细教程

浅时光博客 · 2月3日 · 2023年 · 2.1w 次已读

步骤一、解锁路由器SSH


新版本的Redm原文链接:https://dqzboy.comi AX6000固件 无需刷固件

1、获取stok码

  • 登入路由器后台,然后在搜索地址栏复制stok码
  • 注意:stok码再每次重新登入路由都会改变,所以以下的步骤都需要是最新的stok码的情况下进行操作

2、开启TELNET

  • 注意:将下面红色标记的对应的stok改为自己上面获取到的路由器对应的stok码

2.1:开启开发/调试模式

http://192.168.31.1/cgi-bin/luci/;stok=对应的stok/api/misystem/set_sys_time?timezone=%20%27%20%3B%20zz%3D%24%28dd%20if%3D%2Fdev%2Fzero%20bs%3D1%20count%3D2%202%3E%2Fdev%2Fnull%29%20%3B%20printf%20%27%A5%5A%25c%25c%27%20%24zz%20%24zz%20%7C%20mtd%20write%20-%20crash%20%3B%20

2.2:重启路由器

http://192.168.31.1/cgi-bin/luci/;stok=对应的stok/api/misystem/set_sys_time?timezone=%20%27%20%3b%20reboot%20%3b%20

等待路由器重启完成,大概文章来源(Source):浅时光博客2分钟左右时间

2.3:设置Bdata永久开启telnet

注意:上面重启了路由器之后重新连接无线之后,访问路由器后台需要重新登入,这个时候我们需要获取最新的stok码

http://192.168.31.1/cgi-bin/luci/;stok=对应的stok/api/misystem/set_sys_time?timezone=%20%27%20%3B%20bdata%20set%20telnet_en%3D1%20%3B%20bdata%20set%20ssh_en%3D1%20%3B%20bdata%20set%20uart_en%3D1%20%3B%20bdata%20commit%20%3B%20

2.4:重启路由器

http://192.168.31.1/cgi-bin/luci/;stok=对应的stok/api/misystem/set_sys_time?timezone=%20%27%20%3b%20reboot%20%3b%20

3、开启SSH

3.1:连接路由器

连接到对应的无线WiFi,然后主机输入192.168.31.1,协议选择TELNET 端口默认23

提示:我这里使用的xshell工具

3.2:修改root密码

  • 这里我将root密码修改为admin
echo -e 'admin\nadmin' | passwd root

3.3:固化SSH

  • 固化SSH之后,以后升级路由器固件SSH也会保留不会被恢复
nvram set ssh_en=1
nvram set telnet_en=1
nvram set uart_en=1
nvram set boot_wait=on
nvram commit

3.4:永久开启SSH

mkdir /data/auto_ssh && cd /data/auto_ssh
curl -O https://cdn.jsdelivr.net/gh/lemoeo/AX6S@main/auto_ssh.sh
chmod +x auto_ssh.sh

uci set firewall.auto_ssh=include
uci set firewall.auto_ssh.type='script'
uci set firewall.auto_ssh.path='/data/auto_ssh/auto_ssh.sh'
uci set firewall.auto_ssh.enabled='1'
uci commit firewall

3.5:修改时区设置

cd
uci set system.@system[0].timezone='CST-8'
uci set system.@system[0].webtimezone='CST-8'
uci set system.@system[0].timezoneindex='2.84'
uci commit

3.6:关闭开发/调试模式

mtd erase crash

3.7:重启路由器

reboot

4、连接SSH

  • 路由器重启之后,确保PC连接成功,然后再使用xshell工具并选择ssh协议连接路由器

提示:这里的root密码就是上面修改的密码 admin

步骤二、配置科学上网


1、安装Clash

## Clash安装源:
export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null

## 备用安装源:
(1)export url='https://raw.fastgit.org/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null

(2)export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
  • 通过XShell连接到路由器,执行上面的命令进行安装
  • 注意:PC需要连接到对应的WIFI才可正常连接进去
export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null

2、配置科学上网

root@XiaoQiang:~# clash

3、访问管理面板

4、访问外网测试

5、Clash功能设置

6、Clash开机启动

声明


免责声明:本站内容仅供个人学习与研究,严禁用于商业或非法目的。继续浏览或下载即表明您接受上述条件,任何后果由用户自行承担。

版权声明:未经本站作者允许不得转载本文内容,否则将视为侵权。


本文作者:浅时光博客
原文链接:https://www.dqzboy.com/13165.html
版权声明:知识共享署名-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)协议进行许可,转载时请以>超链接形式标明文章原始出处和作者信息
免责声明:本站内容仅供个人学习与研究,严禁用于商业或非法目的。请在下载后24小时内删除相应内容。继续浏览或下载即表明您接受上述条件,任何后果由用户自行承担。

7 条回应

必须 注册 为本站用户, 登录 后才可以发表评论!

  1. 过冬的泡泡广东·广州2023-3-1 · 7:53

    感谢博主分享,学习下

  2. 流年2023-2-28 · 16:21

    感谢博主分享,学习下

  3. 江湖有良人2023-2-17 · 18:16

    感谢博主分享,学习下

  4. 江湖有良人2023-2-17 · 18:12

    感谢博主分享,学习下

  5. yongshi广东·广州2023-2-15 · 11:22

    感谢博主分享,学习下

  6. Raven福建·漳州2023-2-14 · 8:13

    感谢博主分享,学习下

  7. Steve2023-2-8 · 22:19

    感谢博主分享,学习下