CentOS7はSnortをインストールします



Centos7 Installs Snort



[CentOS] [Snort] [IDS]
IBM開発者 詳細な中国語のチュートリアルがありますが、それでも問題があります。
正しいインストールコマンドを貼り付けます。

#The version number here may be old. It is recommended to visit the https://www.snort.org/downloads/snort/ directory to find the latest version of the daq-*.centos7.x86_64.rpm file and snort-*. Centos7.x86_64.rpm file sudo yum install https://www.snort.org/downloads/snort/daq-2.0.6-1.centos7.x86_64.rpm sudo yum install https://www.snort.org/downloads/snort/snort-2.9.12-1.centos7.x86_64.rpm

test:snortエラーが報告されない場合、インストールは成功しています。
問題が発生しています:snort: error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory
解決:



  1. コマンドを入力してくださいwhereis libdnet
  2. フィードバックはlibdnet: /usr/lib64/libdnet.so
  3. システム読み取りパスは/usr/libであるため、システムパスを追加し、libdnet.soの名前をオーバーライドします。
  4. cd /etc/ld.so.conf.d/ vim libdnet.conf、libdnet.soへのパス、つまり/usr/lib64
  5. /sbin/ldconf
  6. cp /usr/lib64/libdnet.so /usr/lib64/libdnet.1

再度snortを実行し、スニッフィングを開始してパッケージを直接キャッチし、問題を解決します。