Using DataCore AI Behind a Proxy
Explore this Page
- Overview
- Internet Hosts to Allow Through the Proxy
- Setting the Proxy During Installation
- Changing the Proxy After Installation
- Checking Connectivity to Internet Services
- Proxies That Inspect HTTPS
- Protecting the Proxy User Name and Password
- Features Affected When api.dis.io Cannot Be Reached
- Proxy Settings for the DataCore Management Console and Web Browsers
Overview
This document helps you set up DataCore AI on a network where a proxy server is the only route to the internet. DataCore AI 1.1 and later can reach the internet through a proxy.
- Proxy traffic: Only internet traffic goes through the proxy. The connections from DataCore AI to the SANsymphony REST service, and the connections between its own services on the host, never do.
- Installation: If the DataCore AI host reaches the internet only through a proxy, you must install DataCore AI 1.1 from the release archive and set the proxy during installation. DataCore AI 1.0 has no proxy setting. If DataCore AI 1.0 is installed and reaches the internet directly, it can update to 1.1. After the update, you can set the proxy with
sudo dcai set-proxy. - Supported proxies: Proxies with no authentication, or with Basic authentication (user name and password). The proxy address can start with
http://orhttps://. - Unsupported authentication: NT LAN Manager (NTLM) and Kerberos proxy authentication are not supported. Ask your network team to let the DataCore AI host through without authentication.
Internet Hosts to Allow Through the Proxy
DataCore AI connects only to the following hosts on the internet, on TCP 443 (HTTPS). Ask your network team to allow these hosts through the proxy.
| Host Name | Purpose |
|---|---|
api.anthropic.com
|
Answering questions. |
api.dis.io
|
License check-in, documentation search, performance baselines, usage statistics, and update checks. |
datacoredownloads.blob.core.windows.net
|
Downloading updates. This host is optional. If it is blocked, DataCore AI works but cannot download updates. |
Setting the Proxy During Installation
You can set the proxy when you install DataCore AI, either in the installation wizard or in an unattended installation.
Setting the Proxy in the Installation Wizard
The Configuration page of the installation wizard has a Proxy section. The section is collapsed unless it has information to show. For the installation steps, refer to Installing DataCore AI with the Installation Wizard.
| Field | Description |
|---|---|
| Proxy address | The proxy address, in the form http://host:port or https://host:port. For example, http://proxy.example.com:3128. The address must not contain a user name or password. |
| Proxy user name | Enter a user name only if the proxy asks for one. |
| Proxy password | Enter a password only if the proxy asks for one. |
- If the machine already has a proxy set, the wizard suggests its address and shows the message "Suggested from this machine's proxy setting". The wizard uses the address only if you keep it. If that setting contains a password, the wizard also shows the message "It holds a password, which was not copied".
- When you run the installer again on an installed system, the Proxy section shows the proxy in use. Any field that you leave blank keeps its current value, and the following check boxes appear:
- Remove authentication: Keeps the proxy and removes its user name and password.
- Remove the proxy: Removes the proxy entirely.
Setting the Proxy in an Unattended Installation
In an unattended (--silent) installation, add the following options. For the installation steps, refer to Unattended Installation.
| Option | Description |
|---|---|
--proxy-url <address>
|
The proxy address. |
--proxy-username <name>
|
The proxy user name. |
--proxy-password-file <path>
|
A file that contains the proxy password. |
--remove-proxy-authentication
|
When you run the installer again, keeps the proxy and removes its user name and password. |
--trust-host-certificates
|
Also trusts this machine's CA certificates. Refer to Proxies That Inspect HTTPS. |
--ca-bundle <file or folder>
|
The certificates to trust. Use it with --trust-host-certificates. |
For example:
sudo bash install.sh --silent --accept-eula \
--rest-ip <REST service address> \
--anthropic-api-key-file <path> \
--proxy-url http://proxy.example.com:3128 \
--proxy-username <name> \
--proxy-password-file <path>
If you run the installer again, any option that you do not specify keeps its current value.
There is no installer option that matches the wizard's Remove the proxy check box. --remove-proxy-authentication removes only the user name and password and keeps the proxy address. To remove the proxy entirely, run sudo dcai clear-proxy after installation.
DataCore AI stores the proxy user name and password encrypted. No command or log shows them.
Changing the Proxy After Installation
To change the proxy on an installed system, run the following commands on the DataCore AI host:
| Command | Description |
|---|---|
sudo dcai set-proxy
|
Sets or changes the proxy. Without options, the command prompts you for each value and shows the proxy in use. Press Enter to keep a value. The password is hidden as you type. The command takes --proxy-url, --proxy-username, and --proxy-password-file, as the installer does. Any option that you do not specify keeps its current value. |
sudo dcai set-proxy --remove-proxy-authentication
|
Keeps the proxy and removes its user name and password. |
sudo dcai clear-proxy
|
Removes the proxy and its user name and password. |
sudo dcai config
|
Shows the proxy in use (Internet proxy) and whether authentication is set (Proxy authentication : set). The command never shows the user name or password. |
When you run sudo dcai set-proxy:
- The command tests a new user name and password first. It sends them to the proxy once, before anything changes.
- If the proxy refuses them, nothing changes, and the command shows the following message:
Example
Proxy authentication FAILED at proxy authentication: http://proxy.example.com:3128 refused the proxy user name or password (407).
Nothing was changed. - If the test fails for another reason, for example, the proxy does not answer, the setting is applied only when you confirm, or when you add
--apply-anyway.
The set-proxy, clear-proxy, trust-host-certificates, and untrust-host-certificates commands each restart DataCore AI, which signs everyone out, and then check connectivity. Refer to Checking Connectivity to Internet Services.
Checking Connectivity to Internet Services
The sudo dcai check-connectivity command checks whether DataCore AI can reach each internet service that it uses, through the proxy, and shows where a failure happens. Run the following command on the DataCore AI host whenever answers fail, documentation search is unavailable, or the license cannot check in:
- The command checks the proxy user name and password first, once. Then each part of DataCore AI checks each internet service that it uses, through the proxy.
- Each line names the service, and then shows either
reachable(with the host and how long the check took) orFAILED at <step>with the cause and the action to take. - A feature that is turned off shows
not in use. This is not an error. - The command exits with a non-zero code when a service in use is not reachable.
The following example shows a healthy result:
Proxy
Proxy authentication accepted (by http://proxy.example.com:3128, 55 ms)
agent
License service reachable (api.dis.io, 139 ms)
Update channel reachable (api.dis.io, 205 ms)
Update download reachable (datacoredownloads.blob.core.windows.net, 294 ms)
Anthropic API reachable (api.anthropic.com, 72 ms)
Telemetry reachable (api.dis.io, 134 ms)
ssy-mcp
Telemetry reachable (api.dis.io, 368 ms)
kb-mcp
Documentation search reachable (api.dis.io, 402 ms)
Documentation embeddings reachable (api.dis.io, 139 ms)
Telemetry reachable (api.dis.io, 135 ms)
tmy-mcp
Telemetry baselines reachable (api.dis.io, 368 ms)
Telemetry reachable (api.dis.io, 139 ms)
The following table describes the results:
| Result | Meaning | Action |
|---|---|---|
reachable
|
The service answered. | None. |
reachable … HTTPS is inspected on the way |
The service was reached through this machine's CA certificates, because the proxy inspects HTTPS. | None. |
not in use
|
The feature is turned off, or no proxy user name and password are set. | None, unless your proxy asks for a user name and password. |
FAILED at connect: cannot connect to the proxy …: the address or port is wrong, or the proxy is down.
|
The proxy did not accept the connection. | Check the address with sudo dcai config, and correct it with sudo dcai set-proxy. Or ask your network team whether the proxy is running. |
FAILED at proxy authentication … (407) |
The proxy refused the user name or password. DataCore AI then stops sending them, so that retries cannot lock the proxy account. | Set them again with sudo dcai set-proxy. If the refusal was brief (for example, the proxy's directory was unavailable), run sudo dcai check-connectivity --retest-proxy. |
FAILED at proxy CONNECT … refused to connect to <host> |
The proxy is reachable but does not allow that host. | Ask your network team to allow the host named on the line. |
FAILED at timeout … did not answer within 10 s |
No answer arrived in time, through the proxy or directly. | Check that the proxy is running and allows the host, and then run the command again. |
FAILED at DNS
|
The host name could not be resolved. If no proxy is set, this machine may need one to reach the internet. | Set the proxy with sudo dcai set-proxy, or fix DNS on the host. |
FAILED at proxy TLS
|
An https:// proxy presented a certificate that this machine does not trust. |
Run sudo dcai trust-host-certificates, or check whether the proxy address must start with http://. |
FAILED at TLS … may be inspecting HTTPS |
The proxy inspects HTTPS. | Refer to Proxies That Inspect HTTPS. |
FAILED at answer … it came from something in the path |
Something other than the service answered, for example, a proxy's block page. | Ask your network team to allow the host named on the line. |
Host certificates … FAILED … not loaded |
This machine's CA certificates are trusted, but DataCore AI could not load them, so it trusts only the public ones. | Add the CA where sudo dcai config says the certificates are copied from, and then run sudo dcai restart. |
The --retest-proxy option sends the user name and password once more. If the proxy accepts them, DataCore AI uses them again without a restart.
When DataCore AI cannot reach the Anthropic API (for example, the proxy is down, its address is wrong, or it refuses the password), the chat shows the following answer:
DataCore AI could not reach the Anthropic API, which writes every answer. An administrator can find the cause with `sudo dcai check-connectivity` on the DataCore AI host.
Proxies That Inspect HTTPS
A proxy that inspects HTTPS replaces the certificate of each site with one from your organization's own certificate authority (CA). By default, DataCore AI trusts only public certificates, so it refuses those connections.
You can fix this in one of the following ways:
- Exempt the hosts from inspection (recommended): Ask your network team to exempt
api.anthropic.com,api.dis.io, anddatacoredownloads.blob.core.windows.netfrom inspection. Nothing changes on the DataCore AI host. - Trust this machine's CA certificates: Run the following command:
DataCore AI then also trusts the certificates in this machine's CA bundle, which must contain your organization's CA. The default bundle depends on the Linux distribution:
Distribution Default CA bundle Ubuntu, Debian /etc/ssl/certs/ca-certificates.crtRHEL, Rocky Linux, CentOS Stream /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pemTo use another file, or every file in a folder, add
--ca-bundle <file or folder>. In an unattended installation, use--trust-host-certificatesand--ca-bundle.
When you trust this machine's CA certificates, the proxy can read everything that DataCore AI sends to the internet: your questions, the answers, and the SANsymphony details used to answer them. Exempting the hosts from inspection avoids this.
When you trust this machine's CA certificates:
- Only certificates are copied. A private key in the same file or folder is never copied.
- A CA that you add later is used after you next run
sudo dcai restart. - An update keeps the certificates that were last copied.
- To stop trusting the certificates, run
sudo dcai untrust-host-certificates. sudo dcai configshows the setting, the path, and how many certificates are trusted. For example:Host certificates : trusted, 149 certificates from /etc/ssl/certs/ca-certificates.crt
Answers That Appear All at Once Through a Proxy That Inspects HTTPS
Some proxies that inspect HTTPS hold back a response until it is complete. An answer then appears all at once, after it has been fully written, instead of word by word. A long answer can take a minute or more to appear. The answer is complete, and only the display is delayed.
To see answers word by word again, ask your network team to exempt api.anthropic.com from inspection.
Protecting the Proxy User Name and Password
How well the proxy user name and password are protected depends on whether the proxy address starts with http:// or https://:
- With Basic authentication, the proxy user name and password are sent on each connection to the proxy.
- With an
http://proxy address, the user name and password cross your network unencrypted. Anyone who can read the traffic between the DataCore AI host and the proxy can read them. - An
https://proxy address encrypts the connection to the proxy, so the user name and password do not cross your network in readable form. The proxy's certificate must then be trusted: either issued by a public CA, or by a CA in this machine's bundle after you runsudo dcai trust-host-certificates.
Features Affected When api.dis.io Cannot Be Reached
DataCore AI keeps working for a while when it cannot reach api.dis.io, and then stops in two steps, counted from the last successful license check-in:
| Time Since the Last License Check-In | Features That Stop |
|---|---|
| 48 hours | Documentation search and performance baselines. |
| 30 days | Sign-in. |
To find out why api.dis.io cannot be reached, run sudo dcai check-connectivity.
Proxy Settings for the DataCore Management Console and Web Browsers
The DataCore AI panel in the DataCore Management Console and web browsers use the Windows proxy settings, not the proxy setting of DataCore AI.
If Windows sends traffic to a proxy, add the DataCore AI host to one of the following:
- The proxy exceptions (bypass) list in Windows.
- The DIRECT rules of your proxy auto-configuration (PAC) file.
Without that entry, the panel's traffic goes through the proxy, including the SANsymphony user name and password that it sends to sign in. Depending on the proxy, the panel then fails (the proxy cannot reach the DataCore AI host, refuses it, or inspects HTTPS) or works, with the sign-in passing through the proxy. Add the entry in either case.
The Bypass proxy server for local addresses option is not enough when the DataCore AI host has an IP address or a fully qualified name, because the option covers only names without a dot. Such a host needs its own entry.
After you change the Windows proxy settings, close and reopen the DataCore Management Console.
Learn More