Solved

Static NAT PIX

Posted on 2006-06-08
5
571 Views
Last Modified: 2010-04-09
I need to do a static NAT for public ip to a private ip on my network.  The firewall wan is 56.1.1.1 and i have an additional 56.1.1.2.  Private ip = 192.168.1.1.

I need to do PAT for the outside interface so that certain port request on 56.1.1.1 are PATed back to different devices on the inside and also have 56.1.1.2 translate to 192.168.1.1 on a one to one basis.

Can someone provided a sample including access-list please?
0
Comment
Question by:andreacadia
  • 2
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
stressedout2004 earned 500 total points
ID: 16866974

1) For  PAT, you need the following:

global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0

These two commands will allow any host on the internal network that doesn't have a static one is to one natting to use the firewall's WAN IP if they need to go to anywhere outside the network. By default, all outbound traffic is allowed so you don't need to add access-list to allow traffic originating from the inside network back in.

2) For the static one is to one, you need:

static (inside, outside) 56.1.1.2 192.168.1.1 netmask 255.255.255.255
access-list acl_out permit tcp any host 56.1.1.2 eq 25
access-list acl_out permit udp any host 56.1.1.2 eq domain
access-list acl_out permit tcp any host 56.1.1.2 eq www
access-group acl_out in interface outside

The 1st command above statically assigns 56.1.1.2 to 192.168.1.1. The next three are access-rules that allows users from the internet to connect to 56.1.1.2 on port 25, 53 and 80. You will need to modify the rule to suit your needs, the syntax would be the same. The last command applies the access-rule acl_out to the outside interface. You need to apply the access-rules on an interface for it to take effect on this case.
0
 

Author Comment

by:andreacadia
ID: 16867015
how about if i just did this:

access-list acl_out permit ip any host 65.113.90.25

??
0
 
LVL 9

Expert Comment

by:stressedout2004
ID: 16867107
That's fine, however it is not recommended. By doing that, you are opening all ports to the internet on that host.
0
 

Author Comment

by:andreacadia
ID: 16867171
now does this necessarily mean that all traffic will exit sourced as the natted public ip in this case?
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 16869686
If you have a static 1-1 nat then yes, that host will exit sourced as the natted public.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you experienced traffic destined through a Cisco ASA firewall disappears and you do not know if the traffic stops in the firewall or somewhere else? The solution is the capture feature. This feature was released in 6.2(1) and works in all firew…
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question