# Concepts

The words this documentation uses, and what happens when you change something. The pages for each kind of traffic are [HTTPS for CrushMFT WebInterface](Template-HTTPS-WebInterface.md), [FTP with passive ranges](Template-FTP-Passive-Ranges.md) and [SFTP and other TCP](Template-TCP-or-TLS.md).

- **Listener:** an address and port (or port range) the balancer accepts clients on, with a **mode**:

  | Mode | Client side | Use |
  |---|---|---|
  | `tcp` | bytes relayed unchanged (TLS, FTP and SSH pass through) | FTP, explicit and implicit FTPS, SFTP, passive port ranges, HTTPS passthrough |
  | `tls` | TLS ends at the balancer; the plaintext is relayed | TLS offload for a plain backend port |
  | `http` | HTTP/1.1 is parsed | port 80 with cookie stickiness and forwarding headers |
  | `https` | `tls` plus `http` | CrushMFT WebInterface with `CrushAuth` stickiness |

- **Endpoint:** a CrushMFT server behind a listener: host, port, weight, state (`enabled`, `draining` = only pinned clients, `disabled`), PROXY version, health check, optional backend TLS.
- **Ids and colours.** Every listener and endpoint has a stable id; statistics and URLs follow the id, not the position or the name. Changing an id by hand makes it a new object. A listener's colour (1–10) is used on the map and in charts.
- **Changes apply live.** Saving in the UI writes `prefs.XML`, keeps a backup, and applies the change without a restart.
  - `bind_ip`, `bind_port` and `enabled` close and reopen the listener's socket; open sessions continue.
  - Every other change applies to new connections; an open session keeps the listener settings it started with. On `http`/`https` listeners each request is routed with the current endpoints, states and rules, so those changes also apply from the next request of an open session.
  - `admin_bind_ip` and `admin_port` need a restart; the UI marks them "Needs restart".
  - **Open sessions are never cut** by a configuration change. A removed or stopped listener stops accepting, and its sessions run until they end.
- **Add listener** (Listeners › Add listener) offers three templates and a blank listener. Each template only fills in a draft; every value stays editable.
