Microsoft Internet Security and Acceleration Server 2004 SDK |
The AddServerPublishingRule method creates a new FPCPolicyRule object representing a server publishing rule in the collection and returns a reference to it.
HRESULT AddServerPublishingRule( BSTR Name, BSTR PublishedServerIP, BSTR Protocol, IFPCPolicyRule** ppNewRule );
This method returns one of the following:
Server publishing rules are used when there is a network address translation (NAT) relationship defined by a network rule (FPCNetworkRule) between the network on which the clients sending requests to the published server are located (the source network) and the network on which the published server is located (the destination network). A server publishing rule uses secure network address translation (SecureNAT), which allows requests that are sent to an IP address that is valid on the source network to reach an IP address on a protected network behind the ISA Server computer. The server publishing rule maps a port number and an IP address (or IP addresses) on the network adapter of the ISA Server computer that listens for requests from the clients to a port number and an IP address on the published server. Requests that meet the conditions specified by the rule are then redirected to the IP address specified in the PublishedServerIP parameter. However, only requests that are identified as part of the protocol specified in the Protocol parameter are processed by the server publishing rule and redirected to the published server.
The name assigned to the new rule must be unique. If the AddServerPublishingRule method is called with the name of an existing policy rule, the method fails.
The server publishing rule represented by the IFPCPolicyRule interface created can be configured by setting the properties of the IFPCServerPublishingProperties interface accessed through the ServerPublishingProperties property.
Before the properties of a new server publishing rule can be written to persistent storage by calling the Save method, at least one network or network set on which the ISA Server will listen for requests must be specified for the rule through the IPsOnNetworks or IPsOnNetworkSets property.
The AddServerPublishingRule method creates a new FPCPolicyRule object representing a server publishing rule in the collection and returns a reference to it.
Function AddServerPublishingRule( _ ByVal Name As String, _ ByVal PublishedServerIP As String, _ ByVal Protocol As String _ ) As FPCPolicyRule
This method returns a reference to the FPCPolicyRule object if the operation is successful. Otherwise, an error is raised that can be intercepted by using an error handler.
Server publishing rules are used when there is a network address translation (NAT) relationship defined by a network rule (FPCNetworkRule) between the network on which the clients sending requests to the published server are located (the source network) and the network on which the published server is located (the destination network). A server publishing rule uses secure network address translation (SecureNAT), which allows requests that are sent to an IP address that is valid on the source network to reach an IP address on a protected network behind the ISA Server computer. The server publishing rule maps a port number and an IP address (or IP addresses) on the network adapter of the ISA Server computer that listens for requests from the clients to a port number and an IP address on the published server. Requests that meet the conditions specified by the rule are then redirected to the IP address specified in the PublishedServerIP parameter. However, only requests that are identified as part of the protocol specified in the Protocol parameter are processed by the server publishing rule and redirected to the published server.
The name assigned to the new rule must be unique. If the AddServerPublishingRule method is called with the name of an existing policy rule, the method fails.
The server publishing rule defined by the FPCPolicyRule object created can be configured by setting the properties of the FPCServerPublishingProperties object accessed through the ServerPublishingProperties property.
Before the properties of a new server publishing rule can be written to persistent storage by calling the Save method, at least one network or network set on which the ISA Server will listen for requests must be specified for the rule through the IPsOnNetworks or IPsOnNetworkSets property.
Server: Requires Windows Server 2003 or
Windows 2000.
Version: Requires Internet Security and Acceleration
Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration
Server 2004 Administration Library.