Community discussions

MikroTik App
 
ahead
just joined
Topic Author
Posts: 17
Joined: Sat Sep 24, 2011 11:22 pm

How Block The TeamViewer?

Mon Aug 13, 2012 11:53 pm

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 ?
You do not have the required permissions to view the files attached to this post.
 
vddsd
just joined
Posts: 16
Joined: Wed Jul 04, 2012 1:12 am
Location: NB, Canada

Re: How Block The TeamViewer?

Tue Aug 14, 2012 3:20 am

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
 
ahead
just joined
Topic Author
Posts: 17
Joined: Sat Sep 24, 2011 11:22 pm

Re: How Block The TeamViewer?

Wed Aug 15, 2012 12:23 am

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
 
vddsd
just joined
Posts: 16
Joined: Wed Jul 04, 2012 1:12 am
Location: NB, Canada

Re: How Block The TeamViewer?

Fri Aug 17, 2012 5:09 pm

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.
 
bassist
just joined
Posts: 12
Joined: Fri Jun 29, 2012 4:33 pm

Re: How Block The TeamViewer?

Sat Aug 18, 2012 6:14 am

Either that or he has not flushed his DNS cache?

Who is online

Users browsing this forum: No registered users and 75 guests