[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

NAt or Global in PIX

Posted on 2006-03-23
3
Medium Priority
?
323 Views
Last Modified: 2010-04-08
Hi guys,

How do I assign fix Ip to my web server ?

Currently I have 5 available IP 60.49.208.220 - 60.49.208.224 .

I want my web server(10.10.1.5) to use 60.49.208.221 and email server to use 60.49.208.222 (10.10.1.10) . The rest remaining IP will be on the inside.

Is this list of command correct ?

global (outside) 1 60.49.208.220-60.49.208.224

nat (inside) 1 10.88.0.0 255.255.0.0 0 0

static (inside,outside) 60.49.208.221 10.10.1.5 0 0
static (inside,outside) 60.49.208.222 10.10.1.10 0 0

access-list outside_access_in permit tcp any host 60.49.208.221 eq www
access-list outside_access_in permit tcp any host 60.49.208.222 eq smtp


Please let me know where I have been wrong ?
0
Comment
Question by:daisan
1 Comment
 
LVL 19

Accepted Solution

by:
nodisco earned 2000 total points
ID: 16278568
You are close!

The problem is that your static nat exists in your global range - this will not work and you need to apply the access-list to your outside interface.

static (inside,outside) 60.49.208.221 10.10.1.5 netmask 255.255.255.255
static (inside,outside) 60.49.208.222 10.10.1.10 netmask 255.255.255.255

access-list outside_access_in permit tcp any host 60.49.208.221 eq www
access-list outside_access_in permit tcp any host 60.49.208.222 eq smtp
access-group outside_access_in in interface outside

global (outside) 1 interface
nat (inside) 1 10.88.0.0 255.255.0.0 0 0

The access-group command applies the access-list to the outside interface
The global (outside) 1 interface command translates all the ips from the matching nat ID (1) to the outside ip address of the PIX - its called PAT.

e.g.
inside hosts 10.88.0.x, 10.88.0.y, 10.88.0.z go out the internet
On the internet their public ip address is now the outside ip address of the pix - If you are short on public ips it gives you 4000 hosts via PAT - port address translation.

One Question - the webservers are 10.10.1.x and the nat inside is 10.88.0.0
Does the 10.10.1.x network exist inside a router from the PIX?  If so you will need a route on the PIX to the inside network via the routers inside ip address.
e.g if the routers inside ip is 10.88.0.10
route inside 10.10.1.0 255.255.255.0 10.88.0.10

If this is unclear or you need further help - just post.
Post up your config if you need it explained clearer

hth




0

Featured Post

Become a Leader in Data Analytics

Gain the power to turn raw data into better business decisions and outcomes in your industry. Transform your career future by earning your MS in Data Analytics. WGU’s MSDA program curriculum features IT certifications from Oracle and SAS.  

Question has a verified solution.

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

There’s a movement in Information Technology (IT), and while it’s hard to define, it is gaining momentum. Some call it “stream-lined IT;” others call it “thin-model IT.”
Powerful tools can do wonders, but only in the right hands.  Nowhere is this more obvious than with the cloud.
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…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

825 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