Run the controller on 443 with the console on an internal port
End state: the Ziti controller (edge client API, management API, and router control plane) is served on external
443, while the K3s Traefik ingress fronting the Ziti Console is on an internal-only port (9443 in the examples, with
HTTP on 9080).
On a single K3s node, the controller's LoadBalancer service and Traefik's LoadBalancer both want host port 443, and
only one can have it. The installer moves Traefik for you when you set TRAEFIK_HTTPS_PORT and TRAEFIK_HTTP_PORT on a
fresh install. For 2.1.0 and earlier, see Releases before TRAEFIK_HTTPS_PORT.
Prerequisites
- A fresh install on K3s. The Traefik ports are set only on a fresh install where the installer manages K3s
(
USE_K3S=1, the default). Re-runs andnf-upgradenever move Traefik, and moving it on an existing install is not supported. - A DNS name for the controller that resolves to the node's public address. IP addresses are not supported as the controller advertise address.
- NetFoundry registry credentials (
REGISTRY_USERNAME/REGISTRY_PASSWORD), required to install the Ziti Console Enterprise. - The support stack installed (the default). The installer deploys the Enterprise console only alongside the support stack.
Step 1: Install with the controller on 443 and Traefik moved
Put the ports in an env file:
cat > env-quickstart.sh <<'EOF'
export CTRL_ADDR=controller.example.com # your controller DNS name
export CLIENT_PORT=443
export TRAEFIK_HTTPS_PORT=9443
export TRAEFIK_HTTP_PORT=9080
export REGISTRY_USERNAME='<your-registry-username>'
export REGISTRY_PASSWORD='<your-registry-password>'
EOF
Non-interactive:
nf-quickstart -y -f env-quickstart.sh
Interactive: run nf-quickstart -f env-quickstart.sh. The installer reads the Traefik ports from the file; when
prompted for "What would you like to use as the clientApi port?" enter 443.
After K3s is up and before it creates any LoadBalancer of its own, the installer moves Traefik and waits until
Traefik's Service carries the new ports:
Traefik serves HTTPS on tcp/9443 and HTTP on tcp/9080.
If you leave Traefik on 443 and set CLIENT_PORT=443, the installer refuses the clash: a preflight FAIL with -y,
or a re-prompt for the port interactively.
After the install, the host port map looks like this:
| Host port | Service | Exposure |
|---|---|---|
443 | Ziti controller (edge client API, management API, router control plane) | External |
9443 | Traefik ingress → Ziti Console (Enterprise) | Internal only |
9080 | Traefik HTTP; redirects to https://<host>:9443/ | Internal only |
3022 | Ziti router edge listener (client data plane) | External (if clients connect through this appliance) |
The Enterprise console is reachable at https://<controller-dns>:9443/; nf-install-notes prints this address.
Step 2: (Recommended) Disable the legacy console on 443
The controller ships a legacy console (ZAC) served on the controller's own port at
https://<controller-dns>:443/zac/. Because it rides the controller port, it is reachable externally on 443. For
this deployment pattern, where the console must be internal-only, disable it so nothing console-related is exposed on
443. The Enterprise console on 9443 is unaffected.
Persist the setting in controller-values.yml; do not use a transient helm --set. nf-upgrade re-applies the
controller from controller-values.yml, so a --set flag is reverted (and ZAC comes back) on the next upgrade. Edit
controller-values.yml (in the install directory, reachable with nf) and add:
console:
enabled: false
Then re-apply only the controller:
nf-upgrade -y --controller
kubectl rollout status deploy/ziti-controller -n ziti
Because the setting lives in controller-values.yml, it survives future nf-upgrade runs.
Step 3: Firewall / security group
"Internal only" is enforced at your network boundary; the port split does not restrict access by itself:
- Open
443inbound from the internet (controller edge/management API + router control plane). - Open
3022inbound if endpoints connect to the router on this appliance. - Do NOT open
9443or9080to the internet. Leave them reachable only from inside your network so the console stays internal.
Verification
Run these from a host on the internal network (so 9443 is reachable):
H=controller.example.com
curl -sk -o /dev/null -w "controller :443/version -> %{http_code}\n" https://$H:443/version # 200
curl -sk -o /dev/null -w "legacy ZAC :443/zac/ -> %{http_code}\n" https://$H:443/zac/ # 404 (disabled in Step 2)
curl -sk -o /dev/null -w "console :9443/ -> %{http_code}\n" https://$H:9443/ # 200
curl -s -o /dev/null -w "http :9080/ -> %{http_code} %{redirect_url}\n" http://$H:9080/ # 308 https://$H:9443/
Confirm the controller answers a Ziti login on 443:
ziti edge login $H:443 -u admin -p <admin-password>
The admin password is stored in the ziti-controller-admin-secret secret; nf-install-notes prints it.
Notes
- Any free port works.
9443and9080are examples. No two ofCLIENT_PORT,RTR_EDGE_PORT,TRAEFIK_HTTPS_PORT,TRAEFIK_HTTP_PORT, the K3s API (6443) and the kubelet (10250) may match. - A hand-made HelmChartConfig. If a
traefikHelmChartConfig already setsexposedPort, the installer keeps that port. ATRAEFIK_HTTPS_PORTorTRAEFIK_HTTP_PORTthat disagrees with it stops the install; set the variable to the same port or remove the setting, then re-run. - Re-runs and upgrades never move Traefik. The
TRAEFIK_*ports apply to fresh K3s installs only; withUSE_K3S=0they are ignored. - Port in use by a LoadBalancer. Before installing the controller or router, the installer stops if another
LoadBalanceralready holds that port (kubectl get svc -A | grep LoadBalancer). - Wait times.
TRAEFIK_HELMCHART_WAIT_SECS(default120) andTRAEFIK_PORT_WAIT_SECS(default300) bound how long the installer waits for K3s to deploy Traefik and for its Service to move. - Console DNS. On K3s the console ingress uses the controller DNS name by default. To give the console its own
internal hostname, edit
ingress.tlsHostsinziti-console-enterprise-values.yml(in the install directory, reachable withnf) and runhelm upgrade ziti-console-enterprise ./helm-charts/ziti-console-enterprise/ -n ziti --values ziti-console-enterprise-values.yml. - HTTPS redirect follows the port. The console's HTTP-to-HTTPS redirect targets Traefik's HTTPS port, read at
install and on each
nf-upgrade. See Console HTTPS redirect port. - K3s Traefik disabled. If K3s's args (
--disable traefik) orconfig.yaml(disable: traefik) turn Traefik off, theTRAEFIK_*ports are ignored. The consoles still install, but their Ingress keeps classtraefik, so it is served only by an ingress controller you run for that class; to use another, changeingress.ingressClassNameinziti-console-enterprise-values.ymlorzlan-console-values.yml. The HTTP-to-HTTPS redirect is added only when Traefik is present.
Validated on a fresh single-node K3s install with OpenZiti 2.0.8 and CLIENT_PORT=443, RTR_EDGE_PORT=8443,
TRAEFIK_HTTPS_PORT=9443, TRAEFIK_HTTP_PORT=9080: Ziti login succeeding on 443, the Enterprise console on 9443,
and HTTP on 9080 redirecting to it. A later nf-upgrade left Traefik's ports unchanged.
Releases before TRAEFIK_HTTPS_PORT
On 2.1.0 and earlier (except 2.0.0, where the console's HTTPS redirect ignores the moved port), move Traefik by hand before installing the controller. K3s must already be running, installed the same way the installer does:
curl -sfL https://get.k3s.io | sh -s - --disable local-storage
Then create a K3s HelmChartConfig that moves Traefik's HTTPS (websecure) entry point:
cat <<'EOF' | kubectl apply -f -
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
ports:
websecure:
exposedPort: 9443
EOF
If kubectl get helmchartconfig traefik -n kube-system already returns one, add the ports block to its
valuesContent with kubectl edit helmchartconfig traefik -n kube-system instead, so the settings already in it are
kept. Confirm 443 is free, then install with CLIENT_PORT=443 as in Step 1 (without the TRAEFIK_* lines):
kubectl get svc traefik -n kube-system -o jsonpath='{.spec.ports}' | tr ',' '\n' | grep -A2 websecure
# websecure ... "port":9443 ...
curl -sk -o /dev/null -w "%{http_code}\n" https://localhost:443/ # connection refused (443 free)