HTTPS-Proxy: Domain Name Rules

In an HTTPS proxy action, you can add domain name rules that specify an action to take when the server domain in the HTTPS SSL negotiation matches a specified pattern. The server domain can be included in the SNI (Server Name Indication) extension for TLS, or in the server certificate as the CN (Common Name). You also must specify the action to take when an HTTPS request does not match a domain name rule.

You can configure domain name rules to allow, inspect, deny, drop, or block HTTPS requests to a site.

In an HTTPS server proxy action, you can configure a domain name rule to route inbound HTTPS requests to a specific IP address and port.

You can also select a certificate to use when you perform content inspection on inbound HTTPS connections (for example, to a web server hosted behind your Firebox).

Domain Name Rule Patterns

To match the specified pattern in your domain name rules against the name in HTTPS requests to the server, you can use the SNI, the certificate common name, or the IP address of the server.

The SNI is the most accurate option. A certificate CN is often shared between several services from the same site. For example, many Google services such as YouTube and Google Maps share the same certificate CN. If you block HTTPS requests to YouTube based on the certificate CN, requests are also blocked to Google Maps and other services with the same CN. The certificate CN is used if the SNI is not available.

When you create your domain name rules, make sure to review the HTTPS entries in the traffic log messages for the correct SNI/CN information.

Domain Name Rule Actions

For each domain name rule you select the action the proxy takes for HTTPS requests where the SNI, CN, or IP address matches a specified pattern. You must also configure the action to take when no domain name rule is matched. For each rule you can select one of these actions:

  • Allow — Allows the HTTPS request.
  • Inspect — Uses the specified HTTP proxy action or content action to inspect content. For information about content inspection settings, see HTTPS-Proxy: Content Inspection. For information about content actions, see About Content Actions.
  • Deny — Denies the specific request but keeps the connection if possible. Sends a response to the client.
  • Drop — Denies the request, drops the connection, and sends a response to the client.
  • Block — Denies the request, drops the connection, blocks the site, and sends a response to the client. All traffic from this site's IP address is denied for the amount of time you specify in the Blocked Sites configuration. For more information about blocked sites, see About Blocked Sites.

In Fireware v12.1 and lower, you must enable content inspection in the proxy action before you can select the Inspect action in the domain name rules.

For an HTTPS server proxy action when you select the Allow or Inspect action in a domain name rule, you can configure a routing action and port to send the request to a different destination than what is specified in the policy To list. This enables the Firebox to route incoming HTTPS requests to the same public IP address to different internal IP addresses or ports based on the pattern in the HTTPS header.

If you select the Inspect action with a content action, you can configure rules in the content action to route the request to a server based on the content of the decrypted HTTP request. You can also enable TLS/SSL offloading. For more information, see Configure HTTP Content Actions.

Domain Names Rule Examples

The pattern in a domain name rule can match a top-level domain. In a domain name rule you specify only a domain name, not a path.

To deny traffic from any site in the example.com domain, add a domain name rule with the pattern *.example.com and set the If matched action to Deny.

To block a connection to the domain example.com, add a domain name rule with the pattern *.example.com and set the If matched action to Block. In this case, the server IP address associated with example.com is blocked for the default time duration of your Blocked Sites configuration. For more information on blocked sites, see About Blocked Sites.

To allow a connection without content inspection for any site in the domain example.com, add a domain name rule with the pattern *.example.com and set the If matched action to Allow. When you specify a domain in a domain name rule, do not include any characters after the domain name. For example, *.example.com/ is not a valid domain name.

To perform content inspection for any site in the domain example.com, add a Domain Names rule with the pattern *.example.com and set the action to Inspect. When you select the Inspect action, you must select an HTTP proxy or HTTP content action to use for inspection.

In Fireware v12.2 and higher, for each domain name rule for inbound content inspection to a web server on your network, you can select the default Proxy Server certificate or another Proxy Server certificate to use. This enables you to host several different public-facing web servers and applications behind one Firebox and allow different applications to use different certificates for inbound HTTPS traffic. For more information, see Use Certificates with Outbound HTTPS Proxy Content Inspection.

For content inspection to occur, you must configure domain names rules with the Inspect action, or use the Inspect action with a WebBlocker category.

For an example of how to configure domain name rules in an HTTPS-Server proxy action with and without content inspection see:

Add Domain Name Rules

Routing Actions and Content Actions

In an HTTPS server proxy action you can use a routing action or content action to redirect inbound HTTPS requests to a specific server or port based on the domain or IP address of the request.

To use a routing action to redirect inbound HTTPS requests:

  1. In an HTTPS server proxy action, add or edit a domain name rule.
  2. In the domain name rule, select the Allow or Inspect action.
    The Routing Action and Port settings appear.

Screen shot of the Add Rule dialog box for a domain name rule in an HTTPS server proxy action in Fireware Web UI

A domain name rule with routing action settings for an HTTPS server proxy action in Fireware Web UI

Screen shot of a domain name rule with the Allow action for an HTTPS server proxy action in Policy Manager

A domain name rule with routing action settings for an HTTPS server proxy action in Policy Manager

  1. To specify a destination IP address, in the Routing Action settings, select Use. In the adjacent text box, specify the IP address of the internal server.
  2. To specify a destination port, in the Port settings, select Use. In the adjacent text box, specify the port number.

If content inspection is enabled, you can use a content action to implement a host header redirect. With a content action, you can configure routing actions for each internal server and you can enable TLS/SSL Offload as part of a rule action. For more information, see Use an HTTP Content Action for TLS/SSL Offloading.

Domain Names and WebBlocker

For an HTTPS client proxy action you can select a WebBlocker configuration to allow, deny, or inspect website content based on the WebBlocker category.

If the HTTPS request does not match a domain rule and the Action to take if no rule above is matched option is set to Allow, then the WebBlocker configuration you specify in the WebBlocker Category is used to determine sites allowed, denied, or inspected.

If the action in a domain name rule is set to Inspect, the WebBlocker action configured in the HTTP proxy action is used instead of the WebBlocker category selection.

For more information about WebBlocker, see HTTPS-Proxy: WebBlocker.

Domain Names and Content Inspection Exceptions

Domain name rules take higher precedence than any match in the Predefined Content Inspection Exceptions list.

If a domain name rule is matched, the action from that rule will always be applied.

For more information about the predefined content exceptions list, see HTTPS-Proxy: Content Inspection.

Domain Names Rules Order

Domain names rules are processed in the rule order listed if multiple rules match for a domain. To change the order of precedence, select a rule, then use the Move Up or Move Down buttons.

Related Topics

About the HTTPS-Proxy