cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3233
Views
0
Helpful
1
Replies

ASA 8.4 - NAT Multiple Ports

chasethechicken
Level 1
Level 1

Can someone please tell me the difference between these two configurations? As far as I am concerned, they accomplish the same thing, but one of them requires more work in creating additional (unneeded) objects. Am I wrong? Do you only use the static PAT configuration when you are altering source/destination ports?

object network OBJ-CITRIX5

host 10.208.10.15

nat (inside,outside) static XXX.XXX.XXX.XXX

object network OBJ-CITRIX6

host 10.208.10.16

nat (inside,outside) static YYY.YYY.YYY.YYY

object-group network OBJ-CITRIX-SERVERS

network host 10.208.10.15

network host 10.208.10.16

object-group service OBJ-CITRIX-PORTS-TCP tcp

port-object eq 3389

port-object eq 1494

object-group service OBJ-CITRIX-PORTS-UDP udp

port-object eq 1604

access-list ACL-OUTSIDE extended permit tcp any object-group OBJ-CITRIX-SERVERS object-group OBJ-CITRIX-PORTS-TCP

access-list ACL-OUTSIDE extended permit udp any object-group OBJ-CITRIX-SERVERS object-group OBJ-CITRIX-PORTS-UDP

access-group ACL-OUTSIDE in interface outside

---VS---

object network OBJ-CITRIX5-3389

host 10.208.10.15

nat (inside,outside) static XXX.XXX.XXX.XXX service tcp 3389 3389

object network OBJ-CITRIX5-1494

host 10.208.10.15

nat (inside,outside) static XXX.XXX.XXX.XXX service tcp 1494 1494

object network OBJ-CITRIX5-1604

host 10.208.10.15

nat (inside,outside) static XXX.XXX.XXX.XXX service udp 1604 1604

object network OBJ-CITRIX6-3389

host 10.208.10.16

nat (inside,outside) static YYY.YYY.YYY.YYY service tcp 3389 3389

object network OBJ-CITRIX6-1494

host 10.208.10.16

nat (inside,outside) static YYY.YYY.YYY.YYY service tcp 1494 1494

object network OBJ-CITRIX6-1604

host 10.208.10.16

nat (inside,outside) static YYY.YYY.YYY.YYY service udp 1604 1604

object-group service OBJ-CITRIX-PORTS-TCP tcp

port-object eq 3389

port-object eq 1494

object-group service OBJ-CITRIX-PORTS-UDP udp

port-object eq 1604

access-list ACL-OUTSIDE extended permit tcp any object-group OBJ-CITRIX-SERVERS object-group OBJ-CITRIX-PORTS-TCP

access-list ACL-OUTSIDE extended permit udp any object-group OBJ-CITRIX-SERVERS object-group OBJ-CITRIX-PORTS-UDP

access-group ACL-OUTSIDE in interface outside

1 Accepted Solution

Accepted Solutions

Jouni Forss
VIP Alumni
VIP Alumni

Hi,

There is a clear different in the above NAT configurations

The first one is Static NAT and the second one is Static PAT.

Static NAT essentially binds the local IP address to the public IP address. It doesnt take into consideration any separate TCP or UDP ports for example. Traffic to the public NAT IP address on any destination port will be forwarded to the local host defined in the Static NAT configuration (provided that other firewall rules allow that)

Static PAT on the other hand only binds a single public port of a single public IP address to a single local port of a local IP address.

Static NAT is usually used when you have a public subnet at your disposal and free to use for your internal servers. Static PAT is used when you only have a single public IP address from the ISP or you want to conserve your public IP addresses.

- Jouni

View solution in original post

1 Reply 1

Jouni Forss
VIP Alumni
VIP Alumni

Hi,

There is a clear different in the above NAT configurations

The first one is Static NAT and the second one is Static PAT.

Static NAT essentially binds the local IP address to the public IP address. It doesnt take into consideration any separate TCP or UDP ports for example. Traffic to the public NAT IP address on any destination port will be forwarded to the local host defined in the Static NAT configuration (provided that other firewall rules allow that)

Static PAT on the other hand only binds a single public port of a single public IP address to a single local port of a local IP address.

Static NAT is usually used when you have a public subnet at your disposal and free to use for your internal servers. Static PAT is used when you only have a single public IP address from the ISP or you want to conserve your public IP addresses.

- Jouni

Review Cisco Networking products for a $25 gift card