netbird and traefik

i have a traefik instance running currently with ports 80 and 443 forwarded. now i want to close those ports and only be able to access it while on my netbird network (while still keeping the domain with ssl) so in short i want it only to be accessable when i use netbird but not using its netbird domain (traefik.netbird.cloud) but traefik.example.com. is this possible? i am using the could version right now. for more info about my infrastructure. Its a proxmox server with lxc-containers. all containers have access to the traefik container (every container has the ip 10.10.10.(lxc-id)) and traefik has a netbird client running. my idea is to have traefik listen on the netbird id. and somehow tell traefik to route *.example.com to the traefik netbird ip
2 Replies
Codixer
Codixer2mo ago
I don't think that's possible, while I'm not a 100% sure about the infrastructure or the backend systems. You need access to the management interface to get information on who or what you can connect to. OHHH Wait, you're on Cloud Yeah, that might be possible. It depends on your firewall, (ufw for example) on how you set that up. Maybe a proxy or something that checks the host header to see the domain being used to connect.
Yvonne Aizawa
Yvonne AizawaOP2mo ago
I just told cloudflare dns to resolve to netbirds ip. Aint pretty but it works. Next i want to try with a private dns but that will be later.

Did you find this page helpful?