人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當(dāng)前位置:蘿卜系統(tǒng) > 網(wǎng)絡(luò)技術(shù)教程 > 詳細(xì)頁面

安裝Win2003 Server下的Snort

安裝Win2003 Server下的Snort

更新時間:2021-12-25 文章作者:未知 信息來源:網(wǎng)絡(luò) 閱讀次數(shù):

網(wǎng)絡(luò)技術(shù)是從1990年代中期發(fā)展起來的新技術(shù),它把互聯(lián)網(wǎng)上分散的資源融為有機(jī)整體,實現(xiàn)資源的全面共享和有機(jī)協(xié)作,使人們能夠透明地使用資源的整體能力并按需獲取信息。資源包括高性能計算機(jī)、存儲資源、數(shù)據(jù)資源、信息資源、知識資源、專家資源、大型數(shù)據(jù)庫、網(wǎng)絡(luò)、傳感器等。 當(dāng)前的互聯(lián)網(wǎng)只限于信息共享,網(wǎng)絡(luò)則被認(rèn)為是互聯(lián)網(wǎng)發(fā)展的第三階段。

snort 是一個強(qiáng)大的輕量級的網(wǎng)絡(luò)入侵檢測系統(tǒng)。它具有實時數(shù)據(jù)流量分析和日志IP 網(wǎng)絡(luò)數(shù)據(jù)包的能力,能夠進(jìn)行協(xié)議分析,對內(nèi)容進(jìn)行搜索/匹配。它能夠檢測各種不同的攻擊方式,對攻擊進(jìn)行實時報警。Snort 可以運行在*nix/Win32 平臺上。

本文將主要介紹Win2003 Server 下Snort 的安裝與配置,關(guān)于Snort 的體系結(jié)構(gòu)和規(guī)則,可以參考其他相關(guān)資。

安裝與配置

首先下載以下軟件包:
acid-0.9.6b23.tar.gz
http://www.cert.org/kb/acid
基于php 的入侵檢測數(shù)據(jù)庫分析控制臺
adodb360.zip
http://php.weblogs.com/adodb
ADOdb(Active Data Objects Data Base)庫for PHP
apache_2.0.46-win32-x86-no_src.msi
http://www.apache.org
Windows 版本的Apache Web 服務(wù)器
jpgraph-1.12.2.tar.gz
http://www.aditus.nu/jpgraph
OO 圖形庫for PHP
mysql-4.0.13-win.zip
http://www.mysql.com
Windows 版本的Mysql 數(shù)據(jù)庫服務(wù)器
php-4.3.2-Win32.zip
http://www.php.net
Windows 版本的php 腳本環(huán)境支持
snort-2_0_0.exe
http://www.snort.org
Windows 版本的Snort 安裝包
WinPcap_3_0.exe
http://winpcap.polito.it/
網(wǎng)絡(luò)數(shù)據(jù)包截取驅(qū)動程序
phpmyadmin-2.5.1-php.zip
http://www.phpmyadmin.net
基于php 的Mysql 數(shù)據(jù)庫管理程序
(需要國外代理訪問)

首先安裝Apache_2.0.46 For Windows

安裝的時候注意,如果你已經(jīng)安裝了IIS 并且啟動了Web Server,因為IIS WebServer 默認(rèn)在TCP 80 端口監(jiān)聽,所以會和Apache WebServer 沖突,我們可以修改Apache WebServer為其他端口。選擇定制安裝,安裝路徑修改為c:\apache 安裝程序會自動建立c:\apache2 目錄,繼續(xù)以完成安裝。

安裝完成后首先修改c:\apache2\conf\httpd.conf,定制安裝完成后,apache web server 默認(rèn)在8080 端口監(jiān)聽,我們修改為其他不常用的高端端口:
修改Listen 8080 為Listen 50080

安裝apache 為服務(wù)方式運行
c:\apache2\bin\apache –k install

添加Apache 對PHP 的支持:
解壓縮php-4.3.2-Win32.zip 至c:\php
拷貝php4ts.dll 至%systemroot%\system32
拷貝php.ini-dist 至%systemroot%\php.ini
修改php.ini
extension=php_gd2.dll
同時拷貝c:\php\extension\php_gd2.dll 至%systemroot%\
以上添加gd 圖形庫支持
在httpd.conf 中添加LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
啟動Apache 服務(wù)
net start apache2
在c:\apache2\htdocs 目錄下新建test.php,
test.php 文件內(nèi)容:
<?phpinfo();?>
使用http://192.168.0.15:50080/test.php
測試php 是否安裝成功

安裝Snort_2_0_0
使用默認(rèn)安裝路徑c:\snort

安裝Mysql
默認(rèn)安裝Mysql 至c:\mysql,
安裝mysql 為服務(wù)方式運行
c:\mysql\bin\mysqld-nt –install
啟動mysql 服務(wù)
net start mysql

ps:Win2003 Server 下如果出現(xiàn)不能啟動mysql,新建my.ini
內(nèi)容為:
[mysqld]
basedir=C:\MySQL
bind-address=127.0.0.1
datadir=C:\MySQL\data

注意其中的basedir 和datadir 目錄是否指向了正確的目錄.
把my.ini 拷貝至%systemroot%目錄下就可以了

配置mysql

