系統資源使用的很小功能又強大,尤其是支援L7的過慮還有L7的QOS外掛

不過2.31已經有點小歷史了..裡面L7定義檔都沒有更新,所以只好手動更新了...
http://sourceforge.net/projects/l7-filter/files/
這是Linux L7定義檔的下載也蠻常更新的...目前最新是2009/05/28
我們以這個為範例更新吧,我自己習慣使用Pitty做SSH,不然也可以在機器上直接超作
1.首先以Pitty連線BrazilFW
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-74dbce73e38e9b34d6792a292611a961.jpg)
2.輸入帳號密碼
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-457dd1f2042d1888c3ddb96eff99bdd0.jpg)
3.接下來會出現Menu選單..因該不陌生..
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-5db3b10ec17102577778fd2011471186.jpg)
4.到command命令列底下
不過我們不用Menu所以直接Ctrl+C 跳至Command命令下
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-c0cdc82de679c37f277ef949e910da79.jpg)
5.進了Command下免不了先 ls 查看一下目錄
BrazilFW#ls
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-de3613953b3b20fd4f54d6824331da27.jpg)
6.由於這目錄是在虛擬磁碟上所以把/boot掛載 上來
直接下達"mt"就可以將/boot掛載到 /mnt底下
BrazilFW#mt
BrazilFW#cd mnt
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-54a9141674ed7c95aebfb4c3a2810bdc.jpg)
7.進到開新一個的資料夾名稱叫"l7"
在根目錄下下指令
BrazilFW#mkdir l7
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-02ece95e1f457d7bb5d38ed53fabbd3d.jpg)
8.下載新的定義檔
以Dir 進到 l7 的資料夾內輸入指令
BrazilFW#wget http://downloads.sourceforge.net/project/l7-filter/Protocol%20definitions/2009-05-28/l7-protocols-2009-05-28.tar.gz
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-3a841dbc2f0ad5307a9ad52044297f77.jpg)
9.解壓縮
將下載地東西解壓縮指令是
brazilfw# tar -zxvf l7-protocols-2009-05-28.tar.gz
他會直接解壓縮在同名目錄下
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-a1e8fa00e260563b52e62c0238b63b32.jpg)
10.進到protocols
brazilfw#cd l7-protocols-2009-05-28
brazilfw#cd protocols
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-3b243c6bd876869e81802efd2828a820.jpg)
11.檢查解壓縮的東西
進到protocols資料夾裡面後檢查是否有東西,如果有因該和畫面一樣有很多的pat檔
這就是我們要的定義檔
brazilfw#ls
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-4019e828a809dcd1bd5e777b7a8651b9.jpg)
12.移除舊有的pat
在命令模式輸入已下指令移除舊的定義檔
brazilfw#rm /etc/l7-protocols/*.pat
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-367aef71cc6f260a9899f6c69376c92b.jpg)
13.檢查/etc/l7-protocols 資料夾,輸入已下指令後裡面因該是空空的
brazilfw#cd /
brazilfw#cd /etc/l7-protocols/
brazilfw#ls
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-1ca93c1d6f88f8ab4e7a5cb69bf83960.jpg)
14.複製新的定義檔到系統內
brazilfw# cp /mnt/l7/l7-protocols-2009-05-28/protocols/*.pat /etc/l7-protocols/
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-2f0d321fb9bddfa57081f6a36a6679ad.jpg)
15.檢查系統內的定義檔,裡面因該已經有剛剛複製的定義檔了
brazilfw#cd /etc/l7-protocols
brazilfw#ls
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-38e16b254d5b970ff59b804779612e62.jpg)
16.備份所有資料
brazilfw#backup
![[教學]BrazilFW-2.31.10-Fina 更新L7 定義檔](http://attach.mobile01.com/attach/200908/mobile01-d53df3261e777ba0cb6ff85e5ca5f3b0.jpg)
完成備份後從新開機就會在web介面看到新的定義檔了
第一次寫教學檔加上我對Linux也沒有非常熟有錯誤請各位前輩指教囉...
