02-20-2020 08:44 AM - edited 02-20-2020 09:30 AM
Static NAT(for Webserver) doesn't work while PAT(many ip to 1 ip per port translation, or pat overload) is there
object network NGNIX_WEBSERVER
host 10.150.20.253
nat (INSIDE,OUTSIDE) static 12.x.x.x //webserver
nat (INSIDE,OUTSIDE) source static LAN_EF LAN_EF destination static VPNPOOLA VPNPOOLA ///any connect
nat (INSIDE,OUTSIDE) source dynamic LAN_EF interface ///PAT or pat overload
remember my outside interface IP address is different from 12.x.x.x, but 12.x.x.x to my outside interface from the internet as well, so it's part of our ip space.
I guess I know what's wrong, it's the order of operation,
idk why we have this unusefull phenomena in ASA called auto nat, I have to move that static nat from the bottom to the top of the section 1, how should I do that?
thx
asa(config)# show nat Manual NAT Policies (Section 1) 1 (INSIDE) to (OUTSIDE) source static LAN_EF LAN_EF destination static VPNPOOLA VPNPOOLA translate_hits = 116, untranslate_hits = 145 2 (INSIDE) to (OUTSIDE) source dynamic LAN_EF interface translate_hits = 103003, untranslate_hits = 2022 Auto NAT Policies (Section 2) 1 (INSIDE) to (OUTSIDE) source static NGNIX_WEBSERVER 12.x.x.x translate_hits = 0, untranslate_hits = 4 asa(config)#
I also have an access list tooo
access-list OUTSIDE_TO_NGNIX extended permit tcp any host 10.150.20.253 show access-list access-list OUTSIDE_TO_NGNIX line 2 extended permit tcp any host 10.150.20.253 (hitcnt=255) 0x2a1acd9f
Solved! Go to Solution.
02-20-2020 11:40 AM
Hi,
Move the dynamic NAT rule to Manual NAT Section 3, below your Auto NAT rule.
no nat (INSIDE,OUTSIDE) source dynamic LAN_EF interface
nat (INSIDE,OUTSIDE) after-auto source dynamic LAN_EF interface
HTH
02-20-2020 11:45 AM
there are few option to re-adjust your nat rule. i guess simple one to test is this.
no nat (INSIDE,OUTSIDE) source dynamic LAN_EF interface
!
nat (INSIDE,OUTSIDE) after-auto source dynamic LAN_EF interface
!
once this applied test your connection
02-20-2020 02:29 PM
Move your dynamic NAT to after auto and this should start working for you.
no nat (INSIDE,OUTSIDE) source dynamic LAN_EF interface
nat (INSIDE,OUTSIDE) after-auto source dynamic LAN_EF interface
02-20-2020 11:40 AM
Hi,
Move the dynamic NAT rule to Manual NAT Section 3, below your Auto NAT rule.
no nat (INSIDE,OUTSIDE) source dynamic LAN_EF interface
nat (INSIDE,OUTSIDE) after-auto source dynamic LAN_EF interface
HTH
02-20-2020 11:45 AM
there are few option to re-adjust your nat rule. i guess simple one to test is this.
no nat (INSIDE,OUTSIDE) source dynamic LAN_EF interface
!
nat (INSIDE,OUTSIDE) after-auto source dynamic LAN_EF interface
!
once this applied test your connection
02-20-2020 02:29 PM
Move your dynamic NAT to after auto and this should start working for you.
no nat (INSIDE,OUTSIDE) source dynamic LAN_EF interface
nat (INSIDE,OUTSIDE) after-auto source dynamic LAN_EF interface
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide