Files
ayurishchevandClaude Sonnet 5.5 ad6995bb63 Docs restructure, code review, gatherer reliability, JWT key fail-closed
Documentation
- Three levels: DOCS/General (overview, configuration), DOCS/Deployment
  (choose a method, first steps), details per method in Containers/ and
  System_Services/; new root README and DOCS/README map.
- Remove superseded pages (Deployment.md, Deployment_Docker/Native.md, Index.md);
  split the two scenario guides by section.
- Isolate the Timeweb/Hysteria2 records in DEPLOYMENTS/timeweb-hysteria2/
  (not linked from DOCS, listed in .graphifyignore).
- Add DOCS/code_review/ with a time-stamped analysis of the code base.

Gatherer (BUG-02, BUG-03)
- Session key (CN, address, connected_since_ts), baseline from the
  active_sessions snapshot, grace period for sessions missing from the status.
- Status file integrity (TITLE/TIME/END) and freshness; a torn read skips the tick.
- Cache applied after commit; main loop survives exceptions, backs off, and
  stops cleanly on SIGTERM/SIGINT; new client rows start with the first
  frame's totals; five tests.

JWT signing key (SEC-01)
- No built-in default: Core and Profiler refuse to start with a missing,
  placeholder or short (< 32) key; shipped config.ini has an empty value.
- Same rule in install.sh, update.sh (issues a new key when missing or weak),
  docker lib/entrypoint; five tests, conftest.py for the test key.

Each change has a plan and a summary under DOCS/Changes/.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 20:30:45 +03:00

37 lines
2.9 KiB
Markdown

# First steps after the install
The same for every installation method. About ten minutes. You need the URL and the administrator login and password printed by the install script.
| # | Where in the UI | What to do |
|---|---|---|
| 1 | Login page | Open the URL: containers `http://<host>[:port]`, system services `https://<host>:8088` (the certificate is self-signed: check the fingerprint printed by the installer, then accept). Sign in with the printed login and password |
| 2 | **Account Settings** | Change the username and the password; enable two-factor authentication |
| 3 | **PKI** | Check the parameters, press **Initialize PKI**. It runs in the background with progress on the page (key generation takes a while). The **VPN** menu stays locked until it is done |
| 4 | **VPN** | Set the server parameters (port, VPN network, routes, DNS) and press **Apply Configuration**: this writes the OpenVPN `server.conf` |
| 5 | **Server Process** | Press **Start Service**. The page shows the state of OpenVPN |
| 6 | **Certificates** | **Create New Client**, then download its `.ovpn` file (the download icon in the row). Give the file to the user |
| 7 | the host | Open the ports and set up NAT (below) |
| 8 | a client | Import the `.ovpn` file into an OpenVPN client and connect. The client appears on **Clients** and **Analytics** |
## The network side (step 7)
| Method | What is done for you | What you do |
|---|---|---|
| Containers | forwarding, NAT and MSS rules are set inside the container | publish `80/tcp` (or your `--http-port`) and the VPN `udp` port; put TLS in front of the UI |
| System services | `net.ipv4.ip_forward=1` is set; the firewall is **not** touched | open the HTTPS port (`8088`) and the VPN port; NAT for the clients: [Firewall](System_Services/Firewall.md) (`deploy/native/firewall.sh`) |
If you change the OpenVPN port in the **VPN** page, the client profiles carry the new port; with containers keep it consistent with `OVPMON_VPN_PORT`.
## If something does not work
| Symptom | Look at |
|---|---|
| The page does not open | the install script's final summary and health checks; [Containers](Containers/Troubleshooting.md) or [System services](System_Services/Troubleshooting.md) |
| **VPN** menu is locked | the PKI is not initialized yet (step 3) |
| Server does not start | the VPN page was not applied (step 4); then the log: `docker logs` or `/var/log/openvpn/` / `journalctl -u openvpn-server@server` |
| The client connects but has no Internet | forwarding or NAT is missing (step 7) |
## What next
Regular backups ([containers](Containers/Operations.md), [system services](System_Services/Operations.md)), updates (same pages), TLS and host hardening ([Nginx](System_Services/Nginx_Configuration.md), [hardening](System_Services/Troubleshooting.md#host-hardening-recommended-not-done-by-the-scripts)), [security model](../General/Security_Architecture.md).