block some pc ip for internet and allow outlook only

hello guys

can u tell me how to block some computer ip for using internet but allow outlook protocal just like smtp port 25,465, and pop3 port 110,995

i m using mikrotik router os 2.9 and using web proxy tell me very soon i m waiting ur reply

thanks
deepak agarwal
System Admin

It will depend on how your firewall is currently set up.

In general you would probably want to have some rules in the forward chain which have the source IP set as something like:

192.168.x.1-192.168.x.100

192.168.x.101-192.168.x.149

then allow access to all destination ports on the unrestricted rule and select the allowed destination ports for the restricted rule(s).