Is it possible to set up 2FA on my self-hosted services?

Gutless2615@ttrpg.network to Selfhosted@lemmy.world – 59 points –

I have a suite of services exposed using a reverse proxy (npm) protected with passwords, but I'm always a bit nervous that username/passwords aren't enough -- is there a way to set up 2FA either on Nginx Proxy Manager side or on, e.g., the 'arr suite of apps?

27

You are viewing a single comment

If you're comfortable with using Cloudflare, you can use their zero trust tunneling and setup an application layer that adds auth to those services. I have mine protected by my GitHub login.

Oh interesting. I'm using zero trust tunneling already to get through my ISP network chicanery. How would that work? Do yo uhave any tutorials you can recommend?

cloudflare dash

You can secure your tunnels using the Access menu and then adding an application. It should be somewhat straight-forward but you're basically looking to create an access policy and then adding the rules you want. For example a simple one is to add an allow rule for certain emails. When you enter your email an access code will be sent to you before you can access the application resource. That's just one of many ways to secure it using their application config and access policies.

I used to expose my Vaultwarden instance with it, but I think it didn't work with the protected CF login.

Likely because the apps need access to the host and the policies were likely blocking it since it's non-interactive.