18

GitHub - qq4108863/himqtt: himqtt是首款完整源码的高性能MQTT物联网防火墙 - MQTT A...

 4 years ago
source link: https://github.com/qq4108863/himqtt
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.TXT

一、HiMQTT是首款完整源码的高性能MQTT物联网防火墙 - MQTT Application FireWall,采用epoll模式支持高并发连接。
    [开源版提供完整的防护功能]
	    1. SSL安全加密反向连接
	    2. 数据库SQL注入
	    3. 跨站脚本攻击(XSS)
	    4、DDOS攻击
	    5、密码暴力破解
	    6. TOPIC黑白名单
	    7. 兼容OWASP的ModSecurity的SQL注入/XSS攻击检测等规则
	    8. epoll模型多核数十万的并发连接
	    ..... 
	  
	    (我们最终努力的目标是防止未知0DAY漏洞和未知攻击)
	    
二、安装步骤  
  1. 安装OpenSSL和libpcre
  CentOS : 
  	yum install openssl openssl-devel
  	yum install -y pcre pcre-devel 
  	
  Debian/Ubuntu:
  	sudo apt-get install openssl libssl-dev
  	apt-get install libpcre3 libpcre3-dev  
  
  2.编译
  解压到任意目录,make完成后生成himqtt.
  
  3.规则
  规则放在和himqtt同一级的rules目录,注意后缀是.conf或者.rule,更多规则请在
  https://github.com/SpiderLabs/owasp-modsecurity-crs/下载,根据需求配置。
  具体请看rules/main.conf详细说明。

  
  4.运行
  通常是himqtt前端运行1884(SSL 加密)端口,后端反向代理1883端口。
  首先保证MQTT服务器1883端口运行正常,1884端口没占用(或者端口在config.cfg里改变配置)
  ./himqtt默认读取当前目录下的confg.cfg文件, 或者./hihimqtt --config /dir/config.cfg
  具体请看config.cfg详细说明, 如果成功打印加载了rules目录下的规则,代表运行成功。
  
  5.MQTT.fx测试
   MQTT.fx配置SSL/TLSL里面打勾,选择TLSv1.2版本,如果选择第一项CA signed server certificate的话,请确认PEM格式的
   证书是CA信任机构签发的。
   具体看doc目录相关图片。
  
三、商业版也开源  
   更多功能如web管理源码、硬件OEM、分布式、高级防御等,请访问http://www.hihttps.com/ 获取商业版。 
  QQ/微信:4108863  邮件:[email protected]
  
   
  
  
  
  

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK