Let's say that the Exchange server has an inside address of 192.168.1.100 and an external address of eip.eip.eip.eip netmask of 255.255.255.0; and the web server has an inside address of 192.168.1.200 and an external address of wip.wip.wip.wip netmask of 255.255.255.0. You would need the following statements
! The following let's everyone send email to your Exchange server
access-list outside-acl permit tcp any host eip.eip.eip.eip eq smtp
! Do the following 3 statements for each external ip address (sip.sip.sip.sip) you want to restrict
access-list outside-acl permit tcp host sip.sip.sip.sip host eip.eip.eip.eip eq pop3
access-list outside-acl permit tcp host sip.sip.sip.sip host eip.eip.eip.eip eq imap
access-list outside-acl permit tcp host sip.sip.sip.sip host wip.wip.wip.wip eq www
! The following 2 statements map the outside addressess to the inside addresses
static (inside,outside) eip.eip.eip.eip 192.168.1.100 255.255.255.255 0 0
static (inside,outside) wip.wip.wip.wip 192.168.1.200 255.255.255.255 0 0
! The following enables the access-list
access-group outside-acl in interface outside
There is another variant of the static statement that does port forwarding, but if the above scenario fits your situation, I think it's cleaner that port forwarding.
Main Topics
Browse All Topics





by: td_milesPosted on 2004-02-18 at 17:08:07ID: 10398738
I can't really see anything wrong with what you are doing. You are correct, the static NAT exists, so all you need to do is add the appropriate entries to the access-list which is what you are doing. Is the SMTP working at the moment ?
You don't show it, but somewhere in the config is there the line:
access-group outside_acl in interface outside
which applies the access list to the outside interface ?
When you tested this, you tested from the IP address that you had allowed and from the outside interface (ie. Internet) of the PIX ? When you tried to access the web server, did you use it's outside IP address ?
If you change your access-list to be
access-list outside_acl permit tcp any host dip.dip.dip.dip eq www
does that work ? (obviously only for testing purposes)