已阅读5页,还剩35页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CiscoDeviceHardening,SecuringCiscoRouterInstallationsandAdministrativeAccess,ConfiguringRouterPasswords,ConfiguringRouterPasswords,Aconsoleisaterminalconnectedtoarouterconsoleport.TheterminalcanbeadumbterminaloraPCwithterminalemulationsoftware.,PasswordCreationRules,Passwordscanbe1to25charactersinlength.Passwordscaninclude:AlphanumericcharactersUppercaseandlowercasecharactersSymbolsandspacesPasswordscannothaveanumberasthefirstcharacter.Password-leadingspacesareignored,butanyspacesafterthefirstcharacterarenotignored.Changepasswords.,InitialConfigurationDialog,Wouldyouliketoentertheinitialconfigurationdialog?yes/noyConfiguringglobalparameters:EnterhostnameRouter:BostonTheenablesecretisapasswordusedtoprotectaccesstoprivilegedEXECandconfigurationmodes.Thispassword,afterentered,becomesencryptedintheconfiguration.Enterenablesecret:CantGuessMeTheenablepasswordisusedwhenyoudonotspecifyanenablesecretpassword,withsomeoldersoftwareversions,andsomebootimages.Enterenablepassword:WontGuessMeThevirtualterminalpasswordisusedtoprotectaccesstotherouteroveranetworkinterface.Entervirtualterminalpassword:CantGuessMeVTY,ConfiguretheLine-LevelPassword,router(config)#,lineconsole0lineaux0linevty04,router(config-line)#,login,router(config-line)#,passwordpassword,Enterslineconfigurationmode(console,auxiliary,orvty),Enablespasswordcheckingatlogin,Setstheline-levelpassword,Boston(config)#linecon0Boston(config-line)#loginBoston(config-line)#passwordConUser1,PasswordMinimumLengthEnforcement,router(config)#,securitypasswordsmin-lengthlength,SetstheminimumlengthofallCiscoIOSpasswords,Boston(config)#securitypasswordsmin-length10,EncryptingPasswordsUsingtheservicepassword-encryptionCommand,servicepassword-encryption,Encryptsallpasswordsintherouterconfigurationfile,router(config)#,Boston(config)#servicepassword-encryptionBoston(config)#exitBoston#showrunning-configenablepassword706020026144A061E!linecon0password70956F57A109A!linevty04password7034A18F366A0!lineaux0password77A4F5192306A,EnhancedUsernamePasswordSecurity,router(config)#,usernamenamesecret0password|5encrypted-secret,UsesMD5hashingforstrongpasswordprotectionBetterthanthetype7encryptionfoundinservicepassword-encryptioncommand,Boston(config)#usernamertradminsecret0Curium96Boston(config)#usernamertradminsecret5$1$feb0$a104Qd9UZ./Ak007,router(config)#,usernamenamepassword0password|7hidden-password,Traditionaluserconfigurationwithplaintextpassword,SecuringROMMONwiththenopassword-recoveryCommand,router(config)#,noservicepassword-recovery,Bydefault,Ciscoroutersarefactoryconfiguredwiththeservicepassword-recoveryset.Thenoservicepassword-recoverycommandpreventsconsolefromaccessingROMMON.,Boston(config)#noservicepassword-recoveryWARNING:Executingthiscommandwilldisablepasswordrecoverymechanism.Donotexecutethiscommandwithoutanotherplanforpasswordrecovery.Areyousureyouwanttocontinue?yes/no:yesBoston(config)#,SettingaLoginFailureRate,AuthenticationFailureRatewithLogin,router(config)#,securityauthenticationfailureratethreshold-ratelog,ConfiguresthenumberofallowableunsuccessfulloginattemptsBydefault,routerallows10loginfailuresbeforeinitiatinga15-seconddelayGeneratesasyslogmessagewhenrateisexceeded,Boston(config)#securityauthenticationfailurerate10log,SettingaLoginFailureBlockingPeriod,router(config)#,loginblock-forsecondsattemptstrieswithinseconds,BlocksaccessforaquietperiodafteraconfigurablenumberoffailedloginattemptswithinaspecifiedperiodMustbeenteredbeforeanyotherlogincommandMitigatesDoSandbreak-inattacks,Boston(config)#loginblock-for100attempts2within100,ExcludingAddressesfromLoginBlocking,router(config)#,loginquiet-modeaccess-classacl-name|acl-number,SpecifiesanACLthatisappliedtotherouterwhenitswitchestothequietmode.Ifnotconfigured,allloginrequestswillbedeniedduringthequietmode.ExcludesIPaddressesfromfailurecountingforloginblock-forcommand.,Boston(config)#loginquiet-modeaccess-classmyacl,SettingaLoginDelay,router(config)#,logindelayseconds,Configuresadelaybetweensuccessiveloginattempts.Helpsmitigatedictionaryattacks.Ifnotset,adefaultdelayofonesecondisenforcedaftertheloginblock-forcommandisconfigured.,Boston(config)#logindelay30,VerifyingLogin,router#,showloginfailures,Displaysloginparametersandfailures,Boston(config)#showloginAdefaultlogindelayof1secondsisapplied.NoQuiet-Modeaccesslisthasbeenconfigured.AllsuccessfulloginisloggedandgenerateSNMPtraps.AllfailedloginisloggedandgenerateSNMPtraps.RouterenabledtowatchforloginAttacks.Ifmorethan15loginfailuresoccurin100secondsorless,loginswillbedisabledfor100seconds.RouterpresentlyinWatch-Mode,willremaininWatch-Modefor95seconds.Presentloginfailurecount5.,SettingTimeouts,SettingTimeoutsforRouterLines,router(config-line)#,exec-timeoutminutesseconds,Defaultis10minutesTerminatesanunattendedconnectionProvidesanextrasafetyfactorwhenanadministratorwalksawayfromanactiveconsolesession,Terminatesanunattendedconsoleandauxiliaryconnectionafter3minutesand30seconds,Boston(config)#lineconsole0Boston(config-line)#exec-timeout330Boston(config)#lineaux0Boston(config-line)#exec-timeout330,SettingMultiplePrivilegeLevels,SettingMultiplePrivilegeLevels,router(config)#,privilegemodelevellevelcommand|resetcommand,Level0ispredefinedforuser-levelaccessprivileges.Levels1to14maybecustomizedforuser-levelprivileges.Level15ispredefinedforenablemode(enablecommand).,Boston(config)#privilegeexeclevel2pingBoston(config)#enablesecretlevel2Patriot,ConfiguringBannerMessages,ConfiguringBannerMessages,router(config)#,bannerexec|incoming|login|motd|slip-pppdmessaged,Specifieswhatis“properuse”ofthesystemSpecifiesthatthesystemisbeingmonitoredSpecifiesthatprivacyshouldnotbeexpectedwhenusingthissystem,Boston(config)#bannermotd%WARNING:Youareconnectedto$(hostname)ontheCiscoSystems,Incorporatednetwork.Unauthorizedaccessanduseofthisnetworkwillbevigorouslyprosecuted.%,ConfiguringRole-BasedCLI,Role-BasedCLIOverview,TraditionalapproachoflimitingCLIaccessbasedonprivilegelevelsandenablepasswordsprovidedtoolittlecontrol:NoaccesscontroltospecificinterfacesCommandsplacedonahigherprivilegelevelcouldnotbereusedforlower-privilegedusersCLIviewsprovidemoregranularcontrol.CLIviewsincludeaccessiblecommandsandinterfaces.Accesstoaviewisprotectedwithasecret.Viewscanbegroupedtosuperviewstocreatelargesetsofaccessiblecommandsandinterfaces.,Role-BasedCLIDetails,Rootviewisthehighestadministrativeview.Creatingandmodifyingavieworsuperviewispossibleonlyfromrootview.Thedifferencebetweenrootviewandprivilege15isthatonlyarootviewusercancreateormodifyviewsandsuperviews.CLIviewsrequireAAAnew-model:NecessaryevenwithlocalviewauthenticationViewauthenticationcanbeoffloadedtoanAAAserverusingthenewattributecli-view-nameAmaximumof15CLIviewscanexistinadditiontotherootview.,GettingStartedwithRole-BasedCLI,router#,enableprivilege-levelviewview-name,EnteraprivilegeleveloraCLIview.Useenablecommandwiththeviewparametertoentertherootview.Rootviewrequiresprivilege15authentication.Theaaa-newmodelmustbeenabled.,Boston(config)#aaanew-modelBoston(config)#exitBoston#enableviewPassword:Boston#%PARSER-6-VIEW_SWITCH:successfullysettoviewroot,ConfiguringCLIViews,router(config)#,Createsaviewandentersviewconfigurationmode,Boston(config)#parserviewmonitor_viewBoston(config-view)#password5hErMeNe%GiLdE!Boston(config-view)#commandsexecincludeshowversion,parserviewview-name,router(config-view)#,password5encrypted-passwordcommandsparser-modeinclude|include-exclusive|excludeallinterfaceinterface-name|command,SetsapasswordtoprotectaccesstotheviewAddscommandsorinterfacestoaview,ConfiguringSuperviews,router(config)#,Createsa(super)viewandentersitsconfiguration,Boston(config)#parserviewmonitor_auditBoston(config-view)#password5AnA6TaSiA$Boston(config-view)#viewmonitor_viewBoston(config-view)#viewaudit_view,parserviewview-name,router(config-view)#,password5encrypted-passwordviewview-name,SetsapasswordtoprotectaccesstothesuperviewAddsaCLIviewtoasuperview,Role-BasedCLIMonitoring,router#,DisplaysthecurrentviewnameTheoptionall:DisplaysallCLIviewsconfiguredontherouterIsbydefaultavailableonlytorootusersCanbeaddedtootherCLIviews,showparserviewall,router#,debugparserview,Displaysdebugmessagesforallviews,Role-BasedCLIConfigurationExample,Boston(config)#aaanew-modelBoston(config)#exitBoston#enableview%PARSER-6-VIEW_SWITCH:successfullysettoviewroot.Boston#configureterminalBoston(config)#parserviewfirst%PARSER-6-VIEW_CREATED:viewfirstsuccessfullycreated.Boston(config-view)#secret5firstpassBoston(config-view)#commandexecincludeshowversionBoston(config-view)#commandexecincludeconfigureterminalBoston(config-view)#commandexecincludeallshowipBoston(config-view)#exit,Role-BasedCLIVerification,BostonenableviewfirstPassword:%PARSER-6-VIEW_SWITCH:successfullysettoviewfirst.Boston#?Execcommands:configureEnterconfigurationmodeenableTurnonprivilegedcommandsexitExitfromtheEXECshowShowrunningsysteminformationBoston#show?ipIPinformationparserDisplayparserinformationversionSystemhardwareandsoftwarestatus,Role-BasedCLIVerification(Cont.),Boston#showip?access-listsListIPaccesslistsaccountingTheactiveIPaccountingdatabasealiasesIPaliastablearpIPARPtableas-path-access-listListASpathaccesslistsbgpBGPinformationcacheIPfast-switchingroutecachecasaDisplaycasainformationcefCiscoExpressForwardingcommunity-listListcommunity-listdfpDFPinformationdhcpShowitemsintheDHCPdatabasedrp-More-,SecureConfigurationFiles,SecureConfigurationFilesIntroduction,Traditionalriskthattheconfigurationandtheimageareerasedafteraroutercompromise:Availabilitythreat(downtime)Needtosecuretheprimarybootset(configurationfileandtherunningimage)AlsoknownastheCiscoIOSResilientConfigurationfeatureSpeedsuptherecoveryprocessFilesmustbestoredlocallyFeaturecanbedisabledthroughaconsolesession,SecuringConfigurationFiles,router(config)#,EnablesCiscoIOSimageresilience,Boston(config)#secureboot-imageBoston(config)#secureboot-config,secureboot-image,router(config)#,secureboot-config,Storesasecurecopyoftheprimarybootsetinpersistentstorage,router#,Displaysthestatusofconfigurationresilienceandtheprimarybootsetfilename,showsecurebootset,CiscoIOSResilientConfigurationFeatureVerification,Boston#showsecurebootsetIOSresiliencerouteridJMX0704L5GHIOSimageresilienceversion12.3activatedat08:16:51UTCSunJun162005Securearchiveslot0:c3745-js2-mztypeisimage(elf)filesizeis25469248bytes,runsizeis25634900bytesRunnableimage,entrypoint0 x80008000,runfromramIOSconfigurationresilienceversion12.3activatedat08:17:02UTCSunJun162002Securearchiveslot0:.runcfg-20020616-081702.artypeisconfigconfigurationarchivesize1059bytes,SecureConfigurationFilesRecovery,rommon1,Liststheconte
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025版帕金森病症状分析与护理建议
- 会计高校试讲自我介绍
- 朗读的方法和技巧
- 2025版溃疡病症状辨析与护理技巧解说
- 建构区搭建方法示意图
- 2025版前列腺癌常见症状解析及护理指导原则分享
- 2025版内分泌紊乱的常见表现及护理方法
- 日常生活技巧训练
- 2025-2026学年安徽省六安市高一历史上册期中考试试卷及答案
- 2025年湘教版三年级英语上册月考考试试题及答案
- 2025年年国产AI芯片和高性能处理器厂商排名和行业趋势报告
- 2025年及未来5年中国烘焙花生行业市场调研分析及投资战略咨询报告
- 船舶现场应急预案
- 2025年森林防火考试题目及答案
- 正大杯第十二届全国大学生市场调研与分析大赛题库和答案
- 干花的制作与欣赏课件
- JJF 1072-2000-齿厚卡尺校准规范-(高清现行)
- 一年级下册科学课件-4.11 多姿多彩的植物 - 苏教版(共25张PPT)
- 简易呼吸器课件
- 《课题结题报告》PPT课件.ppt
- 个人劳动仲裁申请书的范本
评论
0/150
提交评论