Link to home
Start Free TrialLog in
Avatar of Basit Mahmoud
Basit Mahmoud

asked on

How to enable ports on our ISA server?

We need to enable ports 8443 and 8445 on our ISA server. We can't see where to do this and because we have very basic knowledge are worried about making changes or using tools that might screw up our configuration. can anyone help.
ASKER CERTIFIED SOLUTION
Avatar of Sam Simon Nasser
Sam Simon Nasser
Flag of Palestine, State of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Basit Mahmoud
Basit Mahmoud

ASKER

ty  for your reply Sam.  i have tried this below method  process and it worked.

COMMANDS:

To see exixting ports

C:\WINDOWS\system32>CScript ShowTPRanges.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

NNTP
563
563
SSL
443
443
SSL 8443
8443
8443
---------------------------------------

FOR ADD PORT

C:\WINDOWS\system32>CScript AddTPRange.vbs "SSL basit" 6787


Before Execute port Add  command .  open notepad  copy paste below script and  save it on this location.  C:\WINDOWS\system32 with this name  AddTPRange.vbs. then run above command.


''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

' Copyright (c) Microsoft Corporation. All rights reserved.

' THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE

' RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE

' USER. USE AND REDISTRIBUTION OF THIS CODE, WITH OR WITHOUT MODIFICATION, IS

' HEREBY PERMITTED.

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

' This script creates a new tunnel port range containing a single user-specified

' port to allow clients to send requests, for example, SSL requests, to that

' port.

' This script can be run from a command prompt by entering the

' following command:

'     CScript AddTPRange.vbs RangeName PortNumber

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Option Explicit

 

' Define the constants needed.

Const Error_TypeMismatch = &HD

Const Error_AlreadyExists = &H800700B7

Const Error_OutOfRange = &H80070057

 

Main(WScript.Arguments)

 

Sub Main(args)

    If(args.Count <> 2) Then

        Usage()

    Else

       AddTPRange args(0), args(1)

    End If

End Sub

 

Sub AddTPRange(newRangeName, newTunnelPort)

 

    ' Create the root object.

    Dim root  ' The FPCLib.FPC root object

    Set root = CreateObject("FPC.Root")

 

    'Declare the other objects needed.

    Dim isaArray     ' An ISA Server array object

    Dim tpRanges     ' An FPCTunnelPortRanges collection

    Dim newRange     ' An FPCTunnelPortRange object

    Dim port         ' An Integer

 

    ' Get a reference to the array and to

    ' the collection of tunnel port ranges.

    Set isaArray = root.GetContainingArray()

    Set tpRanges = isaArray.ArrayPolicy.WebProxy.TunnelPortRanges

 

    ' Create a new tunnel port range.

    On Error Resume Next

    port = CDbl(newTunnelPort)

    If Err.Number = Error_TypeMismatch Then

        WScript.Echo "A number must be entered for the port to be included."

        WScript.Quit

    End If

    Err.Clear

    Set newRange = tpRanges.AddRange(newRangeName, port, port)

    If Err.Number = Error_AlreadyExists Then

       WScript.Echo "A port range with the name specified already exists."

       WScript.Quit

    ElseIf Err.Number = Error_OutOfRange Then

        WScript.Echo "The range of permissible ports is from 1 through 65535."

        WScript.Quit

    End If

    On Error GoTo 0

 

    ' Save the changes to the collection of tunnel port ranges

    ' with fResetRequiredServices set to True to restart the Firewall service.

    tpRanges.Save True

    WScript.Echo "Done!"

End Sub

 

Sub Usage()

    'WScript.Echo "Usage:" & VbCrLf _  & "  " & WScript.ScriptName & " RangeName TunnelPort " & VbCrLf _ & "" & VbCrLf _ & "  RangeName  - Name of the tunnel port range to be added" & VbCrLf _ & "  TunnelPort - Port to be included in the new tunnel port range"

 

    WScript.Quit

End Sub
glad to hear that your issue is solved. if my answer in some how helped you, kindly mark it as answer.,