Tom Lawrence wrote:
>>Will anyone help me with the syntax needed to prevent smtp traffic leaving
>>the lan unless its from one of the two email servers?
>
>
> ip access-list extended blocksmtp
> permit tcp host x.x.x.x any eq 25
> permit tcp host y.y.y.y any eq 25
> deny tcp any any eq 25
> permit ip any any
>
> You need the last 'permit', otherwise you'll block all other traffic
> (implicit 'deny all' at the end of every ACL). You can apply it to the
> ethernet as an inbound ACL:
>
> interface FastEthernet0
> ip access-group blocksmtp in
>
> And yes, since you're looking to match a particular TCP port, it has to be
> an extended ACL.
>
>
Tom,
Thanks a lot for your help.
That did the trick. I now have another question, but I'll start a new
thread.
Regards,
SW
|