Port Forwarding Multiple Ports to Single IP Address

I have been given the task of moving a Cisco PIX 525 to a Cisco ASA 5515-X. The PIX is running 6.3(5), the ASA 9.1(1). I'm plodding along, but now I am stuck. I would like to port forward multiple ports to a single internal IP address.  The code on the PIX looks like this:

access-list outside_access_in permit tcp any host 12.34.56.78 eq https
access-list outside_access_in permit tcp any host 12.34.56.78 eq 5704
static (inside,outside) 12.34.56.78 172.20.2.12 netmask 255.255.255.255 0 0

How does one go about doing this on the ASA 9.1?

This is my first time working with these new ASA devices.
OmniSystemsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rauenpcCommented:
Create a network object with nat, access list almost like normal... the big difference is that ACL's are all "real IP" access lists so the outside_access_in acl will reference private IP's, not public. I like to go all object based whenever possible.

access-list outside_access_in permit tcp any host 12.34.56.78 eq https
access-list outside_access_in permit tcp any host 12.34.56.78 eq 5704
static (inside,outside) 12.34.56.78 172.20.2.12 netmask 255.255.255.255 0 0


will become

object net EXTHOST-12.34.56.78
host 12.34.56.78

object net HOST-172.20.2.12
host 172.20.2.12
nat (inside,outside) static EXTHOST-12.34.56.78

object service SERVICE-HTTPS
service tcp destination eq https
description HTTPS port 443

object service SERVICE-TCP-5704
service tcp destination eq 5704

OBJECT-group serv EXTSERVICES-HOST-172.20.2.12
service-object object SERVICE-HTTPS
service-object object SERVICE-TCP-5704


access-list outside_access_in permit object-group EXTSERVICES-HOST-172.20.2.12 any object HOST-172.20.2.12



I realize that my example makes it seem like 9.1 requires a TON of extra work... yes and no. There are ways to make 9.1 pretty much as short as 8.2.5 and below, but in the long run going object based for everything will end up make life pretty awesome when it comes to making changes. For example, if you needed to open port 80 to the server, you only need to add the service-object to EXTSERVICES-HOST-172.20.2.12 and it will take effect on all references with no need to touch all the ACL's.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OmniSystemsAuthor Commented:
Thanks for this information. I will be working with it today. Question.

Would the command - "access-group outside_access_in in interface outside" still be needed?
0
OmniSystemsAuthor Commented:
BTW, the object oriented approach makes a lot of sense in the long run.
0
rauenpcCommented:
Yes, attaching the ACL to the interface is required for the inbound functions that you want. You can name the ACL whatever you want of course, but it must be applied to the interface in the direction you need it applied.
0
OmniSystemsAuthor Commented:
Great help and example given was clearly explained.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hardware Firewalls

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.