CCNA security.hwp

Similar documents
Microsoft PowerPoint - 2.Catalyst Switch Intrastructure Protection_이충용_V1 0.ppt [호환 모드]

Microsoft PowerPoint - ch13.ppt

토폴로지 2( 풀이 ) 1. 요구사항 가. 주어진자료 ( 토폴로지 2.pka) 를참고하여네트워크구성작업을완성하시오. 2. 작업내용가. 설명 - 현재토폴로지에이미통신이가능한모든설정이되어있습니다. - 그러나, 보안문제로지금부터주어진조건으로설정을다시하고자합니다. - 총 4개

chapter4

본교재는수업용으로제작된게시물입니다. 영리목적으로사용할경우저작권법제 30 조항에의거법적처벌을받을수있습니다. [ 실습 ] 스위치장비초기화 1. NVRAM 에저장되어있는 'startup-config' 파일이있다면, 삭제를실시한다. SWx>enable SWx#erase sta

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (

정보기기운용기능사모의고사 1 풀이 1. 기억하세요. 가. 명령어가생각나지않을때? 를입력하세요. 나. 명령어앞의 2~3글자를쓰고탭 (Tab) 키를누르세요. 그러면자동으로완성됩니다. 다. 파일을열고곧바로 [File-SaveAs] 눌러서파일이름을 비번호 로바꿔저장하세요. 2

Sena Device Server Serial/IP TM Version

USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C

UDP Flooding Attack 공격과 방어

Remote UI Guide

소개 TeraStation 을 구입해 주셔서 감사합니다! 이 사용 설명서는 TeraStation 구성 정보를 제공합니다. 제품은 계속 업데이트되므로, 이 설명서의 이미지 및 텍스트는 사용자가 보유 중인 TeraStation 에 표시 된 이미지 및 텍스트와 약간 다를 수

PowerPoint 프레젠테이션

PowerChute Personal Edition v3.1.0 에이전트 사용 설명서

4. 스위치재부팅을실시한다. ( 만약, Save 질문이나오면 'no' 를실시한다.) SWx#reload System configuration has been modified. Save? [yes/no]: no Proceed with reload? [confirm] (

Network seminar.key

최종연습 LAN2 1. 호스트이름, enable 패스워드변경 ( 토폴로지참고 ) - 스위치와라우터의 MD5로암호화된 enable passwod : Cisco123 가. 스위치이름 : SW1, SW2 나. 라우터이름 : RT Switch(config)#hostname S

Solaris Express Developer Edition

AAA AAA란라우터로접속하는사용자에대한인증, 권한, 과금을수행하기위한보안관련기능을수행하며, 클라이언트장비가서버쪽장비와연결되어네트워크서비스연결을시도할때도 AAA 기능을통해서장비인증및권한을실시한다. AAA 기능을사용하기이전에는라우터접근제어는 Console 라인과 VTY

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

10X56_NWG_KOR.indd

Cisco SDN 3.0 DDoS DDoS Cisco DDoS Real Demo 2008 Cisco Systems, Inc. All rights reserved. 2

SMB_ICMP_UDP(huichang).PDF

Subnet Address Internet Network G Network Network class B networ

bn2019_2

untitled

Microsoft PowerPoint - ch15.ppt

Assign an IP Address and Access the Video Stream - Installation Guide

Chapter 1

4. IP 설정호스트 인터페이스 IP/ 프리픽스 게이트웨이 lock Rate fa 0/ /25 - fa 0/0 R1 fa 0/ /26 - s 0/0/ / ISP fa 0/0

untitled

K7VT2_QIG_v3

슬라이드 1

슬라이드 1


TCP.IP.ppt

< FBBE7B0EDB3EBC6AE5FB5F0C6FAC6AEC6D0BDBABFF6B5E5C3EBBEE0C1A128BCF6C1A4292E687770>

Microsoft PowerPoint - ch07.ppt

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

hd1300_k_v1r2_Final_.PDF

ARMBOOT 1

TTA Verified : HomeGateway :, : (NEtwork Testing Team)

Interstage5 SOAP서비스 설정 가이드

슬라이드 제목 없음

제20회_해킹방지워크샵_(이재석)

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

슬라이드 1

DE1-SoC Board

歯I-3_무선통신기반차세대망-조동호.PDF

PowerPoint 프레젠테이션

Intro to Servlet, EJB, JSP, WS

CD-RW_Advanced.PDF

PowerPoint 프레젠테이션

ATXEVZTBNXGP.hwp

Microsoft Word - access-list.doc

APOGEE Insight_KR_Base_3P11

Citrix Workload Balancing 2.1 설치 가이드

Microsoft Word Question.doc

휠세미나3 ver0.4

Microsoft PowerPoint - 06-IPAddress [호환 모드]

본교재는수업용으로제작된게시물입니다. 영리목적으로사용할경우저작권법제 30 조항에의거법적처벌을받을수있습니다. 제 28 장이더체널 블로그 : net123.tistory.com 저자김정우

시스코 무선랜 설치운영 매뉴얼(AP1200s_v1.1)

VPN.hwp

6강.hwp

H3050(aap)

thesis-shk

Microsoft Word doc

SRC PLUS 제어기 MANUAL

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper

00 SPH-V6900_....

°í¼®ÁÖ Ãâ·Â

S NIPER FW/UTM은 인터넷과 같은 외부망과 조직의 내부망을 연결하는 곳에 위치하여 보호하고자 하는 네트워크에 대한 서비스 요청을 통제하여 허가되지 않은 접근을 차단하는 침입차단(FW)기능 및 침입방지(IPS), 컨텐츠 필터링, 가상사설망(VPN)의 기능을 수행

서버설정 1. VLAN 설정 1.1 토폴로지를참고로 SW1 에 vlan 설정을한다. (vlan 이름을설정하고해당인터페이스에 vlan 이름과동일한코멘트를처리하시오.) 1.2 PC에토폴로지에부여된 IP를설정하고, 게이트웨이는네트워크의마지막주소를사용합니다. - 서버에는 DN

FileMaker 15 WebDirect 설명서

MAX+plus II Getting Started - 무작정따라하기

1217 WebTrafMon II


Microsoft PowerPoint - L4-7Switch기본교육자료.ppt

Security Overview

Chapter11OSPF

네트워크 안정성을 지켜줄 최고의 기술과 성능 TrusGuard는 국내 최초의 통합보안솔루션으로서 지난 5년간 약 4천여 고객 사이트에 구축 운영되면서 기술의 안정성과 성능면에서 철저한 시장 검증을 거쳤습니다. 또한 TrusGuard는 단독 기능 또는 복합 기능 구동 시

Network Security - Wired Sniffing 실습 ICNS Lab. Kyung Hee University

歯김병철.PDF

GRE(Generic Routing Encapsulation) GRE는 Cisco에서개발한터널링프로토콜으로써특정네트워크망에서새로운 IP 헤더를인캡슐레이션하여패켓을전송하는 VPN 기능을제공한다. GRE 터널링을이용하여패켓을전송하면, 데이터를암호화하지않기때문에보안적으로는취

F1-1(수정).ppt

cam_IG.book

슬라이드 1

VZ94-한글매뉴얼

vm-웨어-앞부속

< BFCFB7E15FC7D1B1B9C1A4BAB8B9FDC7D0C8B85F31352D31BCF6C1A4C8AEC0CE2E687770>

<30362E20C6EDC1FD2DB0EDBFB5B4EBB4D420BCF6C1A42E687770>

<32B1B3BDC32E687770>

KISA-GD

강의10

untitled

자바-11장N'1-502

thesis

Backup Exec

PRO1_04E [읽기 전용]

ETL_project_best_practice1.ppt

Transcription:

- 1 - 기술문서 10. 07. 23. 작성 CCNA security ( 네트워크보안가이드 ) 작성자 : 영남대학교정보보호연구학회 @Xpert 변규석 crsarang@ynu.ac.kr

- 2 - - 목차 - - 목적 3 - 설정방법 4 1. 불필요한서비스제거 4 2. PASSWORD 설정 4 가. 글로벌모드 PASSWORD 설정 4 나. 콘솔 PASSWORD 설정 4 다. 텔넷 PASSWORD 설정 4 3. ACL 4 가. standard 4 나. extend 4 4. IPsec_VPN 5 5. AAA(TACACS) 6 가. ACS 설정 6 나. client router 설정 7 6. ntp(network Time Protocol) 시간동기화서버 7 7. Logging history 7 8. SSH 8 9. ZFW( Zone-Based Policy Firewall) 8 가. 대표적인서비스들 8 나. Configure Zone-Based Firewall 8 10. PACKET TRACE 실습 10 - 참고자료및사이트 25 - NSA/SNAC Router Security Configuration Guide v1.1 26

- 3 - - 목적 - 소프트웨어취약점으로인한보안문제뿐만아니라네트워크설정문제로인한보안사고로때때로발생한다. 조금만신경을쓰고설을함으로써악의적으로접근하는사용자들을손쉽게차단할수있을뿐아니라네트워크의효율도높일수있다. 하지만네트워크관리자가없는사업자또는단체는기본적인통신만을위한설정을해두는경우가많고보안을신경쓰는경우는없다. 이번에작성하는문서는 CCNA_SECURITY 과정에서배울수있는간단한기술에대해작성을할것이다. 이것을이용하여실제 CISCO라우터및기타장비에도실제로적용할수있을것이라생각한다. 또한관심을가지고더욱공부를한차원높아진네트워크보안을유지할수있을것이라생각된다.

- 4 - - 설정방법 - 1. 불필요한서비스제거 (config)#no ip http server ;http server를굳이사용할필요없음 (config)#no service pad ;pad service를사용하지않는한막는다. (config)#no ip finger ;finger service 막기 (config)#no ip bootp server ;bootp server는필요할때만열것. (config)#no ip domain-lookup ; 필요시만열어줌 (config)#no cdp run ;CDP 관련공격차단, 장비목록을열람할수있는기회없앰. (config-if)#no ip redirects ;icmp redirect 막기 (config-if)#no ip unreachables ;icmp unreachable 막기 (config-if)#no ip directed-broadcast ;smurf 공격막기 (config-if)#no ip proxy-arp ;proxy-arp 기능막기 (config-if)#no ip mask-reply ;icmp mark-reply 막기 2. PASSWORD설정가. 글로벌모드 PASSWORD 설정 security passwords min-length 10 ; 최소 PASSWORD 길이지정 enable secret PASSWORD ; 글로벌모드로전환시확인하는 PASSWORD( 암호화되서저장 ) 나. 콘솔 PASSWORD 설정 (config)#line con 0 (config-line)#password PASSWORD ; 콘솔접속시사용할 PASSWORD (config-line)#exec-timeout 5 0 ; 타임아웃시간 5분 (config-line)#logging synchronous ; 명령어치는도중로그메세지뜨면새로운프롬프트띄움 다. 텔넷 PASSWORD 설정 (config)#line vty 0 4 ; 텔넷설정및동시접속자수설정 (config-line)#password PASSWORD ; 접속시사용할 PASSWORD (config-line)#exec-timeout 5 0 ; 접속유지시간 (config-line)#login authentication default 3. ACL 가. standard (0~99, 1300~1999) ( 목적지에최대한가까운인터페이스에설정 ) (config)#access-list 5 deny 192.168.2.0 0.0.0.255 ;192.168.2.0 네트워크의모든호스트차단 (config)#access-list 5 permit any (config)#int s 0/0 (config-if)#ip access-group acl 번호 in or out 나. extend (100~199, 2000~2699) ( 출발지에최대한가까운인터페이스에설정 ) (config)#access-list 105 permit tcp host SRC host DES range 22 23 ((config)#access-list 105 permit tcp host SRC host DES eq SERVICE_NAME) (config)#access-list 105 permit ip any any (config)#int s 0/0 (config-if)#ip access-group acl 번호 in or out

- 5-4. IPsec_VPN (config)#crypto isakmp policy 10 ; 정책번호는임의설정 (1~65535). IKE 1(ISAKMP SA) 정책설정 (Phase 1) (config-isakmp)#authentication pre-share ; 관리자간미리공유. 인증 pre-share (config-isakmp)#encryption 3des ; 암호화방식은 3des (config-isakmp)#group 2 ;Group 2로설정 (1,2,5중에설정, 상대방과그룹번호가동일해야함 ) (config-isakmp)#hash md5 ; 무결성을위한해쉬알고리즘은 MD5 사용 (config-isakmp)#lifetime 3600 ; 정책사용기간 3600초 (1시간) R1,R2간의수립이성립된후이어지는사용시간 (TTL의의미 ) (config)#crypto isakmp key cisco address ADDRES ; Pre-shared 키설정, 공유키와상대방 IP 주소 ( 공인 ) 설정 (config)#crypto ipsec transform-set ciscotrans esp-3des esp-sha-hmac ; 트랜스폼 - 셋설정 (IPSec 통신설정 ) (config)#access-list 110 permit ip SRC DSE ;IPSec 대상트래픽정의 (R1 의사설단 ~R2 의사설단 ) (config)#crypto map ciscomap ipsec-isakmp ;IKE 2(IPsec SA) 정책설정 (Phase 2) (config-crypto-map)#match address 110 ;ACL 110 으로선언한조건지정 ( 전송시정책에유효한것 ) (config-crypto-map)#set peer DES 공인 IP ; 리모트공인 IP ( 목적지로가기위해지나가야할곳 ) (config-crypto-map)#set transform-set ciscotrans ;ciscotrans 셋트에대해사설단패킷파기로부터보호설정 (config)#interface serial 1/1 (config-if)#crypto map ciscomap ; 인터페이스에 IPSec 정책적용

- 6-5. AAA(TACACS) AAA는데이터센터같은곳의많은장비예를들어서버, 라우터, 스위치, 파이어월등에대해접근성제어를하기위한프레임워크. 가. ACS 설정 1) 왼쪽메뉴에 Network Configuration 을선택 (AAA Client 에서 add entry 클릭 ) 2) 입력창이뜨면다음내용입력 AAA Client Hostname : ACS Server 에 Client 로등록할장비의 hostname AAA Client IP Address : Client IP 주소 Shared Secret : 비밀번호 (Router 에서 AAA 를설정할때암호를동일하게입력해야함 ) Authenticate Using : TACACS+ (Cisco IOS) 를선택 3) 왼쪽메뉴에 User Setup 을선택 ( 사용자이름을입력한후 Add/Edit 클릭 ) 4) 입력창이뜨면패스워드입력

