Managing application connectivity and security policies can be achieved more effectively when following a framework that automates repeatable processes and ensures that the right activities are performed in the right order.
ASA Version 7.2(4)
!
hostname asaEast
domain-name mydomain.com
enable password oNRzEHTKYcYWDvTv encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
name 192.168.2.10 dmz-web-server
name 192.168.1.25 inside-server
name xxx.xxx.xxx.131 outside
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address dhcp setroute
!
interface Vlan3
nameif dmz
security-level 50
ip address 192.168.2.1 255.255.255.0
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
switchport access vlan 3
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
ftp mode passive
dns server-group DefaultDNS
domain-name mydomain.com
same-security-traffic permit inter-interface
access-list outside_access_in extended permit tcp any host outside eq www
access-list dmz_access_in extended permit tcp host dmz-web-server host 192.168.2.25 eq www
access-list dmz_access_in extended permit icmp host dmz-web-server host 192.168.2.25
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
mtu dmz 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
global (inside) 1 192.168.1.75-192.168.1.100 netmask 255.255.255.0
global (dmz) 1 192.168.2.50-192.168.2.75 netmask 255.255.255.0
nat (inside) 1 192.168.1.0 255.255.255.0
nat (dmz) 1 192.168.2.0 255.255.255.0
static (dmz,outside) tcp interface www dmz-web-server www netmask 255.255.255.255
static (inside,dmz) 192.168.2.25 inside-server netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 129.130.27.240 1
timeout xlate 3:00:00
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
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 192.168.2.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!
dhcpd address inside-server-192.168.1.50 inside
dhcpd dns 129.130.254.2 129.130.254.3 interface inside
dhcpd enable inside
!
dhcpd address dmz-web-server-192.168.2.20 dmz
dhcpd dns 129.130.254.2 129.130.254.3 interface dmz
dhcpd enable dmz
!
!
!
prompt hostname context
Cryptochecksum:513f12e2d588cd9f4391b3979b759ef0
: end
ASA Version 7.2(4)
!
hostname asaEast
domain-name netlab.ksu.edu
enable password oNRzEHTKYcYWDvTv encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
name 192.168.2.10 dmz-web-server
name 192.168.1.25 inside-server
name xxx.xxx.xx.131 outside
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address dhcp setroute
!
interface Vlan3
nameif dmz
security-level 50
ip address 192.168.2.1 255.255.255.0
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
switchport access vlan 3
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
ftp mode passive
dns server-group DefaultDNS
domain-name netlab.ksu.edu
same-security-traffic permit inter-interface
access-list outside_access_in extended permit tcp any host outside eq www
access-list dmz_access_in extended permit tcp host dmz-web-server host 192.168.2.25 eq www
access-list dmz_access_in extended permit icmp host dmz-web-server host 192.168.2.25
pager lines 24
logging enable
logging asdm informational
mtu outside 1500
mtu inside 1500
mtu dmz 1500
no failover
monitor-interface outside
monitor-interface inside
monitor-interface dmz
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
global (inside) 1 192.168.1.75-192.168.1.100 netmask 255.255.255.0
global (dmz) 1 192.168.2.50-192.168.2.75 netmask 255.255.255.0
nat (inside) 1 192.168.1.0 255.255.255.0
nat (dmz) 1 192.168.2.0 255.255.255.0
static (dmz,outside) tcp interface www dmz-web-server www netmask 255.255.255.255
static (inside,dmz) 192.168.2.25 inside-server netmask 255.255.255.255
access-group outside_access_in in interface outside
access-group dmz_access_in in interface dmz
route outside 0.0.0.0 0.0.0.0 129.130.27.240 1
timeout xlate 3:00:00
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
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 60
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!
dhcpd address inside-server-192.168.1.50 inside
dhcpd dns xxx.xxx.xxx.2 xxx.xxx.xxx.3 interface inside
dhcpd enable inside
!
dhcpd address dmz-web-server-192.168.2.20 dmz
dhcpd dns xxx.xxx.xxx.2 xxx.xxx.xxx.3 interface dmz
dhcpd enable dmz
!
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
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
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:548ad1dda89517ad98628f7136eac217
: end
asdm image disk0:/asdm-524.bin
asdm location dmz-web-server 255.255.255.255 inside
no asdm history enable
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Open in new window