Static NAT/PAT (one-to-one) Cisco ASA 8.2
- September 30th, 2016
- Posted in Documentation
- Write comment
Outside IP: aaa.bbb.ccc.ddd
Inside IP: www.xxx.yyy.zzz
Port: pppp
Identifier for access-list: NAME
This is a simple one to one NAT example. Traffic will go from aaa.bbb.ccc.ddd port pppp to www.xxx.yyy.zzz.
c-asa01(config)# static (inside,outside) aaa.bbb.ccc.ddd www.xxx.yyy.zzz
c-asa01(config)# access-list NAME permit tcp any host aaa.bbb.ccc.ddd eq pppp
c-asa01(config)# access-group NAME in interface outside
Or if you want to NAT and PAT:
Outside IP: aaa.bbb.ccc.ddd
Inside IP: www.xxx.yyy.zzz
Outside Port: pppp
Inside Port: qqqq
Identifier for access-list: NAME
c-asa01(config)# static (inside,outside) tcp aaa.bbb.ccc.ddd pppp www.xxx.yyy.zzz qqqq
c-asa01(config)# access-list NAME permit tcp any host aaa.bbb.ccc.ddd eq pppp
c-asa01(config)# access-group NAME in interface outside
No comments yet.