> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/c/citrix-lb-and-waf.md).

# Citrix LB and WAF

Citrix ADC (NetScaler) provides load balancing and web application firewall (WAF) features. OctoXLabs uses the NITRO API to add load balancing and content switching virtual servers, with optional WAF policy bindings, and appliance system users to the inventory.

## Use cases

* List load balancing and content switching virtual servers.

```
Adapters = citrix-waf
```

* Find virtual servers that are missing from the CMDB.

```
Adapters = citrix-waf AND NOT Adapters = servicenow-cmdb
```

## Before you begin

### Network

| Source              | Destination                               | Port               | Protocol |
| ------------------- | ----------------------------------------- | ------------------ | -------- |
| OctoXLabs connector | Citrix ADC (NetScaler) management address | 443 (configurable) | HTTPS    |

### Required permissions

| Scope or role                                            | Permission | Needed for                                               |
| -------------------------------------------------------- | ---------- | -------------------------------------------------------- |
| Account on the appliance (roles limit what you can read) | Read       | Virtual servers, system users, and AppFW policy bindings |

## Create credentials in Citrix LB and WAF

{% stepper %}
{% step %}

### Prepare an account

You need a user account on the appliance. The operations you can run depend on the administrative roles assigned to the account. The sources do not name a specific role.
{% endstep %}

{% step %}

### Check the WAF module

Fetching LB and CS server bindings requires the WAF module on the appliance.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                | Required | Type     | Default | Description                                                              |
| ------------------------ | -------- | -------- | ------- | ------------------------------------------------------------------------ |
| IP                       | Yes      | Text     |         | IP address of the Citrix WAF (ADC).                                      |
| Port                     | No       | Number   | 443     | Port.                                                                    |
| Username                 | Yes      | Text     |         | Account name.                                                            |
| Password                 | Yes      | Password |         | Account password.                                                        |
| Fetch LB Server Bindings | No       | Boolean  | False   | Fetch the AppFW policy bindings of each LB server. Needs the WAF module. |
| Fetch CS Server Bindings | No       | Boolean  | False   | Fetch the AppFW policy bindings of each CS server. Needs the WAF module. |
| Is Secure                | No       | Boolean  | True    | Use HTTPS.                                                               |
| Timeout                  | No       | Number   | 30      | Seconds to wait for API responses.                                       |

## Troubleshooting

No adapter-specific error messages are documented for this adapter.

## Change history

{% hint style="info" %}
Available starting from version 5.6.0.
{% endhint %}