- 7 - 나. client router 설정 (config)#aaa new-model ; 라우터에서 AAA 기능을활성화시킨다. (config)#aaa authentication login default group tacacs+ none ;AAA 인증방식을설정. 기본인증은 tacacs+ 를통해서인증 (config)#aaa authentication login telnet_login group tacacs+ ;telnet_login 이름으로인증목록을만들고인증방식을 tacacs+ 를사용하도록설정 (config)#tacacs-server host 1.1.20.20 key cisco ;Tacacs Server주소및 key값을입력 (config)#line vty 0 4 (config)#login authentication telnet_login ; 인증수행을 telnet_login항목으로설정 6. ntp(network Time Protocol) 시간동기화서버 (config)#ntp authenticate ;ntp인증활성화 (config)#ntp authentication-key 1 md5 ciscontppa55 ;ntp key MD5암호화및패스워드설정 (config)#ntp trusted-key 1 ;ntp trust키 1설정 (config)#ntp server 서버주소 key 1 ;ntp 서버 IP 설정 (config)#ntp update-calendar ;ntp 시간으로 calendar 업데이트설정 7. Logging history (config)#logging buffered 16000 ;logging 정보를 16k 까지저장. (config)#logging trap debugging ;debugging 정보까지 log server 에보냄 (config)#logging SERVER_IP ;logging server 지정 (config)#service timestamps debug datetime localtime show-timezone msec (config)#service timestamps log datetime localtime show-timezone msec

