NAt or Global in PIX

Posted on 2006-03-23
Last Modified: 2010-04-08
Hi guys,

How do I assign fix Ip to my web server ?

Currently I have 5 available IP - .

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

Is this list of command correct ?

global (outside) 1

nat (inside) 1 0 0

static (inside,outside) 0 0
static (inside,outside) 0 0

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

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

    Accepted Solution

    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) netmask
    static (inside,outside) netmask

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

    global (outside) 1 interface
    nat (inside) 1 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.

    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
    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
    route inside

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



    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This is about downgrading PIX Version 8.0(4) & ASDM 6.1(5) to PIX 7.2(4) and ASDM 5.2(4) but with only 64MB RAM and 16MB flash. Background: You have a Cisco Pix 515E which was running on PIX 7.2(4) and its supporting ASDM 5.2(4) without any i…
    This article will cover setting up redundant ISPs for outbound connectivity on an ASA 5510 (although the same should work on the 5520s and up as well).  It’s important to note that this covers outbound connectivity only.  The ASA does not have built…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now