Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

global nat


Im using a 5505 asa ver 8.2 between two private networks.

I want to translate all outbound traffic to the outside interface address (pat) which seems fine using:

interface Vlan1

nameif inside

security-level 100

ip address


interface Vlan2

nameif outside

security-level 0

ip address

global (outside) 1 interface

nat (inside) 1

Inbound traffic has a destination of the outside address of the asa.

I then want to translate all inbound traffic targeting the 172.31.113 6 address so it is directed to a single ip address which is a sip router,

so I used;

static (inside,outside) netmask

The inbound translation does not seem to work.

Is this the right config for the inbound translation?

Super Bronze

Re: global nat


If you configure a Static NAT using the "outside" interfaces IP address it should override the Dynamic PAT to my understanding. The one configured with the "global".

Is there a reason that you need to use the same NAT IP address?

If you need to forward some ports using the same IP address then you would have to use Static PAT

static (inside,outside) tcp interface netmask

static (inside,outside) udp interface netmask

Naturally you will also need the ACL rules to allow this traffic from "outside" to "inside"

- Jouni

New Member

Re: global nat

Thanks for the reply Jouni

Subnet A = /24 (my internal nework)

Subnet B = /30 (third party network)

Subnet C = ? (third party network I cant see)

Subnet B connecting the asa outside interface to the other private network has a 30 bit mask so only 2 usable ip addresses. on the outside of the firewall and on the connecting device.

What I need to do is translate outbound traffic from subnet A so it is routable across subnet B to subnet C and visa versa.

I think any easy solution would be to increase subnet B so I have an additional routable ip address. I could then use this address as you suggest above.

static (inside,outside) netmask

What I want to achieve is any inbound traffic from subnet C is translated to the sip gateway address and any outbound traffic which will come from the sip gateway be translated so its routable back to subnet C



Super Bronze

Re: global nat


The above examples of Static PAT basically do so that hosts from Subnet C can connect to the interface IP address of Subnet B ( with the ports used in the configurations.

So you just need to use the "static" commands with the TCP/UDP ports defined and the SIP gateway would be reachable with the IP address on the specified ports from the Subnet C.

So lets take example port TCP/5060 for example and presume Subnet C is

static (inside,outside) tcp interface 5060 5060 netmask

The real/mapped address/port would be -> <--> <-

Subnet C would be able to connect using destination IP address on these ports

SIP gateway would use Dynamic PAT IP towards Subnet C hosts when the SIP gateway initiates/opens the connection.

- Jouni

New Member

Re: global nat

Thanks again Jouni

I understand what you mean now. Ill give this a go and let you know how i get on.