# Pangolin, Middleware-manager with Authelias access\_control (middleware-manager discussion #31)

**URL:** <https://forum.hhf.technology/t/pangolin-middleware-manager-with-authelias-access-control-middleware-manager-discussion-31/4663>\
**Category:** Middleware Manager\
**Tags:** discussion\
**Created:** [May 8, 2025, 5:04pm UTC](https://forum.hhf.technology/t/pangolin-middleware-manager-with-authelias-access-control-middleware-manager-discussion-31/4663 "2025-05-08T17:04:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.hhf.technology/user_avatar/forum.hhf.technology/system/32/6437_2.png) [@system](https://forum.hhf.technology/u/system)\
**Post date:** [May 8, 2025, 5:04pm UTC](https://forum.hhf.technology/t/pangolin-middleware-manager-with-authelias-access-control-middleware-manager-discussion-31/4663/1 "2025-05-08T17:04:46Z")

</div>

> 💬 **GitHub discussion [middleware-manager #31](https://github.com/hhftechnology/middleware-manager/discussions/31)** in _Q&A_, started by **`qwasy`** on GitHub

I’m not sure if I have a problem with Pangolin, Middleware-manager, Authelia or Traefik. But maybe someone can help.  
I’m using Pangolin 1.3.0 with Middleware-manager 2.0 on a VPS. They route to my server at home, where Authelia is installed.  
Middleware-manager works fine. Authelia on it’s own aswell. I am trying to use its access\_control feature [Access Control | Configuration | Authelia](https://www.authelia.com/configuration/security/access-control/)  
My config part looks like this

```auto
access_control:
  default_policy: 'bypass' #deny
  rules:
    # Rules applied to everyone
    - domain: 'public.example.com'
      policy: 'bypass'
    - domain: 'test.example.com'
      policy: 'two_factor'
    - domain: 'home.example.com'
      policy: 'one_factor'

```

The Authelia middleware looks like this

```auto
{
  "address": "http://auth.example.com:9091/api/authz/forward-auth",
  "authResponseHeaders": [
    "Remote-User",
    "Remote-Groups",
    "Remote-Name",
    "Remote-Email"
  ],
  "trustForwardHeader": true
}

```

Whenever I visit [test.example.com](http://test.example.com) I get a error 500.  
Traefik logs show

```auto
DBG github.com/traefik/traefik/v3/pkg/middlewares/auth/forward.go:188 > Error calling http://auth.example.com:9091/api/authz/forward-auth error="Get \"http://auth.example.com:9091/api/authz/forward-auth\": dial tcp VPS-IP:9091: connect: connection refused" middlewareName=authelia@​file middlewareType=ForwardAuth

```

It seem, it want’s to connect to my vps:9091 instead of authelia:9091.  
I tried adding a loadbalancer to traefik as well …

* * *

💬 Join in here or [on GitHub](https://github.com/hhftechnology/middleware-manager/discussions/31).
