Bug #3510
配置白名单后,非白名单设备可以连接上网
0%
Description
测试步骤:
1.Telnet登陆网关(在Windows CMD窗口输入telnet 192.168.1.1以及对应的账号和密码),进入中间件(telnet命令行下输入saf console,密码upt);设置网关的SSID1模式为白名单模式;
gdbus call -y -d com.ctc.igd1 -o /com/ctc/igd1/Config/WLAN/Devices/1 -m com.ctc.igd1.Properties.SetMulti com.ctc.igd1.WLANConfiguration "{'SSID':<'SSID1_Test'>,'RFBand':< uint32 0>,'BeaconType':<'WPA2'>,'PWD':<'12345678'>,'Enable':<true>, 'AccessRule':< uint32 0>,'MACAccessMode':<uint32 2>}"
2.测试STA1无线连接网关SSID1;
3.测试STA2无线连接网关SSID1;
4.白名单添加测试STA1的MAC,将'683E34D9D991'替换为STA1的MAC;
gdbus call -y -d com.ctc.igd1 -o /com/ctc/igd1/Network/MACWhiteList -m com.ctc.igd1.ObjectManager.AddObject;
gdbus call -y -d com.ctc.igd1 -o /com/ctc/igd1/Network/MACWhiteList/1 -m com.ctc.igd1.Properties.SetMulti com.ctc.igd1.MACWhiteList "{'MAC':<'683E34D9D991'>,'Name':<'testphone'>}"
5.测试STA1无线连接网关SSID1;
6.测试STA2无线连接网关SSID1;
通过标准:
4.步骤6:STA2连接失败;
实际结果:
sta2连接成功