已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年基层干部妇联年度考核题库
- 2026年质量管理岗入职体系知识自测题库
- 2026年焊工技能比武及板对接立焊管对接固定焊实操评分标准考核题库
- 东风汽车湖北地区2026秋招半结构化面试高频考点
- 2026年文联系统版文艺工作者职业道德建设题库
- 2026年影视制作行业影视技术与制作规范试题
- 2026年军人创伤后成长测试题
- 2026年单招综合练习高效提分资料集
- 2026年村社交通安全政策宣讲知识测试
- Q-ZDGY 005-2022 建筑用硬聚氯乙烯(PVC-U)雨水管
- (二模)2026年合肥市高三第二次教学质量检测语文试卷(含答案)
- 广东省广州市白云广雅中学2024-2025学年八年级下学期数学期中考试卷(含答案)
- 2025年四川省烟草专卖局(公司)招聘考试笔试试题(含答案)1
- 2026年西部计划志愿者招募考试题库及答案
- 2025-2026人教版高中地理选择性必修二期末综合检测练习卷(含解析)
- 产业链数字化全链条协同机制研究
- 2026年水利工程质量检测员网上继续教育考试题库200道完整版
- GB/Z 141-2025蓄电池和蓄电池组起动用铅酸蓄电池减少爆炸危险的装置性能检验的试验方法
- 校服代售合同范本
- 2026年河南交通职业技术学院单招职业适应性考试题库及参考答案详解
- 前瞻性队列研究的随访失访控制策略
评论
0/150
提交评论