Use the agent behind a corporate proxy

Run the ZeusLock agent behind Squid, Blue Coat, Forcepoint or a PAC file: proxy detection, TLS inspection, Basic login, ManageSystemProxy and the exemption to ask for.

If your network already sends web traffic through a forward proxy (Squid, Blue Coat, Forcepoint, Skyhigh, or a cloud gateway reached by a proxy setting or PAC file), the ZeusLock agent works with it. In most networks you set nothing: the agent follows the proxy the computer already has.

How the two fit together

application ──► ZeusLock agent (127.0.0.1:9876) ──► your proxy ──► internet
  • Your proxy stays in charge of egress. Filtering, logging and access rules apply as before.
  • Your proxy sees AI prompts after ZeusLock has anonymised them. The one exception is the agent's own call to ZeusLock: see Step 3.
  • Internal addresses stay direct. The agent follows your bypass list or PAC rules.
  • When the agent quits, it puts your proxy setting back as it was.

What the agent does by itself

With the default UpstreamProxy=auto, the agent reads the proxy configuration the computer had before it started, and follows it for every outbound connection, including its own calls to ZeusLock (licence, policy, incidents).

Your configurationWhat the agent does
Static proxy (host:port) with a bypass listSends outbound traffic to that proxy; bypass entries go direct
PAC file (AutoConfigURL, WPAD-style script)Evaluates your PAC for each destination and follows its answer
No proxyConnects directly

When Group Policy or MDM applies your proxy settings again, the agent notices within a minute, adopts the change and points the computer back at itself. If a policy enforces the setting so the agent cannot take it, use Step 5.

The four settings

All four are optional. The agent reads them from the policy (GPO, MDM profile, /etc/zeuslock/agent.conf) first, then from the JSON configuration file.

KeyDefaultValues
UpstreamProxyautoauto: follow the computer's proxy or PAC. off: always connect directly. http://host:port or http://user:password@host:port: always use this proxy.
TrustSystemCaonTrust the operating system's certificate store for the agent's outbound TLS.
ExtraCaFilenonePath to a PEM file of extra certificate authorities to trust.
ManageSystemProxyonOff (0 / false): the agent never changes the system proxy. Your PAC must send AI traffic to 127.0.0.1:9876.

Step 1 — Set the keys you need

Use the place you already use for ServerUrl and LicenseKey. Text values are strings; on/off values are 1/0 (Windows), <true/>/<false/> (macOS), true/false (Linux, JSON).

Windows — Group Policy (PowerShell on the domain controller)

# Only the keys you need. Same Group Policy object as the agent ("ZeusLock Agent").
$P = "HKLM\SOFTWARE\Policies\ZeusLock"
Set-GPRegistryValue -Name "ZeusLock Agent" -Key $P -ValueName UpstreamProxy -Type String -Value "http://proxy.corp:3128" | Out-Null
Set-GPRegistryValue -Name "ZeusLock Agent" -Key $P -ValueName ExtraCaFile   -Type String -Value "C:\ProgramData\Corp\proxy-ca.pem" | Out-Null

macOS — add to the payload of your com.zeuslock.agent profile

<key>UpstreamProxy</key>
<string>http://proxy.corp:3128</string>
<key>ExtraCaFile</key>
<string>/Library/Application Support/Corp/proxy-ca.pem</string>

Linux — add the lines to /etc/zeuslock/agent.conf

UpstreamProxy=http://proxy.corp:3128
ExtraCaFile=/etc/ssl/corp/proxy-ca.pem

One computer without GPO or MDM — add the key to the JSON file

The file is the one written in Install without GPO or MDM, Step 3 (Windows C:\ProgramData\ZeusLockDLP\config.json, macOS /Library/Application Support/ZeusLockDLP/config.json, Linux /etc/zeuslock-dlp/config.json).

{
  "ServerUrl": "https://api.zeuslock.ai",
  "LicenseKey": "zl_YOUR_ORGANISATION_KEY",
  "UpstreamProxy": "http://proxy.corp:3128"
}

Then restart the agent: tray icon → Quit and open it again, or, on a managed computer (no Quit), sign out and back in.

Expected: the ZeusLock icon shows Protection active and web pages still load.

Step 2 — TLS inspection: let the agent trust your CA

If your proxy decrypts and re-signs HTTPS, the agent must trust your certificate authority. By default it trusts the operating system's certificate store (TrustSystemCa on), the same store browsers use. If your CA is already deployed to the computers (Group Policy, MDM, update-ca-certificates), there is nothing to do. Otherwise set ExtraCaFile to a PEM file (Step 1).

Expected: no unable to verify errors in the agent log (see Step 6).

Step 3 — Exempt the ZeusLock API host from inspection

In the normal (cloud) mode, the agent sends the text of a prompt to your ServerUrl (api.zeuslock.ai, or your own server) to decide what to anonymise. That call goes through your proxy. If the proxy decrypts it, the original, un-anonymised text is readable on the proxy and in its logs.

Add the ServerUrl host to the proxy's do-not-inspect list: ZIA "Do Not Inspect", Netskope do-not-decrypt, Squid ssl_bump splice, FortiGate ssl-exempt, Palo Alto decryption exclusion. Keep this exemption in an organisation that uses ZeusLock On-Device too: prompts are checked on the computer, but the agent still calls ZeusLock for its licence, policy, incidents and model key.

