Advertisement
Guest User

Untitled

a guest
Jul 12th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1.  
  2.  
  3. Enable extra packages and repos availability: ::
  4.  
  5. cd /opt/
  6. wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
  7. rpm -ivh epel-release-7-10.noarch.rpm
  8.  
  9. subscription-manager repos --enable rhel-7-server-extras-rpms
  10. subscription-manager repos --enable rhel-7-server-optional-rpms
  11.  
  12. Update and install dependencies for Hyperscan ::
  13.  
  14. yum update
  15. yum -y install cmake ragel python-devel bzip2-libs bzip2-devel
  16.  
  17. Install ``boost`` ::
  18.  
  19. wget http://downloads.sourceforge.net/project/boost/boost/1.65.1/boost_1_65_1.tar.gz
  20. tar -zxf boost_1_65_1.tar.gz
  21. cd boost_1_65_1/
  22. ./bootstrap.sh --prefix=/tmp/boost-1.65
  23. ./b2 install
  24. cd ../
  25.  
  26. Install Hyperscan ::
  27.  
  28. git clone https://github.com/01org/hyperscan
  29. cd hyperscan
  30. mkdir build
  31. cd build
  32. cmake -DBUILD_STATIC_AND_SHARED=1 -DBOOST_ROOT=/tmp/boost-1.65/ ../
  33. make
  34. make install
  35. echo "/usr/local/lib64" | sudo tee --append /etc/ld.so.conf.d/usrlocal.conf
  36. ldconfig
  37.  
  38. Suricata dependencies install ::
  39.  
  40. yum update
  41. yum -y install gcc wget libpcap-devel pcre-devel libyaml-devel file-devel \
  42. zlib-devel jansson-devel nss-devel libcap-ng-devel libnet-devel tar make \
  43. lua-devel automake autoconf pkgconfig
  44.  
  45. Suricata installation (with latest Napatech additions) ::
  46.  
  47. cd /opt/
  48. git clone https://github.com/OISF/suricata.git && cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x
  49. ./autogen.sh
  50.  
  51. ./configure --with-libnss-includes=/usr/include/nss/ --with-libnspr-libraries=/usr/lib --with-libnspr-includes=/usr/include/nspr \
  52. --with-libhs-includes=/usr/local/include/hs/ --with-libhs-libraries=/usr/local/lib64/
  53.  
  54. make clean
  55. make
  56. make install-full
  57. ldconfig
  58.  
  59.  
  60. Confirm installation with ::
  61.  
  62. suricata --build-info
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement