ASA5520 NAT dynamic 與static 衝突

現有一臺CISCO ASA5520,配置NAT如下

nat (inside,outside) source dynamic nat_lan interface
!
object network in-address
 nat (inside,outside) static interface service tcp 4343 4343
object network in-3switch
 nat (inside,outside) static interface service tcp telnet 11111

實際上,外網無法訪問內網的4343端口和telnet 端口

經檢查,發現nat (inside,outside) source dynamic nat_lan interface 存在時,static無效

經測試刪除dynamic 後,static nat生效

其它配置如下

ciscoasa(config)# object network zxl
ciscoasa(config-network-object)#host 192.168.20.23
ciscoasa(config-network-object)#nat (inside,outside) static interface service tcp 3389 3388 

ciscoasa(config-network-object)# object network fileserver
ciscoasa(config-network-object)# host 192.168.20.25
ciscoasa(config-network-object)# nat (inside,outside) static interface service tcp 443 443
 
no nat (inside,outside) source dynamic nat_lan interface
object network nat_lan
nat (inside,outside) static interface

access-list all extended permit ip any any

access-group all in interface outside

驗證NAT信息

show nat detail

 

 Show xlate查看實時地址轉換信息

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章