# Setting up a simple controller + edge router + zac on docker

**URL:** <https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928>\
**Category:** General Questions\
**Created:** [February 11, 2025, 7:34pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928 "2025-02-11T19:34:21Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 9:16pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/21 "2025-02-11T21:16:27Z")

</div>

Is it possible to do it with ZAC ?

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 9:21pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/22 "2025-02-11T21:21:27Z")

</div>

Yes. The Ziti administration console (ZAC) comes with the controller. Were you able to log in?

The address is like `https://${ZITI_CTRL_ADVERTISED_ADDRESS}:${ZITI_CTRL_ADVERTISED_PORT}/zac/`

Here's the Docker console guide, but [you will not need this guide](https://openziti.io/docs/guides/deployments/docker/console) unless you want to _change the version that comes with the controller_.

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 9:26pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/23 "2025-02-11T21:26:01Z")

</div>

Yes I'm able to access ZAC, I'm trying to configure my PC to access the remote gitea server using "git.ziti".  
 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/optimized/2X/2/2a5a6f01ca64c2382b928a9473722bc79528ca6f_2_690x41.png)

I've made a new identity and enrolled on my Windows Ziti Edge Client:

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/e/e9c81880f8a8aa30c3b03f12d8b05f703073db5b.png)

I've tried the "Add a Simple Service":

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/d/de29231fe51994d4f1ad1a87b8d039671a564fb8.png)

But my services count is still at 0 and I cant access `http://git.ziti` on my PC:  
 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/b/b4bda084c2996dfa65865d987e675141a9d36b9d.png)

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 9:29pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/24 "2025-02-11T21:29:38Z")

</div>

Let's simulate the policies to check for permissions issues.

```bash
ziti edge policy-advisor services --quiet "git"

```

Identity "brand" needs Dial permission, and identity "openziti\_edge\_router1" needs Bind permission.

You already created the default router policies?

Did you disable encryption on purpose? I've never turned it off before.

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 9:37pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/25 "2025-02-11T21:37:55Z")

</div>

I've not created anythin else than the "Simple Service"

```auto
[root@8bb1fcb59e77 ~]# ziti edge policy-advisor services --quiet "git"
ERROR: openziti_edge_router_1 (1) -> git (0) Common Routers: (0/0) Dial: N Bind: Y 
  - Service has no edge routers assigned. Adjust service edge router policies.

ERROR: braand (0) -> git (0) Common Routers: (0/0) Dial: N Bind: Y 
  - Identity has no edge routers assigned. Adjust edge router policies.
  - Service has no edge routers assigned. Adjust service edge router policies.

```

Does it means I need to create something that connects my identity "braand" with the edge router ?

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 9:39pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/26 "2025-02-11T21:39:09Z")

</div>

Make sure you have default router policies (`#all`/`#all`): edge router policy and service edge router policy. You can create them in the console using the magic role attribute `#all` to allow all identities and services to use all routers.

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 9:42pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/27 "2025-02-11T21:42:06Z")

</div>

How can I do that ?  
Is it in here ?

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/9/9f9e2f8203fe0456c9947224b77ab23b3d8a4cc5.png)

I need to add #all and #all to router and identity attributes ?

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 9:42pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/28 "2025-02-11T21:42:42Z")

</div>

Correct. You need a default router policy for identities and services.

Here's the command-line equivalent.

```bash
ziti edge create edge-router-policy "default" \
--edge-router-roles '#all' --identity-roles '#all'

ziti edge create service-edge-router-policy "default" \
--edge-router-roles '#all' --service-roles '#all'

```

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 9:46pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/29 "2025-02-11T21:46:32Z")

</div>

Alright.  
Now I have this :

```auto
[root@8bb1fcb59e77 ~]# ziti edge policy-advisor services --quiet "git"
OKAY : openziti_edge_router_1 (1) -> git (1) Common Routers: (1/1) Dial: N Bind: Y 

OKAY : braand (1) -> git (1) Common Routers: (1/1) Dial: N Bind: Y 

```

But still 0 services on the Ziti Edge Desktop

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 9:49pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/30 "2025-02-11T21:49:35Z")

</div>

Identity "braand" needs Dial permission, but has Bind permission instead.

Something must've changed since you ran the simple service wizard which answered "who has access to this service?" (Dial permission) with `@brand`.

You can fix this by changing your service policies. There are two types: Bind, Dial.

