09-04-2008 08:30 AM - edited 03-03-2019 11:24 PM
I need to block all outgoing smtp traffic except for the mail server.. I implemented the following
access-list 102 permit tcp host 10.x.x.x any eq smtp
access-list 102 deny tcp any any eq smtp
access-list 102 permit ip any any
I applied it the interface all the hosts are connected to
ip access-group 102 in
But its still sending mail from another ip within the network to the outside world.. what am I doing wrong?
09-04-2008 09:07 AM
Try to change list as
access-list 102 deny tcp any any eq smtp
access-list 102 permit tcp host 10.x.x.x any eq smtp
then run
"sh ip route list 102 "
to see what is matching with list 102.
09-04-2008 09:25 AM
Mohammed
The processing of access lists is sequential and when any line of the access list is a match then there is no more processing of the access list. Since the first line in your suggestion will deny tcp any any eq smtp there would never be any match on the second line since host 10.x.x.x would be denied on the first line.
And I am puzzled what you would see in show ip route when you try to filter it by that access list since the IP routing table has no information in it about tcp 25 (smtp). Show access-list 102 would seem to be more logical.
HTH
Rick
09-04-2008 09:27 AM
Sorry,
its my mistake!!
09-04-2008 11:15 AM
I got it working. Thanks anyways guys...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide