> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshoot the Endpoint

> Diagnose Transparent Mode, login, reporting, and local log issues.

## Overview

The Endpoint runs as a background process, `formal agent`, that the CLI talks to. In Transparent Mode, it passes every connection through untouched unless an active network rule matches it. Applications must trust the Formal CA for the TLS traffic it inspects. It doesn't intercept `127.0.0.1` unless `intercept_localhost` is enabled.

## VPN and Zero Trust clients

Transparent Mode runs alongside VPN and Zero Trust clients on macOS and Linux.

On macOS, the Endpoint never intercepts the traffic of these clients, identified by their signed process:

* Tailscale
* Cloudflare WARP
* Zscaler
* Netskope
* GlobalProtect
* Cisco Secure Client, Cisco Secure Access, and Meraki AnyConnect

On Linux, the Endpoint doesn't bypass VPN processes.

## Transparent Mode symptoms

> [accordion] The VPN or Zero Trust client disconnects
>
> **Cause:** An active network rule matches the client's own traffic. This can happen on Linux, or on macOS with a client that isn't listed above.
>
> **Fix:** Run `formal transparent-proxy disable` to check whether Transparent Mode is involved. Then narrow the rule with a `pre_tls` hostname condition, so it doesn't match the VPN client's hosts. On Linux, match by hostname, because Linux ignores `pre_tcp`.

> [accordion] Docker, SSH, or a local proxy stops connecting
>
> **Cause:** An active network rule matches the flow's destination, port, or process. TLS traffic can also fail if an application does not trust the Formal CA. The Endpoint intercepts a local proxy or SSH tunnel on `127.0.0.1` only when `intercept_localhost` is enabled.
>
> **Fix:** On macOS or Linux, run `formal transparent-proxy status`. Narrow the active rule to the host and port the application needs. Leave `intercept_localhost = false` unless you need loopback interception. If a TLS client rejects the Formal CA, run `sudo formal ca trust` or exclude it from `pre_tls`. For Formal resources, run `formal connect <resource-name>`.
>
> SSH does not use network-rule `outputs`. The Endpoint connects to the original destination.

> [accordion] AirDrop or system DNS stops working on macOS
>
> **Cause:** The macOS Endpoint bypasses Apple `mDNSResponder` and AirDrop-related system processes. That exception does not cover third-party DNS filters.
>
> **Fix:** Run `formal transparent-proxy disable` to check whether Transparent Mode is involved. If the issue continues, check the DNS or network-filter client's status. macOS Endpoint logs are in `~/Library/Logs/Formal/main.log`.

> [accordion] A streaming app stalls or falls back from HTTP/3
>
> **Cause:** On macOS, Transparent Mode blocks outbound UDP/443 by default, so clients can retry over TCP/TLS.
>
> **Fix:** If the app requires QUIC, set `transparent_proxy.allow_quic = true`. With this setting, QUIC bypasses Formal inspection. Restart the app and try again.

> [accordion] DNS still changes after disabling Transparent Mode on Linux
>
> **Cause:** `formal transparent-proxy disable` stops the TCP catch-all. The running Endpoint keeps its DNS proxy active.
>
> **Fix:** To isolate DNS behavior, restart the user service temporarily:
>
> ```bash theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
> systemctl --user stop formal.service
> systemctl --user start formal.service
> ```

## Login and reporting symptoms

> [accordion] The Endpoint shows as logged out
>
> **Cause:** The CLI has no current user session, or the configured login method needs attention.
>
> **Fix:** Check the session, then sign in:
>
> ```bash theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
> formal auth status
> formal auth whoami
> formal auth login
> ```
>
> Browser login opens your organization's authorization flow. Your organization manages OIDC and relay logins. An API-key session is already authenticated.

> [accordion] The CLI cannot reach the Endpoint or it is not reporting
>
> **Cause:** The background agent or user service may not be running, or the device may not be able to reach Formal.
>
> **Fix:** On macOS or Linux, check `formal auth whoami` and `formal transparent-proxy status`. On Linux, check the service and its recent logs:
>
> ```bash theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
> systemctl --user status formal.service
> journalctl --user -u formal.service --since "30 minutes ago"
> ```
>
> On Windows, start **Formal** from the Start menu. If login succeeds but the device still does not report, collect diagnostics for your administrator.

## Collect logs and diagnostics

The Endpoint writes `main.log` in the platform log directory:

| Platform | Log path |
| - | - |
| macOS | `~/Library/Logs/Formal/main.log` |
| Linux | `~/.local/state/formal/main.log` |
| Windows | `%LOCALAPPDATA%\Formal\Logs\main.log` |

On macOS, export network-extension logs from the last two hours:

```bash theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
formal transparent-proxy export-logs --since 2h --info
```

When the CLI can reach the Endpoint agent, create a diagnostics archive:

```bash theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
formal debug --output ./formal-debug.zip
```

Review the archive for sensitive information before sharing it with Formal Support.

## Next Steps

> [card] [Configure the Endpoint](https://docs.formal.ai/docs/guides/client-apps/configuration.md)
>
> Set Transparent Mode, localhost, and QUIC options

> [card] [Write Network Rules](https://docs.formal.ai/docs/guides/network-rules.md)
>
> Select which TCP flows the Endpoint inspects


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.