KB-4645367

Map RadiusStack host ports to container listeners

Use the effective Compose project and protocol-specific tests to find port collisions, wrong destinations, and unintended exposures.

14 views

Build a port map before starting Docker

In the shipped 6.2.2 Compose file, defaults are 1812/UDP for authentication, 1813/UDP for accounting, 2083/TCP for RadSec, 3000/TCP for API, 80/TCP for the web UI, 3306/TCP for MariaDB, and 8080/TCP for phpMyAdmin. A host-side environment override usually changes the published number, not the destination port inside the container. TCP and UDP are different listeners even when their numbers match.[9]

Inspect the effective deployment

Run these from the installation directory with the same Compose file selection used to start the services. Use quiet validation instead of sharing a full interpolated Compose manifest, which can reveal credentials. Run the host socket check with sufficient visibility to identify any competing service; Docker publication may not appear as a conventional userspace listener on every host.[9]

docker compose config -q
docker compose ps -a
docker compose port web_ui 80
docker compose port --protocol udp radius 1812
docker compose port --protocol udp radius 1813
docker compose port radius 2083
ss -lntu

For example, an isolated host at 198.51.100.24 already serves TCP 80. Set WEB_UI_PORT=8088 in that installation’s .env and, in its approved window, apply the same Compose configuration. Expect the web container’s internal destination to remain 80 and the management workstation URL to use port 8088. HA is a special case: keep the same API_PORT on both peers because the outgoing peer URL uses the local value, and prefer the documented default 3000.[3][18]

Diagnose by symptom

An address-in-use error before startup is a host binding problem. Compare the conflicting protocol and bind address with the effective project before changing any listener. If the browser works but accounting is missing, send a controlled accounting start/stop from the test NAS; a TCP connection test does not test UDP 1813. If TCP 2083 connects but RadSec fails, check certificate trust, tenant listener enablement and application evidence rather than choosing another port.

After a change, confirm each intended port from its real source network and verify restricted admin ports from a network that should not reach them. Avoid opening database or management access globally to solve a narrow reachability issue. Record the observed bindings and test destinations together so the next operator can reproduce the result.

References