Access-list

Answered Question

Hello,

I have a question about access list. I would like to allow only this network 64.18.0.0 mask 255.255.240.0 to relay smtp message to our router. How can I do it? Thanks

Allow This >>>>64.18.0.0 mask 255.255.240.0

Our router IP is 172.16.20.10

I have this problem too.
0 votes
Correct Answer by devang_etcom about 9 years 7 months ago

it is denying the any other source with the any ip addreess SNMP request for the destination address of 172.16.20.10...

so only the subnet or the network which is allowed in the first statment with the permit key work will only interact with the 172.16.20.10 for SNMP all other subnet will be denied...

regards

Devang

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Jon Marshall Thu, 02/15/2007 - 23:00

Hi

access-list SMTP permit tcp 64.18.0.0 0.0.15.255 host 172.16.20.10 eq 25

access-list SMTP deny tcp any host 172.16.20.10 eq 25

Apply the access-list inbound on the router interface.

Those two lines will do what you ask but be aware that there is an implicit deny at the end of any access-list so at the very least you need

access-list SMTP permit ip any any

HTH

Jon

Correct Answer
devang_etcom Fri, 02/16/2007 - 10:15

it is denying the any other source with the any ip addreess SNMP request for the destination address of 172.16.20.10...

so only the subnet or the network which is allowed in the first statment with the permit key work will only interact with the 172.16.20.10 for SNMP all other subnet will be denied...

regards

Devang

Actions

This Discussion