I built openziti through docker-compose, however, I am not sure which router is tunnerler enabled
Could you explain the difference between these three
Sure.
ziti-edge-router
is the "main" router for the example. It's the one that all the clients will end up connecting to. You'll see that it's public - it is meant to be exposed outside of docker so that your tunneler or other sdks can connect into the docker environment, via this router.
ziti-fabric-router-br
is a router that does NOT have the edge enabled. It's job is to particpate as part of the mesh overlay network itself. If you open the config file, you'll ese the section for edge listeners is all commented out meaning edge clients can't connect to this router:
#listeners:
# bindings of edge and tunnel requires an "edge" section below
# - binding: edge
# address: tls:0.0.0.0:3022
# options:
# advertise: ziti-fabric-router-br:3022
# connectTimeoutMs: 5000
# getSessionTimeout: 60
# - binding: tunnel
# options:
# mode: host #tproxy|host
ziti-edge-router-wss
was meant to be used for BrowZer. It listens on http for web socket connections instead of TCP-based connections specifically to allow browsers to connect to the router in support of Browzer. At this time, that router isn't used in any documentation that I know of but it's there for educational purposes.
to determine which routers are tunneler enabled you can run ziti edge list ers -j
and look for isTunnelerEnabled
of true or use the filter:
ziti edge list ers 'isTunnelerEnabled = true'
Doing that with the complex docker compose quickstart you'll see ALL of the routers are tunneler enabled:
$ docker exec -it traceroute-ziti-controller-1 /var/openziti/ziti-bin/ziti edge list ers 'isTunnelerEnabled = true'
╭────────────┬───────────────────────┬────────┬───────────────┬──────┬─────────────╮
│ ID │ NAME │ ONLINE │ ALLOW TRANSIT │ COST │ ATTRIBUTES │
├────────────┼───────────────────────┼────────┼───────────────┼──────┼─────────────┤
│ QYZLPl-tn3 │ ziti-private-red │ true │ true │ 0 │ zitired │
│ d8eLPF9Rz3 │ ziti-fabric-router-br │ true │ true │ 0 │ fabric-only │
│ lHWfAl9tn3 │ ziti-edge-router │ true │ true │ 0 │ public │
│ pWZLAF9tn │ ziti-private-blue │ true │ true │ 0 │ zitiblue │
│ vFeLPl-tn │ ziti-edge-router-wss │ true │ true │ 0 │ public │
╰────────────┴───────────────────────┴────────┴───────────────┴──────┴─────────────╯
results: 1-5 of 5