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
解決:
- コマンドを入力してください
whereis libdnet
- フィードバックは
libdnet: /usr/lib64/libdnet.so
- システム読み取りパスは
/usr/lib
であるため、システムパスを追加し、libdnet.soの名前をオーバーライドします。 cd /etc/ld.so.conf.d/
vim libdnet.conf
、libdnet.soへのパス、つまり/usr/lib64
/sbin/ldconf
cp /usr/lib64/libdnet.so /usr/lib64/libdnet.1
再度snortを実行し、スニッフィングを開始してパッケージを直接キャッチし、問題を解決します。