Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How to use proxy service on pfsense to block team viewer

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 4 Posters 5.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      asankaj2006
      last edited by

      Dear All

      I need to restrict team viewer using pfsense.

      can some help me with this.

      Thanks.
      Asanka

      1 Reply Last reply
      Reply Quote 0
      • H
        hugo
        last edited by

        I believe that TeamViewer is a VNC derivative. Try blocking 5900

        1 Reply Last reply
        Reply Quote 0
        • M
          Metu69salemi
          last edited by

          @http://www.teamviewer.com/fi/kb/10-Which-ports-does-TeamViewer-use.aspx:

          Which ports does TeamViewer use?

          By default TeamViewer uses only the outgoing port 80 (HTTP) - no firewall configuration is necessary. Alternatively you can open port 5938 (TCP) for outgoing connections.

          Only thing is anymore, that you sniff where teamviewer takes connections with port 80 and block that ip

          1 Reply Last reply
          Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            I would have to do a sniff, but from my understanding it runs on 80 and 443 but does not use the http or https protocol - so you should be able to use a layer 7 filter to block that traffic?

            Just did a quick sniff of running it and it only used port 5938 outbound.. Could block that to see how it tries if that port is blocked.

            For dns it used ping3.teamviewer.com and master12.teamviewer.com, I would think simple way to prevent access might to just create dns for the teamviewer.com domain and send bad info ;)

            Ok just blocked 5938 and it went out on 443, this time to master5.teamviewer.com but it was not HTTPS..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 26.07 | Lab VMs 2.9.0, 26.07

            1 Reply Last reply
            Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy