To detect and disable unnecessary services running on Cisco IOS device use Port-filter Policy feature of the Control Plane Protection:
As of the beginning of this exercise, IOS router has detected a few ports inluding SSH, HTTP, telnet port tcp/23 and BOOTP udp/67.
router#show control-plane host open-ports
Active internet connections (servers and established) Prot Local Address Foreign Address Service State
tcp *:22 *:0 SSH-Server LISTEN
tcp *:23 *:0 Telnet LISTEN
tcp *:23 161.44.52.179:2462 Telnet ESTABLIS
tcp *:80 *:0 HTTP CORE LISTEN
udp *:2067 255.255.255.255:0 IOS host service LISTEN
udp *:49 192.168.130.66:0 TACACS service LISTEN
udp *:57554 *:0 IP SNMP LISTEN
udp *:67 *:0 DHCPD Receive LISTEN
udp *:161 *:0 IP SNMP LISTEN
udp *:162 *:0 IP SNMP LISTEN
udp *:1985 *:0 cisco HSRP LISTEN
router#
The goal of our exercise is to block BOOTP.
router#class-map type port-filter match-all BOOTP_TRAFFIC
match port udp 67
exit
policy-map type port-filter BOOTP_POLICY
class BOOTP_TRAFFIC
drop
exit
control-plane host
service-policy type port-filter input BOOTP_POLICY
In addition you can issue "auto secure" and router will be smart enough to disable unnecessary services.
We have 4 guests and no members online