Hi @jptechnical
Out of curiosity did you wrap the user/pass in a single or double quotes?
I spun up a Debian12 VM in AWS & was able to enroll successfully with the same command:
sudo ./ziti_router_auto_enroll -f -n \
--controller 193.122.136.108 \
--controllerFabricPort 80 \
--controllerMgmtPort 443 \
--adminUser "*********" \
--adminPassword "********" \
--disableHealthChecks \
--disableMetrics \
--autoTunnelListener \
--routerName local-router
Failed to stop ziti-router.service: Unit ziti-router.service not loaded.
Writing jwt file: local-router_enrollment.jwt
Version not specified, going to check with controller
Found version 0.29.0
Downloading file: https://github.com/openziti/ziti/releases/download/v0.29.0/ziti-linux-amd64-0.29.0.tar.gz
Downloading: 100%|████████████████████████████████████████████████████████████████| 42.8M/42.8M [00:00<00:00, 44.6MiB/s]
Successfully downloaded file
Starting binary install
Installing service unit file
Creating config file
Starting Router Enrollment
Successfully enrolled Ziti
Unable to handle DNS setup on this distro, please ensure the local host is the first resolver
Service ziti-router.service start successful.
Created symlink /etc/systemd/system/multi-user.target.wants/ziti-router.service → /etc/systemd/system/ziti-router.service.
Service ziti-router.service enable successful.
FYI, the failed to stop ziti-router.service at the beginning is caused by the fact that -f/--force
is being passed in & the script is assuming ziti-router is already installed on the VM & someone is attempting to enroll against another Controller.
Yes, but since you created the router manually, you'll need to alter the create command to enable the tunnel feature on the edge-router by appending -t or --tunneler-enabled
You can update the current edge-router & enable the tunneler with the command:
ziti edge update edge-router bobrouter -t
Yes, the option --autoTunnelListener
will attempt to automatically add the tunnel configuration to the local VM being enrolled & is needed for a tunnel enabled edge-router.
This is the first time I've run this script on Debian12 & although it worked as expected, the ziti-router failed to run properly since the script didn't setup the resolver correctly(something we can fix). In order to setup the resolver on the Debian12 I was working with, I placed a file called "01-ziti.conf" in the directory /usr/lib/systemd/resolved.conf.d/
with the content:
#Ziti Added file
[Resolve]
DNS={local IP address}
Replacing the {local IP address}
with the correct value:
Then restarted systemd-resolved: sudo systemctl restart systemd-resolved.service
Since you have already enrolled the edge-router, you can either.
Update the resolver like shown above, then manually alter the router config file /opt/openziti/ziti-router/config.yml & add in a tunnel config under the listeners:
Something like this:
- binding: tunnel
options:
mode: tproxy
resolver: udp://{local IP address}:53
lanIf: ens5
dnsSvcIpRange: 100.64.0.0/10
Where the {local IP address} address matches the value you placed in the resolved configuration.
Or
You can delete the current router & create/enroll again. This time using the create flag -t
& the enrollment option --autoTunnelListener
& still you'll need to adjust the resolved config like shown above.
Hope that helps.
Edward