> 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/p/paloalto-global-protect-vpn.md).

# PaloAlto Global Protect VPN

GlobalProtect is the Palo Alto Networks VPN client. OctoXLabs asks the gateway for the users currently connected and adds each connected computer as a device.

## Use cases

* List devices that are connected through GlobalProtect.

```
Adapters = paloalto-global-protect-vpn
```

## Before you begin

### Network

| Source              | Destination                      | Port               | Protocol                         |
| ------------------- | -------------------------------- | ------------------ | -------------------------------- |
| OctoXLabs connector | GlobalProtect gateway (firewall) | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

The account behind the API key must be allowed to run the operational command `show global-protect-gateway current-user`. The sources name no role. Not verified.

## Create credentials in PaloAlto Global Protect VPN

{% stepper %}
{% step %}

### Generate the key

Open `https://<firewall-ip>/api/?type=keygen&user=<username>&password=<password>` in a browser or HTTP client, with your own values.
{% endstep %}

{% step %}

### Copy the key

The value between the `<key>` tags in the XML answer is the X-PAN-KEY. It stays valid until the password of that user changes. Store it securely.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                                |
| --------- | -------- | ------- | ------- | -------------------------------------------------------------------------- |
| IP        | Yes      | String  |         | IP address of the GlobalProtect host.                                      |
| Port      | No       | Integer | 443     | Port number.                                                               |
| X-PAN-KEY | Yes      | String  |         | API key from the keygen call.                                              |
| Is Secure | No       | Boolean | True    | Use HTTPS.                                                                 |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.                                         |
| Proxy     | No       | String  |         | Proxy address. The connector sends traffic through it as `http://<proxy>`. |

## Troubleshooting

| Error message                                                      | Cause                                             | Fix                                       |
| ------------------------------------------------------------------ | ------------------------------------------------- | ----------------------------------------- |
| Unknown error, Please contact the development team for assistance. | The API call failed with a status other than 401. | Check host, port, key and network access. |

## Change history

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