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.

Cannot access host from docker on eth0

Featured Replies

Hi,

I have one network adapter in my unRAID box, eth0. I have set up Caddy with its own ip on eth0 in Docker as a reverse proxy for multiple services and subdomains. I want a reverse proxy for the unRAID interface as well, but i get 502 Bad Gateway. If i do

docker exec -it Caddy bash

and then try to ping the host IP it times out. Seems like the traffic is blocked or not properly routed. How do i fix this?

 

Network is 10.0.0.0/22

Host is 10.0.1.0 on eth0

Caddy is 10.0.1.12 on eth0 in Docker

I'm able to ping other devies in the network for example the router at 10.0.0.1.

Edited by maciekish

That's a limitation inherent with technology / security used by the custom docker networks.

The container with a dedicated IP on eth0 (Caddy in your case) is explicitly not allowed to talk to host (unRAID) due to Linux kernel security measures.

 

The only way around it, is to: (in order of difficulty)

* have a second interface (the custom network is on this interface)

* have VLAN support and locate the  container on a different VLAN than the host

 

You can refer to these topics for some more details.

 

Archived

This topic is now archived and is closed to further replies.

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.