zoukankan      html  css  js  c++  java
  • TMG 2010 为HTTPS协议添加非标准端口(443)

    1、添加加密端口时,编辑脚本addsslports.vbs 

    addsslports.vbs 脚本内容如下:

    Dim root 
    Dim tpRanges 
    Dim newRange 
    Set root = CreateObject("FPC.Root")
    Set tpRanges = root.GetContainingArray.ArrayPolicy.WebProxy.TunnelPortRanges
    set newRange = tpRanges.AddRange("SSL port name",first port number,last port number)
    tpRanges.Save

    port name --->自定义命名为相应的端口的名称

    first port number--->起始端口号

    last port number---->终止端口号

    例:开放财务国税网站加密端口7001

    port name = finace

    first port number =7001

    last port number=7001

    2、查看TMG服务器添加的非标准的HTTPS协议端口

    使用脚本:ListPorts.vbs ,脚本内容如下:

    Dim root
    Set root = CreateObject("FPC.Root")
    Dim isaArray
    Dim tpRanges
    Dim tpRange 
    Set isaArray = root.GetContainingArray() Set tpRanges = isaArray.ArrayPolicy.WebProxy.TunnelPortRanges For Each tpRange In tpRanges WScript.Echo tpRange.Name & ": " & tpRange.TunnelLowPort & "-" & tpRange.TunnelHighPort Next

    3、删除加密端口时,编辑脚本deltprange.vbs

    portname--->已存在的相应端口对应的名称

    例:port name =finace

    deltprange.vbs 脚本内容如下:

    Dim root
    Dim tpRanges
    
    Set root = CreateObject("FPC.Root") 
    Set tpRanges = root.GetContainingArray.ArrayPolicy.WebProxy.TunnelPortRanges 
    tpRanges.Remove "SSL portname"
    tpRanges.Save True 
  • 相关阅读:
    arduino电子艺术PWM直流电机电调实验
    横坐标轴移动位置
    将不才则三军倾
    Source Insight常用快捷键及注释快捷键设置
    dos2unix批量转换的脚本
    win8: ListView
    win8: Asynchronous Programming in JavaScript with “Promises”
    WindJS 中的$await
    iphone:关于沙盒 存储路径
    win8: hello gril
  • 原文地址:https://www.cnblogs.com/reachos/p/8716747.html
Copyright © 2011-2022 走看看