Deploy WAAS for Containers
Prerequisites
Install a Container Defender in your workload environment.
When installing container defenders, note that the maximum allowable PIDs (
pids.max) is limited to 1,000 in thetwistlock.shinstallation script.When deploying inline firewall instances on a Defender node with more than 10 protected workloads, increase the memory allocation for the Defender pod to 4GB.
For more information, see the Increase the Defender Pod Limit section in the Container Defender topic.
Create a WAAS In-Line rule for Containers
Open Console, and go to Defend > WAAS > {Container|Host} > In-Line.
Select Add rule.
Enter a Rule Name
Enter Notes (Optional) for describing the rule.
Choose the rule Scope by specifying the resource collection(s) to which it applies.

Collections define a combination of image names and one or more elements to which WAAS should attach itself to protect the web application:

Applying a rule to all images using a wild card (
*) is invalid - instead, only specify your web application images.(Optional) Enable API endpoint discovery
When enabled, the Defender inspects the API traffic to and from the protected API. Defender reports a list of the endpoints and their resource path in Compute > Monitor > WAAS > API discovery.
(Optional) Enable Automatically detect ports for an endpoint to deploy WAAS protection on ports identified in the unprotected web apps report in Monitor > WAAS > Unprotected web apps for each of the workloads in the rule scope.
As an additional measure, you can specify additional ports by specifying them in the protected HTTP endpoints within each app to also include the ports that may not have been detected automatically.
By enabling both Automatically detect ports and API endpoint discovery, you can monitor your API endpoints and ports without having to add an application and without configuring any policies.
Save the rule.
Add an App (policy) to the rule
Select a WAAS rule to add an App in.
Select Add app.
In the App Definition tab, enter an App ID.
The combination of Rule name and App ID must be unique across In-Line and Out-Of-Band WAAS policies for Containers, Hosts, and App-Embedded.
If you have a Swagger or OpenAPI file, click Import, and select the file to load.
If you do not have a Swagger or OpenAPI file, manually define each endpoint by specifying the host, port, and path.
In Endpoint Setup, click Add Endpoint.
Specify endpoint in your web application that should be protected. Each defined application can have multiple protected endpoints.
Enter HTTP host (optional, wildcards supported).
HTTP hostnames are specified in the form of [hostname]:[external port].
The external port is defined as the TCP port on the host, listening for inbound HTTP traffic. If the value of the external port is "80" for non-TLS endpoints or "443" for TLS endpoints it can be omitted. Examples: "*.example.site", "docs.example.site", "www.example.site:8080", etc.
Enter App ports as the internal port your app listens on.
(You can skip to enter App ports, if you selected Automatically detect ports while creating the rule).
When Automatically detect ports is selected, any ports specified in a protected endpoint definition will be appended to the list of protected ports. Specify the TCP port listening for inbound HTTP traffic.
If your application uses TLS or gRPC, you must specify a port number.
Enter Base path (optional, wildcards supported):
Base path for WAAS to match when applying protections.
Examples: "/admin", "/" (root path only), "/*", /v2/api", etc.
If your application uses TLS, set TLS to On.
You can select the TLS protocol (1.0, 1.1, 1.2, and 1.3 for WAAS In-Line, and 1.0, 1.1, and 1.2 for WAAS Out-Of-Band) to protect the API endpoint and enter the TLS certificate in PEM format.
You can select Response headers to add or override HTTP response headers in responses sent from the protected application.

Select Create response header.
To facilitate inspection, after creating all endpoints, click View TLS settings in the endpoint setup menu.
WAAS TLS settings:

Certificate - Copy and paste your server’s certificate and private key into the certificate input box (e.g.,
cat server-cert.pem server-key > certs.pem).Minimum TLS version - A minimum version of TLS can be enforced by WAAS In-Line to prevent downgrading attacks (the default value is TLS 1.2).
HSTS - The HTTP Strict-Transport-Security (HSTS) response header lets web servers tell browsers to use HTTPS only, not HTTP. When enabled, WAAS would add the HSTS response header to all HTTPS server responses (if it is not already present) with the preconfigured directives -
max-age,includeSubDomains, andpreload.max-age=<expire-time>- Time, in seconds, that the browser should remember that a site is only to be accessed using HTTPS.includeSubDomains(optional) - If selected, HSTS protection applies to all the site’s subdomains as well.preload(optional) - For more details, see the following link.
If you application requires API protection, for each path define the allowed methods and the parameters.
Continue to App Firewall settings, select the protections to enable and assign them with actions.
Configure the DoS protection thresholds.
Continue to Access Control tab and select access controls to enable.
Select the bot protections you want to enable.
Select the required Custom rules.
Proceed to Advanced settings for more WAAS controls.
Select Save.
The Rule Overview page shows all the WAAS rules created.
Select a rule to display the Rule Resources, and for each application a list of protected endpoints and the protections enabled for each endpoint are displayed.
Test protected endpoint using the following sanity tests.
Go to Monitor > Events, click on WAAS for containers/hosts/App-Embedded, and observe the events generated.
For more information, see the WAAS analytics help page.
Last updated
Was this helpful?

