【正文】
于接口的 Route 模式設(shè)置對(duì)每個(gè)接口的工作模式進(jìn)行設(shè)置Network Interfaces Ether1/1 Edit 編輯綁定到 trust zone 的接口將 E1/1 接口設(shè)置為 Route 模式為了讓防火墻工作在路由模式下,需要將所有接口都設(shè)置為 route。默認(rèn)配置下,僅有綁定到 Trust Zone 的接口是 NAT 模式? 命令行配置方式set interface e1/1 routesave 設(shè)置路由? 路由表選擇Network Routing Routing Entries ? 增加不同網(wǎng)段間的默認(rèn)路由Network Routing Routing Entries trustvr New,輸入以下內(nèi)容,單擊 OK。Network Address / Netmask : / 0Gateway : Interface: ether1/2 Gateway IP Address : 對(duì)外的網(wǎng)關(guān)地址route list? 命令行配置方式set route set route set route set route save 定義策略? 設(shè)置從內(nèi)到外的安全策略選擇 Policy ,根據(jù)需求,我們要通過定制安全 Policy 實(shí)現(xiàn)允許從 ;以及允許 。方法如下:選擇 PolicyFrom TrustTo UntrustNew點(diǎn)擊 New 按鍵創(chuàng)建新的安全策略輸入以下內(nèi)容,單擊 OK 創(chuàng)建 Policy Source Address : Address Book Entry : 源地址Destination Address: Address book Entry : 目的地址Service : 服務(wù)對(duì)象 Action : 策略的動(dòng)作 Logging : 打開或關(guān)閉流量日志? 設(shè)置從 Untrust 到 Trust 的安全策略選擇 PolicyFrom Untrust To Trust New輸入以下內(nèi)容,單擊 OK 創(chuàng)建 Policy Source Address : Address Book Entry : 源地址Destination Address: Address book Entry : 目的地址Service : 服務(wù)對(duì)象 Action : 策略的動(dòng)作 Logging : 打開或關(guān)閉流量日志 Policy list? 命令行配置方式set address Trust set address Trust set address Untrust set address Untrust set policy id 1 from Trust to Untrust ANY permit set policy id 2 from Trust to Untrust ANY permit set policy id 3 from Untrust to Trust ANY permit set policy id 4 from Untrust to Trust ANY permitsave 四、HA4.網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)圖4.設(shè)置步驟 將兩臺(tái)防火墻的第四個(gè)端口連接在一起,我們設(shè)置將原有防火墻設(shè)置為主防火墻,新增加的防火墻為備份的防火墻,備份的防火墻只連接第四個(gè)端口,其他的端口將在防火墻配置完畢后才連接上 使用終端線纜連接到防火墻的 Console 口,超級(jí)終端參數(shù)設(shè)置為 96008無1無。4.命令行配置方式藍(lán)色字體為在超級(jí)終端上輸入的命令6.、主防火墻配置, (移動(dòng)公司在線使用的 Netscreen204 防火墻)ns204unset interface e4 ip 將端口 4 的 IP 地址刪除, ns204set interface e4 zone ha 將端口 4 和 HA 區(qū)域綁定一起配置 NSRPns204 get nsrp 查看 NSRP 配置信息 nsrp version: cluster info:cluster id not set: nsrp is inactive 默認(rèn)的情況下 NSRP 沒有擊活VSD group info:init hold time: 5heartbeat lost threshold: 3heartbeat interval: 1000(ms)group priority preempt holddown inelig master PB other memberstotal number of vsd groups: 0Total iteration=3808,time=2721060,max=880,min=286,average=714RTO mirror info:run time object sync: disabledping session sync: enabledcoldstart sync donensrp link info:no nsrp link has been defined yetNSRP encryption: disabled more NSRP authentication: disabled NSRP monitor interface: nonenumber of gratuitous arps: 4 (default)track ip: disabledns204 set nsrp cluster id 1 設(shè)置 cluster 組號(hào) ns204(M) set nsrp vsd id 0 設(shè)置 VSD 的組號(hào),這條命令可以不用輸入,因?yàn)?Netscreen防火墻的默認(rèn)的虛擬安全數(shù)據(jù)庫(VSD)的值是 0。ns204(M) set nsrp vsdgroup id 0 priority 50 設(shè)置 NSRP 主設(shè)備的優(yōu)先權(quán)值,priority 值越小,優(yōu)先權(quán)越高。ns204(M) set nsrp rto syn 設(shè)置配置同步ns204(M) set nsrp vsdgroup id 0 monitor interface ether3 設(shè)置防火墻監(jiān)控的端口,假設(shè)端口 3 出現(xiàn)故障或所連接的交換機(jī)出現(xiàn)故障,防火墻的工作狀態(tài)將切換到備份防火墻上。ns204(M) set nsrp vsdgroup id 0 monitor interface ether1 設(shè)置防火墻監(jiān)控的端口,假設(shè)端口 1 出現(xiàn)故障或所連接的交換機(jī)出現(xiàn)故障,防火墻的工作狀態(tài)將切換到備份防火墻上。注:如沒有監(jiān)控端口 2,端口 2 出現(xiàn)故障或連接網(wǎng)絡(luò)出現(xiàn)故障,將不會(huì)激活防火墻工作狀態(tài)切換ns204(M) get nsrpnsrp version: cluster info:cluster id: 1, no namelocal unit id: 5609296active units discovered: index: 0, unit id: 5609296, total number of units: 1VSD group info:init hold time: 5heartbeat lost threshold: 3heartbeat interval: 1000(ms)group priority preempt holddown inelig master PB other members 0 50 no 3 no myself none (備份防火墻還沒有配置,因此主設(shè)備上沒有監(jiān)測到 Backup 防火墻的狀態(tài))total number of vsd groups: 2Total iteration=4682,time=4184162,max=18848,min=286,average=893RTO mirror info:run time object sync: disabledping session sync: enablednsrp link info:no nsrp link has been defined yetNSRP encryption: disabledNSRP authentication: disabled NSRP monitor interface: ether1 ether3 number of gratuitous arps: 4 (default)