- 8-8. SSH (config)#line vty 0 4 ;Remote설정모드접속 (config-line)#transport input ssh ;Remote접속방식을 SSH로만설정 (config-line)#login local ; 로그인시 LOCAL인증사용 (config)#crypto key generate rsa 1024 ; 암호화 RSA방식사용 (config)#ip ssh time-out 90 ;time아웃시간 90분 (config)#ip ssh authentication-retries 2 ;2번의인증실패시접속불가설정 (config)#ip ssh version 2 ;SSH Ver2사용설정 9. ZFW( Zone-Based Policy Firewall) IOS Software Release 12.4(6) 이후버전부터지원가. 대표적인서비스들가 ) Stateful packet Inspection (SPI) 1. STATIC 2. STATEFUL packet의출발지, 목적지 ip 와 port 번호만보는것이아니라, 패킷의내용까지다봄. 택배를예로들면, static이택배송장에쓰여져있는보내는사람주소와받는사람주소만보고택배를전달할지버릴지를결정한다면, stateful은택배를뜯어봐서내용물까지도검사하는것. 나 ) VRF-aware Cisco IOS Firewall 다 ) URL filtering 라 ) Denial-of-service(DoS) mitigation 나. Configure Zone-Based Firewall ( 인터넷자료스크랩자료 ) Figure1. Basic Security Zone Topology Private zone connectivity to the Internet Private zone connectivity to DMZ hosts Internet zone connectivity to DMZ hosts class-map type inspect match-all all-private match access-group 101 class-map type inspect match-all private-ftp match protocol ftp match access-group 101 class-map type inspect match-any netbios match protocol msrpc match protocol netbios-dgm

