{"id":49,"date":"2008-09-20T22:03:00","date_gmt":"2008-09-21T03:03:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=49"},"modified":"2010-02-10T23:39:57","modified_gmt":"2010-02-11T04:39:57","slug":"cisco-router-security","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2008\/09\/20\/cisco-router-security\/","title":{"rendered":"Cisco Router Security"},"content":{"rendered":"<p>Long time since I posted anything here &#8230;. but it&#8217;s just been those times been busy as a bee.  So securing Cisco routers is a big deal especially since the routers (especially the edge routers) can be critical to any organizations infrastructure.  I am not a Cisco guru but am only a student.  However, I thought I should create a list that could help me perform security reviews of routers.  <br \/>Security of routers is important as attackers could add static routes, advertise bad BGP neighbours on edge routers, create inbound tunnel into the intranets and such.  Therefore, it&#8217;s imperative that adequate efforts be put in to secure Cisco routers.  <\/p>\n<p>I thought I&#8217;ll put in my first attempt at creating a small checklist:<\/p>\n<ol><\/p>\n<li>Use SSH for non-console access (&#8220;line vty&#8221; command should not have telnet in it)\n<li>Use class 5 passwords, do *not* use class 7 passwords as they&#8217;re easily reversed (&#8220;enable secret&#8221;) alongwith the use of strong passez\n<li>Limit virtual terminal access by using an ACL<br \/>&nbsp;&nbsp;&nbsp;access-list 100 permit 10.10.10.10 log<br \/>&nbsp;&nbsp;&nbsp;access-list 100 permit 10.10.10.11 log<br \/>&nbsp;&nbsp;&nbsp;access-list deny any log <br \/>&nbsp;&nbsp;&nbsp;line vty 0 4<br \/>&nbsp;&nbsp;&nbsp;&nbsp;access-class 100 in\n<li>Disable Proxy ARP on each interface (&#8220;no ip proxy arp&#8221;)\n<li>Disable CDP as it can be used for information disclosures (&#8220;no cdp run&#8221;)\n<li>Use AAA (TACACS+ or RADIUS) (&#8220;aaa new-model&#8221;, &#8220;aaa authentication&#8221;, etc.)\n<li>Use &#8220;access-list ACL_NAME deny ip any any log&#8221; at the end of each ACL\n<li>Disable http server (&#8220;no ip http server&#8221;)\n<li>Keep the IOS versions updated\n<li>Set centralized logging using a syslog (&#8220;logging internal_ip_address&#8221;)\n<li>Configure NTP to keep the time synchronization (&#8220;ntp server 129.6.15.28&#8221;)\n<li>Disable TCP and UDP small services e.g., echo, chargen, discard, etc. (&#8220;no service tcp-small-servers&#8221; and &#8220;no service udp-small-servers&#8221;)\n<li>Put RFC 1918 (ingress filtering) protections using ACLs<br \/>&nbsp;&nbsp;&nbsp;access-list 100 deny ip 127.0.0.0 0.255.255.255 any log<br \/>&nbsp;&nbsp;&nbsp;access-list 100 deny ip 10.0.0.0 0.255.255.255 any log<br \/>&nbsp;&nbsp;&nbsp;access-list 100 deny ip 192.168.0.0 0.0.255.255 any log<br \/>&nbsp;&nbsp;&nbsp;access-list 100 deny ip 172.16.0.0 0.15.255.255 any log\n<li>Put some more filtering for common IPs<br \/>&nbsp;&nbsp;&nbsp;access-list 100 deny ip 169.254.0.0 0.0.255.255 any log\n<li>Use SNMPv3 with ACLs if you must (&#8220;snmp-server v3 auth priv&#8221;)\n<li>Use SSHv2 (&#8220;ip ssh version 2&#8221;)\n<li>Try to use EIGRP instead of RIP\/OSPF (&#8220;ip authentication mode eigrp N md5&#8221;)\n<li>Use MD5 authentication for RIP\/OSPF if you must use these protocols (RIPv2\/OSPF)<br \/>(&#8220;ip rip authentication mode md5&#8221;) \n<li>For edge routers using BGP authentication (if possible)<br \/>&nbsp;&nbsp;&nbsp;router bgp 10<br \/>&nbsp;&nbsp;&nbsp;&nbsp;neighbor 10.10.10.10 password Cr4zY$%^\n<li>Configure BGP route flap dampening that prevents BGP oscillations (&#8220;bgp dampening&#8221;)\n<li>Use warning banners that could be used for legal purposes for prosecuting hackers<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Long time since I posted anything here &#8230;. but it&#8217;s just been those times been busy as a bee. So securing Cisco routers is a big deal especially since the routers (especially the edge routers) can be critical to any organizations infrastructure. I am not a Cisco guru but am only a student. However, I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[278,279,231,277,200],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-howto","tag-auditing","tag-baselines","tag-cisco","tag-router","tag-security"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}