Part 1
Step 1: Configure Basic Settings on the ASA device.
a. Configure the domain name as thecar1.com.`
b. Configure the hostname as HQ-ASA5506.
c. Configure the INSIDE, OUTSIDE, and DMZ interfaces with the following:
IP address 209.165.200.253/28, nameif OUTSIDE, security-level 1, assign to G1/1
IP address 192.168.10.1/24, nameif INSIDE, security-level 100, assign to G1/2
IP address 192.168.20.1/24, nameif DMZ, security-level 70, assign to G1/3
HQ-ASA5506
enable
Thecar1Admin
conf term
domain-name thecar1.com
hostname HQ-ASA5506
interface g1/1
nameif OUTSIDE
security-level 1
ip address 209.165.200.253 255.255.255.240
no shutdown
interface g1/2
nameif INSIDE
security-level 100
ip address 192.168.10.1 255.255.255.0
no shutdown
//შეიძლება არ მიიღოს აიპი, ამიტომ ვამოწმებთ show int ip br და თუ არ აქვს მიღებული
ვუწერთ თავიდან
interface g1/3
nameif DMZ
security-level 70
ip address 192.168.20.1 255.255.255.0
no shutdown
exit
Step 2: Configure the DHCP service on the ASA device for
the internal network.
a. The DHCP pool is 192.168.10.25 – 192.168.10.35.
b. The DHCP service should provide DNS server (AAA/NTP/syslog server) information.
c. PC0, PC1, and PC2 should receive their addresses over DHCP.
HQ-ASA5506
dhcpd address 192.168.10.25-192.168.10.35 INSIDE
dhcpd dns 192.168.10.10 interface INSIDE
dhcpd option 3 ip 192.168.10.1 არარის აუცილებელი
dhcpd enable INSIDE
Step 3: Configure routing on the ASA.
Configure a default route that will enable hosts on the HQ INTERNAL and DMZ networks to communicate
with outside hosts. Use the IP address of the HQ router interface as the gateway interface.
HQ-ASA5506
route OUTSIDE 0.0.0.0 0.0.0.0 209.165.200.254
HQ G0/0 209.165.200.254
Step 4: Configure Secure Network Management for the ASA
Device.
a. Configure the ASA with NTP and AAA:
1. The ASA is a NTP client to the AAA/NTP/Syslog server.
2. Enable the authentication to the ASA.
3. The authentication key is key 1 with the password is corpkey.
HQ-ASA5506
ntp authenticate
ntp authentication-key 1 md5 corpkey
ntp server 192.168.10.10
AAA/NTP/SyslogSvr NIC 192.168.10.10
ntp trusted-key 1
b. Configure AAA and SSH.
1. Configure the ASA device with AAA authentication using the username of Car1Admin and password
of adminpass01.
2. Configure AAA to use the local database for SSH connections to the console port.
3. Generate a RSA key pair to support with modulus size of 1024 bits.
4. Configure HQ-ASA5506 to accept SSH connections only from the Net Admin workstation.
5. Configure SSH session timeout to be 20 minutes.
HQ-ASA5506
username Car1Admin password adminpass01
aaa authentication ssh console LOCAL
crypto key generate rsa modulus 1024
yes
ssh 192.168.10.250 255.255.255.255 INSIDE
NetAdmin PC NIC 192.168.10.250
ssh timeout 20
Step 5: Configure NAT Service for the ASA device for both
INSIDE and DMZ networks.
a. Create a network object called INSIDE-nat with subnet 192.168.10.0/24 and enable the IP addresses of
the hosts in the internal network to be dynamically translated to access the external network via the outside
interface.
b. Create a network object DMZ-web-server to statically translate the DMZ web server internal IP address to
the outside public IP address 209.165.200.241.
c. Create a network object DMZ-dns-server to statically translate the DMZ DNS server internal IP address to
the outside public IP address 209.165.200.242.
HQ-ASA5506
object network INSIDE-nat
subnet 192.168.10.0 255.255.255.0
nat (inside,outside) dynamic interface
exit
configure terminal
object network DMZ-web-server
host 192.168.20.2
DMZWeb Svr NIC 192.168.20.2
nat (dmz,outside) static 209.165.200.241
exit
configure terminal
object network DMZ-dns-server
host 192.168.20.5
DMZDNS Svr NIC 192.168.20.5
nat (dmz,outside) static 209.165.200.242
exit
Step 6: Configure ACL on the ASA device to implement the
Security Policy.
a. Configure a named extended ACL to permit inside hosts to be translated to the pool of outside IP
addresses. Name the ACL NAT-IP-ALL.
b. Apply NAT-IP-ALL ACL to the DMZ and OUTSIDE interfaces in the inward direction.
c. Configure an ACL to allow access to the DMZ servers from the internet. Create an extended named ACL
(named OUTSIDE-TO-DMZ) to filter incoming traffic to the HQ ASA. The ACL statements should be created in
the order specified in the following guidelines:
(Note: The order of ACL statements is significant only because of the scoring requirements for this
assessment.)
1. The ACL should contain four access control entries (ACEs).
2. HTTP traffic is allowed to DMZ Web Svr.
3. DNS traffic (both TCP and UDP) is allowed to the DMZ DNS server (two separate ACEs).
4. FTP traffic from the Branch administrator workstation is allowed to the DMZ web server.
Note: For the purposes of this assessment, do NOT apply this ACL.
HQ-ASA5506
configure terminal
access-list NAT-IP-ALL extended permit ip any any
access-group NAT-IP-ALL in interface OUTSIDE
access-group NAT-IP-ALL in interface DMZ
access-list OUTSIDE-TO-DMZ extended permit tcp any host 209.165.200.241 eq 80
access-list OUTSIDE-TO-DMZ extended permit tcp any host 209.165.200.242 eq 53
access-list OUTSIDE-TO-DMZ extended permit udp any host 209.165.200.242 eq 53
access-list OUTSIDE-TO-DMZ extended permit tcp host 198.133.219.35 host 209.165.200.241 eq ftp
BranchAdmin NIC 198.133.219.35
end
show run
copy running-config startup-config
Part 2: Configure Layer 2 Security on a Switch
Step 1: Disable Unused Switch Ports
a. Disable all unused switch ports on Switch1.
b. Configure all unused ports in static access mode so that they will not negotiate trunks.
Switch 1
Enable
show ip interface brief | include up - აქ მოცემულ პორტები გამოყენებაშია და არუნდა გავთიშოთ
conf t
interface range f0/2-4, f0/6-9, f0/11-22, g0/2
shutdown
switchport mode access
switchport nonegotiate
Step 2: Implement Port Security
On Switch1, configure port security on all of the switch ports that are connected to hosts according to the
following requirements:
The ports should be configured as static access ports.
The ports should learn a maximum of two MAC addresses.
The ports should record the MAC addresses that have been learned in the device running
configuration.
If a violation occurs, the port should drop packets from host MAC addresses that have not been
learned, increment the violation counter, and generate a syslog message.
Switch 1
interface range f0/1, f0/5, f0/10
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport nonegotiate
Step 3: Implement STP Security
On Switch1, implement STP security measures on the active ports that are connected to hosts.
a. Configure the switch to disable host ports that receive a BPDU.
b. Configure the ports to quickly go into STP forwarding mode without going through the STP transitional
modes. Do this on a port-by-port basis, not on the entire switch.
Switch 1
interface range f0/1, f0/5, f0/10, g0/1
spanning-tree bpduguard enable
spanning-tree portfast
end
copy running-config startup-config
Part 3: Configure a Site-to-Site IPsec VPN between the
HQ and the Branch Routers
Note: The Branch and HQ routers have already been configured with a username of CORPADMIN and a
password of NetSec-Admin1. The enable secret password is RTR-AdminP@55.
Configure a site-to-site IPsec VPN between the HQ and Branch routers according to the requirements
below.
ISAKMP Phase 1 Policy Parameters
Key Distribution Method ISAKMP
EncryptionAlgorithm AES
Numberof Bits 256
HashAlgorithm SHA-1
Key Distribution Method ISAKMP
AuthenticationMethod Pre-share
KeyExchange DH2
IKESA Lifetime 1800
ISAKMPKey Vpnpass101
IPsec Phase 2 Policy Parameters Table
Parameters HQ Router Branch Router
TransformSet Name VPN-SET VPN-SET
TransformSet esp-aesesp-sha-hmac esp-aesesp-sha-hmac
PeerHost Name Branch HQ
PeerIP Address 198.133.219.2 209.165.200.226
EncryptedNetwork 209.165.200.240/28 198.133.219.32/27
CryptoMap Name VPN-MAP VPN-MAP
SAEstablishment ipsec-isakmp ipsec-isakmp
a.Configure ACL 120 on the HQ router to identify the interesting traffic to be sent across the VPN. The
interesting traffic is all IP traffic from the HQ LAN to the Branch LAN.
b.Configure the ISAKMP Phase 1 properties on the HQ router. The crypto ISAKMP policy is 10. Refer to the
ISAKMP Phase 1 Policy Parameters Table for the specific details needed.
c.Configure the ISAKMP Phase 2 properties on the HQ router using 10 as the sequence number. Refer to the
ISAKMP Phase 2 Policy Parameters Table for the specific details needed.
d.Bind the VPN-MAP crypto map to the outgoing interface.
e.Configure IPsec parameters on the Branch router using the same parameters as on the HQ router. Note
that interesting traffic is defined as the IP traffic from the Branch LAN to the LAN that is attached to HQ.
f.Save the running-config, then reload both the HQ and Branch routers.
HQ Router
Username: CORPADMIN
Password: NetSec-Admin1
enable
Password: RTR-AdminP@55
conf ter
access-list 120 permit ip 209.165.200.240 0.0.0.15 198.133.219.32 0.0.0.31
EncryptedNetwork 209.165.200.240/28 198.133.219.32/27
+შებრუნებული მასკა
crypto isakmp policy 10
encryption aes 256
EncryptionAlgorithm AES
Numberof Bits 256
hash sha
HashAlgorithm SHA-1
authentication pre-share
AuthenticationMethod Pre-share
group 2
KeyExchange DH2
lifetime 1800
IKESA Lifetime 1800
exit
crypto isakmp key Vpnpass101 address 198.133.219.2
ISAKMPKey Vpnpass101
PeerIP Address 198.133.219.2
crypto ipsec transform-set VPN-SET esp-aes esp-sha-hmac
TransformSet Name VPN-SET VPN-SET
TransformSet esp-aesesp-sha-hmac esp-aesesp-sha-hmac
crypto map VPN-MAP 10 ipsec-isakmp
CryptoMap Name VPN-MAP VPN-MAP
match address 120
set transform-set VPN-SET
TransformSet Name VPN-SET VPN-SET
set peer 198.133.219.2
PeerIP Address 198.133.219.2
set pfs group2
set security-association lifetime seconds 1800
IKESA Lifetime 1800
exit
int s0/0/0
crypto map VPN-MAP
CryptoMap Name VPN-MAP VPN-MAP
end
copy running-config startup-config
Branch Router
Username: CORPADMIN
Password: NetSec-Admin1
enable
Password: RTR-AdminP@55
conf ter
access-list 120 permit ip 198.133.219.32 0.0.0.31 209.165.200.240 0.0.0.15
crypto isakmp policy 10
encryption aes 256
hash sha
authentication pre-share
group 2
lifetime 1800
exit
crypto isakmp key Vpnpass101 address 209.165.200.226
crypto ipsec transform-set VPN-SET esp-aes esp-sha-hmac
crypto map VPN-MAP 10 ipsec-isakmp
match address 120
set transform-set VPN-SET
set peer 209.165.200.226
set pfs group2
set security-association lifetime seconds 1800
exit
int s0/0/0
crypto map VPN-MAP
end
copy running-config startup-config