Complete Pix 501 6.3(3) Configuration with www & smtp server on inside interface

Posted on 2004-09-15
Last Modified: 2013-11-16
A week ago, our company bought a Cisco Pix 501 that I have been trying to setup - without luck I'm afraid. Now I have reset my configuration (configure factory-default) over telnet and want to start right this time.

My question is as follows:
I need to set up access to a server on the inside that is running Exchange Server 2000 (smtp/25), IIS (www/80), Ftp (ftp/20+21).

Internet->Router->Pix->Inside Network
Pix Ip config:
Ethernet0 (outside): DHCP (X.157.33.244 netmask gateway X.
Ethernet1 (inside):

Server Ip address (on inside interface):
A-Records and MX-Records are setup pointing to the server at: X.157.33.247
Explaination: When mail and www requests are sent to X.157.33.247 it should be redirected/mapped to

Please if you could write me how to configure this the right way.

Also if you could tell me how to open additional ports directing to the same server ip at a later time.
Question by:martingents
  • 2
  • 2
LVL 79

Accepted Solution

lrmoore earned 500 total points
ID: 12063831
Basic commands to get you started:

ip address outside dhcp setroute
ip address inside
global (outside) 1 interface
nat (inside) 1 0 0
static (inside,outside) x.157.33.247 netmask
access-list outside_in permit tcp any host x.157.33.247 eq smtp
access-list outside_in permit tcp any host x.157.33.247 eq http
access-list outside_in permit tcp any host x.157.33.247 eq ftp
access-list outside_in permit tcp any host x.157.33.247 eq ftp-data
access-group outside_in in interface outside
no fixup protocol smtp 25

To add more ports to the same server in the future, just add the appropriate access-list entry, then re-apply the acl to the interface (required after changes)


Author Comment

ID: 12065478
Thankyou for your quick response lrmoore, however I still experience some problems.

I have added the script that you suggested, and I have tested that smtp mail IS working both in/out - perfect. Ftp and http however are non functioning, at least not from the inside (DHCP client, example when searching for the corresponding (FQDN for X.

Note that I have two sites running in my IIS on the same port (80), but with different dns-names - always worked before. The FTP also worked before (before Pix that is)

I have included my config ex. passwords, names aso. Maybe this will help:
: Saved
: Written 14:05:38.589 UTC Wed Sep 15 2004
PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password encrypted
passwd encrypted
hostname x
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
no fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
access-list outside-in permit tcp any host X.157.33.247 eq smtp
access-list outside-in permit tcp any host X.157.33.247 eq www
access-list outside-in permit tcp any host X.157.33.247 eq ftp
access-list outside-in permit tcp any host X.157.33.247 eq ftp-data
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside X.157.33.242
ip address inside
ip audit info action alarm
ip audit attack action alarm
pdm location inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 X.157.33.248-X.157.33.252 netmask
global (outside) 1 interface
nat (inside) 1 0 0
nat (inside) 1 0 0
static (inside,outside) X.157.33.247 netmask 0 0

access-group outside-in in interface outside
route outside X.157.33.241 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address inside
dhcpd dns X.242.40.51 X.242.40.3
dhcpd wins
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd domain X.local
dhcpd auto_config outside
dhcpd enable inside
terminal width 80

Author Comment

ID: 12066805
*** New Info ***

A friend of mine tested the services from the outside, and everything seems to work - Perfect!

I still however cannot access inside network ressources by requesting these by their global IP, i.e. X.

Has this something to do with a loop-back command or something similar?

Other than that, thanx a lot lrmoore! :)
LVL 79

Expert Comment

ID: 12066882
Your issue is that from an inside client, going to an inside host, you cannot use the public IP address, you must use the private IP.
Alternatives include:
- Use Alias command on the PIX to fixup dns

- Use internal DNS that resolves to the internal IP vs the public IP
- Use a hosts file to resolve to the internal IP vs the public IP

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

To setup a SonicWALL for policy based routing to be used with the Websense Content Gateway there are several steps that need to be completed. Below is a rough guide for accomplishing this. One thing of note is this guide is intended to assist in the…
From Cisco ASA version 8.3, the Network Address Translation (NAT) configuration has been completely redesigned and it may be helpful to have the syntax configuration for both at a glance. You may as well want to read official Cisco published AS…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
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…

785 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