unissoft-bj / ihostsvc

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

ihost系统管理功能 #69

Open unissoft-bj opened 9 years ago

unissoft-bj commented 9 years ago

ihost管理员界面,增加系统管理功能: 管理员界面用密码保护,只允许系统管理员访问

注册ihost节点

确定ihost所属的组织、项目、活动 需要iserver的登录密码 iserver分配项目专属id给ihost ihost更换所服务的组织、项目、活动时,手工操作设置一次

报告位置信息

从管理员手机上获取经纬度,提交给iserver 手动操作,每换一个位置做一次

限制带宽

管理员根据internet线路情况,限制每个用户的带宽 bash /root/ihostset.sh bandwidth 空值 代表 0 ,不限制 bash /root/ihostset.sh bandwidth 20480 40960

限制时长

设置每个login的时长 时长越短,推送频次越高 bash /root/ihostset.sh session 空值 代表 0 ,不限制 bash /root/ihostset.sh session 1200

宽限期

手机断网重连,要求重新认证的期限 bash /root/ihostset.sh idle 空值 代表 0 ,不限制 bash /root/ihostset.sh idle 600

下发DNS

为手机下发的dns 172.16.0.1是默认下发 此处设置的是第二dns(特殊情况172.16.0.1不可用时设置) bash /root/ihostset.sh clientdns # to remove dns2 bash /root/ihostset.sh clientdns 202.106.46.151 # to set dns2

默许网站

未接通internet时,允许访问的域名 .mtxwifi.com,.mtxwifi.net,.ruckuswireless.com是内置域名 bash /root/ihostset.sh garden 空值代表着清除用户域名,恢复到仅内置域名 bash /root/ihostset.sh garden .baidu.com,.sina.com 在内置域名基础上增加百度和新浪

终端发现

开:打开wlan sniffer功能 关:关闭wlan sniffer功能 bash /root/ihostset.sh wlansniff on bash /root/ihostset.sh wlansniff off

网址记录

开:打开lan sniffer功能 关:关闭lan sniffer功能 bash /root/ihostset.sh lansniff on bash /root/ihostset.sh lansniff off

DNS强制

off:无强制解析 on:强制解析到固定ip bash /root/ihostset.sh dnsspoof on 192.168.1.1 # dnsspoof in /etc/dnsmasq.conf bash /root/ihostset.sh dnsspoof on # dnsspoof in /etc/dnsmasq.conf default 1.1.1.1 bash /root/ihostset.sh dnsspoof off # remove dnsspoof in /etc/dnsmasq.conf

上位DNS

eth0静态ip地址时,设置上位dns for dnsmasq 默认192.168.100.100 特殊情况下当192.168.100.100不可用时,设置一个其他dns server bash /root/ihostset.sh upstreamdns 202.106.46.151 # to append a line in /etc/resolv.dnsmasq.conf bash /root/ihostset.sh upstreamdns - # to delete the last line in /etc/resolv.dnsmasq.conf

组网模式

用户选择 :模式1 模式2 模式3 模式4 模式1 wlan1 eth0 wlan1 wlan1

执行 bash /root/ihostmod.sh wlan1 eth0 wlan1 wlan1

模式2 wlan1 wlan0 wlan1 wlan1

执行 bash /root/ihostmod.sh wlan1 wlan0 wlan1 wlan1

模式3 eth0 eth0 wlan1 eth0

执行 bash /root/ihostmod.sh eth0 eth0 wlan1 eth0

模式4 eth0 eth0 x.x.x.x/wlan100 eth0

执行 bash /root/ihostmod.sh x.x.x.x/wlan100 eth0

接入点参数

ssid : 发射的ssid
channel : 频点 vis / hid : 可见/隐藏 open/secu : 开放/加密 psk : 密码 用户输入: SSID 、频点 、选择 可见/隐藏、选择 开放/密码 执行 bash /root/apmod.sh ssid channel vis/hid open/secu psk

无线上联参数

ssid : 接入的ssid open/secu : 开放/加密 psk : 密码 用户输入: SSID 、选择 开放/密码、密码 执行 bash /root/stamod.sh ssid open/secu psk

系统时间

使用网络时间 使用本地时间(用手机或者电脑上的时间) bash /root/ihostset.sh systime local '2015-5-23 21:03:00' bash /root/ihostset.sh systime ntp 空值代表3.cn.pool.ntp.org bash /root/ihostset.sh systime ntp 2.cn.pool.ntp.org

清理测试数据

系统调试过程中产生的数据(mac account lottery survey) 管理员输入一个时间(分钟,默认5分钟) 清理最近n分钟内的数据()

磁盘空间

显示和清理磁盘空间 输入天数 删除录音文件(带lock flag的不删除) 抓包数据(wlan/lan)

系统升级

下载新war包 离线方式:先下载war包到本地,然后通过webpage上传到ihost 在线方式:直接从iserver下载war包到ihost

设置密码

修改和设置管理员密码

重启

重启系统 bash /root/ihostset.sh reboot

关于

显示当前系统版本

unissoft-bj commented 9 years ago

界面设计

image