為默認(rèn)root 帳號添加口令:
c:\>cd mysql\bin
c:\>mysql mysql
mysql>set password for "root"@"localhost" = password('erFl87tr32Gk');

刪除默認(rèn)的any@%帳號
mysql>delete from user where user='' and host = '%';
mysql>delete from db where user='' and host = '%';
mysql>delete from tables_priv where user='' and host = '%';
mysql>delete from columns_priv where user='' and host = '%';
刪除默認(rèn)的any@localhost 帳號
mysql>delete from user where user ='' and host = 'localhost';
mysql>delete from db where user = '' and host = 'localhost';
mysql>delete from tables_priv where user='' and host = 'localhost';
mysql>delete from columns_priv where user='' and host= 'localhost';
刪除默認(rèn)的root@%帳號
mysql>delete from user where user = 'root' and host = '%';
mysql>delete from db where user = 'root' and `host` = '%';
mysql>delete from tables_priv where user= 'root' and host = '%';
mysql>delete from columns_priv where user = 'root' and host = '%';
這樣只允許root 從localhost 連接

建立snort 運行必須的snort 庫和snort_archive 庫
mysql>create database snort;
mysql>create database snort_archive;

使用c:\snort\contrib 目錄下的create_mysql 腳本建立Snort 運行必須的數(shù)據(jù)表
c:\mysql\bin\mysql -D snort -u root -p < c:\snort\contrib\create_mysql
c:\mysql\bin\mysql -D snort_archive -u root -p < c:\snort\contrib\create_mysql

建立acid 和snort 用戶
mysql> grant usage on *.* to "acid"@"localhost" identified by "acidtest";
mysql> grant usage on *.* to "snort"@localhost" identified by "snorttest";

為acid 用戶和snort 用戶分配相關(guān)權(quán)限
mysql> grant select,insert,update,delete,create,alter on snort .* to "acid"@"localhost";
mysql> grant select,insert on snort .* to "snort"@"localhost";
mysql> grant select,insert,update,delete,create,alter on snort_archive .* to "acid"@"localhost";

安裝adodb:
解壓縮adodb360.zip 至c:\php\adodb 目錄下

安裝acid
解壓縮acid-0.9.6b23.tar.gz 至c:\apache2\htdocs\acid 目錄下

修改acid_conf.php 文件

$DBlib_path = "c:\php\adodb";

$alert_dbname = "snort";
$alert_host = "localhost";
$alert_port = "";
$alert_user = "acid";
$alert_password = "log_snort";

/* Archive DB connection parameters */
$archive_dbname = "snort_archive";
$archive_host = "localhost";
$archive_port = "";
$archive_user = "acid";
$archive_password = "archive_snort";

$ChartLib_path = "c:\php\jpgraph\src";

建立acid 運行必須的數(shù)據(jù)庫:

http://192.168.0.15:50080/acid/acid_db_setup.php
按照系統(tǒng)提示建立

安裝jpgrapg 庫

解壓縮jpgraph-1.12.2.tar.gz 至c:\php\ jpgraph
修改jpgraph.php
DEFINE("CACHE_DIR","/tmp/jpgraph_cache/");

安裝winpcap
配置Snort
編輯c:\snort\etc\snort.conf
需要修改的地方:
include classification.config
include reference.config
改為絕對路徑
include c:\snort\etc\classification.config
include c:\snort\etc\reference.config
設(shè)置snort 輸出alert 到mysql server
output database: alert, mysql, host=localhost user=snort password=snort dbname=snort
encoding=hex detail=full

測試snort 是否正常工作:
c:\snort\bin>snort -c "c:\snort\etc\snort.conf" -l "c:\snort\logs" -d -e -X

-X 參數(shù)用于在數(shù)據(jù)鏈接層記錄raw packet 數(shù)據(jù)
-d 參數(shù)記錄應(yīng)用層的數(shù)據(jù)
-e 參數(shù)顯示/記錄第二層報文頭數(shù)據(jù)
-c 參數(shù)用以指定snort 的配置文件的路徑

本文轉(zhuǎn)自極度深寒網(wǎng)絡(luò)安全技術(shù)站 http://www.ellenzp.com/



網(wǎng)絡(luò)的神奇作用吸引著越來越多的用戶加入其中,正因如此,網(wǎng)絡(luò)的承受能力也面臨著越來越嚴(yán)峻的考驗―從硬件上、軟件上、所用標(biāo)準(zhǔn)上......,各項技術(shù)都需要適時應(yīng)勢,對應(yīng)發(fā)展,這正是網(wǎng)絡(luò)迅速走向進(jìn)步的催化劑。

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統(tǒng)下載排行

網(wǎng)站地圖xml | 網(wǎng)站地圖html
主站蜘蛛池模板: 永靖县| 宣武区| 千阳县| 延寿县| 邯郸市| 南京市| 海原县| 册亨县| 通海县| 高州市| 逊克县| 淮滨县| 普陀区| 怀柔区| 诸城市| 沙洋县| 横峰县| 富民县| 安乡县| 千阳县| 利津县| 通城县| 庆安县| 巫溪县| 清镇市| 台湾省| 武清区| 德清县| 钟祥市| 晋江市| 施甸县| 宁远县| 福泉市| 沙坪坝区| 新兴县| 许昌市| 石楼县| 页游| 新龙县| 镇远县| 巴彦县|