Secure Cisco Router

!Beginning with Cisco IOS Software Release 12.4(6)T control-plane host

!

! username <name> secret <password> !

no service tcp-small-servers no service udp-small-servers

no ip bootp server

no service dhcp no mop enabled no ip domain-lookup no service pad no ip http server no ip http secure-server no service config !!no cdp enable no lldp transmit no lldp receive no lldp run global ! line con 0

line vty 0 4

! ! service tcp-keepalive-in service tcp-keepalive-out !

Notifications

! memory free low-watermark processor <threshold> memory free low-watermark io <threshold> ! memory reserve critical <value> ! ! snmp-server enable traps cpu threshold ! snmp-server host <host-address> <community-string> cpu ! process cpu threshold type <type> rising <percentage> interval <seconds>

process cpu statistics limit entry-percentage <number> [size <seconds>] ! ! memory reserve console 4096 ! show memory debug leaks ! exception memory ignore overflow io exception memory ignore overflow processor ! ! exception crashinfo maximum files <number-of-files> !

ACL filtering

!

ip access-list extended ACL-INFRASTRUCTURE-IN ! !--- Deny IP fragments using protocol-specific ACEs to aid in !--- classification of attack traffic !

! !--- Deny IP packets containing IP options !

! !--- Deny IP packets with TTL values insufficient to traverse the network !

ip domain-name example.com ! crypto key generate rsa modulus 2048 ! ip ssh time-out 60 ip ssh authentication-retries 3 ip ssh source-interface GigabitEthernet 0/1 ! line vty 0 4

!

...


CategorySecurity CategoryCisco