Describe the problem
Hi all,
I am trying to expose some services via docker containers like this:
services:
whoami:
image: traefik/whoami:latest
container_name: whoami
restart: unless-stopped
command:
- --port=8005
ports:
- 127.0.0.1:8005:8005
But it seems NetBird cannot access these services.
I have even tried an ALL<->ALL rule to confirm, but I cannot access the port remotely.
However, if I just do
It works but then the port is published and bypasses my firewall. Docker seems to do that.
To Reproduce
Steps to reproduce the behavior:
- Use the NetBird docker client.
- On the same machine, create a docker container which a port exposed to 127.0.0.1.
- Try to access that port remotely.
Expected behavior
I expect for the ability to access ports on 127.0.0.1 on a client which is connected to NetBird.
Are you using NetBird Cloud?
No, I am self hosting.
NetBird version
0.54.2
Is any other VPN software installed?
No.
Debug output
Let me know if accessing ports on 127.0.0.1 is intended to work, if so I may send logs.
Screenshots
N/a
Additional context
Client compose:
netbird-client:
image: netbirdio/netbird:0.54.2
container_name: netbird-client
restart: unless-stopped
hostname: $NETBIRD_HOSTNAME
cap_add:
- NET_ADMIN
- NET_RAW
- NET_BIND_SERVICE
- SYS_ADMIN
- SYS_RESOURCE
- BPF
network_mode: host
volumes:
- ./services/netbird/client:/var/lib/netbird
environment:
NB_MANAGEMENT_URL: $NETBIRD_URL
NB_SETUP_KEY: $NETBIRD_SETUP_KEY
Have you tried these troubleshooting steps?
Describe the problem
Hi all,
I am trying to expose some services via docker containers like this:
But it seems NetBird cannot access these services.
I have even tried an ALL<->ALL rule to confirm, but I cannot access the port remotely.
However, if I just do
It works but then the port is published and bypasses my firewall. Docker seems to do that.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect for the ability to access ports on 127.0.0.1 on a client which is connected to NetBird.
Are you using NetBird Cloud?
No, I am self hosting.
NetBird version
0.54.2
Is any other VPN software installed?
No.
Debug output
Let me know if accessing ports on 127.0.0.1 is intended to work, if so I may send logs.
Screenshots
N/a
Additional context
Client compose:
Have you tried these troubleshooting steps?