cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3057
Views
8
Helpful
4
Replies

ACL to allow ICMP and SNMP to a particular host

saimbt
Level 1
Level 1

Hi,

We have a internet Router with the IP adress 210.x.x.x and a HP Openview box with the IP address 10.x.x.x, given below is the ACL on the router,

access-list 101 deny ip 127.0.0.0 0.255.255.255 any

access-list 101 deny ip 10.0.0.0 0.255.255.255 any

access-list 101 deny ip 172.16.0.0 0.15.255.255 any

access-list 101 deny ip 192.168.0.0 0.0.255.255 any

access-list 101 deny ip 224.0.0.0 0.0.255.255 any

access-list 101 deny ip host 0.0.0.0 any

access-list 101 deny icmp any any echo

access-list 101 deny icmp any any echo-reply

access-list 101 deny icmp any any timestamp-request

access-list 101 deny icmp any any traceroute

access-list 101 deny 53 any any

access-list 101 deny 55 any any

access-list 101 deny 77 any any

access-list 101 deny 103 any any

access-list 101 deny tcp any any eq 707

access-list 101 deny tcp any any eq chargen

access-list 101 deny udp any any eq 19

access-list 101 deny tcp any any eq echo

access-list 101 deny udp any any eq echo

access-list 101 deny tcp any any eq 135

access-list 101 deny udp any any eq 135

access-list 101 deny udp any any eq tftp

access-list 101 deny udp any any eq netbios-ns

access-list 101 deny udp any any eq netbios-dgm

access-list 101 deny tcp any any eq 139

access-list 101 deny udp any any eq 139

access-list 101 deny tcp any any eq 445

access-list 101 deny tcp any any eq 593

access-list 101 deny tcp any any eq 4444

access-list 101 permit ip any any

We want to allow access ICMP and SNMP to the 10.x.x.x box,

I tried adding the ACL's

access-list 101 permit icmp host 210.x.x.x host 10.x.x.x echo

access-list 101 permit icmp host 210.x.x.x host 10.x.x.x echo-reply

access-list 101 permit udp host 210.x.x.x host 10.x.x.x eq snmp

Once I apply the ACL's i am unable to ping from the 10.x.x.x box to the 210.x.x.x router, without the ACL I can.

Please help

Sai.

4 Replies 4

olorunloba
Level 5
Level 5

The second line of your access list denies all traffic from the 10.0.0.0/8 network. Your permit statement should come before this line, as access list are processed in order.

Thinking about it again, I think we should understand the way your interface are, i.e. local interface, outside interface, and whether the access list are configured for either inbound or outbound traffic.

Hi,

I had allowed IP access only for the 10.x.x.x host but even that failed, moreover the ACL has been applied as "in" and "out" on the ETH and the SERIAL interface, I had put the allow statements as the first 4 statements followed by the deny statements.

Sai.

spremkumar
Level 9
Level 9

hi sai

In the ACL u r blocking 10.0.0.0/8 network on the second line itself and where r u trying to apply this ACL in fastethernet or Serial interface.

is that public ip assigned in the wan or lan interface ?

regds

prem