10-03-2019 10:13 PM - edited 02-21-2020 09:33 AM
I have an ASA-5516-X that I'm migrating an old 5510 to. As an example I have the below, which is trying to take inbound port 54321 and routing that to 'thing:80' inside.
object network thing
host 192.168.1.27
nat (inside,outside) static interface service tcp 54321 www
access-list outside_access_in extended permit tcp any host 192.168.1.27 eq 54321
but connecting from an outside connection to http://<static_ip>:54321 just times out
If I do
packet-tracer input outside tcp 8.8.8.8 60002 <static_ip> 80
it shows all ACL & NAT is fine
If I'm on the inside, I can access the service, so I know it's working
If all the above is OK - how can I see what's stopping it connecting?
Thanks
Solved! Go to Solution.
10-03-2019 11:59 PM - edited 10-03-2019 11:59 PM
You have the ports in your NAT statement swapped around.
Here is the format it should be in:
nat (<REAL-INTF>, <MAPPED-INTF>) static <MAPPED-IP> [service <tcp|udp> <REAL-PORT> <MAPPED-PORT>]
10-03-2019 11:59 PM - edited 10-03-2019 11:59 PM
You have the ports in your NAT statement swapped around.
Here is the format it should be in:
nat (<REAL-INTF>, <MAPPED-INTF>) static <MAPPED-IP> [service <tcp|udp> <REAL-PORT> <MAPPED-PORT>]
10-04-2019 12:35 AM
OMG so I do !! thank you for that spot :)
It all works correctly .. thanks you
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