Your router-managed identity already has the necessary Bind permission, but you need to revoke Bind permission for identity "braand."

Then create a service policy of type "Dial" and grant identity "braand" permission to access service "git."

Here's a nice writeup about policies: [Policies | OpenZiti](https://openziti.io/docs/learn/core-concepts/security/authorization/policies/overview)

They form a triangle! Since you have a default policy for two of the three sides of the triangle, you will mostly use service policies moving forward to grant some identities Bind permission for hosting the server side of the service, and other identities Dial permission for accessing the service as a client.

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 9:57pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/31 "2025-02-11T21:57:47Z")

</div>

I've recreated the services, intercept.v1, etc and now I'm getting this:

```auto
[root@8bb1fcb59e77 ~]# ziti edge policy-advisor services --quiet "git"
OKAY : openziti_edge_router_1 (1) -> git (1) Common Routers: (1/1) Dial: N Bind: Y 

OKAY : braand (1) -> git (1) Common Routers: (1/1) Dial: Y Bind: N 

```

It should be alright now doesn't it ? Still seeing 0 service on Ziti Edge Desktop

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 10:00pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/32 "2025-02-11T22:00:52Z")

</div>

Is there a terminator for service "git" in the page at URL path `/zac/terminators`?

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 10:01pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/33 "2025-02-11T22:01:20Z")

</div>

yup

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/5/5fbb3e8afcf8cfac504b6c9336c823239712bc77.png)

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 10:02pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/34 "2025-02-11T22:02:06Z")

</div>

Is the enrolled identity in your Windows Desktop Edge app "braand" or "brand?"

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 10:02pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/35 "2025-02-11T22:02:29Z")

</div>

It's "braand" I removed "brand" lol

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 10:03pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/36 "2025-02-11T22:03:48Z")

</div>

Things look OK policy-wise. Is your desktop edge app complaining about anything in the logs?

I'm not sure how to open the logs on Windows, but I'll look for clues.

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [February 11, 2025, 10:04pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/37 "2025-02-11T22:04:58Z")

</div>

