02-18-2016 11:42 AM - edited 03-12-2019 12:20 AM
Hey guys,
I'd like some help with port forwarding on a 5505 running 9.2(4) code.
I'm trying to forward requests on port 80 on my outside, ISP provided IP to port 8000 on an internal server. Everything inside the ASA is PATing on the outside address.
Here is the relevant config:
object network SERVER_TO_FORWARD
host 10.21.0.51
object network SERVER_TO_FORWARD
nat (inside,outside) static interface service tcp www 8000
nat (inside,outside) after-auto source dynamic ALL_NETWORKS interface
access-list acl_OUTSIDE_IN extended permit tcp any object SERVER_TO_FORWARD eq www
From what I've read, here and other places, this should work. My issue is an ACL drop in the logs, like so:
Feb 18 2016 13:28:55: %ASA-3-710003: TCP access denied by ACL from SOME_OUTSIDE_IP/38152 to outside:MY_OUTSIDE_IP/80
Packet tracer looks fine, other than an RPF check fail because of using the SERVER_TO_FORWARD address. But it passes my ACL and my NAT entry.
Any suggestions?
Thanks.
Solved! Go to Solution.
02-18-2016 12:43 PM
Hi Bellinom,
The NAT services are the wrong way round on the NAT statement. 8000 is the real port where as 80 (mapped port) you say is what users on the outside world connect too which translate to 8000.
object network SERVER_TO_FORWARD
nat (inside,outside) static interface service tcp www 8000
Should be
object network SERVER_TO_FORWARD
nat (inside,outside) static interface service tcp 8000 WWW
The ACL should have the real port i.e. 8000, it appears you have port 80 (www).
access-list acl_OUTSIDE_IN extended permit tcp any object SERVER_TO_FORWARD eq 8000
Joel
02-18-2016 12:43 PM
Hi Bellinom,
The NAT services are the wrong way round on the NAT statement. 8000 is the real port where as 80 (mapped port) you say is what users on the outside world connect too which translate to 8000.
object network SERVER_TO_FORWARD
nat (inside,outside) static interface service tcp www 8000
Should be
object network SERVER_TO_FORWARD
nat (inside,outside) static interface service tcp 8000 WWW
The ACL should have the real port i.e. 8000, it appears you have port 80 (www).
access-list acl_OUTSIDE_IN extended permit tcp any object SERVER_TO_FORWARD eq 8000
Joel
02-18-2016 01:19 PM
Thanks joel, that was exactly the problem.
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