※ASA 無介面觀念,故可隨時使用"show "的指令,不須在前面再加"do"

檢視ASA介面狀態
#show interface outside

清除目前ASA的設定值
#write erase

重啟設備
#reload

儲存設定值
#write memory

定義介面
(config)#interface ethernet number

定義介面名稱
(config-if)#nameif Outside,Inside,DMZ

定義介面安全等級,100為最高等級
(config-if)#sceurity-level
(0-100)


定義內網做NAT轉換
(config)#nat (inside) (0-2147483647) (IP or access-list)

 ※數字0 表示不做NAT,數字1 以上做NAT

例: 
 nat (inside) 0 access-list nonat
 nat (inside) 1 0.0.0.0 0.0.0.0
 

允許ICMP通過 
#access-list Out_ACL extenden permit icmp any any

螢幕顯示的行數設定
 #pager line 24


接口的MTU設定 
#mtu Outside 1500
#mtu Inside 1500

關閉ASDM歷史追縱 
#no asdm history enable

ARP 失效時間
 #arp timeout 14400

在Outside端口套用Out_ACL
#access-group Out_ACL in interface Outside

外部NAT轉換 _靜態
#static (inside,outside) 218.25.38.140 192.168.0.222  

轉換為  inside IP 192.168.0.222  及 outside IP 218.25.38.140


定義ASA之路由
#route outside 0.0.0.0 0.0.0.0 201.1.8.3 1
#route inside 10.0.0.0 255.0.0.0 10.10.25.254 1
#route management 10.10.49.86 255.255.255.255 10.10.24.254 1

 
---------------------------------------------------------------------------------------------------------------------------------
static (inside,outside)
從inside到outside
對來源IP進行轉換
   or   
從outside到inside 
 
 

對目的IP進行轉換
※允許從非安全區訪問安全區,安全區訪問非安全區會隱蔽安全區IP

 
static (outside,inside) 
從inside到outside
對目的IP進行轉換
   or   
從outside到inside 
 
 

對來源IP進行轉換

※允許將非安全區的IP轉換為安全區內的IP
 



文章標籤
全站熱搜
創作者介紹
創作者 鵝 的頭像

mini鵝的天地

發表在 痞客邦 留言(0) 人氣(2,800)