cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
961
Views
0
Helpful
2
Replies

ASA 5525-X FIrewall/DMZ/Trunking configuration

I have the following configuration in our new ASA 5525-X. Right now we are trying to configure an Exchange server in the DMZ interface. When connected, we were able to send email out, but not receive incoming. I am at the end of my knowledge for nat and access lists with this configuration I've posted, if there's anyone who could verify it.

We are also going to resegment our physical and wireless networks soon, and I created the new trunked VLAN's in the g0/3, g0/4 and g0/7 interfaces. Do those look ok? This version of the ASA is very new to me and I am not sure of the command syntaxes.

I've also attached couple pictures of the planned trunked interfaces and the current interfaces programmed.

Thanks ahead of time,

Marko

***********************

ASA-EDGE-FW# show run
: Saved
:
: Serial Number: FCH19237ZEX
: Hardware: ASA5525, 8192 MB RAM, CPU Lynnfield 2394 MHz, 1 CPU (4 cores)
:
ASA Version 9.2(2)4
!
hostname ASA-EDGE-FW
domain-name abcde.com
enable password 8IOxyuNRb6e8FUEf encrypted
passwd 8IOxyuNRb6e8FUEf encrypted
names
ddns update method ASA-EDGE-FW
ddns both
interval maximum 1 0 0 0
!
!
interface GigabitEthernet0/0
nameif outside
security-level 0
ip address XXX.YYY.ZZZ.109 255.255.255.240
!
interface GigabitEthernet0/1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet0/2
nameif dmz
security-level 50
ip address 172.21.1.1 255.255.255.248
!
interface GigabitEthernet0/3
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/3.300
vlan 300
nameif employee
security-level 20
ip address 172.25.0.1 255.255.240.0
!
interface GigabitEthernet0/3.350
vlan 350
nameif guest
security-level 10
ip address 172.27.0.1 255.255.224.0
!
interface GigabitEthernet0/4
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/4.150
vlan 150
nameif corporate
security-level 100
ip address 172.23.0.1 255.255.254.0
!
interface GigabitEthernet0/5
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/6
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/7
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/7.100
vlan 100
nameif backbone
security-level 100
ip address 172.22.0.1 255.255.254.0
!
interface GigabitEthernet0/7.101
vlan 101
nameif office
security-level 100
ip address 172.22.2.1 255.255.254.0
!
interface GigabitEthernet0/7.102
vlan 102
nameif nk
security-level 100
ip address 172.22.16.1 255.255.255.0
!
interface Management0/0
management-only
shutdown
no nameif
no security-level
no ip address
!
ftp mode passive
clock timezone PST -8
clock summer-time PDT recurring
dns domain-lookup inside
dns server-group DefaultDNS
name-server 192.168.1.9
name-server 192.168.1.2
domain-name abcde.com
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object network obj_any
subnet 0.0.0.0 0.0.0.0
object network obj-192.168.1.0
subnet 192.168.1.0 255.255.255.0
object network obj-172.21.1.2
host 172.21.1.2
object network obj-172.21.1.0
subnet 172.21.1.0 255.255.255.248
object network EmailServer-HTTPS
host 172.21.1.2
object network EmailServer-SMTP
host 172.21.1.2
object network EmailServer-POP3
host 172.21.1.2
object network EmailServer-IMAP
host 172.21.1.2
object network dns-server
host 192.168.1.9
object network inside-subnet
subnet 192.168.1.0 255.255.255.0
object network dmz-subnet
subnet 172.21.1.0 255.255.255.248
object network EmailServer-DNS
host 172.21.1.2
object network EmailServer-SMTP-S
host 172.21.1.2
object network EmailServer-SMTPS
host 172.21.1.2
object network obj-XXX.YYY.ZZZ.108
host XXX.YYY.ZZZ.108
object network outside-subnet
subnet XXX.YYY.ZZZ.96 255.255.255.240
access-list outside_int extended permit tcp any host XXX.YYY.ZZZ.108 eq smtp
access-list outside_int extended permit icmp any any
access-list dmz_int extended permit tcp host 172.21.1.2 eq smtp any
access-list OutsideToInside extended permit tcp any host 172.21.1.2 eq https
access-list OutsideToInside extended permit tcp any host 172.21.1.2 eq smtp
access-list OutsideToInside extended permit tcp any host 172.21.1.2 eq pop3
access-list OutsideToInside extended permit tcp any host 172.21.1.2 eq imap4
access-list OutsideToInside extended permit tcp any host 172.21.1.2 eq domain
access-list OutsideToInside extended permit tcp any host 172.21.1.2 eq 587
access-list OutsideToInside extended permit tcp any host 172.21.1.2 eq 465
access-list dmz_acl extended permit udp any object dns-server eq domain
access-list dmz_acl extended permit ip any any
pager lines 24
logging enable
logging asdm errors
mtu outside 1500
mtu inside 1500
mtu dmz 1500
mtu employee 1500
mtu guest 1500
mtu corporate 1500
mtu backbone 1500
mtu office 1500
mtu nk 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
icmp permit any dmz
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source dynamic obj_any interface
!
object network obj-192.168.1.0
nat (inside,dmz) static obj-192.168.1.0
object network obj-172.21.1.2
nat (dmz,outside) static obj-XXX.YYY.ZZZ.108
object network EmailServer-HTTPS
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp https https
object network EmailServer-SMTP
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp smtp smtp
object network EmailServer-POP3
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp pop3 pop3
object network EmailServer-IMAP
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp imap4 imap4
object network inside-subnet
nat (inside,outside) dynamic interface
object network dmz-subnet
nat (dmz,outside) dynamic interface
object network EmailServer-DNS
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp domain domain
object network EmailServer-SMTP-S
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp 587 587
object network EmailServer-SMTPS
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp 465 465
access-group OutsideToInside in interface outside
access-group dmz_acl in interface dmz
route outside 0.0.0.0 0.0.0.0 XXX.YYY.ZZZ.110 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpoint _SmartCallHome_ServerCA
no validation-usage
crl configure
crypto ca trustpool policy
crypto ca certificate chain _SmartCallHome_ServerCA
certificate ca 6ecc7aa5a7032009b8cebcf4e952d491
308205ec 308204d4 a0030201 0202106e cc7aa5a7 032009b8 cebcf4e9 52d49130
...
6c2527b9 deb78458 c61f381e a4c4cb66
quit
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 5
no ssh stricthostkeycheck
ssh timeout 5
ssh key-exchange group dh-group1-sha1
console timeout 5
threat-detection basic-threat
threat-detection statistics host
threat-detection statistics port
threat-detection statistics protocol
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
inspect icmp
inspect icmp error
class class-default
user-statistics accounting
!
service-policy global_policy global
prompt hostname context
call-home reporting anonymous
Cryptochecksum:d442bd1fe74232e5ecb4ae3cd9a13756
: end
ASA-EDGE-FW#

2 Replies 2

Forgot to mention:

Email server public IP: XXX.YYY.ZZZ.108

Email server private IP in DMZ: 172.21.1.2

Inside IP subnet: 192.168.1.0/24, this will change eventually to 172.22.0.1/23

Marko-

It looks like some of your NAT's have the incorrect interface:

object network EmailServer-HTTPS
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp https https
object network EmailServer-SMTP
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp smtp smtp
object network EmailServer-POP3
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp pop3 pop3
object network EmailServer-IMAP
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp imap4 imap4
object network EmailServer-DNS
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp domain domain
object network EmailServer-SMTP-S
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp 587 587
object network EmailServer-SMTPS
nat (inside,outside) static XXX.YYY.ZZZ.108 service tcp 465 465

Should it not be nat (dmz,outside) ?

This one looks correct and is the only one you need.

object network obj-172.21.1.2
nat (dmz,outside) static obj-XXX.YYY.ZZZ.108