• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 808
  • Last Modified:

Configuration of PIX506e firewall for MS Exchange

I have a Cisco Pix 506E firewall with the configuration below, however the Exchange server cannot receive mail while behind the firewall.

The Exchange server has two NIC cards Local (192.168.1.6) and Wide (xx.xxx.xxx.107) . The wide NIC is a public IP address.
 If I connect the Wide interface on the Exchange server directly to my router and the Local interface to my network, Exchange works fine. If I put the Exchange Server behind the firewall no such luck.

Here is the config of the firewall with IP addresses masked .


PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxxxxxxxxxxxxxxxxx
passwd xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hostname pixfirewall
domain-name xxx-xxx.NET
clock timezone EST -5
clock summer-time EDT recurring
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
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
name 192.168.1.0 LAN_Inside
access-list outbound permit tcp LAN_Inside 255.255.255.0 any eq www
access-list outbound permit tcp LAN_Inside 255.255.255.0 any eq ftp-data
access-list outbound permit tcp LAN_Inside 255.255.255.0 any eq ftp
access-list outbound permit udp LAN_Inside 255.255.255.0 any eq domain
access-list outbound permit tcp LAN_Inside 255.255.255.0 any eq https
access-list outbound permit ip any any
access-list outbound permit tcp LAN_Inside 255.255.255.0 any eq smtp
access-list outbound permit tcp host 192.168.1.6 any eq smtp
access-list outbound deny tcp any any eq smtp log
access-list outbound permit icmp any any
access-list inside_outbound_nat0_acl permit ip any 192.168.1.200 255.255.255.248
access-list outside_cryptomap_dyn_20 permit ip any 192.168.1.200 255.255.255.248
access-list ExchPer permit tcp any host 192.168.1.6 eq www
access-list ExchPer permit tcp any host 192.168.1.6 eq smtp
access-list inside permit icmp any any
access-list inside permit tcp any host xx.xxx.xxx.107 eq smtp
access-list inside permit tcp any host xx.xxx.xxx.107 eq www
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside xx.xxx.xxx.106 255.255.255.248
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool VPN_1 192.168.1.201-192.168.1.205
pdm location 192.168.1.3 255.255.255.255 inside
pdm location 192.168.1.6 255.255.255.255 inside
pdm location xx.xxx.xxx.110 255.255.255.255 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
global (outside) 1 xx.xxx.xxx.108
nat (inside) 0 access-list inside_outbound_nat0_acl
nat (inside) 1 LAN_Inside 255.255.255.0 0 0
static (inside,outside) tcp xx.xxx.xxx.107 smtp 192.168.1.6 smtp netmask 255.255.255.255 0 0
static (inside,outside) tcp xx.xxx.xxx.107 www 192.168.1.6 www netmask 255.255.255.255 0 0
static (inside,outside) xx.xxx.xxx.xxx 192.168.1.6 netmask 255.255.255.255 0 0
access-group outbound in interface inside
route outside 0.0.0.0 0.0.0.0 xx.xxx.xxx.105 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 TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
ntp server 192.168.1.2 source inside
ntp server 129.6.15.29 source outside prefer
http server enable
http LAN_Inside 255.255.255.0 inside
http 192.168.1.3 255.255.255.255 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-MD5
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map interface outside
isakmp enable outside
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption 3des
isakmp policy 20 hash md5
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
vpngroup kevin address-pool VPN_1
vpngroup kevin dns-server 192.168.1.2 192.168.1.3
vpngroup kevin default-domain xxx-xxx.NET
vpngroup kevin idle-time 1800
vpngroup kevin password ********
telnet 192.168.0.0 255.255.255.0 inside
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 outside
ssh timeout 5
management-access inside
console timeout 0
dhcpd address 192.168.1.2-192.168.1.254 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
terminal width 80
Cryptochecksum:1d20e64f7abc19dd15bd4a9ff3dc8254

0
KWhiteNYC
Asked:
KWhiteNYC
1 Solution
 
Cyclops3590Commented:
run this

no fixup protocol smtp 25

that makes it so the pix won't do mailguard which messes up communications with esmtp MTAs like Exchange
0
 
lrmooreCommented:
Cyclops is right about the fixup, but....
You don't have an inbound acl to allow email coming in

access-list inbound permit tcp any xx.xx.xx.107 eq smtp
access-list inbound permit tcp any  xx.xx.xx.107eq www
access-group inbound in interface outside

>static (inside,outside) tcp xx.xxx.xxx.107 smtp 192.168.1.6 smtp netmask 255.255.255.255 0 0
>static (inside,outside) tcp xx.xxx.xxx.107 www 192.168.1.6 www netmask 255.255.255.255 0 0
>static (inside,outside) xx.xxx.xxx.xxx 192.168.1.6 netmask 255.255.255.255 0 0
The last static overrides the first two.
  no static (inside,outside) xx.xxx.xxx.xxx 192.168.1.6 netmask 255.255.255.255 0 0
 clear xlate
 
Now the static matches the acl....

0
 
KWhiteNYCAuthor Commented:
Seems to be working with those changes
0

Featured Post

Identify and Prevent Potential Cyber-threats

Become the white hat who helps safeguard our interconnected world. Transform your career future by earning your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now