10.8.1.1 Lab - CCNA Security Comprehensive Lab - Instructor
10.8.1.1 Lab - CCNA Security Comprehensive Lab - Instructor
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 75
Lab - CCNA Security Comprehensive Lab
IP Addressing Table
Objectives
Part 1: Create a Basic Technical Security Policy
Part 2: Configure Basic Device Settings
Part 3: Configure Secure Router Administrative Access
Configure encrypted passwords and a login banner.
Configure the EXEC timeout value on console and vty lines.
Configure login failure rates and vty login enhancements.
Configure Secure Shell (SSH) access and disable Telnet.
Configure local authentication, authorization, and accounting (AAA) user authentication.
Secure the router against login attacks, and secure the IOS image, and configuration file.
Configure a router NTP server and router NTP clients.
Configure router syslog reporting and a syslog server on a local host.
Part 4: Configure a Site-to-Site VPN between ISRs
Configure an IPsec site-to-site VPN between R1 and R3 using the Cisco Configuration Professional
(CCP).
Part 5: Configure a Zone-Based Policy Firewall and Intrusion Prevention System
Configure a Zone-Based Policy Firewall (ZBF) on an ISR using CCP.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 75
Lab - CCNA Security Comprehensive Lab
Background / Scenario
This comprehensive lab is divided into nine parts. The parts should be completed sequentially. In Part 1, you
will create a basic technical security policy. In Part 2, you configure the basic device settings. In Part 3, you
will secure a network router using the command-line interface (CLI) to configure various IOS features,
including AAA and SSH. In Part 4, you will configure a site-to-site VPN between R1 and R3 through the ISP
router (R2). In Part 5, you will configure a ZBF and IPS on an ISR. In Part 6, you will configure a network
switch using the CLI. In Parts 7 to 9, you will configure the ASA firewall functionality and clientless SSL VPN
remote access.
Note: The router commands and output in this lab are from a Cisco 1841 router using Cisco IOS software,
release 15.1(4)M8 (Advanced IP Services image). The switch commands and output are from Cisco WS-
C2960-24TT-L switches with Cisco IOS Release 15.0(2)SE4 (C2960-LANBASEK9-M image). Other routers,
switches, and Cisco IOS versions can be used. See the Router Interface Summary Table at the end of the lab
to determine which interface identifiers to use based on the equipment in the lab. Depending on the router, or
switch model and Cisco IOS version, the commands available and output produced might vary from what is
shown in this lab.
The ASA used with this lab is a Cisco model 5505 with an 8-port integrated switch, running OS version 8.4(2)
and the Adaptive Security Device Manager (ASDM) version 7.2(1) and comes with a Base license that allows
a maximum of three VLANs.
Note: Ensure that the routers and switches have been erased and have no startup configurations.
Instructor Note: Instructions for initializing the network devices are provided in Lab 0.0.0.0. Instructions for
erasing the ASA and accessing the console are provided in this lab.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 75
Lab - CCNA Security Comprehensive Lab
Required Resources
3 Routers (Cisco 1841 with Cisco IOS Release 15.1(4)M8 Advanced IP Services image or comparable)
3 Switches (Cisco 2960 with cryptography IOS image for SSH support – Release 15.0(2)SE4 or
comparable)
1 ASA 5505 (OS version 8.4(2) and ASDM version 7.2(1) and Base license or comparable)
3 PCs (Windows Vista or Windows 7 with CCP 2.5, Cisco VPN Client, latest version of Java, Internet
Explorer, and Flash Player)
Serial and Ethernet cables as shown in the topology
Console cables to configure Cisco networking devices
CCP Notes:
Refer to Lab 0.0.0.0 for instructions on how to install and run CCP.
If the PC on which CCP is installed is running Windows Vista or Windows 7, it may be necessary to right-
click on the CCP icon or menu item, and choose Run as administrator.
In order to run CCP, it may be necessary to temporarily disable antivirus programs and O/S firewalls.
Make sure that all pop-up blockers are turned off in the browser.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 75
Lab - CCNA Security Comprehensive Lab
Step 2: Create a “Network Device Security Guidelines” document for router and switch security.
Create a high-level list of tasks to include for network access and device security. This document should
reinforce and supplement the information presented in a basic Security Policy. It is based on the content of
previous CCNA Security labs and on the networking devices present in the course lab topology.
Note: The “Network Device Security Guidelines” document should be no more than two pages, and is the
basis for the equipment configuration in the remaining parts of the lab.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 75
Lab - CCNA Security Comprehensive Lab
Configure a firewall on edge routers using CCP zone-based firewall tools. The firewall must allow external
SSH connections, VPN traffic, and NTP.
Configure a Cisco IOS Intrusion Prevention System (IPS) on the internal and external interfaces of the
edge router.
Switch Security Measures
The following steps should be taken to secure and harden switches:
1) Configure the enable secret, console, and vty passwords.
2) Encrypt all passwords, which should be a minimum of 10 characters. Passwords should include a
combination of uppercase, lowercase, numbers, and special characters.
3) Configure a login banner warning unauthorized users of the penalties of accessing this device.
4) Configure an administrative user with privilege level 15 and a secret password.
5) Configure NTP to access a centralized synchronized time source.
6) Configure an SSH server and disable Telnet access.
7) Disable the HTTP server.
8) Configure centralized authentication using AAA and RADIUS.
9) Configure forced trunking mode on trunk ports.
10) Change the native VLAN for trunk ports to an unused VLAN.
11) Enable storm control for broadcasts.
12) Configure all active non-trunk ports as access ports.
13) Enable PortFast and BPDU guard on all active ports.
14) Configure port security.
15) Disable unused ports.
Device Operating System and Configuration File Security
1) Back up device Cisco IOS images to a TFTP server.
2) Back up device running configs to a TFTP server.
3) Secure the Cisco IOS image and configuration files.
VPN Remote Access
1) Configure corporate router support for remote access IPsec VPN connections.
2) Provide the Cisco VPN Client on external hosts.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 75
Lab - CCNA Security Comprehensive Lab
Instructor Note: The Cisco ISR 1841 IOS and WICs used in this lab will auto configure the clock rate on
serial DCE interfaces and set it to 2000000.
d. Disable DNS lookup on each router.
R1(config)# no ip domain-lookup
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 75
Lab - CCNA Security Comprehensive Lab
Step 7: Save the basic running configuration for each router and switch.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 75
Lab - CCNA Security Comprehensive Lab
Task 5: Secure against Login Attacks and Secure the IOS and Configuration File on R1
and R3
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 75
Lab - CCNA Security Comprehensive Lab
Step 2: Secure the Cisco IOS image and archive a copy of the running configuration.
a. The secure boot-image command enables Cisco IOS image resilience, which hides the file from the dir
and show commands. The file cannot be viewed, copied, modified, or removed using EXEC mode
commands. (It can be viewed in ROMMON mode.)
R1(config)# secure boot-image
.Dec 17 25:40:13.170: %IOS_RESILIENCE-5-IMAGE_RESIL_ACTIVE: Successfully
secured running image
b. The secure boot-config command takes a snapshot of the router running configuration and securely
archives it in persistent storage (flash).
R1(config)# secure boot-config
*Apr 25 05:08:39.247: %IOS_RESILIENCE-5-CONFIG_RESIL_ACTIVE: Successfully secured
config archive [flash:.runcfg-20140425-050838.ar]
IOS image resilience version 15.1 activated at 05:08:30 UTC Fri Apr 25 2014
Secure archive flash:c1841-advipservicesk9-mz.151-4.M8.bin type is image (elf) []
file size is 45756600 bytes, run size is 45922284 bytes
Runnable image, entry point 0x8000F000, run from ram
IOS configuration resilience version 15.1 activated at 05:08:38 UTC Fri Apr 25 2014
Secure archive flash:.runcfg-20140425-050838.ar type is config
configuration archive size 3272 bytes
What is the name of the archived running config file and on what is the name based?
____________________________________________________________________________________
____________________________________________________________________________________
Answers will vary, but will in the following format: runcfg-20140425-050838.ar. It is based on the date
and time archived by the secure boot-config command.
b. Save the running configuration to the startup configuration from the privileged EXEC mode prompt.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 75
Lab - CCNA Security Comprehensive Lab
Step 2: Configure R3 to log messages to the syslog server using the CLI.
a. Verify that you have connectivity between R3 and PC-C by pinging the R1 Fa0/1 interface IP address
172.16.1.3. If it is unsuccessful, troubleshoot as necessary before continuing.
b. NTP was configured in Task 2 to synchronize the time on the network. Displaying the correct time and
date in syslog messages is vital when using syslog to monitor a network. If the correct time and date of a
message is not known, it can be difficult to determine what network event caused the message.
Verify that the timestamp service for logging is enabled on the router using the show run command. Use
the service timestamps log datetime msec command if the timestamp service is not enabled.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 75
Lab - CCNA Security Comprehensive Lab
Step 2: Verify the IOS IPS signature package location and TFTP server setup.
a. Verify connectivity between R3 and PC-C, the TFTP server, using the ping command.
b. Start Tftpd32 (or other TFTP server) and set the default directory to the one with the IPS signature
package in it. Note the filename for use in the next step.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 75
Lab - CCNA Security Comprehensive Lab
f. On PC-C, open the public key file and copy the text that is between the phrase “key-string” and the word
“quit”. In the Configure Public Key section, paste the text into the Key field.
g. In the Config Location and Category window, specify the flash:/ipsdir/ directory name as the location to
store the signature information.
h. In the Config Location and Category window > Choose Category field, select basic.
i. Click Next to display the Summary window, and click Finish.
j. On the Deliver Configuration to Device screen, click Deliver to deliver the commands to the router.
Note: Allow the signature configuration process to complete. This can take several minutes.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 75
Lab - CCNA Security Comprehensive Lab
Step 1: On R3 (PC-C), use CCP to test the IPsec VPN tunnel between the two routers.
a. On the CCP menu bar, click Configure > Security > VPN > Site-to-Site VPN and select the Edit Site-
to-Site VPN tab.
b. In the Edit Site to Site VPN tab, select the VPN you just configured, and click Test Tunnel.
c. When the VPN Troubleshooting window displays, click Start to have CCP troubleshoot the tunnel.
d. When the CCP Warning window displays, indicating that CCP will enable router debugs and generate
some tunnel traffic, click Yes to continue.
e. In the next VPN Troubleshooting window, the IP address of the R3 Fa0/1 interface in the source network
is displayed by default (172.16.1.1). Enter the IP address of the R1 Loopback 1 interface in the
Destination Network field (172.20.1.1), and click Continue to begin the debugging process.
If the debug is successful, you should see an Information window indicating that troubleshooting was
successful and the tunnel is up.
Step 2: Ping from PC-C to the R1 Lo1 interface at 172.20.1.1 to generate some interesting traffic.
Step 3: Issue the show crypto isakmp sa command on R3 to view the security association
created.
R3# show crypto isakmp sa
IPv4 Crypto ISAKMP SA
dst src state conn-id slot status
10.10.10.1 10.20.20.1 QM_IDLE 1001 0 ACTIVE
Step 4: Issue the show crypto ipsec sa command on R1 to see how many packets have been
received from R3 and decrypted by R1.
R1# show crypto ipsec sa
interface: Serial0/0/0
Crypto map tag: SDM_CMAP_1, local addr 10.10.10.1
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 17 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 18 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 19 of 75
Lab - CCNA Security Comprehensive Lab
S1(config-if-range)# shutdown
S1(config-if-range)# interface range gigabitethernet0/1 - 2
S1(config-if-range)# shutdown
Step 3: Save the running configuration to the startup configuration for each switch.
Step 2: Bypass Setup Mode and configure the ASDM VLAN interfaces using the CLI.
a. When prompted to preconfigure the firewall through interactive prompts (Setup mode), respond with no.
Pre-configure Firewall now through interactive prompts [yes]? no
b. Enter privileged EXEC mode. The password should be blank (no password) at this point.
c. Enter global configuration mode. Respond with no to the prompt to enable anonymous reporting.
d. The VLAN 1 logical interface will be used by PC-B to access ASDM on ASA physical interface E0/1.
Configure interface VLAN 1 and name it inside. The Security Level should be automatically set to the
highest level of 100. Specify IP address 192.168.10.1 and subnet mask 255.255.255.0.
ciscoasa(config)# interface vlan 1
ciscoasa(config-if)# nameif inside
INFO: Security level for "inside" set to 100 by default.
ciscoasa(config-if)# ip address 192.168.1.1 255.255.255.0
ciscoasa(config-if)# exit
e. Enable physical interface E0/1 and verify the E0/1 and VLAN 1 interface status. The status and protocol
for interface E0/1 and VLAN 1 should be up/up.
ciscoasa(config)# interface e0/1
ciscoasa(config-if)# no shut
ciscoasa(config-if)# exit
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 20 of 75
Lab - CCNA Security Comprehensive Lab
Step 3: Configure and verify access to the ASA from the inside network.
a. Use the http command to configure the ASA to accept HTTPS connections and to allow access to ASDM
from any host on the inside network 192.168.10.0/24.
ciscoasa(config)# http server enable
ciscoasa(config)# http 192.168.1.0 255.255.255.0 inside
b. Open a browser on PC-B and test the HTTPS access to the ASA by entering https://192.168.1.1.
c. From the ASDM Welcome page, click Run ASDM. When prompted for a username and password, leave
them blank and click OK.
Task 2: Configure Basic ASA Settings Using the ASDM Startup Wizard
Step 1: Access the Configuration menu and launch the Startup wizard.
At the top left of the screen, click Configuration > Launch Startup wizard.
Step 2: Configure the hostname, domain name, and the enable password.
a. On the first Startup wizard screen, select the Modify Existing Configuration option.
b. On the Startup Wizard Step 2 screen, configure the ASA hostname CCNAS-ASA and domain name
ccnasecurity.com. Change the enable mode password from blank (no password) to ciscoenapa55.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 21 of 75
Lab - CCNA Security Comprehensive Lab
c. On the Startup Wizard Step 5 screen – Interface IP Address Configuration, enter an Outside IP address
of 209.165.200.10 and Mask 255.255.255.248.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 22 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 23 of 75
Lab - CCNA Security Comprehensive Lab
CCNAS-ASA(config-if)# security-level 70
CCNAS-ASA(config-if)# no shut
b. Assign ASA physical interface E0/2 to DMZ VLAN 3 and enable the interface.
CCNAS-ASA(config-if)# interface Ethernet0/2
CCNAS-ASA(config-if)# switchport access vlan 3
CCNAS-ASA(config-if)# no shut
c. Display the status for all ASA interfaces using the show interface ip brief command.
CCNAS-ASA # show interface ip brief
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 unassigned YES unset up up
Ethernet0/1 unassigned YES unset up up
Ethernet0/2 unassigned YES unset up up
Ethernet0/3 unassigned YES unset down down
Ethernet0/4 unassigned YES unset down down
Ethernet0/5 unassigned YES unset down down
Ethernet0/6 unassigned YES unset down down
Ethernet0/7 unassigned YES unset down down
Internal-Data0/0 unassigned YES unset up up
Internal-Data0/1 unassigned YES unset up up
Vlan1 192.168.1.1 YES manual up up
Vlan2 209.165.200.10 YES manual up up
Vlan3 192.168.2.1 YES manual up up
Virtual0 127.0.0.1 YES unset up up
d. Display the information for the Layer 3 VLAN interfaces using the show ip address command.
CCNAS-ASA # show ip address
System IP Addresses:
Interface Name IP address Subnet mask Method
Vlan1 inside 192.168.1.1 255.255.255.0 manual
Vlan2 outside 209.165.200.10 255.255.255.248 manual
Vlan3 dmz 192.168.2.1 255.255.255.0 manual
<output omitted>
e. Display the VLANs and port assignments on the ASA using the show switch vlan command.
CCNAS-ASA(config)# show switch vlan
VLAN Name Status Ports
---- -------------------------------- --------- -----------------------------
1 inside up Et0/1, Et0/3, Et0/4, Et0/5
Et0/6, Et0/7
2 outside up Et0/0
3 dmz up Et0/2
Step 2: Configure static NAT to the DMZ server using a network object.
Configure a network object named dmz-server and assign it the static IP address of the DMZ server
(192.168.2.3). While in object definition mode, use the nat command to specify that this object is used to
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 24 of 75
Lab - CCNA Security Comprehensive Lab
translate a DMZ address to an outside address using static NAT and specify a public translated address of
209.165.200.11.
CCNAS-ASA(config)# object network dmz-server
CCNAS-ASA(config-network-object)# host 192.168.2.3
CCNAS-ASA(config-network-object)# nat (dmz,outside) static 209.165.200.11
Step 3: Configure an ACL to allow access to the DMZ server from the Internet.
Configure a named access list OUTSIDE-DMZ that permits any IP protocol from any external host to the
internal IP address of the DMZ server. Apply the access list to the ASA outside interface in the in direction.
CCNAS-ASA(config)# access-list OUTSIDE-DMZ permit ip any host 192.168.2.3
CCNAS-ASA(config)# access-group OUTSIDE-DMZ in interface outside
Note: Unlike IOS ACLs, the ASA ACL permit statement must permit access to the internal private DMZ
address. External hosts access the server using its public static NAT address, and the ASA translates it to the
internal host IP address and applies the ACL.
You can modify this ACL to allow only services that you want to expose to external hosts, such as web
(HTTP) or file transfer (FTP).
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 25 of 75
Lab - CCNA Security Comprehensive Lab
Note: Pings from inside to outside are translated hits. Pings from outside host PC-C to the DMZ are
considered untranslated hits.
CCNAS-ASA# show xlate
1 in use, 3 most used
Flags: D - DNS, i - dynamic, r - portmap, s - static, I - identity, T - twice
NAT from dmz:192.168.2.3 to outside:209.165.200.227 flags s idle 0:22:58
timeout 0:00:00ping
Note: The flag is “s” indicating a static translation.
e. Because the ASA inside interface (VLAN 1) is set to a security level of 100 (the highest) and the DMZ
interface (VLAN 3) is set to 70, you can also access the DMZ server from a host on the inside network.
The ASA acts like a router between the two networks. Ping the DMZ server (PC-A) internal address
(192.168.2.3) from inside network host PC-B (192.168.1.X). The pings should be successful due to the
interface security level and the fact that ICMP is being inspected on the inside interface by the global
inspection policy. The pings from PC-B to PC-A do not affect the NAT translation counts, because both
PC-B and PC-A are behind the firewall and no translation takes place.
f. The DMZ server cannot ping PC-B on the inside network, because the DMZ interface VLAN 3 has a lower
security level and the fact that, when the VLAN 3 interface was created, it was necessary to specify the
no forward command. Try to ping from the DMZ server PC-A to PC-B at IP address 192.168.1.X. The
pings should be unsuccessful.
g. Use the show run command to display the configuration for VLAN 3.
CCNAS-ASA# show run interface vlan 3
!
interface Vlan3
no forward interface Vlan1
nameif dmz
security-level 70
ip address 192.168.2.1 255.255.255.0
Note: An access list can be applied to the inside interface to control the type of access to be permitted or
denied to the DMZ server from inside hosts.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 26 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 27 of 75
Lab - CCNA Security Comprehensive Lab
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1700 Fast Ethernet 0 (Fa0) Fast Ethernet 1 (Fa1) Serial 0 (S0) Serial 1 (S1)
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(Fa0/0) (Fa0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(Fa0/0) (Fa0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(Fa0/0) (Fa0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
Device Configs
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 28 of 75
Lab - CCNA Security Comprehensive Lab
no ip domain lookup
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
redundancy
!
interface Loopback0
ip address 172.20.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 209.165.200.9 255.255.255.248
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.10.1 255.255.255.252
no fair-queue
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
interface Serial0/1/0
no ip address
shutdown
clock rate 2000000
!
interface Serial0/1/1
no ip address
shutdown
clock rate 2000000
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
control-plane
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 29 of 75
Lab - CCNA Security Comprehensive Lab
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 30 of 75
Lab - CCNA Security Comprehensive Lab
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.10.2 255.255.255.252
no fair-queue
clock rate 2000000
!
interface Serial0/0/1
ip address 10.20.20.2 255.255.255.252
!
interface FastEthernet0/1/0
no ip address
!
interface FastEthernet0/1/1
no ip address
!
interface FastEthernet0/1/2
no ip address
!
interface FastEthernet0/1/3
no ip address
!
interface Vlan1
no ip address
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip route 172.16.1.0 255.255.255.0 Serial0/0/1
ip route 172.20.1.0 255.255.255.0 Serial0/0/0
ip route 209.165.200.8 255.255.255.248 Serial0/0/0
!
control-plane
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 31 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 32 of 75
Lab - CCNA Security Comprehensive Lab
shutdown
clock rate 2000000
!
interface Serial0/1/0
no ip address
shutdown
clock rate 2000000
!
interface Serial0/1/1
no ip address
shutdown
clock rate 2000000
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
control-plane
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 33 of 75
Lab - CCNA Security Comprehensive Lab
aaa new-model
!
aaa authentication login default local-case enable
!
aaa session-id common
!
dot11 syslog
ip source-route
!
ip cef
no ip domain lookup
ip domain name ccnasecurity.com
login block-for 60 attempts 2 within 30
login on-failure log every 2
login on-success log
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-1561489156
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1561489156
revocation-check none
rsakeypair TP-self-signed-1561489156
!
crypto pki certificate chain TP-self-signed-1561489156
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31353631 34383931 3536301E 170D3134 30343234 31383239
31375A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 35363134
38393135 3630819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100A32F D25B5F1A 0AA1DC21 A30D20CF 78870AEF E39A9211 7383BE36 E97BA33E
232075A3 40846325 EBA6CCE0 72C0F09C 5D0A9511 D3128EFF F93E0BDD 8903B16F
A554F288 8ADDAA3F 53625582 33D57E1F A144B666 17E74921 3C2DA006 7DFA39D7
0E5E066C C0924AB8 60609F58 F1397A9D 72549099 97FEF11F 83B52612 9EE50849
244B0203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
551D2304 18301680 1430BE1E ADBA5BCA 09FDBDB5 7F1CE0A5 F45D3A1E 57301D06
03551D0E 04160414 30BE1EAD BA5BCA09 FDBDB57F 1CE0A5F4 5D3A1E57 300D0609
2A864886 F70D0101 05050003 81810054 71C62DC4 5F30B15B AC392827 8CFE2CDB
597BD437 47CAA12E EB2E793D A1069231 6F19614F E4CDB3C3 D9A22318 897CE867
018982E0 B9DA06AE 85999C3E E4BE6DCC 3B93132E EE46AD57 FAD0651D FF40CDFB
C704DA13 C3AA19FD 24C8A81F 3E5F5CB9 3E89B294 D1F008A3 A3F9E0E3 C1F96A42
9AFC98BD AC0D5274 34C646C8 1FD3CA
quit
!
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 34 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 35 of 75
Lab - CCNA Security Comprehensive Lab
line aux 0
line vty 0 4
exec-timeout 15 0
password 7 14141B180F0B3C3F3D38326077
transport input ssh
!
scheduler allocate 20000 1000
ntp update-calendar
ntp server 10.10.10.2
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 36 of 75
Lab - CCNA Security Comprehensive Lab
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.10.2 255.255.255.252
no fair-queue
clock rate 2000000
!
interface Serial0/0/1
ip address 10.20.20.2 255.255.255.252
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip route 172.16.1.0 255.255.255.0 Serial0/0/1
ip route 172.20.1.0 255.255.255.0 Serial0/0/0
ip route 209.165.200.8 255.255.255.248 Serial0/0/0
!
control-plane
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
ntp master 3
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 37 of 75
Lab - CCNA Security Comprehensive Lab
!
aaa new-model
!
aaa authentication login default local-case enable
!
aaa session-id common
!
dot11 syslog
ip source-route
!
ip cef
no ip domain lookup
login block-for 60 attempts 2 within 30
login on-failure log
login on-success log
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-1221570205
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1221570205
revocation-check none
rsakeypair TP-self-signed-1221570205
!
crypto pki certificate chain TP-self-signed-1221570205
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31323231 35373032 3035301E 170D3134 30343235 30353031
33385A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 32323135
37303230 3530819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100A857 27D5B581 64C07B1F BC05B79A CF816F2C 1615CE4A 0AC9949A E096AAF1
E483C086 CA00722C CB168E01 BCF54883 9BD342B0 2995D721 F0825C7C 596DC70F
C634954B 75EEE6CF BBA04F30 12569A7C AAAE7BF7 58574324 CDA34C08 91F9B165
5D76F93D 949F66F9 2987DB6A 9C4AC914 322A47A3 4ED49B61 023B6DDB 9C19A638
EDFF0203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
551D2304 18301680 142113F5 6356CDED 73D30C0E A601F3AD 27113602 3C301D06
03551D0E 04160414 2113F563 56CDED73 D30C0EA6 01F3AD27 1136023C 300D0609
2A864886 F70D0101 05050003 8181006A EDB598D2 86BEA74B 4DDD2D37 9DACAF95
81396EDD 3DB7A3FE F9754232 5BCEB6B7 C7CD5A04 7F457673 83D8D032 E11EADF5
799AB5A3 6AD35F53 84DF1B20 2313E679 142F9001 F1E29530 3362D41B 13B8A6BC
6325D39B 4EF39AD4 7C1D806C 3E445F0F E80D24B2 9C0A289D 9BF0D991 85C47464
8F30F5C1 B4F67C34 A82669BD A62EBA
quit
!
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 38 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 39 of 75
Lab - CCNA Security Comprehensive Lab
exec-timeout 15 0
password 7 060506324F410A160B07135E59
logging synchronous
line aux 0
line vty 0 4
exec-timeout 15 0
password 7 05080F1C2243581D001516475E
transport input ssh
!
scheduler allocate 20000 1000
ntp update-calendar
ntp server 10.10.10.2
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 40 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 41 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 42 of 75
Lab - CCNA Security Comprehensive Lab
!
banner motd ^CUnauthorized access strictly prohibited!
^C
!
line con 0
exec-timeout 0 0
password 7 110A1016141D08030A3A2A717D
logging synchronous
line aux 0
line vty 0 4
exec-timeout 15 0
password 7 14141B180F0B3C3F3D38326077
transport input ssh
!
scheduler allocate 20000 1000
ntp update-calendar
ntp server 10.10.10.2
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 43 of 75
Lab - CCNA Security Comprehensive Lab
redundancy
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.10.2 255.255.255.252
no fair-queue
clock rate 2000000
!
interface Serial0/0/1
ip address 10.20.20.2 255.255.255.252
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip route 172.16.1.0 255.255.255.0 Serial0/0/1
ip route 172.20.1.0 255.255.255.0 Serial0/0/0
ip route 209.165.200.8 255.255.255.248 Serial0/0/0
!
control-plane
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
ntp master 3
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 44 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 45 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 46 of 75
Lab - CCNA Security Comprehensive Lab
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
clock rate 2000000
!
interface Serial0/0/1
ip address 10.20.20.1 255.255.255.252
clock rate 2000000
crypto map SDM_CMAP_1
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/1
!
logging trap warnings
logging 172.16.1.3
access-list 100 remark CCP_ACL Category=4
access-list 100 remark IPSec Rule
access-list 100 permit ip 172.16.1.0 0.0.0.255 172.20.1.0 0.0.0.255
!
control-plane
!
banner motd ^CUnathorized access is strictly prohibited!^C
!
line con 0
exec-timeout 0 0
password 7 060506324F410A160B07135E59
logging synchronous
line aux 0
line vty 0 4
exec-timeout 15 0
password 7 05080F1C2243581D001516475E
transport input ssh
!
scheduler allocate 20000 1000
ntp update-calendar
ntp server 10.10.10.2
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 47 of 75
Lab - CCNA Security Comprehensive Lab
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
security passwords min-length 10
no logging buffered
enable secret 5 $1$Ara0$pzjFPbfyyh2yvfN0cAp3g/
!
aaa new-model
!
aaa authentication login default local-case enable
!
aaa session-id common
!
dot11 syslog
ip source-route
!
cef
no ip domain lookup
ip ips config location flash:/ipsdir retries 1
ip ips notify SDEE
ip ips name sdm_ips_rule
!
ip ips signature-category
category all
retired true
category ios_ips basic
retired false
!
login block-for 60 attempts 2 within 30
login on-failure log
login on-success log
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-1221570205
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1221570205
revocation-check none
rsakeypair TP-self-signed-1221570205
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 48 of 75
Lab - CCNA Security Comprehensive Lab
!
crypto pki certificate chain TP-self-signed-1221570205
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31323231 35373032 3035301E 170D3134 30343235 30353031
33385A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 32323135
37303230 3530819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100A857 27D5B581 64C07B1F BC05B79A CF816F2C 1615CE4A 0AC9949A E096AAF1
E483C086 CA00722C CB168E01 BCF54883 9BD342B0 2995D721 F0825C7C 596DC70F
C634954B 75EEE6CF BBA04F30 12569A7C AAAE7BF7 58574324 CDA34C08 91F9B165
5D76F93D 949F66F9 2987DB6A 9C4AC914 322A47A3 4ED49B61 023B6DDB 9C19A638
EDFF0203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
551D2304 18301680 142113F5 6356CDED 73D30C0E A601F3AD 27113602 3C301D06
03551D0E 04160414 2113F563 56CDED73 D30C0EA6 01F3AD27 1136023C 300D0609
2A864886 F70D0101 05050003 8181006A EDB598D2 86BEA74B 4DDD2D37 9DACAF95
81396EDD 3DB7A3FE F9754232 5BCEB6B7 C7CD5A04 7F457673 83D8D032 E11EADF5
799AB5A3 6AD35F53 84DF1B20 2313E679 142F9001 F1E29530 3362D41B 13B8A6BC
6325D39B 4EF39AD4 7C1D806C 3E445F0F E80D24B2 9C0A289D 9BF0D991 85C47464
8F30F5C1 B4F67C34 A82669BD A62EBA
quit
!
username Admin01 privilege 15 secret 5 $1$tTTB$LqYVD3oolgaUQeHSl4cgw1
secure boot-image
secure boot-config
!
redundancy
!
crypto key pubkey-chain rsa
named-key realm-cisco.pub
key-string
30820122 300D0609 2A864886 F70D0101 01050003 82010F00 3082010A 02820101
00C19E93 A8AF124A D6CC7A24 5097A975 206BE3A2 06FBA13F 6F12CB5B 4E441F16
17E630D5 C02AC252 912BE27F 37FDD9C8 11FC7AF7 DCDD81D9 43CDABC3 6007D128
B199ABCB D34ED0F9 085FADC1 359C189E F30AF10A C0EFB624 7E0764BF 3E53053E
5B2146A9 D7A5EDE3 0298AF03 DED7A5B8 9479039D 20F30663 9AC64B93 C0112A35
FE3F0C87 89BCB7BB 994AE74C FA9E481D F65875D6 85EAF974 6D9CC8E3 F0B08B85
50437722 FFBE85B9 5E4189FF CC189CB9 69C46F9C A84DFBA5 7A0AF99E AD768C36
006CF498 079F88F8 A3B3FB1F 9FB7B3CB 5539E1D1 9693CCBB 551F78D2 892356AE
2F56D826 8918EF3C 80CA4F4D 87BFCA3B BFF668E9 689782A5 CF31CB6E B4B094D3
F3020301 0001
quit
!
ip ssh time-out 90
ip ssh authentication-retries 2
ip ssh version 2
!
class-map type inspect match-all sdm-cls-VPNOutsideToInside-1
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 49 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 50 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 51 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 52 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 53 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 54 of 75
Lab - CCNA Security Comprehensive Lab
!
nat (inside,outside) after-auto source dynamic any interface
route outside 0.0.0.0 0.0.0.0 209.165.200.9 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
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
aaa authentication http console LOCAL
aaa authentication ssh console LOCAL
aaa authentication telnet console LOCAL
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 warmstart
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 5
ssh 172.16.1.3 255.255.255.255 outside
ssh timeout 5
console timeout 0
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 55 of 75
Lab - CCNA Security Comprehensive Lab
Router R1 – Final
R1# show run
Building configuration...
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 56 of 75
Lab - CCNA Security Comprehensive Lab
rsakeypair TP-self-signed-1561489156
!
crypto pki certificate chain TP-self-signed-1561489156
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31353631 34383931 3536301E 170D3134 30343234 31383239
31375A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 35363134
38393135 3630819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100A32F D25B5F1A 0AA1DC21 A30D20CF 78870AEF E39A9211 7383BE36 E97BA33E
232075A3 40846325 EBA6CCE0 72C0F09C 5D0A9511 D3128EFF F93E0BDD 8903B16F
A554F288 8ADDAA3F 53625582 33D57E1F A144B666 17E74921 3C2DA006 7DFA39D7
0E5E066C C0924AB8 60609F58 F1397A9D 72549099 97FEF11F 83B52612 9EE50849
244B0203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
551D2304 18301680 1430BE1E ADBA5BCA 09FDBDB5 7F1CE0A5 F45D3A1E 57301D06
03551D0E 04160414 30BE1EAD BA5BCA09 FDBDB57F 1CE0A5F4 5D3A1E57 300D0609
2A864886 F70D0101 05050003 81810054 71C62DC4 5F30B15B AC392827 8CFE2CDB
597BD437 47CAA12E EB2E793D A1069231 6F19614F E4CDB3C3 D9A22318 897CE867
018982E0 B9DA06AE 85999C3E E4BE6DCC 3B93132E EE46AD57 FAD0651D FF40CDFB
C704DA13 C3AA19FD 24C8A81F 3E5F5CB9 3E89B294 D1F008A3 A3F9E0E3 C1F96A42
9AFC98BD AC0D5274 34C646C8 1FD3CA
quit
!
username Admin01 privilege 15 secret 5 $1$8HMu$MkznX4g9Prbkkkw7jTSWV1
secure boot-image
secure boot-config
!
redundancy
!
ip ssh time-out 90
ip ssh authentication-retries 2
ip ssh version 2
!
crypto isakmp policy 1
encr 3des
authentication pre-share
group 2
crypto isakmp key cisco12345 address 10.20.20.1
!
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
!
crypto map SDM_CMAP_1 1 ipsec-isakmp
description Apply the crypto map on the peer router's interface having IP address
10.10.10.1 that connects to this router.
set peer 10.20.20.1
set transform-set ESP-3DES-SHA
match address SDM_1
!
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 57 of 75
Lab - CCNA Security Comprehensive Lab
interface Loopback0
ip address 172.20.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 209.165.200.9 255.255.255.248
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.10.1 255.255.255.252
no fair-queue
crypto map SDM_CMAP_1
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
ip forward-protocol nd
ip http server
ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
ip access-list extended SDM_1
remark CCP_ACL Category=4
remark IPSec Rule
permit ip 172.20.1.0 0.0.0.255 172.16.1.0 0.0.0.255
!
control-plane
!
banner motd ^CUnauthorized access strictly prohibited!
^C
!
line con 0
exec-timeout 15 0
password 7 110A1016141D08030A3A2A717D
logging synchronous
line aux 0
line vty 0 4
exec-timeout 15 0
password 7 14141B180F0B3C3F3D38326077
transport input ssh
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 58 of 75
Lab - CCNA Security Comprehensive Lab
!
scheduler allocate 20000 1000
ntp update-calendar
ntp server 10.10.10.2
end
Router R2 – Final
R2# show run
Building configuration...
!
redundancy
!
interface Loopback0
ip address 172.30.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 59 of 75
Lab - CCNA Security Comprehensive Lab
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.10.2 255.255.255.252
no fair-queue
clock rate 2000000
!
interface Serial0/0/1
ip address 10.20.20.2 255.255.255.252
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip route 172.16.1.0 255.255.255.0 Serial0/0/1
ip route 172.20.1.0 255.255.255.0 Serial0/0/0
ip route 209.165.200.8 255.255.255.248 Serial0/0/0
!
control-plane
!
line con 0
line aux 0
line vty 0 4
password ciscovtypa55
login
transport input all
!
scheduler allocate 20000 1000
ntp master 3
end
Router R3 - Final
R3# show run
Building configuration...
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 60 of 75
Lab - CCNA Security Comprehensive Lab
!
boot-start-marker
boot-end-marker
!
security passwords min-length 10
no logging buffered
enable secret 5 $1$Ara0$pzjFPbfyyh2yvfN0cAp3g/
!
aaa new-model
!
aaa authentication login default local-case enable
!
aaa session-id common
!
dot11 syslog
ip source-route
!
ip cef
no ip domain lookup
ip ips config location flash:/ipsdir retries 1
ip ips notify SDEE
ip ips name sdm_ips_rule
!
ip ips signature-category
category all
retired true
category ios_ips basic
retired false
!
login block-for 60 attempts 2 within 30
login on-failure log
login on-success log
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-1221570205
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1221570205
revocation-check none
rsakeypair TP-self-signed-1221570205
!
crypto pki certificate chain TP-self-signed-1221570205
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31323231 35373032 3035301E 170D3134 30343235 30353031
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 61 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 62 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 63 of 75
Lab - CCNA Security Comprehensive Lab
!
policy-map type inspect ccp-permit-icmpreply
class type inspect ccp-icmp-access
inspect
class class-default
pass
policy-map type inspect sdm-pol-VPNOutsideToInside-1
class type inspect sdm-cls-VPNOutsideToInside-1
inspect
class class-default
drop
policy-map type inspect ccp-inspect
class type inspect ccp-invalid-src
drop log
class type inspect ccp-protocol-http
inspect
class type inspect ccp-insp-traffic
inspect
class type inspect ccp-sip-inspect
inspect
class type inspect ccp-h323-inspect
inspect
class type inspect ccp-h323annexe-inspect
inspect
class type inspect ccp-h225ras-inspect
inspect
class type inspect ccp-h323nxg-inspect
inspect
class type inspect ccp-skinny-inspect
inspect
class class-default
drop
policy-map type inspect ccp-permit
class type inspect SDM_VPN_PT
pass
class class-default
drop
!
zone security in-zone
zone security out-zone
zone-pair security ccp-zp-self-out source self destination out-zone
service-policy type inspect ccp-permit-icmpreply
zone-pair security ccp-zp-in-out source in-zone destination out-zone
service-policy type inspect ccp-inspect
zone-pair security sdm-zp-VPNOutsideToInside-1 source out-zone destination in-zone
service-policy type inspect sdm-pol-VPNOutsideToInside-1
zone-pair security ccp-zp-out-self source out-zone destination self
service-policy type inspect ccp-permit
!
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 64 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 65 of 75
Lab - CCNA Security Comprehensive Lab
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/1
!
ip access-list extended SDM_AH
remark CCP_ACL Category=1
permit ahp any any
ip access-list extended SDM_ESP
remark CCP_ACL Category=1
permit esp any any
!
logging trap warnings
logging 172.16.1.3
access-list 100 remark CCP_ACL Category=4
access-list 100 remark IPSec Rule
access-list 100 permit ip 172.16.1.0 0.0.0.255 172.20.1.0 0.0.0.255
access-list 101 remark CCP_ACL Category=128
access-list 101 permit ip host 255.255.255.255 any
access-list 101 permit ip 127.0.0.0 0.255.255.255 any
access-list 101 permit ip 10.20.20.0 0.0.0.3 any
access-list 102 remark CCP_ACL Category=128
access-list 102 permit ip host 10.10.10.1 any
access-list 103 remark CCP_ACL Category=0
access-list 103 permit ip 172.20.1.0 0.0.0.255 172.16.1.0 0.0.0.255
!
control-plane
!
banner motd ^CUnathorized access is strictly prohibited!^C
!
line con 0
exec-timeout 15 0
password 7 060506324F410A160B07135E59
logging synchronous
line aux 0
line vty 0 4
exec-timeout 15 0
password 7 05080F1C2243581D001516475E
transport input ssh
!
scheduler allocate 20000 1000
ntp update-calendar
ntp server 10.10.10.2
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 66 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 67 of 75
Lab - CCNA Security Comprehensive Lab
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 68 of 75
Lab - CCNA Security Comprehensive Lab
vpn-group-policy VPN-Grp-Pol
tunnel-group VPN-Con-Prof type remote-access
tunnel-group VPN-Con-Prof general-attributes
default-group-policy VPN-Grp-Pol
!
!
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:3df558c4b921ff4505d707c72c657657
: end
Switch S1
S1# show run
S1#sh run
Building configuration...
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 69 of 75
Lab - CCNA Security Comprehensive Lab
!
interface FastEthernet0/4
shutdown
!
interface FastEthernet0/5
shutdown
!
interface FastEthernet0/6
switchport mode access
switchport port-security
switchport port-security mac-address sticky
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/7
shutdown
!
interface FastEthernet0/8
shutdown
!
interface FastEthernet0/9
shutdown
!
interface FastEthernet0/10
shutdown
!
interface FastEthernet0/11
shutdown
!
interface FastEthernet0/12
shutdown
!
interface FastEthernet0/13
shutdown
!
interface FastEthernet0/14
shutdown
!
interface FastEthernet0/15
shutdown
!
interface FastEthernet0/16
shutdown
!
interface FastEthernet0/17
shutdown
!
interface FastEthernet0/18
shutdown
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 70 of 75
Lab - CCNA Security Comprehensive Lab
!
interface FastEthernet0/19
shutdown
!
interface FastEthernet0/20
shutdown
!
interface FastEthernet0/21
shutdown
!
interface FastEthernet0/22
shutdown
!
interface FastEthernet0/23
shutdown
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.2.11 255.255.255.0
!
ip default-gateway 192.168.2.1
no ip http server
no ip http secure-server
!
banner motd ^C Unauthorized accesss strictly prohibited!^C
!
line con 0
exec-timeout 5 0
password 7 05080F1C22434D06171516475E
logging synchronous
login
line vty 0 4
login
line vty 5 15
login
!
end
Switch S2
S2# show run
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 71 of 75
Lab - CCNA Security Comprehensive Lab
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S2
!
boot-start-marker
boot-end-marker
!
no aaa new-model
system mtu routing 1500
!
!
no ip domain-lookup
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
shutdown
!
interface FastEthernet0/2
shutdown
!
interface FastEthernet0/3
shutdown
!
interface FastEthernet0/4
shutdown
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 72 of 75
Lab - CCNA Security Comprehensive Lab
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.11 255.255.255.0
!
ip default-gateway 192.168.1.1
ip http server
ip http secure-server
!
!
line con 0
line vty 5 15
!
end
Switch S3
S3#sh run
Building configuration...
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 73 of 75
Lab - CCNA Security Comprehensive Lab
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S3
!
boot-start-marker
boot-end-marker
!
no aaa new-model
system mtu routing 1500
!
no ip domain-lookup
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
shutdown
!
interface FastEthernet0/2
shutdown
!
interface FastEthernet0/3
shutdown
!
interface FastEthernet0/4
shutdown
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 74 of 75
Lab - CCNA Security Comprehensive Lab
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 172.16.1.11 255.255.255.0
!
ip default-gateway 172.16.1.1
ip http server
ip http secure-server
!
line con 0
line vty 5 15
!
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 75 of 75