Hey guys. So, I have some issues accessing my OMV services inside my network. Outside my local network (from my phone mobile data or something like that) everything works fine. But when I try it on my PC or my phone with Wifi on, it doesn't work. I think I know what the issue is, but I don't know how to solve it. More on that later. So, I'm trying with Vaultwarden at the moment, but I have the same issue with all my services, because I always used the same methods setting them up. This is my vaultwarden:
---
version: "3"
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
environment:
- PUID=1000
- PGID=100
- TZ=Europe/Belgrade
- WEBSOCKET_ENABLED=true # Enable WebSocket notifications.
- SIGNUPS_ALLOWED=false
- ADMIN_TOKEN=*************
- LOG_FILE=/data/log/vaultwarden.log
- LOG_LEVEL=info
volumes:
- /MainPool/Documents/Containers/vaultwarden/vw-data/:/data/
ports:
- 8086:80
restart: always
Alles anzeigen
This is my swag:
docker run -d \
--name=swag \
--cap-add=NET_ADMIN \
-e PUID=1000 \
-e PGID=100 \
-e TZ=Europe/Belgrade \
-e URL=***.duckdns.org \
-e VALIDATION=duckdns \
-e SUBDOMAINS=wildcard `#optional` \
-e CERTPROVIDER= `#optional` \
-e DNSPLUGIN=cloudflare `#optional` \
-e PROPAGATION= `#optional` \
-e DUCKDNSTOKEN=***** \
-e EMAIL=***@gmail.com \
-e ONLY_SUBDOMAINS=true `#optional` \
-e EXTRA_DOMAINS= `#optional` \
-e STAGING=false `#optional` \
-p 450:443 \
-p 82:80 `#optional` \
-v /MainPool/Documents/Containers/swag:/config \
--restart unless-stopped \
linuxserver/swag
Alles anzeigen
My duckdns:
---
version: "2.1"
services:
duckdns:
image: lscr.io/linuxserver/duckdns
container_name: duckdns
environment:
- PUID=1000 #optional
- PGID=100 #optional
- TZ=Europe/Belgrade
- SUBDOMAINS=***
- TOKEN=***
- LOG_FILE=false #optional
volumes:
- /MainPool/Documents/Containers/duckdns:/config #optional
restart: unless-stopped
Alles anzeigen
Vaultvardem proxy-conf:
## Version 2021/05/18
# make sure that your dns has a cname set for vaultwarden and that your vaultwarden container is not using a base url
# make sure your vaultwarden container is named "vaultwarden"
# set the environment variable WEBSOCKET_ENABLED=true on your vaultwarden container
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name vaultwarden.*;
include /config/nginx/ssl.conf;
client_max_body_size 128M;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
# enable for Authelia
#include /config/nginx/authelia-server.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /ldaplogin;
# enable for Authelia
#include /config/nginx/authelia-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.0.111;
set $upstream_port 8086;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /admin {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /ldaplogin;
# enable for Authelia
#include /config/nginx/authelia-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.0.111;
set $upstream_port 8086;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /notifications/hub {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.0.111;
set $upstream_port 3012;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /notifications/hub/negotiate {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.0.111;
set $upstream_port 8086;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
Alles anzeigen
All of them are on the bridge network. And this is where I think the problem is. I think I should somehow put the vaultwarden on the swag_default network, and also Swag on the same network, but I don't have that network, so I don't know how to do it. These are all I have:
https://prnt.sc/1cGZQ8SpaDfF
Any ideas?