unissoft-bj / ihostsvc

system services & data services on ihost
0 stars 0 forks source link

chilli 认证下测试录音记录 #41

Open 364913331 opened 9 years ago

364913331 commented 9 years ago

一 、chilli 认证情况下,无法录音

手机连接 WIFI ,DHCP 自动获取:172.16.0.103 地址 打开IE 弹出认证页面 image 没有通过chilli 认证状态 1、开启录音APP 设置 ihost ip 172.16.0.1 。开启录音 image 2、手机未认证 java -jar wms.war 显示信息 image 手机通过认证 chilli_query authorize ip 172.16.0.103 sessiontimeout 8640 3、java -jar wms.war 显示信息 image 4、Ifconfig 信息 image 5、Chilli 状态 image 6、Chilli 配置 image 7、抓包信息 tshark -i eth0 -f 'udp and ether host F8:A4:5F:77:35:E1' image tshark -i eth0:9 -f 'udp and ether host F8:A4:5F:77:35:E1' image tshark -i tun0 -f 'udp and ether host F8:A4:5F:77:35:E1' image 二、chilli 关闭状态录音正常

1、关闭 chilli ifconfig 信息 image 2、关闭 chilli 无法自动获取 IP 、手动设置手机 IP 地址 172.16.0.102 (无法连接Internet、) 3、java -jar wms.war 显示信息 image 4、录音抓包信息 tshark -i eth0 -f 'udp and ether host F8:A4:5F:77:35:E1’ image tshark -i eth0:10 -f 'udp and ether host F8:A4:5F:77:35:E1’ image tshark -i eth0:9 -f 'udp and ether host F8:A4:5F:77:35:E1’ image 三、开启chilli 、修改 config,录音测试 1、 修改 /etc/network/interfaces 添加 eth0:20 image 2、 chilli 状态 image 3、 ifconfig 信息 image 4、java -jar wms.war 显示信息 image 5、手机 chilli 有认证页面 image 6、抓包信息 tshark -i eth0 -f 'udp and ether host F8:A4:5F:77:35:E1' image tshark -i eth0:9 -f 'udp and ether host F8:A4:5F:77:35:E1' image tshark -i tun0 -f 'udp and ether host F8:A4:5F:77:35:E1' image

手机上网 Internet 抓包信息 image

chilli 通过 eth0:10 认证客户端 关闭chilli , ifconfig 显示eth0:10 开启 chilli ,ifconfig 不显示 eth0:10 ,eth0:10 被chilli 占用

配置 /etc/network/interface 增加 eth0:20 网卡 1、配置 eth0:20 在eth0:10 下面无效, 客户端通过 eth0:10 认证,数据从eth0:10 上网 。录音无法抓取从eth0:10 的录音包 2、配置 eth0:20 在 eth0:10 上面,chilli 认证失效,客户端无需认证直接从 eth0:20 连接Internet ,录音正常,chilli 认证eth0:10 端口不起作用

unissoft-bj commented 9 years ago

ihost eth0物理网卡,虚拟成eth0:10给chilli流控;这种情况下wms.war中的录音部分,与chilli有冲突

如果流控生效,则录音程序收不到udp包 如果流控失效(关掉chilli,或者eth0:20在eth0:10前面(interfaces文件中)),则录音程序能收到udp包

解决办法建议: 在wms.war中指定录音udp的源。从eth0获取udp包,ip地址为192.168.100.200;不从eth0:10上获取upd包,eth0:10在chilli启动后消失,chilli会新建一个tun0,使用eth0:10的IP地址(172.16.0.1)

chilli启动后,会关闭172.16.段的所有的interface,只留下一个tun0