Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker behind authentication app LAN?

Featured Replies

Hello,

 

I hope you have a good day.

 

I have multiple dockers that I can access from LAN without authentication so how can I protect it behind an authentication app?

For example, I have Brave browser which anyone from my local network can access by 10.10.0.4:5830. However, I want a specific user who can log in to that port.

 

Is that possible?

 

Thank you. 

The first thing you will need is a reverse proxy app to route all of your applications through a single authenticated address. I personally use traefik with organizr as an authentication app. That said these are probably more complete alternative solutions .

 

  • 2 weeks later...

I would indeed suggest looking into a reverse proxy to give them all a DNS name, then limiting access to allow only connections coming from that proxy, for example Nging Proxy Manager:  

 

 

Then you can use something like Authelia to control access and put passwords/2fa prompts on the websites: 


I use this myself as well, works pretty good!

 

Limiting access to the containers can for example be done by creating an extra vlan and then disabling inter-vlan routing.😄

Edited by jeffrey.el

  • Author

Thanks Primeval_god and Jeffrey.el for your reply.

 

I have my dockers behind Nginx Proxy Manager and secure them with Authelia and 2FA for my domain.

 

The issue that I'm facing is only when two computers joins a local network. Each computer can access any docker without a user name and password.

 

I think the only solution to fix this issue is as Jeffrey.el mention by adding VLAN then disabling inter-vlan routing.

 

Hope you have a wonderful day. :)

Edited by adminbyme

7 hours ago, adminbyme said:

The issue that I'm facing is only when two computers joins a local network. Each computer can access any docker without a user name and password.

If you are using a reverse proxy container and both it and the container you are proxying are connected to a custom bridge docker network for internal communication then there is no need to make map the application containers ports to the accessible ports on the unraid host. Without the port mapping the only way to access the application is through your secured reverse proxy. 

Edited by primeval_god

  • Author

Nice. I got it. Thank you so much Primeval_god.

 

I'll try it later and see how it goes since I run my NPM as a bridged network. I just created a new docker network and I'll change some docker to that network.

 

Also in case you werent aware when two containers are connected to the same custom bridge they have a DNS mapping for each other matching their container name.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.