> [@qrkourier](#):
>
> I'm not sure how to open the logs on Window

Main Menu -\> Advanced Settings -\> Service Logs

will open the latest log. Or you can find them at `C:\Program Files (x86)\NetFoundry Inc\Ziti Desktop Edge\logs\service`

---

<div class="post-metadata">

**Author:** ![brandi](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brandi](https://openziti.discourse.group/u/brandi)\
**Post date:** [February 11, 2025, 10:05pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/38 "2025-02-11T22:05:50Z")

</div>

> [@qrkourier](#):
>
> Things look OK policy-wise. Is your desktop edge app complaining about anything in the logs?

Looks like it's complaining about not being able to talk with the controller:

```auto
[2025-02-11T22:03:22.362Z] ERROR tlsuv:engine.c:923 openssl: handshake was terminated: error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:22.362Z] ERROR tlsuv:tls_link.c:113 TLS(0000025a6eefdff0) handshake error error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:22.362Z] ERROR tlsuv:http.c:189 handshake failed status[3]: error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:22.362Z] WARN ziti-sdk:ziti_ctrl.c:184 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] request failed: -4079(software caused connection abort)
[2025-02-11T22:03:22.362Z] WARN ziti-sdk:ziti_ctrl.c:342 internal_version_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] CONTROLLER_UNAVAILABLE(software caused connection abort)
[2025-02-11T22:03:22.362Z] WARN ziti-sdk:ziti.c:1908 version_pre_auth_cb() ztx[0] failed to get controller version: CONTROLLER_UNAVAILABLE/software caused connection abort
[2025-02-11T22:03:22.362Z] WARN ziti-sdk:ziti_ctrl.c:184 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] request failed: -4079(software caused connection abort)
[2025-02-11T22:03:22.362Z] INFO ziti-sdk:ziti_ctrl.c:187 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] attempting to switch endpoint
[2025-02-11T22:03:22.362Z] WARN ziti-sdk:ziti_ctrl.c:605 ctrl_next_ep() ctrl[ctrl.84.235.226.183.sslip.io:1280] no controllers are online
[2025-02-11T22:03:22.362Z] WARN ziti-sdk:ziti.c:641 ext_jwt_singers_cb() ztx[0] failed to get external auth providers: software caused connection abort
[2025-02-11T22:03:27.439Z] ERROR tlsuv:win32_keychain.c:248 failed to sign: TPM 2.0 : Structure de taille incorrecte.

[2025-02-11T22:03:27.439Z] ERROR tlsuv:engine.c:923 openssl: handshake was terminated: error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:27.439Z] ERROR tlsuv:tls_link.c:113 TLS(0000025a6eefdff0) handshake error error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:27.439Z] ERROR tlsuv:http.c:189 handshake failed status[3]: error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:27.439Z] WARN ziti-sdk:ziti_ctrl.c:184 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] request failed: -4079(software caused connection abort)
[2025-02-11T22:03:27.439Z] WARN ziti-sdk:ziti_ctrl.c:342 internal_version_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] CONTROLLER_UNAVAILABLE(software caused connection abort)
[2025-02-11T22:03:27.439Z] WARN ziti-sdk:ziti.c:1908 version_pre_auth_cb() ztx[0] failed to get controller version: CONTROLLER_UNAVAILABLE/software caused connection abort
[2025-02-11T22:03:27.439Z] WARN ziti-sdk:ziti_ctrl.c:184 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] request failed: -4079(software caused connection abort)
[2025-02-11T22:03:27.439Z] INFO ziti-sdk:ziti_ctrl.c:187 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] attempting to switch endpoint
[2025-02-11T22:03:27.439Z] WARN ziti-sdk:ziti_ctrl.c:605 ctrl_next_ep() ctrl[ctrl.84.235.226.183.sslip.io:1280] no controllers are online
[2025-02-11T22:03:27.439Z] WARN ziti-sdk:ziti.c:641 ext_jwt_singers_cb() ztx[0] failed to get external auth providers: software caused connection abort
[2025-02-11T22:03:32.520Z] ERROR tlsuv:win32_keychain.c:248 failed to sign: TPM 2.0 : Structure de taille incorrecte.

[2025-02-11T22:03:32.520Z] ERROR tlsuv:engine.c:923 openssl: handshake was terminated: error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:32.520Z] ERROR tlsuv:tls_link.c:113 TLS(0000025a6eefdff0) handshake error error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:32.520Z] ERROR tlsuv:http.c:189 handshake failed status[3]: error:00000005:lib(0)::reason(5)
[2025-02-11T22:03:32.520Z] WARN ziti-sdk:ziti_ctrl.c:184 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] request failed: -4079(software caused connection abort)
[2025-02-11T22:03:32.520Z] WARN ziti-sdk:ziti_ctrl.c:342 internal_version_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] CONTROLLER_UNAVAILABLE(software caused connection abort)
[2025-02-11T22:03:32.520Z] WARN ziti-sdk:ziti.c:1908 version_pre_auth_cb() ztx[0] failed to get controller version: CONTROLLER_UNAVAILABLE/software caused connection abort
[2025-02-11T22:03:32.520Z] WARN ziti-sdk:ziti_ctrl.c:184 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] request failed: -4079(software caused connection abort)
[2025-02-11T22:03:32.520Z] INFO ziti-sdk:ziti_ctrl.c:187 ctrl_resp_cb() ctrl[ctrl.84.235.226.183.sslip.io:1280] attempting to switch endpoint
[2025-02-11T22:03:32.520Z] WARN ziti-sdk:ziti_ctrl.c:605 ctrl_next_ep() ctrl[ctrl.84.235.226.183.sslip.io:1280] no controllers are online
[2025-02-11T22:03:32.520Z] WARN ziti-sdk:ziti.c:641 ext_jwt_singers_cb() ztx[0] failed to get external auth providers: software caused connection abort

```

Maybe it's the wild card dns that's making this bug ? I can't access `ctrl.84.235.226.183.sslip.io:1280` but `84.235.226.183:1280` is working fine

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [February 11, 2025, 10:06pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/39 "2025-02-11T22:06:42Z")

</div>

> [@brandi](#):
>
> `ctrl[ctrl.84.235.226.183.sslip.io:1280] no controllers are online`

your controller is advertising an address that the windows client cannot reach.

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [February 11, 2025, 10:07pm UTC](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928/40 "2025-02-11T22:07:59Z")

</div>

I can reach `ctrl.84.235.226.183.sslip.io:1280` just fine from here.

[Previous page](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928.md?page=1)

[Next page](https://openziti.discourse.group/t/setting-up-a-simple-controller-edge-router-zac-on-docker/3928.md?page=3)