- 9 - match protocol netbios-ns match protocol netbios-ssn class-map type inspect match-all private-netbios match class-map netbios match access-group 101 class-map type inspect match-all private-ssh match protocol ssh match access-group 101 class-map type inspect match-all private-http match protocol http match access-group 101! policy-map type inspect priv-pub-pmap class type inspect private-http inspect class type inspect private-ftp inspect class type inspect private-ssh inspect class type inspect private-netbios inspect class type inspect all-private inspect class class-default! zone security private zone security public zone-pair security priv-pub source private destination public service-policy type inspect priv-pub-pmap! interface FastEthernet4 ip address 172.16.108.44 255.255.255.0 zone-member security public! interface Vlan1 ip address 192.168.108.1 255.255.255.0 zone-member security private! access-list 101 permit ip 192.168.108.0 0.0.0.255 any 확인 ZFW-TEST#sh policy-map type insp zone-pair priv-pub Zone-pair: priv-pub [ 출처 ] http://blog.naver.com/a51880?redirect=log&logno=30054522012

- 10-10. PACKET TRACE 실습 ( 영남대학교컴퓨터네트워크및실습강의자료 ) Configure a Network for Secure Operation 17 페이지참고 Task2 Step1-Step6 for R1, R3 R1#conf t R1(config)#security passwords min-length 10 R1(config)#enable secret ciscoenpa55 R1(config)#service password-encryption R1(config)#line con 0 R1(config-line)#password ciscoconpa55 R1(config-line)#exec-timeout 5 0 R1(config-line)#logging synchronous R1(config-line)#login R1(config-line)#exit R1(config)#line vty 0 4 R1(config-line)#password ciscovtypa55 R1(config-line)#exec-timeout 5 0 R1(config-line)#login authentication default R1(config-line)#exit R1(config)#banner motd $No Unauthorized Access!$ Task3 Step1-Step3 for R1, R3 R1(config)#username Admin01 secret Admin01pa55 R1(config)#aaa new-model

