Block TeamViewer Using NGSWG

  • 26 October 2021
  • 0 replies

Userlevel 6
Badge +16

Netskope’s Secure Web Gateway supports HTTP/S traffic on any port.  While Netskope’s Cloud Firewall can control any port and protocol, Secure Web Gateway customers may have use cases to block certain high risk apps that use non-HTTP/S ports and protocols.  For example, TeamViewer uses port 5398 for communication but fails over to port 443 if port 5398 is unavailable.  By default, the Netskope Web Gateway drops non-HTTP/S traffic so administrators can block TeamViewer in its entirety by following the instructions below:


  1. Navigate to Settings > Security Cloud Platform > Steering Configuration.
  2. Select the steering config you wish to apply this to. 
  3. Click EDIT in the top right corner. 
  4. Click the NON-STANDARD PORTS tab.
  5. Check the box next to Steer non-standard ports.
  6. Create entries and and * with port 5938.
  7. Click SAVE.
  8. Change to the EXCEPTIONS tab. 
  9. Add or edit the TeamViewer Certificate Pinned Application and set the action Block.
  10. Create a Real-time Protection policy to block the Remote Access web category or a custom category that includes both and *  This will also prevent users from accessing the TeamViewer site to download the app. 
  11. To test, update your client configuration and start Teamviewer.  You may need to terminate the Teamviewer process and service to ensure a new session is established.


Teamviewer Ports:

Steering Configuration:


0 replies

Be the first to reply!