The panel controls a proxy, so its exposure and its data matter more than its code size.
The compose example publishes every port on loopback only. Keep it that way unless other hosts must use the proxy, and expose the panel only to networks you trust.
If the panel must be reachable from a LAN or the internet:
- Put it behind a TLS reverse proxy.
- Keep authentication enabled.
- Restrict access with a firewall or a VPN.
- Never publish the SOCKS or Privoxy ports to an untrusted network; an open proxy can be abused by anyone who finds it.
The panel uses HTTP Basic authentication. Set PANEL_PASS explicitly, or let the panel
generate a password on first start and store it in /data/panel_password with mode
0600.
PANEL_DISABLE_AUTH=1 removes the only access control the panel has. Use it only when
the port is unreachable from untrusted hosts.
POST endpoints also require the X-Requested-With: XMLHttpRequest header. Browsers do
not attach it to cross-site form posts, which blocks the simplest CSRF attempts, but it
is not a substitute for authentication.
The panel speaks plain HTTP. There is no TLS, no cookie session and no token expiry. On a shared network, credentials and bridge lines can be observed by anyone who can read the traffic. Terminate TLS in front of the panel if that matters.
A bridge line contains an endpoint, a fingerprint and a cert= value. Together they are
credentials for reaching the Tor network through a specific bridge. Treat
/data/bridges.conf, bridges.conf.bak and the history in state.json as sensitive:
- Do not commit
/data. - Do not paste bridge lines into issues, screenshots or logs you publish.
- Do not share a container volume that contains them.
The container does not mount the Docker socket and does not need host networking. The
panel can restart Tor inside its own container and write files under /data; that is
the full extent of its authority.
- It cannot make a compromised host safe.
- It cannot hide the fact that Tor is running from a local observer.
- It does not encrypt the proxy traffic between clients and the container.