cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Welcome to Cisco Firewalls Community


118
Views
0
Helpful
1
Replies
Highlighted
Beginner

open IP to on specific port

Hi!

I have one internal IP and two external IP adresses. I want to use one adress for allowing mail to my server and one address for sending mails to mobile phones.

I am not sure about how the NAT should look like. The ACL is no problem since I have two public adresses.

How do i NAT specific ports for specific adresses? 

10.1.1.2 should be NATted to 15.15.15.15 port 34

10.1.1.2 should be NATted to 15.15.15.16 port 443

/Lajja

1 REPLY 1
Beginner

open IP to on specific port

Hello,

If you are running version 8.3 or above, you can apply the following commands:

object network obj-10.1.1.2.34

host 10.1.1.2

nat (Inside,Outside) static 15.15.15.15 service tcp 34 34 nds:

object network  obj.10.1.1.2.443

host 10.1.1.2

nat (Inside,Outside) static 15.15.15.16 service tcp 443 443

If you are running version 8.2 or less, you will need to apply the following commands:

static (Inside,Outside) tcp 15.15.15.15 34 10.1.1.2 34


static (Inside,Outside) tcp 15.15.15.16 443 10.1.1.2 443

Let me know how it goes.