docs: fix Docker quick starts and document routable-prefix intl reach

README:
- Quick start: drop the Docker command block. The repo ships no ready-to-run
  svxreflector.conf (only the .conf.in template) and the compose bind-mount
  hits the 'auto-create a directory' trap, so the inline 'docker compose up'
  steps fail for a newcomer. Point step 1 at the template and step 2 at
  INSTALL.md / DOCKER.md instead.
- Section 5 routable example: use real countries with ISO-alphabetical section
  names (TRUNK_DE_IT, TRUNK_DE_FR) per the naming standard, plus a clearly
  sub-national name for the regional uplink; real MCCs (IT 222, DE 262, FR 208).

docs/DOCKER.md:
- Rewrite step 1: you must create config/svxreflector.conf before first start;
  warn about the bind-mount directory trap and how to recover; copy from the
  .conf.in template; link the README quick start and INSTALL.md.

docs/DEPLOYMENT_ITALY.md + _IT.md:
- Add a 'Reaching international TGs' section (EN + IT): the national mesh needs
  an international gateway plus ROUTABLE_PREFIXES on each region's gateway trunk
  to reach foreign TGs; notes on '*' for a single-uplink leaf and BLACKLIST
  precedence.
This commit is contained in:
Audric committed 2026-06-17 18:04:40 +02:00
1 parent ab7ab031e9
commit 594eee2056
4 files changed
+162 -54

No files matched your search

