在FreeBSD8.0 使用mentohust登陆 ruijie 锐捷 校园网

来源:互联网 发布:服务器数据安全方案 编辑:程序博客网 时间:2024/05/01 00:08

surf with mentohust in FreeBSD

make sure that the firewall set in the /etc/rc.conf should be

firewall_enable="NO"



1 download mentohust from mentohust download page OR

http://code.google.com/p/mentohust/



2 install mentohust by :

代码:
tar zxvf /path/to/the/mentohust
cd /path/to/the/mentohust
1) ./configure
2) make
3) make install



3 install dhclient
download dhclient form it's home page
install it ,follow the INSTALL.txt

4

代码:
sudo dhclient bge0


@ here the bge0 comes form ifconfig -a
something like these
__________________________________________________________________________
$

代码:
ifconfig -a


bge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0
mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:1a:a0:ff:21:bf
inet6 fe80::21a:a0ff:feff:21bf%bge0 prefixlen 64 scopeid 0x1
inet6 2001:da8:e800:10c0:21a:a0ff:feff:21bf prefixlen 64 autoconf
inet 228.173.22.97 netmask 0xffffff00 broadcast 228.173.22.255
inet6 2002:dac1:1dab:5:21a:a0ff:feff:21bf prefixlen 64 autoconf
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 36:4f:c0:79:9c:5c
ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
lladdr 36.4f.c0.0.8.79.9c.5c.a.2.ff.fe.0.0.0.0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
$
_____________________________________________________________

5

代码:
sudo mentohust


BEFORE THAT| OR at THE VERY MOMENT:
configure all the data,such as account password dhcpmode etc. ,just as what you did
in the archlinux/ubuntu/etc.
OR
you can configure it by sudo gedit /etc/mentohust.conf
______________________________________
PS1:
______________________________________
$

代码:
sudo mentohust


欢迎使用MentoHUST 版本: 0.3.1
Copyright (C) 2009-2010 HustMoon Studio
人到华中大,有甜亦有辣。明德厚学地,求是创新家。
Bug report to

http://code.google.com/p/mentohust/issues/list


请输入用户名: ACCOUNT
??
请输入密码: PASSWORD
??
请选择组播地址(0标准 1锐捷私有 2赛尔): 1
??
请选择DHCP方式(0不使用 1二次认证 2认证后 3认证前): 2
??
** 用户名: ACCOUNT
** 网卡: bge0 #defined in the /etc/mentohust.conf
** 认证超时: 8秒
** 响应间隔: 30秒
** 失败等待: 5秒
** 允许失败: 0次
** 组播地址: 锐捷
** DHCP方式: 认证后
** 通知超时: 5秒
** DHCP脚本: dhclient
** 本机MAC: 00:1a:a0:ff:21:bf
** 使用IP: 0.0.0.0
** 子网掩码: 255.255.255.0
** 认证参数已成功保存到
认证参数已成功保存到/etc/mentohust.conf.
>> 寻找服务器...
** 认证MAC: 00:1a:19:06:18:ec
>> 发送用户名...
>> 发送密码...
** 客户端版本
客户端版本: 3.94
** MD5种子: 5e:54:f4:b9:e6:df:db:b9:ea:cc:0c:11:e9:16:bb:12
** V2校验值: 5c6a265460604460852521c7ffcb6613
>> 认证成功
认证成功!
$$ 系统提示:
��?�‫���?����?���ڡ‬Ż���?����У�������http://xmu.pbb.edu.cn?֪���
>> 正在获取IP...
usage: dhclient [-bdqu] [-c conffile] [-l leasefile] interface
>> 操作结束。
** 本机MAC: 00:1a:a0:ff:21:bf
** 使用IP: 0.0.0.0
** 子网掩码: 255.255.255.0
>> 发送心跳包以保持在线...
___________________________________
PS2:

$

代码:
sudo dhclient bge0


Password:
DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPACK from *18.1*3.12.1
bound to *18.1*3.12.*7 -- renewal in 1800 seconds.
$

wowoto_2010.04.20_@xmu_FR12

原创粉丝点击