- 11 - R1(config)#aaa authentication login default local none Task4 Step1 PC의 NTP ON, KEY와 password 설정 Step2-Step3 R1(config)#ntp authenticate R1(config)#ntp authentication-key 1 md5 ciscontppa55 R1(config)#ntp trusted-key 1 R1(config)#ntp server 192.168.1.5 key 1 R1(config)#ntp update-calendar Task 5: Configure R1 as Syslog Client R1(config)#service timestamps log datetime msec R1(config)#logging 192.168.1.6 PC-B의 Syslog 서버에서메시지확인 Task 6: Secure Router Against Login Attacks Step1-Step3 Try steps! Task 8: Configure CBAC on R1 Step1-Step4 R1(config)# R1(config)#ip access-list extended OUT-IN R1(config-ext-nacl)#deny ip any any R1(config-ext-nacl)#exit R1(config)#int serial 0/0/0 R1(config-if)#ip access-group OUT-IN in R1(config-if)#exit R1(config)#ip inspect name IN-OUT-IN icmp R1(config)#ip inspect name IN-OUT-IN telnet R1(config)#ip inspect name IN-OUT-IN http R1(config)#int serial 0/0/0 R1(config-if)#ip inspect IN-OUT-IN out R1(config-if)#exit R1(config)#exit Step5 ping PC-A to PA-C R3#conf t R3(config)#security passwords min-length 10 R3(config)#enable secret ciscoenpa55 R3(config)#service password-encryption

- 12 - R3(config)#line con 0 R3(config-line)#password ciscoconpa55 R3(config-line)#exec-timeout 5 0 R3(config-line)#logging synchronous R3(config-line)#login R3(config-line)#exit R3(config)#line vty 0 4 R3(config-line)#password ciscovtypa55 R3(config-line)#exec-timeout 5 0 R3(config-line)#login local R3(config-line)#exit R3(config)#banner motd $No Unauthorized Access!$ R3(config)#username Admin01 secret Admin01pa55 R3(config)#aaa new-model R3(config)#aaa authentication login default local none Task 7: Configure SSH on R3 R3(config)#ip domain-name ccnasecurity.com R3(config)#line vty 0 4 R3(config-line)#transport input ssh R3(config-line)#login local R3(config-line)#exit R3(config)#crypto key generate rsa 1024 입력 R3(config)#ip ssh time-out 90 R3(config)#ip ssh authentication-retries 2 R3(config)#ip ssh version 2 Task 9: Configure ZPF on R3 Step1 Test connectivity! Step2-Step6 R3(config)#zone security IN-ZONE R3(config-sec-zone)#exit R3(config)#zone security OUT-ZONE R3(config-sec-zone)#exit R3(config)#access-list 101 permit ip 192.168.3.0 0.0.0.255 any R3(config)#class-map type inspect IN-NET-CLASS-MAP R3(config-cmap)#match access-group 101 R3(config-cmap)#exit R3(config)#policy-map type inspect IN-2-OUT-PMAP

- 13 - R3(config-pmap)#class type inspect IN-NET-CLASS-MAP R3(config-pmap-c)#inspect R3(config-pmap-c)#exit R3(config-pmap)#exit R3(config)#zone-pair security IN-2-OUT-ZPAIR source IN-ZONE destination OUT-ZONE R3(config-sec-zone-pair)#service-policy type inspect IN-2-OUT-PMAP R3(config-sec-zone-pair)#exit R3(config)#int fa 0/1 R3(config-if)#zone-member security IN-ZONE R3(config-if)#exit R3(config)#int serial 0/0/1 R3(config-if)#zone-member security OUT-ZONE R3(config-if)#exit R3(config)# Step7 Test Firewall functionality! Task 10: Secure the Switches Step1-Step4 S1>en S1#conf t S1(config)#enable secret ciscoenpa55 S1(config)#service password-encryption S1(config)#line con 0 S1(config-line)#password ciscoconpa55 S1(config-line)#exec-timeout 5 0 S1(config-line)#logging synchronous S1(config-line)#login S1(config-line)#exit S1(config-line)#line vty 0 4 S1(config-line)#password ciscovtypa55 S1(config-line)#exec-timeout 5 0 S1(config-line)#login S1(config-line)#exit S1(config)#int fa 0/1 Step5-Step6. Secure trunk ports on S1. S1(config-if)#switchport mode trunk S1(config-if)# S1(config-if)#switchport trunk native vlan 99

