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查看实时地址转换信息

 

 

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