From db504ca2ca57332d4d5f5cb67b45846955ce4e5f Mon Sep 17 00:00:00 2001 From: zhangwei Date: Wed, 7 Nov 2018 13:48:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=A8=E7=BA=BF=E5=B8=AE?= =?UTF-8?q?=E5=8A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nis/web/controller/SystemController.java | 80 ++++++- src/main/webapp/WEB-INF/views/help.jsp | 79 +++++++ src/main/webapp/WEB-INF/views/home.jsp | 13 +- .../online-help/app/DNS_feature_advance.html | 158 +++++++++++++ .../online-help/app/HTTP_feature_advance.html | 171 ++++++++++++++ .../online-help/app/IP_feature_advance.html | 156 ++++++++++++ src/main/webapp/online-help/app/app.html | 201 ++++++++++++++++ .../online-help/app/basic_protocol.html | 198 ++++++++++++++++ .../app/domain_feature_advance.html | 153 ++++++++++++ .../app/payload_feature_advance.html | 165 +++++++++++++ .../online-help/app/ssl_feature_advance.html | 165 +++++++++++++ .../online-help/app/tunnel_behavior.html | 199 ++++++++++++++++ src/main/webapp/online-help/ntc/BGP.html | 200 ++++++++++++++++ src/main/webapp/online-help/ntc/DNS.html | 200 ++++++++++++++++ src/main/webapp/online-help/ntc/FTP.html | 199 ++++++++++++++++ src/main/webapp/online-help/ntc/HTTP_URL.html | 189 +++++++++++++++ .../webapp/online-help/ntc/HTTP_advanced.html | 208 ++++++++++++++++ .../webapp/online-help/ntc/HTTP_website.html | 191 +++++++++++++++ src/main/webapp/online-help/ntc/Mail.html | 197 ++++++++++++++++ .../webapp/online-help/ntc/Mail_advanced.html | 199 ++++++++++++++++ src/main/webapp/online-help/ntc/SSL.html | 201 ++++++++++++++++ .../webapp/online-help/ntc/ip_address.html | 201 ++++++++++++++++ .../webapp/online-help/ntc/ip_white_list.html | 175 ++++++++++++++ src/main/webapp/online-help/ntc/p2p.html | 207 ++++++++++++++++ .../webapp/online-help/ntc/stream_media.html | 198 ++++++++++++++++ src/main/webapp/online-help/ntc/voip.html | 199 ++++++++++++++++ .../proxy/domain_intercept_policy.html | 204 ++++++++++++++++ .../online-help/proxy/https_block_log.html | 209 +++++++++++++++++ .../online-help/proxy/https_block_policy.html | 219 +++++++++++++++++ .../online-help/proxy/https_monitor_log.html | 209 +++++++++++++++++ .../proxy/https_monitor_policy.html | 222 ++++++++++++++++++ .../online-help/proxy/https_redirect_log.html | 209 +++++++++++++++++ .../proxy/https_redirect_policy.html | 220 +++++++++++++++++ .../online-help/proxy/https_replace_log.html | 209 +++++++++++++++++ .../proxy/https_replace_policy.html | 213 +++++++++++++++++ .../proxy/https_whiteList_policy.html | 197 ++++++++++++++++ .../proxy/ip_intercept_policy.html | 216 +++++++++++++++++ .../webapp/online-help/ysp/audio_sample.html | 202 ++++++++++++++++ .../webapp/online-help/ysp/file_digest.html | 202 ++++++++++++++++ .../online-help/ysp/picture_sample.html | 202 ++++++++++++++++ .../webapp/online-help/ysp/video_sample.html | 205 ++++++++++++++++ .../plugins/bootstrap/css/bootstrap.css | 12 +- 42 files changed, 7643 insertions(+), 9 deletions(-) create mode 100644 src/main/webapp/WEB-INF/views/help.jsp create mode 100644 src/main/webapp/online-help/app/DNS_feature_advance.html create mode 100644 src/main/webapp/online-help/app/HTTP_feature_advance.html create mode 100644 src/main/webapp/online-help/app/IP_feature_advance.html create mode 100644 src/main/webapp/online-help/app/app.html create mode 100644 src/main/webapp/online-help/app/basic_protocol.html create mode 100644 src/main/webapp/online-help/app/domain_feature_advance.html create mode 100644 src/main/webapp/online-help/app/payload_feature_advance.html create mode 100644 src/main/webapp/online-help/app/ssl_feature_advance.html create mode 100644 src/main/webapp/online-help/app/tunnel_behavior.html create mode 100644 src/main/webapp/online-help/ntc/BGP.html create mode 100644 src/main/webapp/online-help/ntc/DNS.html create mode 100644 src/main/webapp/online-help/ntc/FTP.html create mode 100644 src/main/webapp/online-help/ntc/HTTP_URL.html create mode 100644 src/main/webapp/online-help/ntc/HTTP_advanced.html create mode 100644 src/main/webapp/online-help/ntc/HTTP_website.html create mode 100644 src/main/webapp/online-help/ntc/Mail.html create mode 100644 src/main/webapp/online-help/ntc/Mail_advanced.html create mode 100644 src/main/webapp/online-help/ntc/SSL.html create mode 100644 src/main/webapp/online-help/ntc/ip_address.html create mode 100644 src/main/webapp/online-help/ntc/ip_white_list.html create mode 100644 src/main/webapp/online-help/ntc/p2p.html create mode 100644 src/main/webapp/online-help/ntc/stream_media.html create mode 100644 src/main/webapp/online-help/ntc/voip.html create mode 100644 src/main/webapp/online-help/proxy/domain_intercept_policy.html create mode 100644 src/main/webapp/online-help/proxy/https_block_log.html create mode 100644 src/main/webapp/online-help/proxy/https_block_policy.html create mode 100644 src/main/webapp/online-help/proxy/https_monitor_log.html create mode 100644 src/main/webapp/online-help/proxy/https_monitor_policy.html create mode 100644 src/main/webapp/online-help/proxy/https_redirect_log.html create mode 100644 src/main/webapp/online-help/proxy/https_redirect_policy.html create mode 100644 src/main/webapp/online-help/proxy/https_replace_log.html create mode 100644 src/main/webapp/online-help/proxy/https_replace_policy.html create mode 100644 src/main/webapp/online-help/proxy/https_whiteList_policy.html create mode 100644 src/main/webapp/online-help/proxy/ip_intercept_policy.html create mode 100644 src/main/webapp/online-help/ysp/audio_sample.html create mode 100644 src/main/webapp/online-help/ysp/file_digest.html create mode 100644 src/main/webapp/online-help/ysp/picture_sample.html create mode 100644 src/main/webapp/online-help/ysp/video_sample.html diff --git a/src/main/java/com/nis/web/controller/SystemController.java b/src/main/java/com/nis/web/controller/SystemController.java index e13557614..a9c46db59 100644 --- a/src/main/java/com/nis/web/controller/SystemController.java +++ b/src/main/java/com/nis/web/controller/SystemController.java @@ -1,11 +1,20 @@ package com.nis.web.controller; +import java.util.ArrayList; +import java.util.List; + import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; +import com.nis.domain.SysMenu; +import com.nis.util.StringUtil; +import com.nis.web.security.UserUtils; + +@Controller @RequestMapping("${adminPath}/sys/") public class SystemController extends BaseController{ @@ -14,7 +23,76 @@ public class SystemController extends BaseController{ return "/sys/sysIndex"; } - + @RequestMapping("help") + public String help(HttpServletRequest request, HttpServletResponse response,ModelMap model){ + List menuList = UserUtils.getMenuList(); + List newList = new ArrayList(); + for(SysMenu menu:menuList){ + if(menu.getIsTop()==1 && !StringUtil.isEmpty(menu.getChildren())){ + boolean topShow = false; + for(SysMenu second:menu.getChildren()){ + boolean secondShow = false; + if(!StringUtil.isEmpty(second.getChildren())&&second.getIsShow()==1){ + for(SysMenu third:second.getChildren()){ + boolean thirdShow = false; + if(!StringUtil.isEmpty(third.getChildren())&&third.getIsShow()==1){ + for(SysMenu fourth:third.getChildren()){ + if(!StringUtil.isEmpty(fourth.getMenuBg())&&fourth.getIsShow()==1){ + newList.add(fourth); + thirdShow = true; + secondShow = true; + } + } + }else{ + if(!StringUtil.isEmpty(third.getMenuBg())&&third.getIsShow()==1){ + thirdShow = true; + secondShow = true; + } + } + if(thirdShow){ + newList.add(third); + } + } + + if(secondShow){ + newList.add(second); + topShow = true; + } + + }else{ + if(!StringUtil.isEmpty(second.getMenuBg())&&second.getIsShow()==1){ + topShow = true; + } + } + } + if(topShow){ + newList.add(menu); + } + + } + + /*if(menu.getChildren()!=null && menu.getChildren().size()>0 && menu.getIsShow()==1){ + newList.add(menu); + }else if(menu.getMenuBg()!=null && !"".equals(menu.getMenuBg())){ + newList.add(menu); + }else if(menu.getId()==1){ + newList.add(menu); + }*/ + + /*if((menu.getParentIds().startsWith("0,1,86,") + || menu.getId()==86 + ||menu.getId()==0 + ||menu.getId()==1) + && menu.getIsShow()==1 + ){ + System.out.println(menu.getParentIds()); + newList.add(menu); + }*/ + + } + model.addAttribute("menuList",newList); + return "/help"; + } } diff --git a/src/main/webapp/WEB-INF/views/help.jsp b/src/main/webapp/WEB-INF/views/help.jsp new file mode 100644 index 000000000..9bdeaa1c3 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/help.jsp @@ -0,0 +1,79 @@ +<%@ page contentType="text/html;charset=UTF-8" %> +<%@ include file="/WEB-INF/include/taglib.jsp"%> + + + + + + + + + + +
+

