1. Snort-mysql 패키지 설치하기
[ running as an mysql user with admin privileges ]
$ mysql -u root -p
mysql> CREATE DATABASE snort;
mysql> grant CREATE, INSERT, SELECT, UPDATE on snort.* to snort@localhost;
mysql> grant CREATE, INSERT, SELECT, UPDATE on snort.* to snort;
mysql> SET PASSWORD FOR snort@localhost=PASSWORD('snort-db');
mysql> flush privileges;
[ you can confirm the changes above running ]
mysql> show grants for 'snort'@'localhost';
5. Snort 실행하기
2. Mysql 설정 하기
[ running as an mysql user with admin privileges ]
$ mysql -u root -p
mysql> CREATE DATABASE snort;
mysql> grant CREATE, INSERT, SELECT, UPDATE on snort.* to snort@localhost;
mysql> grant CREATE, INSERT, SELECT, UPDATE on snort.* to snort;
mysql> SET PASSWORD FOR snort@localhost=PASSWORD('snort-db');
mysql> flush privileges;
[ you can confirm the changes above running ]
mysql> show grants for 'snort'@'localhost';
And then you can run the command above as:
$ zcat /usr/share/doc/snort-mysql/create_mysql.gz | mysql -u snort -D snort -psnort-db
4. 설정파일 생성
5. Snort 실행하기