ASA5510 Natting an inside server to public iip

Whats the most secure way to nat a public ip to an inside server that requires access to from the internet on a specific tcp port ?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Ernie BeekExpertCommented:
Access-list outside permit tcp any host eq port
static (inside,outside) tcp outside_ip port inside_ip port netmask
access-group outside in interface outside

This way you only open up one port to the inside.
Ernie BeekExpertCommented:
Oops, first line should be:
Access-list outside permit tcp any host outside_ip eq port

If your ASA is 8.3 or higher, there are some changes to this though.
cisco20Author Commented:
So for example if the port is rdp 3389 add it to both instances ?

static (inside,outside) tcp outside_ip port inside_ip port
Ernie BeekExpertCommented:
You can also use it to forward one port to another (like 8080 outside to 80 inside) but in this case you can leave both ports the same.

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
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
Network Architecture

From novice to tech pro — start learning today.