+ +

+
+
+
+ +
+
+ +
+ + +
+
+
+ + + + + diff --git a/src/main/webapp/WEB-INF/views/home.jsp b/src/main/webapp/WEB-INF/views/home.jsp index 7ebb19695..3ba5d0630 100644 --- a/src/main/webapp/WEB-INF/views/home.jsp +++ b/src/main/webapp/WEB-INF/views/home.jsp @@ -313,7 +313,7 @@ function refreshCache(cacheName){ - + + +
  • + + + +
    + +
    +
    +
      +
    • 源IP:用户的IP地址
    • +
    • 目的IP:网络服务器的IP
    • +
    • 源端口:用户的端口
    • +
    • 目的端口:服务使用的端口
    • +
    • 端口掩码:使用掩码表示的端口
    • +
    • IP范围:表示一段范围内的IP地址
    • +
    • IP掩码:使用掩码方式表示的IP段地址
    • +
    + +
    +
    +
    +
    + +
    +
    +
      +
    • 源IP:报文中的源IP
    • +
    • 目的IP:报文中目的IP
    • +
    • 源端口:报文中的源端口
    • +
    • 目的端口:报文中的目的端口
    • +
    + +
    +
    +
    +
    + +
    +
    +
      +
    • 源IP:与目的IP不同,且合法
    • +
    • 源端口:在0——65535范围以内
    • +
    • 目的IP:与源IP不同,且合法
    • +
    • 目的端口:在0——65535范围以为
    • +
    • IP范围:x.x.x.0——x.x.x.255
    • +
    • IP掩码:x.x.x.x/mask,mask属于16—32
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 黑名单:浏览器证书替换
    • +
    • 白名单:证书未替换
    • +
    +
    +
    +
    +
    + +
    +
    + 配置的生效区域,生效区域包括地区,以及ISP,地区和ISP可组合,即某个地区的某个运营商流量生效, + 或者某个地区的所有流量生效,或者某个运营商的所有流量生效,也可全域生效 +
    +
    +
    +
    + +
    +
    +
      +
    • 来函:必选项,官方或其他组织下达的配置流量管控依据。
    • +
    • 分类:非必选项,配置分类,例如内容安全、网络攻击等。
    • +
    • 性质:非必选项,配置性质,例如政治、暴力、宗教等。
    • +
    • 标签:非必选项,自定义标签。
    • +
    +
    +
    +
    + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/online-help/ysp/audio_sample.html b/src/main/webapp/online-help/ysp/audio_sample.html new file mode 100644 index 000000000..df283fba2 --- /dev/null +++ b/src/main/webapp/online-help/ysp/audio_sample.html @@ -0,0 +1,202 @@ + + + + + + + + + + +online help + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + 音频样例匹配功能,可对网络流量中的音频内容进行分析,找出与用户配置的音频样例相匹配的音视频流量,并执行阻断与监测动作,产生日志 +
    +
    +
    +
    + +
    +
    +
      +
    • 规则名称:统一填写
    • +
    • 执行动作:(阻断与监测)统一填写
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 源文件:上传本地音频文件,将以该文件中包含的音频信息与流量中传输的音频进行匹配,命中后执行配置动作,产生日志
    • +
    • 置信度:当执行动作为监测时,用户可指定匹配命中的最小置信度,置信度可选值为70、80、90、100
    • +
    + +
    +
    +
    +
    + +
    +
    +
      +
    • 上传的本地音频文件大小应不大于20MB
    • +
    • 上传的本地音频文件时长应不大于2分钟
    • +
    • 支持的本地音频文件格式为:mp4,flv,asf,wmv,avi,mpeg,mov,dat,m4v,m4p,m4b,webm,ogv,wav,mp3
    • +
    +
    +
    +
    +
    + +
    +
    + 统一填写 +
    +
    +
    +
    + +
    +
    +
      +
    • 统一填写
    • + +
    +
    +
    +
    +
    + +
    +
    +
  • 首次分析阻断效果:命中样例配置后,客户端收到NTC系统发送的虚假RST报文,如此时该音视频未缓存或下载完成,则中断当前音视频的播放或下载
  • +
  • 后续访问阻断效果:首次分析命中后,会生成该音视频的传输特征,后续访问直接依据传输特征进行阻断
  • +
    +
    +
    +
    + +
    +
    +
      +
    • 对于音视频编码的索引信息在音视频文件尾部的情况,本系统不予支持
    • +
    • 由于音视频内容分析滞后于网络传输,本系统不保证首次观看音视频时的阻断效果
    • +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/online-help/ysp/file_digest.html b/src/main/webapp/online-help/ysp/file_digest.html new file mode 100644 index 000000000..dfccb1388 --- /dev/null +++ b/src/main/webapp/online-help/ysp/file_digest.html @@ -0,0 +1,202 @@ + + + + + + + + + + +online help + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + 文件摘要检测功能,可提取网络流量中传输文件的摘要信息,并找出与用户配置的文件具有相似摘要的流量,命中配置后,执行阻断与监测动作,产生日志 +
    +
    +
    +
    + +
    +
    +
      +
    • 规则名称:统一填写
    • +
    • 执行动作:(阻断与监测)统一填写
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 文件:上传本地文件,该文件将与流量中包含的文件进行匹配,命中后执行配置动作,产生日志
    • +
    • 置信度:当执行动作为监测时,用户可指定匹配命中的最小置信度,置信度可选值为70、80、90、100
    • +
    + +
    +
    +
    +
    + +
    +
    +
      +
    • 上传的本地文件大小应不大于20MB
    • +
    • 支持的本地文件格式为:txt,doc,img,docx,pptx,xlsx,xls,ppt
    • +
    +
    +
    +
    + +
    + +
    +
    + 统一填写 +
    +
    +
    +
    + +
    +
    +
      +
    • 统一填写
    • + +
    +
    +
    +
    +
    + +
    +
    +
  • 首次分析阻断效果:当客户端下载某文件,并命中文件摘要配置后,客户端将收到NTC系统发送的虚假RST报文,如此时该文件未下载完成,则中断当前文件的下载
  • +
  • 后续访问阻断效果:首次分析命中后,会生成该文件的传输特征,后续下载请求直接依据传输特征进行阻断
  • +
    +
    +
    +
    + +
    +
    +
      +
    • 由于文件摘要的分析滞后于网络传输,本系统不保证首次文件下载时的阻断效果
    • +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/online-help/ysp/picture_sample.html b/src/main/webapp/online-help/ysp/picture_sample.html new file mode 100644 index 000000000..0ce8959f6 --- /dev/null +++ b/src/main/webapp/online-help/ysp/picture_sample.html @@ -0,0 +1,202 @@ + + + + + + + + + + +online help + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + 图片样例匹配功能,可对网络流量中的图片内容进行分析,找出与用户配置的图片样例相匹配的图片流量,并执行阻断与监测动作,产生日志 +
    +
    +
    +
    + +
    +
    +
      +
    • 规则名称:统一填写
    • +
    • 执行动作:阻断与监测(统一填写)
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 源文件:上传本地图片文件,将以该文件中包含的图片画面信息与流量中传输的图片进行匹配,命中后执行配置动作,产生日志
    • +
    • 置信度:当执行动作为监测时,用户可指定匹配命中的最小置信度,置信度可选值为70、80、90、100
    • +
    + +
    +
    +
    +
    + +
    +
    +
      +
    • 支持的上传图片格式为:bmp,jpg,tiff,raw,gif
    • +
    +
    +
    +
    + +
    + +
    +
    + 统一填写 +
    +
    +
    +
    + +
    +
    +
      +
    • 统一填写
    • + +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 阻断效果:客户端访问某图片命中图片样例配置后,会生成该图片的传输特征,后续对该图片的访问直接依据传输特征进行阻断
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 对于图片文件大于4MB的图片,本系统不予支持
    • +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/online-help/ysp/video_sample.html b/src/main/webapp/online-help/ysp/video_sample.html new file mode 100644 index 000000000..b3544a08e --- /dev/null +++ b/src/main/webapp/online-help/ysp/video_sample.html @@ -0,0 +1,205 @@ + + + + + + + + + + +online help + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + 视频样例匹配功能,可对网络流量中的视频内容进行分析,找出与用户配置的视频样例相匹配的视频流量,并执行阻断与监测动作,产生日志 +
    +
    +
    +
    + +
    +
    +
      +
    • 规则名称:统一填写
    • +
    • 执行动作:(阻断与监测)统一填写
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 源文件:上传本地视频文件,将以该文件中包含的视频画面信息与流量中传输的视频进行匹配,命中后执行配置动作,产生日志
    • +
    • 置信度:当执行动作为监测时,用户可指定匹配命中的最小置信度,置信度可选值为70、80、90、100
    • +
    + +
    +
    +
    +
    + +
    +
    +
      +
    • 上传的本地视频文件大小应不大于20MB
    • +
    • 上传的本地视频文件时长应不大于2分钟
    • +
    • 支持的本地视频文件格式为:mp4,flv,asf,wmv,avi,mpeg,mov,dat,m4v,m4p,m4b,webm
    • +
    +
    +
    +
    + +
    + +
    +
    + 统一填写 +
    +
    +
    +
    + +
    +
    +
      +
    • 统一填写
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 首次分析阻断效果:命中样例配置后,客户端收到NTC系统发送的虚假RST报文,如此时该视频未缓存或下载完成,则中断当前视频的播放或下载
    • +
    • 后续访问阻断效果:首次分析命中后,会生成该视频的传输特征,后续访问直接依据传输特征进行阻断
    • +
    +
    +
    +
    +
    + +
    +
    +
      +
    • 对于音视频编码的索引信息在音视频文件尾部的情况,本系统不予支持
    • +
    • 对于分辨率大于4兆的视频,本系统不予支持
    • +
    • 由于音视频内容分析滞后于网络传输,本系统不保证首次观看音视频时的阻断效果
    • +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/static/global/plugins/bootstrap/css/bootstrap.css b/src/main/webapp/static/global/plugins/bootstrap/css/bootstrap.css index 3c96fac9c..5fc50fd3f 100644 --- a/src/main/webapp/static/global/plugins/bootstrap/css/bootstrap.css +++ b/src/main/webapp/static/global/plugins/bootstrap/css/bootstrap.css @@ -4967,13 +4967,13 @@ button.list-group-item-danger { border-bottom-color: #337ab7; } .panel-success { - border-color: #abe7ed; } + border-color: #d6e9c6; } .panel-success > .panel-heading { - color: #27a4b0; - background-color: #abe7ed; - border-color: #abe7ed; } + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #abe7ed; } + border-top-color: #d6e9c6; } .panel-success > .panel-heading .badge { color: #abe7ed; background-color: #27a4b0; } @@ -4997,7 +4997,7 @@ button.list-group-item-danger { .panel-warning { border-color: #f9e491; } .panel-warning > .panel-heading { - color: #c29d0b; + color: #5d4d11; background-color: #f9e491; border-color: #f9e491; } .panel-warning > .panel-heading + .panel-collapse > .panel-body {