- 14 - S1(config-if)#switchport nonegotiate S1(config-if)#storm-control broadcast level 50 S1(config-if)#exit S1(config)#int range fa 0/2-24 S1(config-if-range)#switchport mode access S1(config-if-range)#spanning-tree portfast S1(config-if-range)#spanning-tree bpduguard enable S1(config-if-range)#shutdown S1(config-if-range)# S1(config-if-range)#exit S1(config)#int range gigabitethernet 1/1-2 S1(config-if-range)#switchport mode access S1(config-if-range)#spanning-tree portfast S1(config-if-range)#spanning-tree bpduguard enable S1(config-if-range)#shutdown S1(config-if-range)#exit S1(config)#int range fa 0/5-6 S1(config-if-range)#switchport port-security S1(config-if-range)#switchport port-security mac-address sticky S1(config-if-range)#no shutdown S1(config-if-range)#exit S1(config)# S2>en S2#conf t S2(config)#enable secret ciscoenpa55 S2(config)#service password-encryption S2(config)#line con 0 S2(config-line)#password ciscoconpa55 S2(config-line)#exec-timeout 5 0 S2(config-line)#logging synchronous S2(config-line)#login S2(config-line)#exit S2(config-line)#line vty 0 4 S2(config-line)#password ciscovtypa55 S2(config-line)#exec-timeout 5 0 S2(config-line)#login S2(config-line)#exit S2(config)#int fa 0/1

- 15 - S2(config-if)#switchport mode trunk S2(config-if)#switchport trunk native vlan 99 S2(config-if)#switchport nonegotiate S2(config-if)#storm-control broadcast level 50 S2(config-if)#exit S2(config)#int range fa 0/2-24 S2(config-if-range)#switchport mode access S2(config-if-range)#spanning-tree portfast S2(config-if-range)#spanning-tree bpduguard enable S2(config-if-range)#shutdown S2(config-if-range)# S2(config-if-range)#exit S2(config)#int range gigabitethernet 1/1-2 S2(config-if-range)#switchport mode access S2(config-if-range)#spanning-tree portfast S2(config-if-range)#spanning-tree bpduguard enable S2(config-if-range)#shutdown S2(config-if-range)#exit S2(config)#int fa 0/18 S2(config-if-range)#switchport port-security S2(config-if-range)#switchport port-security mac-address sticky S2(config-if-range)#no shutdown S2(config-if-range)#exit S2(config)# S3>en S3#conf t S3(config)#enable secret ciscoenpa55 S3(config)#service password-encryption S3(config)#line con 0 S3(config-line)#password ciscoconpa55 S3(config-line)#exec-timeout 5 0 S3(config-line)#logging synchronous S3(config-line)#login S3(config-line)#exit S3(config-line)#line vty 0 4 S3(config-line)#password ciscovtypa55 S3(config-line)#exec-timeout 5 0 S3(config-line)#login

- 16 - S3(config-line)#exit S3(config)#int range fa 0/1-24 S3(config-if-range)#switchport mode access S3(config-if-range)#spanning-tree portfast S3(config-if-range)#spanning-tree bpduguard enable S3(config-if-range)#shutdown S3(config-if-range)# S3(config-if-range)#exit S3(config)#int range gigabitethernet 1/1-2 S3(config-if-range)#switchport mode access S3(config-if-range)#spanning-tree portfast S3(config-if-range)#spanning-tree bpduguard enable S3(config-if-range)#shutdown S3(config-if-range)#exit S3(config)#int range fa 0/5-6 S3(config-if-range)#switchport port-security S3(config-if-range)#switchport port-security mac-address sticky S3(config-if-range)#no shutdown S3(config-if-range)#exit S3(config)# Task11: Verification!!

- 17 - Learning Objectives Secure the routers with strong passwords, password encryption and a login banner. Secure the console and VTY lines with passwords. Configure local AAA authentication. Configure SSH server. Configure router for syslog. Configure router for NTP. Secure the router against login attacks. Configure CBAC and ZPF firewalls. Secure network switches. Introduction In this comprehensive practice activity, you will apply a combination of security measures that were introduced in the course. These measures are listed in the objectives. In the topology, R1 is the edge outer for the Company A while R3 is the edge router for Company B. These networks are interconnected via the R2 router which represents the ISP. You will configure various security features on the routers and switches for Company A and Company B. Not all security features will be configured on R1 and R3. The following preconfigurations have been made: Hostnames on all devices IP addresses on all devices R2 console password: ciscoconpa55 R2 password on VTY lines: ciscovtypa55 R2 enable password: ciscoenpa55 Static routing Syslog services on PC-B DNS lookup has been disabled IP default gateways for all switches Task 1: Test Connectivity and Verify Configurations Step 1. Verify IP addresses. Step 2. Verify routing tables. Step 3. Test connectivity. From PC-A, ping PC-C at IP address 192.168.3.5. Task 2: Secure the Routers Step 1. Set minimum a password length of 10 characters on router R1 and R3. Step 2. Configure an enable secret password on router R1 and R3.

