What should you be filtering on your edge routers? Cisco provides the following template as a good start to securing your
edge routers. I recommend you have a good read through this and implement as much as you can.
!--- Add anti-spoofing entries.!--- Deny special-use address sources.!--- Refer to RFC 3330 for additional special use addresses.access-list 110 deny ip 127.0.0.0 0.255.255.255 anyaccess-list 110 deny ip 192.0.2.0 0.0.0.255 anyaccess-list 110 deny ip 224.0.0.0 31.255.255.255 anyaccess-list 110 deny ip host 255.255.255.255 any!--- The deny statement should not be configured!--- on Dynamic Host Configuration Protocol (DHCP) relays.access-list 110 deny ip host 0.0.0.0 any!--- Filter RFC 1918 space.access-list 110 deny ip 10.0.0.0 0.255.255.255 anyaccess-list 110 deny ip 172.16.0.0 0.15.255.255 anyaccess-list 110 deny ip 192.168.0.0 0.0.255.255 any!--- Permit Border Gateway Protocol (BGP) to the edge router.access-list 110 permit tcp host bgp_peer gt 1023 host router_ip eq bgpaccess-list 110 permit tcp host bgp_peer eq bgp host router_ip gt 1023!--- Deny your space as source (as noted in RFC 2827).access-list 110 deny ip your Internet-routable subnet any!--- Explicitly permit return traffic.!--- Allow specific ICMP types.access-list 110 permit icmp any any echo-replyaccess-list 110 permit icmp any any unreachableaccess-list 110 permit icmp any any time-exceededaccess-list 110 deny icmp any any!--- These are outgoing DNS queries.access-list 110 permit udp any eq 53 host primary DNS server gt 1023!--- Permit older DNS queries and replies to primary DNS server.access-list 110 permit udp any eq 53 host primary DNS server eq 53!--- Permit legitimate business traffic.access-list 110 permit tcp any Internet-routable subnet establishedaccess-list 110 permit udp any range 1 1023 Internet-routable subnet gt 1023!--- Allow ftp data connections.access-list 110 permit tcp any eq 20 Internet-routable subnet gt 1023!--- Allow tftp data and multimedia connections.access-list 110 permit udp any gt 1023 Internet-routable subnet gt 1023!--- Explicitly permit externally sourced traffic.!--- These are incoming DNS queries.access-list 110 permit udp any gt 1023 host <primary DNS server> eq 53!-- These are zone transfer DNS queries to primary DNS server.access-list 110 permit tcp host secondary DNS server gt 1023 host primary DNS server eq 53!--- Permit older DNS zone transfers.access-list 110 permit tcp host secondary DNS server eq 53 host primary DNS server eq 53!--- Deny all other DNS traffic.access-list 110 deny udp any any eq 53access-list 110 deny tcp any any eq 53!--- Allow IPSec VPN traffic.access-list 110 permit udp any host IPSec headend device eq 500access-list 110 permit udp any host IPSec headend device eq 4500access-list 110 permit 50 any host IPSec headend deviceaccess-list 110 permit 51 any host IPSec headend deviceaccess-list 110 deny ip any host IPSec headend device!--- These are Internet-sourced connections to!--- publicly accessible servers.access-list 110 permit tcp any host public web server eq 80access-list 110 permit tcp any host public web server eq 443access-list 110 permit tcp any host public FTP server eq 21!--- Data connections to the FTP server are allowed!--- by the permit established ACE.!--- Allow PASV data connections to the FTP server.access-list 110 permit tcp any gt 1023 host public FTP server gt 1023access-list 110 permit tcp any host public SMTP server eq 25!--- Explicitly deny all other traffic.access-list 101 deny ip any any
