how to block teamviewer?

Hi to all

i would like to know if possible to block teamviewer application?

thanks

Yes it is.

I don’t think it is possible to do it through firewall filter since teamviewer uses port 80 and 443. So I would go by adding static entries in dns, and redirecting dns requests to the router:

/ip dns static
add name="teamviewer.com" address=127.0.0.1 ttl=1d

Just block 178.77.120.0/24 dst subnet if forward chain for src address, that shouldn’t have access.

been googeling this subject myself and the stuff people talks of is useing squid and Ids

Why would you want to block it?

hi roger

due of company policy :slight_smile: thanks guys your prompt response gonna try this if this TV wont pass through via 443.

thanks

hi caci

the redirecting to router teamviewer.com it works but adding www. it passthrough and it seems working now the teamviewer application doesn"t handshake

102 ;;; teamviewer_deny
chain=forward action=drop src-address=178.77.120.0/24
in-interface=all-etherne



myron

Ahh, right. Thought it was odd why an individual or household would want to.

TeamViewer prefers to make outbound TCP and UDP connections over port 5938 – this is the primary port it uses, and TeamViewer performs best using this port.

script for address marking
/ip firewall filter
add chain=forward action=add-dst-to-address-list comment=“learn the addresses” protocol=tcp address-list=TeamviewerServers address-list-timeout=none-static dst-port=5938

script for drop trafic for address-list
/ip firewall filter
add action=drop chain=forward comment=“Drop all traffic from address on TeamviewerServers” src-address-list=TeamviewerServers
add action=drop chain=forward comment=“Drop all traffic from address on TeamviewerServers” dst-address-list=TeamviewerServers
add action=drop chain=input comment=“Drop all traffic from address on TeamviewerServers” src-address-list=TeamviewerServers

COMPANY POLICY
Accessing TeamViewer First Time - Warning
Accessing TeamViewer Second Time - Second Warning and Counselling
Accessing TeamViewer Third Time - Third and Final Warning (and Fine)
Accessing TeamViewer Last time - Fired.

Problem solved.

( You cannot stop idiots, you can only get rid of them)

Hi,

Does this solution still applicable?