cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
300
Views
5
Helpful
3
Replies

Access-list

tung
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

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

Jon, I was curious what is the access-list SMTP deny tcp any host 172.16.20.10 eq 25 is for? Thanks

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card