Preventing Unauthorized Configuration Modifications
Problem
You want to ensure that only authorized devices can use SNMP and TFTP to send or receive configuration information.
Solution
You can use thesnmp-server tftp-server-list configuration command to restrict which TFTP servers the
router can use in response to an SNMP trigger to upload or download
configuration information:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#access-list92permitRouter(config)#172.25.1.1access-list92denyanylogRouter(config)#snmp-server tftp-server-listRouter(config)#92snmp-server communityORARWrwRouter(config)#endRouter#
Begin with IOS Version 12.3(2)T; support for standard named access lists was added:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#ip access-list standardRouter2(config-std-nacl)#TFTPACLpermitRouter2(config-std-nacl)#172.25.1.1deny any logRouter2(config-std-nacl)#exitRouter2(config)#snmp-server tftp-server-listRouter2(config)#TFTPACLsnmp-server communityORARWrwRouter2(config)#endRouter2#
Discussion
By default, the router will send or receive configuration information to any TFTP server. But this can be dangerous because the SNMP request that triggers these transfers cannot be 100 percent protected. Recipe 17.6 showed how you can restrict SNMP access to a specified list of devices. But because SNMP uses UDP, it is not difficult for a malicious user to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access