Expected: your proxy logs show the connection to the ZeusLock host as not decrypted.

Step 4 — Proxy login

Basic authentication is supported: put the credentials in UpstreamProxy (http://user:password@proxy.corp:3128). NTLM and Kerberos proxy authentication are not supported: allow the agent's traffic without authentication (by source address or computer group).

Expected: no requires authentication (407) in the agent log.

Step 5 — When your policy must own the proxy setting

A per-computer proxy policy on Windows, or an MDM proxy payload on macOS, can leave no room for the agent. Then switch ManageSystemProxy off, set UpstreamProxy to your proxy explicitly, and send AI traffic to the agent from your PAC file.

Windows — Group Policy

$P = "HKLM\SOFTWARE\Policies\ZeusLock"
Set-GPRegistryValue -Name "ZeusLock Agent" -Key $P -ValueName ManageSystemProxy -Type DWord  -Value 0 | Out-Null
Set-GPRegistryValue -Name "ZeusLock Agent" -Key $P -ValueName UpstreamProxy     -Type String -Value "http://proxy.corp:3128" | Out-Null

macOS — profile payload

<key>ManageSystemProxy</key>
<false/>
<key>UpstreamProxy</key>
<string>http://proxy.corp:3128</string>

Linux — /etc/zeuslock/agent.conf

ManageSystemProxy=false
UpstreamProxy=http://proxy.corp:3128

Your PAC file — at the top of FindProxyForURL

// At the top of FindProxyForURL: send AI services to the ZeusLock agent first.
var ai = ["chatgpt.com", "openai.com", "oaiusercontent.com", "claude.ai", "anthropic.com",
          "gemini.google.com", "generativelanguage.googleapis.com", "copilot.microsoft.com",
          "copilot.com", "perplexity.ai", "grok.com", "poe.com", "chat.deepseek.com",
          "api.mistral.ai", "api.cohere.ai", "api.groq.com", "api.together.xyz",
          "api.replicate.com", "api.huggingface.co", "cursor.sh"];
for (var i = 0; i < ai.length; i++) {
    if (host == ai[i] || dnsDomainIs(host, "." + ai[i]))
        return "PROXY 127.0.0.1:9876; PROXY proxy.corp:3128";
}

PROXY proxy.corp:3128 after the agent is a fallback: when the agent is not running, AI traffic goes out through your proxy unchecked. Remove it if AI traffic must never leave without ZeusLock (it then fails until the agent runs).

Expected: the agent log no longer repeats enforced by policy and cannot be taken by the agent, and a test on https://chatgpt.com is caught.

Step 6 — Check on one computer

  1. Switch on the testing logs (one computer only) and restart the agent:
    # Windows (PowerShell)
    New-Item -ItemType File -Force "$env:APPDATA\ZeusLock DLP Agent\testing-logs.on"
    # macOS (Terminal)
    touch "$HOME/Library/Application Support/ZeusLock DLP Agent/testing-logs.on"
    # Linux (Terminal)
    touch "$HOME/.config/ZeusLock DLP Agent/testing-logs.on"
  2. Open logs/agent.log in the agent's data folder and look for the start-up lines:
    [Upstream] System proxy at start: foreign
    [Upstream] Trusted CAs: 58 from the OS store, 0 from ExtraCaFile
    [Upstream] Outbound route: PAC http://proxy.corp/corp.pac (system)
  3. Switch the testing logs off again and restart the agent:
    # Windows (PowerShell)
    Remove-Item "$env:APPDATA\ZeusLock DLP Agent\testing-logs.on"
    # macOS (Terminal)
    rm "$HOME/Library/Application Support/ZeusLock DLP Agent/testing-logs.on"
    # Linux (Terminal)
    rm "$HOME/.config/ZeusLock DLP Agent/testing-logs.on"

Expected: System proxy at start: foreign (a proxy that is not the agent, so yours) and an Outbound route line that names your proxy or PAC. If the route shows direct (no corporate proxy detected) on a computer that has a proxy, set UpstreamProxy explicitly.

What to ask your network team

  1. Allow the ZeusLock ServerUrl host on port 443 and exempt it from TLS inspection.
  2. Either deploy the inspection CA to the operating system's store (usual case), or exempt the AI provider hosts from TLS inspection: ZeusLock already inspects those flows before they leave the computer.
  3. If the proxy requires NTLM or Kerberos, exempt the agent's traffic from authentication.

Known limits

  • Proxy login: Basic only. NTLM and Kerberos are not supported.
  • With ManageSystemProxy off and the fallback in your PAC, AI traffic is unchecked while the agent is not running.
  • On Linux, the agent sets the GNOME proxy setting only (KDE's own proxy setting is not set).

If something fails

ProblemFix
Nothing loads while the agent runs; log shows ETIMEDOUTThe agent goes direct in a proxy-only network. Check the Outbound route line and set UpstreamProxy.
Log shows requires authentication (407)The proxy wants credentials. Add Basic credentials to UpstreamProxy, or exempt the agent's traffic.
Log shows unable to verify or self-signed certificate in certificate chainThe inspection CA is not in the operating system's store. Deploy it, or set ExtraCaFile.
Log repeats enforced by policy and cannot be taken by the agentA policy owns the proxy setting. Use Step 5.
Route shows direct (no corporate proxy detected)The agent did not find your proxy. Set UpstreamProxy to http://host:port.

See also: Agent configuration reference · Verify and troubleshoot the agent