Cisco IOS (Internetwork Operating System) is the proprietary operating system that runs on most Cisco networking equipment. This guide covers essential security hardening configurations, network setup, and recovery procedures for Cisco devices.
#Set the sourcemonitor session 1 source int <INTERFACE> bothmonitor session 2 source int <INTERFACE> txmonitor session 3 source int <INTERFACE> rx#Set the destinationmonitor session 1 dest int <INTERFACE>
Border Gateway Protocol (BGP) configuration for routing between autonomous systems. For more advanced BGP configurations, see [BGP](/Blue Team/Networking/BGP.md).
ip dhcp pool <NAME>network 10.1.1.0 /24default-router 10.4.4.1dns-server 4.2.2.2lease infinite
Setup DHCPv6:
ipv6 dhcp pool <NAME>dns-server<fe80::1ff:fe23:4567:890a>domain-name<domain>int type <0|number>ipv6 dhcp server <NAME>ipv6 nd other-config-flagip name-server <fe80::1ff:fe23:4567:890a>
ip access-list extended NET-IN-ACLdeny ip 127.0.0.0 0.255.255.255 any logdeny ip 192.0.2.0 0.0.0.255 any logdeny ip 224.0.0.0 31.255.255.255 any logdeny ip host 255.255.255.255 any logdeny ip host 0.0.0.0 any logdeny ip 172.24.X.0 0.0.0.255 any logdeny ip 192.168.0.0 0.0.255.255 any logdeny tcp any any fragmentsdeny udp any any fragmentsdeny icmp any any fragmentsdeny ip any any fragmentspermit tcp host <BGP Peer IP> host <WLAN IP> eq bgppermit tcp host <BGP Peer IP> eq bgp host <WLAN IP>deny ip any host <WLAN IP> logdeny ip 192.168.14.0 0.0.0.255 any logdeny ip 192.168.32.0 0.0.0.255 any logdeny icmp any any #Introspection on Packetspermit udp any eq domain host 172.24.X.7 gt 1023permit udp any eq domain host 172.24.X.7 eq domainpermit tcp any 172.24.X.0 0.0.0.255 establishedpermit udp any range 1 1023 172.24.X.0 0.0.0.255 gt 1023evaluate EGRESS-REF#External Services#DNSpermit udp any gt 1023 host 172.24.x.7 eq domaindeny udp any any eq domaindeny tcp any any eq domain#Mailpermit tcp any host 172.24.x.7 eq smtppermit tcp any host 172.24.x.7 eq pop3#HTTPpermit tcp any host 172.24.x.15 eq wwwpermit tcp any host 172.24.x.15 eq 443permit tcp any host 172.24.x.25 eq wwwpermit tcp any host 172.24.x.25 eq 443deny ip any any
Add a site to a blocklist:
access-list 101 deny tcp any host www.badsite.com eq www