- 18 - Use an enable secret password of ciscoenpa55. Step 3. Encrypt plaintext passwords. Step 4. Configure the console lines on R1 and R3. Configure a console password of ciscoconpa55 and enable login. Set the exec-timeout to log out after 5 minutes of inactivity. Prevent console messages from interrupting command entry. Step 5. Configure vty lines on R1. Configure a vty line password of ciscovtypa55 and enable login. Set the exec-timeout to log out after 5 minutes of inactivity. Set the login authentication to use the default AAA list to be defined later. Note: The vty lines on R3 will be configured for SSH in a later task. Step 6. Configure login banner on R1 and R3. Configure a warning to unauthorized users with a message-of-the-day (MOTD) banner that says: No Unauthorized Access!. Task 3: Configure Local Authentication on R1 and R3 Step 1. Configure the local user database. Create a local user account of Admin01 with a secret password of Admin01pa55. Step 2. Enable AAA services. Step 3. Implement AAA services using the local database. Create the default login authentication method list using local authentication with no backup method. Task 4: Configure NTP Step 1. Enable NTP authentication on PC-A. On PC-A, choose the Config tab, and then the NTP button. Select On for NTP service. Enable authentication and enter a Key of 1 and a password of ciscontppa55. Step 2. Configure R1 as an NTP Client. Configure NTP authentication Key 1 with a password of ciscontppa55. Configure R1 to synchronize with the NTP server and authenticate using Key 1.

- 19 - Step 3. Configure routers to update hardware clock. Configure routers to periodically update the hardware clock with the time learned from NTP. Task 5: Configure R1 as Syslog Client Step 1. Configure R1 to timestamp log messages. Configure timestamp service for logging on the routers. Step 2. Configure R1 to log messages to the syslog server. Configure the routers to identify the remote host (syslog server) that will receive logging messages. You should see a console message similar to the following: SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 192.168.1.6 port 514 started - CLI initiated Step 3. Check for syslog messages on PC-B. On R1, exit config mode to generate a syslog message. Open the syslog server on PC-B to view the message sent from R1. You should see a message similar to the following on the syslog server: %SYS-5-CONFIG_I: Configured from console by console Task 6: Secure Router Against Login Attacks Step 1. Log unsuccessful login attempts to R1. Step 2. Telnet to R1 from PC-A. Telnet from PC-A to R1 and provide the username Admin01 and password Admin01pa55. The Telnet should be successful. Step 3. Telnet to R1 from PC-A and check syslog messages on the syslog server. Exit from the current Telnet session and Telnet again to R1 using the username of baduser and any password. Check the syslog server on PC-B. You should see an error message similar to the following that is generated by the failed login attempt. SEC_LOGIN-4-LOGIN_FAILED:Login failed [user:baduser] [Source:192.168.1.5] [localport:23] [Reason:Invalid login] at 15:01:23 UTC Wed June 17 2009 Task 7: Configure SSH on R3

- 20 - Step 1. Configure a domain name. Configure a domain name of ccnasecurity.com on R3. Step 2. Configure the incoming vty lines on R3. Use the local user accounts for mandatory login and validation and accept only SSH connections. Step 3. Configure RSA encryption key pair for R3. Any existing RSA key pairs should be erased on the router. If there are no keys currently configured a message will be displayed indicating this. Configure the RSA keys with a modulus of 1024. Step 4. Configure SSH timeouts and authentication parameters. Set the SSH timeout to 90 seconds, the number of authentication retries to 2, and the version to 2. Task 8: Configure CBAC on R1 Step 1. Configure a named IP ACL. Create an IP ACL named OUT-IN to block all traffic originating from the outside network. Apply the access list to incoming traffic on interface Serial 0/0/0. Step 2. Confirm that traffic entering interface Serial 0/0/0 is dropped. From the PC-A command prompt, ping PC-C. The ICMP echo replies are blocked by the ACL. Step 3. Create an inspection rule to inspect ICMP, Telnet and HTTP traffic. Create an inspection rule named IN-OUT-IN to inspect ICMP, Telnet and HTTP traffic. Step 4. Apply the inspect rule to the outside interface. Apply the IN-OUT-IN inspection rule to the interface where traffic exits to outside networks. Step 5. Test operation of the inspection rule. From the PC-A command prompt, ping PC-C. The ICMP echo replies should be inspected and allowed through. Task 9: Configure ZPF on R3 Step 1. Test connectivity.

- 21 - Verify that the internal host can access external resources. From PC-C, test connectivity with ping and Telnet to R2; all should be successful. From R2 ping to PC-C. The pings should be allowed. Step 2. Create the firewall zones. Create an internal zone named IN-ZONE. Create an external zone named OUT-ZONE. Step 3. Create an ACL that defines internal traffic. Create an extended, numbered ACL that permits all IP protocols from the 192.168.3.0/24 source network to any destination. Use 101 for the ACL number. Step 4. Create a class map referencing the internal traffic ACL. Create a class map named IN-NET-CLASS-MAP to match ACL 101. Step 5. Specify firewall policies. Create a policy map named IN-2-OUT-PMAP to determine what to do with matched traffic. Specify a class type of inspect and reference class map IN-NET-CLASS-MAP. Specify the action of inspect for this policy map You should see the following console message: %No specific protocol configured in class IN-NET-CLASS-MAP for inspection. All protocols will be inspected. Exit to the global config prompt. Step 6. Apply firewall policies. Create a zone pair named IN-2-OUT-ZPAIR. Specify the source and destination zones that were created earlier. Attach a policy map and actions to the zone pair referencing the policy map previously created, IN-2-OUT-PMAP. Exit to the global config prompt and assign the internal and external interfaces to the security zones.

