Page 1 of 1
How Block The TeamViewer?
Posted: Mon Aug 13, 2012 11:53 pm
by ahead
I have a network with hundreds of users .
I saw many times some of the users use the "Teamviewer software" to connect somewhere outside of the network.
How can I use mikrotik to block it ?
Re: How Block The TeamViewer?
Posted: Tue Aug 14, 2012 3:20 am
by vddsd
Here's what I just tried, and it worked for me. Assuming all DNS queries go through your router, this should work for you as well.
I created a new Firewall L7 rule called "teamviewer-dns" that has this Regexp: "^.+(teamviewer|dyngate).*$" (without the double quotes).
Then, I created a firewall rule (forward chain) that blocks UDP traffic on port 53 that matches that L7 rule.
Give it a should and report back if it works for you as well.
Cheers,
Shaun
Re: How Block The TeamViewer?
Posted: Wed Aug 15, 2012 12:23 am
by ahead
Here's what I just tried, and it worked for me. Assuming all DNS queries go through your router, this should work for you as well.
I created a new Firewall L7 rule called "teamviewer-dns" that has this Regexp: "^.+(teamviewer|dyngate).*$" (without the double quotes).
Then, I created a firewall rule (forward chain) that blocks UDP traffic on port 53 that matches that L7 rule.
Give it a should and report back if it works for you as well.
Cheers,
Shaun
Does not work. Thanks
Re: How Block The TeamViewer?
Posted: Fri Aug 17, 2012 5:09 pm
by vddsd
As firewall rules are executed in order, ensure that the FWD firewall rule is moved high enough to ensure that it takes effect. Once the rule is in place, you should no longer be able to perform a DNS query for teamviewer.com (using NSLOOKUP or any other similar query tools). If you are still able to query teamviewer, there's probably another firewall rule allowing DNS traffic that has a higher priority than the newly created block rule. The packets counter should go up everytime this block rule is executed.
Re: How Block The TeamViewer?
Posted: Sat Aug 18, 2012 6:14 am
by bassist
Either that or he has not flushed his DNS cache?