Is it possible to connect remote agents without exposing port 5000 ? (traefik-log-dashboard discussion #152)

:speech_balloon: GitHub discussion traefik-log-dashboard #152 in Help, started by xd003 on GitHub

Hi, thanks for the great project!

I’m deploying the dashboard + multiple agents on different hosts.
From reading the docs, it looks like each agent exposes an HTTP API (default port 5000), and the dashboard connects to it directly.

Question:
Is it possible to connect an agent that is on a different host without exposing its port externally?

Based on the current architecture it seems dashboard→agent polling requires a reachable port on every agent, but I want to confirm whether any alternative connection models exist or are planned.

Thanks!


:speech_balloon: Join in here or on GitHub.

Po3Tato commented on GitHub:

You can use a private network. I have two Agents and they expose their port exclusively to the private network . So i am able to have a ACLs for log-hub(the dashboard) access log-agent(the external agent) on port 5000(or whatever port).

xd003 commented on GitHub:

You can. Use a private network. I have two Agents and they expose their port exclusively to the tailnet through eh tailscale container. So i am able to have a ACLs for log-hub access log-agent on port 5000.

Not quite familiar with tailscale that much. If you post the instructions/setup here, would really appreciate it. This could be linked in the repo for other users who might need this. It would also help for many other similar projects eg Dozzle needs me to open port 7007 in each of my remote agent/node.

Po3Tato commented on GitHub:

You can. Use a private network. I have two Agents and they expose their port exclusively to the tailnet through eh tailscale container. So i am able to have a ACLs for log-hub access log-agent on port 5000.

Not quite familiar with tailscale that much. If you post the instructions/setup here, would really appreciate it. This could be linked in the repo for other users who might need this. It would also help for many other similar projects eg Dozzle needs me to open port 7007 in each of my remote agent/node.

If you are not using any private network, the easiest to start with is netbird as explaining the whole setup may sound complicated. Probably gonna make a video or write a blog about Pangolin + VPN.

xd003 commented on GitHub:

If you are not using any private network, the easiest to start with is netbird as explaining the whole setup may sound complicated. Probably gonna make a video or write a blog about Pangolin + VPN.

I have read in many places that tailacale performance is better compared to netbird so i was leaning towards it. Yes, explaining evrything would be quite a lot, i just meant the raw steps needed to get this working so i can get this going from the get go and then slowly learn the intricacies as opposed to starting from scratch and trying to get it to work. I didn’t understood the Pangolin + VPN blog thing, isn’t pangolin kind of having it’s own vpn setup now with olm and all that stuff. I was under the impression that Tailacale/Netbird etc would be primarily used by users who don’t use private resources within Pangolin.

hhftechnology commented on GitHub:

If you are not using any private network, the easiest to start with is netbird as explaining the whole setup may sound complicated. Probably gonna make a video or write a blog about Pangolin + VPN.

I have read in many places that tailacale performance is better compared to netbird so i was leaning towards it. Yes, explaining evrything would be quite a lot, i just meant the raw steps needed to get this working so i can get this going from the get go and then slowly learn the intricacies as opposed to starting from scratch and trying to get it to work. I didn’t understood the Pangolin + VPN blog thing, isn’t pangolin kind of having it’s own vpn setup now with olm and all that stuff. I was under the impression that Tailacale/Netbird etc would be primarily used by users who don’t use private resources within Pangolin.

Set up Pangolin Zero Trust VPN for private networks - #2

xd003 commented on GitHub:

Set up Pangolin Zero Trust VPN for private networks - #2

thank you so much, i was waiting for a guide like this from so long