How to: Restrict HTTP and HTTPS Traffic into a Zone to a Specific Port
By writing a user-defined constraint on a zone endpoint, you can restrict which ports allow HTTP and HTTPS traffic to enter the zone. You can write constraints for other protocols using the System Definition Model (SDM) Software Development Kit (SDK), which includes a sample for an FTP protocol constraint. For more information, visit the System Definition Model (SDM) SDK Workshop online.
To restrict HTTP traffic to a specific port
Add a zone to a logical datacenter diagram.
On the zone, select the inbound zone endpoint and choose Settings and Constraints from the Diagram menu.
The Settings and Constraints Editor appears.
In the left pane of the editor, select the WebSiteEndpoint check box.
Under the WebSiteEndpoint node, select the User Defined check box.
Under the User Defined node, select the WebSite check box.
Select the WebSite node and in the right pane of the editor, expand the Identity section.
In the Identity section, select the ServerBindings check box.
In the Operator column, choose Contains All.
In the Value column, click the ellipsis (…) button.
The ComplexSetting Collection Editor appears.
Click Add.
In the right pane, enter 80 for the Port setting.
This restricts HTTP traffic over this inbound zone endpoint to Port 80 only.
Tip
To enable HTTP or HTTPS traffic over multiple ports, choose Contains One in the Operator column and specify more than one port. If you want to prevent HTTP or HTTPS traffic over specific ports, choose Contains None and specify one or more ports.
The next procedure explains how to constrain HTTPS traffic to a specific port.
To restrict HTTPS traffic to a specific port
Add a zone to a logical datacenter diagram
On the zone, select the inbound zone endpoint and choose Settings and Constraints from the Diagram menu.
The Settings and Constraints Editor appears.
In the left pane of the editor, select the WebSiteEndpoint check box.
Under the WebSiteEndpoint node, select the User Defined check box.
Under the User Defined node, select the WebSite check box.
Select the WebSite node and in the right pane of the editor, expand the Authentication section.
In the Authentication section, select the SecureBindings check box.
In the Operator column, choose Contains All.
In the Value column, click the ellipsis (…) button.
The ComplexSetting Collection Editor appears.
Click Add.
In the right pane, enter 443 for the Port setting. Leave the IPAddress setting blank.
This restricts HTTP traffic over this inbound zone endpoint to Port 443 only.
See Also
Other Resources
Common Application, System and Logical Server Configuration Tasks