Suraj Singh's information Security Blog

For people who work on information Security.

Configuring custom SSL ports on ISA/TMG server for forward proxy

Configuring custom SSL ports on ISA/TMG server for forward proxy

  • Comments 9
  • Likes

By default SSL port is 443 , we can use script given on and name of tool is ISA tunnel port range. We can download it and add custom SSL ports as shown below

using same script we can also delete custom SSL ports. Usage is explained above.

Updated section below (10 Dec 2014)

e. so I saw messages below and yes the link i have given above does not work so i have created the script file using article ( and i m uploading them here(attached is the addtprange.vbs to add tunnel port range.), Please find them attached here

you can run it as

CScript AddTPRange.vbs RangeName PortNumber

e.g. CScript AddTPRange.vbs customport 433

I can not attach another script here, to show the ranges here(it does not allow uploading more then 1 file), so i m pasting that as it is below

**************************copy the script below and save it as showtpranges.vbs*********************

Sub ShowTPRanges()

 ' Create the root object.

    Dim root  ' The FPCLib.FPC root object

    Set root = CreateObject("FPC.Root")


    ' Declare the other objects needed.

    Dim isaArray     ' An FPCArray object

    Dim tpRanges     ' An FPCTunnelPortRanges collection

    Dim tpRange      ' An FPCTunnelPortRange object

 ' Get references to the array object

    ' and the collection of tunnel port ranges.

    Set isaArray = root.GetContainingArray()

    Set tpRanges = isaArray.ArrayPolicy.WebProxy.TunnelPortRanges

    If tpRanges.Count > 0 Then

        For Each tpRange In tpRanges

            WScript.Echo tpRange.Name & ": " & tpRange.TunnelLowPort & "-" & tpRange.TunnelHighPort



        WScript.Echo "No tunnel port ranges are defined."

 End If

End Sub



to see existing ranges

CScript showtpranges.vbs

Attachment: AddTPRange.vbs
  • hi can you please share the script as we are unable to access the website. Thanks.

  • Plz share the script ,i am unable to access website.

  • It can be found here

  • You have the script now attached :)

  • I run this this script shared. But still the website was not accessible. When I checked ISA 2006 logs, error code changed to 10061. Can you please guide me.

  • There was some issue in firewall. We checked it and now website is working fine. Thank you for the script.

  • On TMG 2010, this script AddTPrange desn't work. See message error :
    AddTPRange.vbs(151, 9) Error comilation vbscript. What' the problem ?
    please help me.

  • sorry, see error message :
    cscript \AddTPRange.vbs(93, 5) FPC.Root.1: Le fichier spécifié est introuvable.

  • I'm running the script from my EMS. It gives me the following error:

    C:\Users\a-kmazzone\Desktop>cscript AddTPRange.vbs MDM 2001
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.

    C:\Users\a-kmazzone\Desktop\AddTPRange.vbs(93, 5) FPC.Root.1: The system cannot find the file specified.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment