Skip to main content

Windows

Use these steps to confirm the Cerbera service is running on Windows, pull its logs, and restart it. For problems that look the same on every OS, see Common Issues. All commands are also on the Cheat Sheet.

Check Status​

Open Services (services.msc) and check that BastionAIProxy shows as Running, or from PowerShell:

Get-Service BastionAIProxy

Get the Logs​

A Windows service has no console, so the agent writes to the Event Log instead of a file. Open Event Viewer → Windows Logs → Application, and filter by source BastionAIProxy.

Or from PowerShell, to show the 50 most recent entries, oldest first:

Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='BastionAIProxy'} -MaxEvents 50 | Sort-Object TimeCreated | Format-Table TimeCreated, LevelDisplayName, Message -Wrap

Restart the Agent​

Restart-Service BastionAIProxy

Firefox Traffic Is Not Inspected​

Symptoms: AI tools used in Firefox do not show up in Cerbera, while the same tools in Edge or Chrome do.

Firefox has its own proxy setting. When it is set to No proxy instead of Use system proxy settings, Firefox ignores the system proxy and the agent does not override it. Check it in Firefox under Settings > General > Network Settings.

Enforce the setting from your MDM with the Firefox Proxy policy, set to use the system proxy and locked:

Restart Firefox, then open about:policies to confirm the policy is active.

Windows Subsystem for Linux (WSL)​

Traffic from WSL 2 does not go through the proxy by default, and WSL distributions do not share the Windows certificate store. Cerbera does not configure WSL automatically; set it up manually on each machine.

  1. Enable mirrored networking

    Add the following to %UserProfile%\.wslconfig on Windows:

    [wsl2]
    networkingMode=mirrored

    Then restart WSL from PowerShell with wsl --shutdown.

  2. Export the Cerbera CA certificate

    From PowerShell on Windows:

    $c = Get-ChildItem Cert:\LocalMachine\Root, Cert:\CurrentUser\Root |
    Where-Object Subject -like '*Bastion AIProxy CA*' |
    Sort-Object NotBefore -Descending | Select-Object -First 1
    "-----BEGIN CERTIFICATE-----`n" +
    [Convert]::ToBase64String($c.RawData, 'InsertLineBreaks') +
    "`n-----END CERTIFICATE-----" |
    Out-File -Encoding ascii "$env:USERPROFILE\bastion-aiproxy-ca.crt"
  3. Trust the certificate inside WSL

    On Ubuntu or Debian distributions:

    sudo cp /mnt/c/Users/<your-name>/bastion-aiproxy-ca.crt /usr/local/share/ca-certificates/
    sudo update-ca-certificates
note

The trust-store step depends on the distribution. Other distributions (Fedora, Alpine, Arch…) use different paths and commands, and some tools (Node.js, Python requests, Java) keep their own CA bundle. See The Certificate Is Not Trusted.