使用 OpenWrt 进行双重验证

借住在浙江理工大学,校园网使用的是 锐捷 和 vpn 的双重验证。

mentohust

锐捷使用的是 mentohust ,预编译 mips 版本,在 google code

与原版 mentohust 不同的地方:

整合libpcap0.9.8,自动搜索配置文件/jffs/etc/mentohust.conf和/tmp/root/mentohust.conf
如果启用记录日志,日志log文件将记录在 /tmp目录下得mentohust.log,记录日志开启方法具体查看运行参数
运行界面改成英文,telnet不能正常显示中文导致的。
删掉了scanf,只能通过配置文件或者运行参数来配置拨号
在出错重拨等待时候忽略服务器的验证请求,原版的如果不在认证时间段内会导致无线重拨而不等待。

xl2tpd

luci 安装 xl2tpd

————— 2015-03-30 Update —————
bash 脚本 rel2tp 放在 /usr/bin/ ,用于在掉线之后重连。

1
2
3
4
5
6
7
#!/bin/sh
if [ ! -f "/var/run/l2tp-ZSTU.pid" ]
then
ifup ZSTU
else
exit 0
fi

L2TP 参考链接

在 corn 定时任务里配置 */1 * * * * /usr/bin/rel2tp
启动定时任务 /etc/init.d/crond start
开机启动 /etc/init.d/crond enable