NAt or Global in PIX

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 ?
daisanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nodiscoCommented:
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




Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software Firewalls

From novice to tech pro — start learning today.