本地转发模式下做Portal集中认证
AP和Client通过DHCP服务器获取IP地址,iMC同时作为Portal认证服务器、Portal Web服务器和RADIUS 服务器,目前出现的问题是可以正常重定向,但是属于用户名和密码之后点击登录提示设备拒绝请求。
能完成Portal重定向说明设备基本配置没有问题,Portal服务器本身是正常工作的。
开启设备调试信息:
Portal received 34 bytes of packet: Type=req_info(9), ErrCode=0, IP=192.168.50.12
*Jun 27 09:23:37:807 2018 AC-Controller PORTAL/7/PACKET:
[ 8 PORT ] [ 2] []
*Jun 27 09:23:37:808 2018 AC-Controller PORTAL/7/PACKET:
02 09 01 00 00 3a 00 00 c0 a8 32 0c 00 00 00 01
a7 ef f7 2b 4e 11 57 f0 ee 28 c2 ff 66 61 8f ec
08 02
*Jun 27 09:23:37:808 2018 AC-Controller PORTAL/7/EVENT: User-SM[192.168.50.12]: Failed to find physical info for ACK_INFO.
*Jun 27 09:23:37:808 2018 AC-Controller PORTAL/7/PACKET:
Portal sent 38 bytes of packet: Type=ack_info(10), ErrCode=0, IP=192.168.50.12
*Jun 27 09:23:37:809 2018 AC-Controller PORTAL/7/PACKET:
[ 10 BASIP ] [ 6] [192.168.90.19]
*Jun 27 09:23:37:809 2018 AC-Controller PORTAL/7/PACKET:
02 0a 01 00 00 3a 00 00 c0 a8 32 0c 00 00 00 01
f4 a2 97 f3 86 f0 fa 4b b4 17 d1 25 d0 c9 37 77
0a 06 c0 a8 5a 13
*Jun 27 09:23:37:813 2018 AC-Controller PORTAL/7/PACKET:
Portal received 48 bytes of packet: Type=req_auth(3), ErrCode=0, IP=192.168.50.12
*Jun 27 09:23:37:813 2018 AC-Controller PORTAL/7/PACKET:
[ 1 USERNAME ] [ 5] [111] [ 2 PASSWORD ] [ 5] [******] [ 10 BASIP ] [ 6] [192.168.90.19]
*Jun 27 09:23:37:813 2018 AC-Controller PORTAL/7/PACKET:
02 03 01 00 00 3a 00 00 c0 a8 32 0c 00 00 00 03
be aa b8 d1 e4 a7 d1 ff f2 73 ab 8c 48 7e 5e 98
01 05 31 31 31 02 05 31 31 31 0a 06 c0 a8 5a 13
*Jun 27 09:23:37:814 2018 AC-Controller PORTAL/7/ERROR: Failed to obtain user physical information when create user.UserIP=192.168.50.12
*Jun 27 09:23:37:814 2018 AC-Controller PORTAL/7/ERROR: Portal is disabled on the interface.
*Jun 27 09:23:37:814 2018 AC-Controller PORTAL/7/PACKET:
Portal sent 38 bytes of packet: Type=ack_auth(4), ErrCode=1, IP=192.168.50.12
*Jun 27 09:23:37:814 2018 AC-Controller PORTAL/7/PACKET:
[ 10 BASIP ] [ 6] [192.168.90.19]
从debuging信息可以看出,重定向完成后服务器发送Type=req_info(9),设备响应Type=ack_info(10)报文,紧接着服务器发送认证请求报文,
Type=req_auth(3),设备收到之后,产生报错
Failed to obtain user physical information when create user.UserIP=192.168.50.12
在生成portal用户的时候无法填充终端物理信息,紧接着设备响应ErrCode=1的认证响应报文,Type=ack_auth(4)
对于ACK_AUTH(Type=4)报文,ErrCode有如下含义:
ErrCode=0,表示设备告诉Portal Server此用户认证成功;
ErrCode=1,表示设备告诉Portal Server此用户认证请求被拒绝;
ErrCode=2,表示设备告诉Portal Server此链接已建立;
ErrCode=3,表示设备告诉Portal Server有一个用户正在认证过程中,请稍后再试;
ErrCode=4 ,表示设备告诉Portal Server此用户认证失败(发生错误);
那为什么会产生这种现象,原因是现场采用的本地转发的集中认证,在采用本地转发模式的无线组网环境中,AC上没有Portal客户端的ARP表项,为了保证合法用户可以进行Portal认证,必须开启无线Portal客户端合法性检查功能。
在设备上添加portal host-check enable命令后问题解决,Portal认证正常。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作