We have small wifi network here in our village, We have cca 50 PC in net.
We are using several RB750 and one of them is main. We are using /ip dns cache on each one.
The main rb750 is using opendns, and others are using main rb750.
OpenDNS dashboard is reporting that some malware is in our network because someone is trying ask IP for domains which are marked as malware.
To find out which PC is infected is very hard.
My idea is that I will log dns query. Well, that will be a lot of information. BUT I know the domains names so I can check dns query and if the name is “marked as malware” the I will log {or send email} and of course I know source IP and MAC of PC.
what do you think?
is it possible?
how can I do that? where to start?
thanks for help and tips.
You can’t log based on log message content on RouterOS. You only know the content after it has been logged.
Maybe log to an external log server, you can then filter there, or just grep through the files (or use whatever search method your preferred external log server allows for).
Because you are detecting based on connection attempts instead of just DNS queries, this lets you find infected hosts that might be using an internal DNS server, such as a windows domain controller.