295 字
1 分钟
基于X-wrt实现MentoHUST锐捷认证

早前时候折腾了一下Xiaomi Mi Router R3路由器装了xwrt,然后今天就想着做个免认证玩玩。

登录xwrt后台,点击系统然后再点击管理权我们先开启ssh功能。

image-20250324105524735

image-20250324105626752

然后就要请到我们的重要嘉宾**mentohust**。

我们把这mentohust传到路由器/usr/bin/目录下并给文件赋予777的权限

Terminal window
# chmod 777 /usr/bin/mentohust

接着我们回到浏览器,点击网络>多拨,我们配置多拨模式。

image-20250324110024391

现在我们就能开始测试登录了。以下直接上连接方式具体参数过程可自行去作者主页查询。

Terminal window
# 配置网卡1的认证,-b1参数实现后台模式。
root@X-WRT:~# mentohust -u用户名 -p密码 -a1 -d1 -neth0.2 -b1
# 配置多拨认证前一定要删除pid文件才能实现多拨。
root@X-WRT:~# rm /var/run/mentohust.pid -f
# 配置多拨网卡1的认证
root@X-WRT:~# mentohust -u用户名 -p密码 -a1 -d1 -nmvlan01 -b1

image-20250324110630976

可以看出我们多拨成功实现了。

退出认证。

Terminal window
root@X-WRT:~# ps |grep mentohust
1147 root 1436 S grep mentohust
3788 root 2636 S mentohust -u -p -a1 -d1 -neth0.2 -b1
7116 root 2636 S mentohust -u -p -a1 -d1 -nmvlan01 -b1
root@X-WRT:~# kill 3788 7116
基于X-wrt实现MentoHUST锐捷认证
http://blog.xeu.asia/posts/实验室折腾/基于x-wrt实现mentohust锐捷认证/
作者
Xeu
发布于
2025-03-24
许可协议
CC BY-NC-SA 4.0