Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

ACL bocking snmp question

Hi,

I would like to block the snmp traffic generated from to PC and coming into my interface ATM PVC on my router.

the ip addresses are 10.10.10.202 10.10.10.123.

What is the best ACL that I can applie?

Thnaks

Regards

3 REPLIES

Re: ACL bocking snmp question

Do u mean to say the PC 10.10.10.202 and 10.10.10.123 should only be able to poll via SNMP?

for this you can do something like this

access-list 1 10.10.10.202 0.0.0.0

access-list 1 10.10.10.123 0.0.0.0

snmp-server community RO 1 --- the number 1 references the access-list and permits only those IPs for SNMP access

HTH

Narayan

Hall of Fame Super Silver

Re: ACL bocking snmp question

Leonardo

I interpret your question a bit differently. Where Narayan things that you want to enable SNMP from these 2 addresses I believe that you want to block SNMP from these addresses. For that I would suggest an access list something like this:

access-list 101 deny udp host 10.10.10.123 any eq snmp

access-list 101 deny udp host 10.10.10.202 any eq snmp

access-list 101 permit ip any any

apply this access list inbound on the interface where the hosts are connected. The 2 deny statements will deny any snmp traffic sourced from these addresses. The permit any any will allow all other traffic. If there is already an existing access list then you would add these statements to the existing list.

HTH

Rick

Cisco Employee

Re: ACL bocking snmp question

You would probably have to deny snmp traps as well.

access-list 101 deny udp host 10.10.10.123 any eq snmp

access-list 101 deny udp host 10.10.10.123 any eq snmptrap

access-list 101 deny udp host 10.10.10.202 any eq snmp

access-list 101 deny udp host 10.10.10.202 any eq snmptrap

access-list 101 permit ip any any

3420
Views
5
Helpful
3
Replies