Skip to main content

Cheat Sheet

All the commands from the troubleshooting pages, grouped by OS. For context on what each one tells you, see the page for macOS, Windows, or Linux.

At a Glance​

macOSWindowsLinux
Service nametech.bastion.aiproxyBastionAIProxybastion-aisecurity.service (process: bastion-aiproxy)
Logs live in/var/log/tech.bastion.aiproxy*.logEvent Log → Application, source BastionAIProxysystemd journal

macOS​

Check status (a line starting with a PID, not -, means the agent is active):

sudo launchctl list | grep tech.bastion.aiproxy

Follow the agent and menu bar app logs:

tail -f /var/log/tech.bastion.aiproxy.log /var/log/tech.bastion.aiproxy.toolbar.log

Restart the agent:

sudo launchctl kickstart -k system/tech.bastion.aiproxy

Windows​

Run these from PowerShell.

Check status:

Get-Service BastionAIProxy

Show the 50 most recent log entries, oldest first:

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

Restart the service:

Restart-Service BastionAIProxy

WSL​

Enable mirrored networking in %UserProfile%\.wslconfig, then restart WSL:

[wsl2]
networkingMode=mirrored
wsl --shutdown

Export the Cerbera CA certificate to your user folder:

$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"

Trust it inside an Ubuntu or Debian distribution:

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

Linux​

Check status:

systemctl status bastion-aisecurity.service

Follow the logs:

journalctl -u bastion-aisecurity.service -f

Restart the service:

sudo systemctl restart bastion-aisecurity.service