分类: BSD
2009-04-02 09:26:12
GRANT ALL PRIVILEGES ON prelude.* TO prelude@'localhost' IDENTIFIED BY 'passwd';
CREATE database prewikka;
GRANT ALL PRIVILEGES ON prewikka.* TO prewikka@'localhost' IDENTIFIED BY 'passwd';在mysql.sql最顶端添加use prelude;mysql -u prelude -p mysql -u prelude -p 添加prelude-managerprelude-admin add prelude-manager --uid 0 --gid 0在/etc/rc.conf 添加prelude_manager_enable="YES"
prelude_lml_enable="YES"修改prelude-manager.confee /usr/local/etc/prelude-manager/prelude-manager.conf设置数据库部分 [db]部分注册prelude-lml在一个界面运行prelude-admin register prelude-lml "idmef:w"--uid 0 --gid 0 在开启个ssh运行prelude-admin registration-server prelude-manager 这里会提示显示个密码 。复制这个密码到运行注册prelude-lms的窗口输入密码在server端输入y 注册成功安装snortee /usr/local/etc/snort/snort.conf修改 output alert_prelude: profile=snort下载rules 放在rules snort -c snort.conf设置rules注册snortprelude-adduser register snort "idmef:w admin:r"--uid X --gid X 在另外一个开prelude-admin registration-server prelude-manager输入密码注册成功安装Prewikka/usr/ports/www/py-prewikkamake install cleanee /usr/local/etc/prewikka/prewikka.conf配置数据库mysql -u prewikka prewikka -p< mysql.sql安装ossec/usr/ports/security/ossec-hids-server
make fetchcd /usr/prots/distfiles解压ossec执行isntall.sh输入cn 中文界面然后按照提示安装就行了在ossec.conf中... yes 注册ossecprelude-adduser registration-server prelude-managerprelude-adduser register OSSEC "idmef:w" localhost --uid ossec --gid ossec启动所有的软件