+45 -46
View File
@@ -59,13 +59,13 @@ Otherwise, here is the whole idea:
You do **not** need trunking to run GeuReflector. With no `[TRUNK_x]` sections it
behaves exactly like stock SvxReflector, so the fastest way to see it working is
a single server. (Docker is easiest; see [`docs/DOCKER.md`](docs/DOCKER.md) for
the full container guide, or [`docs/INSTALL.md`](docs/INSTALL.md) to build from
source.)
a single server.
1. **Start from the sample config.** The shipped `svxreflector.conf` already has
the `[GLOBAL]`, certificate, `[USERS]`, and `[PASSWORDS]` sections you need.
Copy it and edit two things:
1. **Write a config.** Start from the template
`src/svxlink/reflector/svxreflector.conf.in` — it has the `[GLOBAL]`,
certificate, `[USERS]`, and `[PASSWORDS]` sections. For a standalone server
the only GeuReflector-specific addition is `LOCAL_PREFIX`; leave trunking out
entirely:
```ini
[GLOBAL]
@@ -79,16 +79,9 @@ source.)
MyNodes="change-this-secret"
```
That is the only GeuReflector-specific addition for a standalone server —
everything else is stock SvxReflector configuration.
2. **Run it** (Docker):
```bash
mkdir config && cp /path/to/svxreflector.conf config/svxreflector.conf
docker compose up -d
docker compose logs -f
```
2. **Build and run it.** See [`docs/INSTALL.md`](docs/INSTALL.md) to build from
source and run it as a service, or [`docs/DOCKER.md`](docs/DOCKER.md) to run
it in a container.
3. **Connect a node.** Point an SvxLink node at this server (host + port 5300,
the callsign/password above), key up on a talk group, and watch the talker
@@ -416,10 +409,10 @@ cannot or should not use a full mesh:
additional TG prefixes that are reachable *via* this peer beyond what
`REMOTE_PREFIX` already covers.
**Explicit prefixes** (e.g. `263`) extend the mesh-wide prefix set so the
**Explicit prefixes** (e.g. `208`) extend the mesh-wide prefix set so the
reflector will accept those TGs inbound and transit them onward toward the
owner via the existing gateway fanout (`shouldRelayInbound`). Each intermediate
hop along a chain must declare the same routable prefix on the appropriate trunk
hop along a chain must declare the routable prefix on the appropriate trunk
— there is no automatic propagation.
**`*` wildcard** acts as a default route for a single-uplink regional leaf: local
@@ -444,45 +437,51 @@ prefix at the reflector that actually owns those TGs.
so changing `ROUTABLE_PREFIXES` takes full effect on reflector restart (as with
`REMOTE_PREFIX`).
Example — four-node chain where `leaf` (prefix `222100`) needs to reach TG
`263xx` owned by `far` (prefix `263`), transiting through both `natlit`
(prefix `222`) and `natlde` (prefix `262`):
Example — a chain where an Italian regional leaf (prefix `222100`) needs to
reach a French TG `208xx` (owned by **FR**, prefix `208`), transiting through
**IT** national (`222`) and **DE** national (`262`). IT is not directly meshed
with FR; it reaches FR over its DE trunk. Section names follow the
[international standard](#4-add-a-trunk-section-per-peer): `TRUNK_<ISO>_<ISO>`,
ISO codes alphabetical.
```ini
# On leaf — default route via the only uplink toward natlit
[TRUNK_LEAF_NATLIT]
HOST=natlit.example.com
SECRET=secret_leaf_natlit
# On the Italian regional leaf (prefix 222100) — single uplink to IT national.
# Sub-national link, so any agreed shared name works (section 4). The leaf uses
# '*' as a default route to reach everything via its one uplink.
[TRUNK_IT_NORDOVEST]
HOST=it.example.org
SECRET=secret_it_nordovest
REMOTE_PREFIX=222
ROUTABLE_PREFIXES=*
# On natlit — explicit transit toward 263 via the natlde link
[TRUNK_NATLIT_NATLDE]
HOST=natlde.example.com
SECRET=secret_natlit_natlde
# On IT national (prefix 222) — reach FR (208) via the link to DE.
# International link → TRUNK_<ISO>_<ISO>, alphabetical: DE before IT.
[TRUNK_DE_IT]
HOST=de.example.org
SECRET=secret_de_it
REMOTE_PREFIX=262
ROUTABLE_PREFIXES=263
ROUTABLE_PREFIXES=208
# On natlde — transit 263 back toward natlit (return path).
# The section name MUST be identical on both ends of a link (see section 4),
# so natlde's trunk to natlit reuses the same [TRUNK_NATLIT_NATLDE] name.
[TRUNK_NATLIT_NATLDE]
HOST=natlit.example.com
SECRET=secret_natlit_natlde
# On DE national (prefix 262) — the SAME [TRUNK_DE_IT] link, return path for 208.
# The section name MUST be identical on both ends of a link (section 4).
[TRUNK_DE_IT]
HOST=it.example.org
SECRET=secret_de_it
REMOTE_PREFIX=222
ROUTABLE_PREFIXES=263
ROUTABLE_PREFIXES=208
[TRUNK_NATLDE_FAR]
HOST=far.example.com
SECRET=secret_natlde_far
REMOTE_PREFIX=263
# far owns 263 natively — no ROUTABLE_PREFIXES needed on this last hop
# On DE national — trunk to FR national.
[TRUNK_DE_FR]
HOST=fr.example.org
SECRET=secret_de_fr
REMOTE_PREFIX=208
# FR owns 208 natively — no ROUTABLE_PREFIXES needed on this last hop
```
The `*` wildcard on leaf's uplink also handles the return leg: leaf advertises
interest in `263xx` toward natlit via `MsgPeerTgInterest`, and — on top of that
— accepts the returning audio via the wildcard match (`matchesRoutable`) on its
inbound-accept gate, since `*` is excluded from the mesh prefix set and
The `*` wildcard on the leaf's uplink also handles the return leg: the leaf
advertises interest in `208xx` toward IT via `MsgPeerTgInterest`, and — on top
of that — accepts the returning audio via the wildcard match (`matchesRoutable`)
on its inbound-accept gate, since `*` is excluded from the mesh prefix set and
`hasPrefixRoute` alone cannot serve this role.
### Network requirements
+45
View File
@@ -273,6 +273,51 @@ All reflectors in the mesh must list the same `CLUSTER_TGS` value.
---
## Reaching international TGs (optional)
The mesh above is **purely national** — every region reaches every other Italian
region directly, so no extra routing is needed *inside* Italy. But a region's
prefix table only contains Italian `222…` prefixes, so a TG owned **abroad**
(another country's MCC space, e.g. Germany `262`) matches nothing and stays
local. To let Italian clients reach foreign TGs, two pieces are needed:
1. **Designate an international gateway.** Pick one reflector to join the
international mesh by trunking to foreign countries. Name those links with the
international standard `TRUNK_<ISO>_<ISO>`, ISO codes alphabetical — e.g.
`TRUNK_DE_IT` to Germany, `TRUNK_FR_IT` to France (see the README, section 4).
2. **Point each region at the gateway with `ROUTABLE_PREFIXES`.** On every
region's trunk section *facing the gateway*, declare the foreign prefixes as
reachable via it:
```ini
# On each region, in the trunk section facing the international gateway:
ROUTABLE_PREFIXES=262,208 # DE, FR, … reachable via the gateway
```
Now a regional client keying e.g. `26201` (a German TG) matches the routable
`262` on the gateway trunk, so the region forwards it to the gateway, which
relays it into the international mesh toward Germany. The return audio comes back
via peer interest.
Notes:
- Each prefix you want reachable must be named — there is **no** automatic
propagation. A region that is **not** in the national full mesh (a single
reflector whose only trunk is the gateway) can instead set
`ROUTABLE_PREFIXES=*`, a default route to everything via that one uplink. Do
**not** use `*` on a region that has multiple trunks (it logs a startup
warning).
- `BLACKLIST_TGS` is evaluated first: a blacklisted TG is never forwarded,
regardless of `ROUTABLE_PREFIXES`.
See the README
[Routable prefixes](../README.md#5-routable-prefixes--hierarchical-and-non-full-mesh-topologies-optional)
section and [`TOPOLOGY_EXAMPLES.md`](TOPOLOGY_EXAMPLES.md) §2 for the full
mechanism and diagrams.
---
## Concurrent conversations
There is **no hardcoded limit** on concurrent QSOs over the trunk. The trunk
+48
View File
@@ -280,6 +280,54 @@ Tutti i reflector nella mesh devono avere lo stesso valore di `CLUSTER_TGS`.
---
## Raggiungere i TG internazionali (opzionale)
La mesh sopra descritta è **puramente nazionale**: ogni regione raggiunge
direttamente ogni altra regione italiana, quindi non serve alcun instradamento
aggiuntivo *all'interno* dell'Italia. Ma la tabella dei prefissi di una regione
contiene solo prefissi italiani `222…`, perciò un TG di proprietà **estera**
(lo spazio MCC di un altro paese, es. Germania `262`) non corrisponde a nulla e
resta locale. Per consentire ai client italiani di raggiungere TG esteri servono
due elementi:
1. **Designare un gateway internazionale.** Si sceglie un reflector che entra
nella mesh internazionale collegandosi in trunk ai paesi esteri. Questi link
vanno nominati con lo standard internazionale `TRUNK_<ISO>_<ISO>`, codici ISO
in ordine alfabetico — es. `TRUNK_DE_IT` verso la Germania, `TRUNK_FR_IT`
verso la Francia (vedi il README, sezione 4).
2. **Puntare ogni regione al gateway con `ROUTABLE_PREFIXES`.** Nella sezione
trunk di ogni regione *rivolta al gateway*, si dichiarano i prefissi esteri
come raggiungibili tramite esso:
```ini
# Su ogni regione, nella sezione trunk rivolta al gateway internazionale:
ROUTABLE_PREFIXES=262,208 # DE, FR, … raggiungibili tramite il gateway
```
Ora un client regionale che trasmette ad es. su `26201` (un TG tedesco)
corrisponde al routable `262` sul trunk verso il gateway: la regione lo inoltra
al gateway, che lo rilancia nella mesh internazionale verso la Germania. L'audio
di ritorno torna indietro tramite il peer interest.
Note:
- Ogni prefisso che si vuole raggiungere va elencato esplicitamente — **non**
c'è propagazione automatica. Una regione che **non** fa parte della mesh
nazionale (un reflector il cui unico trunk è il gateway) può invece impostare
`ROUTABLE_PREFIXES=*`, una rotta di default verso tutto tramite quell'unico
uplink. **Non** usare `*` su una regione con più trunk (genera un avviso
all'avvio).
- `BLACKLIST_TGS` viene valutato per primo: un TG in blacklist non viene mai
inoltrato, indipendentemente da `ROUTABLE_PREFIXES`.
Vedi la sezione
[Routable prefixes](../README.md#5-routable-prefixes--hierarchical-and-non-full-mesh-topologies-optional)
del README e [`TOPOLOGY_EXAMPLES.md`](TOPOLOGY_EXAMPLES.md) §2 per il meccanismo
completo e i diagrammi.
---
## Conversazioni simultanee
Non esiste **nessun limite fisso** al numero di QSO simultanei sul trunk. Il trunk
+24 -8
View File
@@ -16,19 +16,35 @@ minimal `debian:bookworm-slim` image.
## Quick start
### 1. Prepare the config directory
### 1. Create the config file *first*
`docker-compose.yml` bind-mounts `./config/svxreflector.conf` into the container
as a file. **You must create that file before the first `docker compose up`.**
> **Gotcha:** if `./config/svxreflector.conf` does not exist when the container
> starts, Docker silently creates it as an **empty directory**, and the
> reflector then fails to start. If that happens, stop the stack, delete the
> stray directory (`rm -rf config/svxreflector.conf`), create the file as below,
> and start again.
The repository does not ship a ready-to-run config — it ships the template
`src/svxlink/reflector/svxreflector.conf.in`. Start from that:
```bash
mkdir config
cp /path/to/your/svxreflector.conf config/svxreflector.conf
mkdir -p config
cp src/svxlink/reflector/svxreflector.conf.in config/svxreflector.conf
# then edit config/svxreflector.conf
```
The config file is mounted read-only into the container. Edit it on the host;
restart the container to apply changes (or use the PTY interface for live
user/password reloads — see below).
At minimum set `LISTEN_PORT`, add a `[USERS]`/`[PASSWORDS]` entry for your node,
and (for trunking) `LOCAL_PREFIX` plus the `[TRUNK_x]` sections. See the
[README quick start](../README.md#quick-start--one-standalone-reflector) for a
minimal standalone config and [`docs/INSTALL.md`](INSTALL.md) for the trunking
additions.
At minimum, add `LOCAL_PREFIX` and any `[TRUNK_x]` sections you need. See
[`docs/INSTALL.md`](INSTALL.md) for the config additions required for trunking.
The file is mounted read-only; edit it on the host and restart the container to
apply changes (or use the PTY interface for live user/password reloads — see
below).
### 2. Build and start