Suricata开启Hyperscan加速的方法
2017-09-21 18:40
169 查看
git clone https://github.com/01org/hyperscan cd hyperscan mkdir build cd build cmake -DBUILD_STATIC_AND_SHARED=1 ../
If you have your own libboost headers, use this cmake line instead:
cmake -DBUILD_STATIC_AND_SHARED=1 -DBOOST_ROOT=~/tmp/boost-1.60 ../
Finally, make and make install:
make sudo make install
Compilation can take a long time, but it should in the end look something like this:
Install the project... -- Install configuration: "RELWITHDEBINFO" -- Installing: /usr/local/lib/pkgconfig/libhs.pc -- Up-to-date: /usr/local/include/hs/hs.h -- Up-to-date: /usr/local/include/hs/hs_common.h -- Up-to-date: /usr/local/include/hs/hs_compile.h -- Up-to-date: /usr/local/include/hs/hs_runtime.h -- Installing: /usr/local/lib/libhs_runtime.a -- Installing: /usr/local/lib/libhs_runtime.so.4.2.0 -- Installing: /usr/local/lib/libhs_runtime.so.4.2 -- Installing: /usr/local/lib/libhs_runtime.so -- Installing: /usr/local/lib/libhs.a -- Installing: /usr/local/lib/libhs.so.4.2.0 -- Installing: /usr/local/lib/libhs.so.4.2 -- Installing: /usr/local/lib/libhs.so
Note that you may have to add /usr/local/lib to your ld search path
echo "/usr/local/lib" | sudo tee --append /etc/ld.so.conf.d/usrlocal.conf sudo ldconfig
Suricata
Compilation
Suricata's installation is now quite standard.It's possible to pass --with-libhs-includes=/usr/local/include/hs/ --with-libhs-libraries=/usr/local/lib/, although by default this shouldn't be necessary. Suricata should pick up Hyperscan's pkg-config
file automagically.
When Suricata's compilation succeeded, you should have:
suricata --build-info|grep Hyperscan Hyperscan support: yes
Using Hyperscan
To use the hyperscan support edit your suricata.yaml and change the mpm-algo value to 'hs'.Alternatively, use this commandline option: --set mpm-algo=hs
相关文章推荐
- Suricata开启PF_RING加速的方法
- 2GB Turbo Memory(迅盘)开启Dashboard(自定义程序加速)的方法
- Firefox火狐浏览器强制开启硬件加速方法
- Windows2008 AHCI功能开启方法(提升硬盘加速)
- 五种方法开启GZip压缩为网站加速
- magento加速方法【一】----开启Gzip
- 定义一个交通工具(Vehicle)的类,在测试类Vehicle中的main()中实例化一个交通工具对象,通过方法给它初始化speed,size的值,并打印出来。另外,调用加速,减速的方法对速度进行改变
- Spring开启@Async异步方法(javaconfig配置)
- 禁止开启两个相同程序(双开)方法思路以及破解
- 项目启动后开启定时任务方法-->InitializingBean和ServletContextListener比较
- windows 7 数据执行保护 开启关闭方法
- rac下最简单归档开启方法
- 用CSS开启硬件加速来提高网站性能
- his测试 junit原来不能用的问题解决方法 及 eclipse开发加速小技巧 (from victor)
- Xcode再次开启欢迎界面的方法
- Ubuntu开启root账户ssh远程登录方法汇总
- 快速开启MySQL慢日志查询的方法
- Windows XP操作系统开启WiFi热点的详细方法(图文教程)
- 用CSS开启硬件加速来提高网站性能(转)
- windows下关闭系统开启IPv6服务的方法