- 22 - Step 7. Test firewall functionality. Verify that the internal host can still access external resources. From PC-C, test connectivity with ping and Telnet to R2; all should be successful. From R2 ping to PC-C. The pings should now be blocked. Task 10: Secure the Switches Step 1. Configure an enable secret password on all switches. Use an enable secret password of ciscoenpa55. Step 2. Encrypt plaintext passwords. Step 3. Configure the console lines on all switches. Configure a console password of ciscoconpa55 and enable login. Set the exec-timeout to log out after 5 minutes of inactivity. Prevent console messages from interrupting command entry. Step 4. Configure vty lines on all switches. Configure a vty line password of ciscovtypa55 and enable login. Set the exec-timeout to log out after 5 minutes of inactivity. Set the basic login parameter. Step 5. Secure trunk ports on S1 and S2. Configure port Fa0/1 on S1 as a trunk port. Configure port Fa0/1 on S2 as a trunk port. Verify that S1 port Fa0/1 is in trunking mode. Set the native VLAN on S1 and S2 trunk ports to an unused VLAN 99. Set the trunk ports on S1 and S2 so that they do not negotiate by turning off the generation of DTP frames. Enable storm control for broadcasts on the S1 and S2 trunk ports with a 50 percent rising suppression level. Step 6. Secure access ports. Disable trunking on S1, S2 and S3 access ports. Enable PortFast on S1, S2, and S3 access ports.

- 23 - Enable BPDU guard on the switch ports previously configured as access only. Enable basic default port security on all end-user access ports that are in use. Use the sticky option. Re-enable each access port to which port security was applied. Disable any ports not being used on each switch. Task 11: Verification Step 1. Test SSH configuration. Attempt to connect to R3 via Telnet from PC-C. From PC-C, enter the command to connect to R3 via Telnet at IP address 192.168.3.1. This connection should fail, since R3 has been configured to accept only SSH connections on the virtual terminal lines. From PC-C, enter the ssh l Admin01 192.168.3.1 command to connect to R3 via SSH. When prompted for the password, enter the password Admin01pa55 configured for the local administrator. Use the show ip ssh command to see the configured settings. Step 2. Verify timestamps, NTP status for R1 and PC-A. Step 3. Test CBAC firewall on R1. Ping from PC-A to R2 at 10.2.2.2 (should succeed) Telnet from PC-A to R2 10.2.2.2 (should succeed) Ping from R2 to PC-A at 192.168.1.3 (should fail) Step 4. Test ZPF firewall on R3. Ping from PC-C to R2 at 10.2.2.2 (should succeed) Telnet from PC-C to R2 at 10.2.2.2 (should succeed) Ping from R2 to PC-C at 192.168.3.5 (should fail) Telnet from R2 to R3 at 10.2.2.1 (should fail only SSH is allowed) Step 5. Verify port security.

- 24 - On S2, use the show run command to confirm that S2 has added a sticky MAC address for Fa0/18. This should be the MAC address of PC-B. Record the MAC address for later use. Select PC-B. Go to the Config tab. Select FastEthernet under the Interface section. Edit the MAC address field. This should cause a port security violation and S2 should shut down port Fa0/18. Use the show interface Fa0/18 command to view the status of the port. The port should be in the err-disabled state. On PC-B, go to the Config tab. Select FastEthernet under the Interface section. Change the MAC address to another address. From interface configuration mode on switch S2 for Fa0/18, use the no switchport port-security mac-address sticky address command to remove the original PC-B learned address. Shutdown and then re-enable the Fa0/18 interface. On S2, use the show run command to confirm that the port comes up and that the new MAC address has been learned. Note: If it is desired to reconnect the PC with the original MAC address, you can simply change the MAC address on the PC back to the original one and issue the shutdown and no shut down commands on port Fa0/18. If the PC or a NIC is being replaced and will have a new MAC address, you must first remove the old learned address. Step 6. Check results. Your completion percentage should be 100%. Click Check Results to see feedback and verification of which required components have been completed. All contents are Copyright 1992 2009 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.

- 25 - 참고자료및사이트 -영남대학교컴퓨터네트워크및실습강의자료 -TACACS 참고자료 http://blog.naver.com/a51880?redirect=log&logno=30054522012 -NSA/SNAC Router Security Configuration Guide v1.1 -네트워크전문가따라잡기 http://cafe.naver.com/neteg

- 26 -

- 27 -