Website Migration Notice: SafePoint is now operated by CyberServal.Learn more →
DiscussionSLA

Caddy + authelia + SafeLine

Published a year ago

# SafeLine WAF
# ❓ question

Published a year ago

profile_photo

LeonTA

Updated 2 years ago

0

Hi all
I've installed this awesome application, my current infrastructure to expose my services is caddy for reverse proxy and in the middle authelia.
I've installed SafeLine in a docker, but when I add a site I receive this error "listen tcp :80: bind: address already in use".
Can someone help me or have the same issue?
I believe that the port 80 is used from caddy, while 433 currently is used from vault warden.

Regards and thanks to all

profile_photo

Naldela Teleyal

Updated 2 years ago

0

SafeLine is a reverse proxy service like caddy. When you add a service, you need to select a different port and point your caddy to this port.

profile_photo

Naldela Teleyal

Updated 2 years ago

0

I guess, your caddy is already listening on port 80 and 443.
So, you would need to add your service in SaeLine on, for example, port 6080, then you tell your caddy, to forward traffic to this port.

profile_photo

Naldela Teleyal

Updated 2 years ago

0

For example my usage:

  • Zoraxy as entry point, listening on 80 and 443
  • SafeLine listening on port 6080 for my services (on another host via VPN)
    image.png
profile_photo

LeonTA

Updated 2 years ago

0

👍

profile_photo

LeonTA

Updated 2 years ago

0

And what about authelia it is a middleware too

profile_photo

Naldela Teleyal

Updated 2 years ago

As Authelia is for authentication, I would place it after SafeLine. So caddy -> SafeLine -> Authelia -> Service

profile_photo

LeonTA

Updated 2 years ago

0

Sorry for boring you but how I have to configure SafeLine if I use cloudflare

profile_photo

LeonTA

Updated 2 years ago

0

?

profile_photo

Naldela Teleyal

Updated 2 years ago

0

If Cloudflare is already configured to use your caddy, you don't need to change this

profile_photo

LeonTA

Updated 2 years ago

0

So instead to use reverse proxy would be better use redirect ?

profile_photo

Naldela Teleyal

Updated 2 years ago

0

Why?