UTMStack icon indicating copy to clipboard operation
UTMStack copied to clipboard

UTMStack does not function in 10.0.0.0/24 network

Open bastionbot opened this issue 1 year ago • 3 comments

Describe the bug

Attempting to install the utmstack agent on Fedora 40, Ubuntu 20.04 LTS, and Windows 10 all fail with "UTMStack: error: one or more of the requiered ports are closed. Please open ports 9000 and 50051."

To Reproduce

Steps to reproduce the behavior: 0. Deploy UTMStack in a 10.0.0.0/24 network

  1. Go to 'Integrations'
  2. Click on an agent
  3. Copy install command and execute on host
  4. See error

Expected behavior

The agent to install successfully

Environment

  • OS: Windows 10, Ubuntu 22.04, Fedora 40
  • Browser: Firefox
  • Version: 126

Additional context

Docker swarm ingress network sets up 10.0.0.0/24 which conflicts with external routing.

bastionbot avatar May 25 '24 12:05 bastionbot

Moving it to 192.168.10.0/24 allows me to connect an agent from 192.168.10.0/24, but 10.0.0.0/24 still fails with the same error.

bastionbot avatar May 27 '24 03:05 bastionbot

for i in $(docker network inspect -f '{{range .Containers}}{{.Name}} {{end}}' ingress); do docker network disconnect -f ingress $i; done; Remove all containers from the ingress network docker service rm $(docker service ls -q) Remove all services docker network rm ingress Delete ingress network docker network create --driver overlay --ingress --subnet=10.100.0.0/16 --gateway=10.100.0.2 ingress Recreate ingress network with a different subnet that doesn't conflict /home/utmstack/installer Re-run installer to initialize the swarm

https://UTMStackServer/app-management/settings/connection-key Generate new connection key (maybe needed?)

This should probably be a configurable option during initial setup.

bastionbot avatar May 27 '24 04:05 bastionbot

Same issue in discussions: https://github.com/orgs/utmstack/discussions/599#discussioncomment-9260240

lacak-sk avatar May 28 '24 05:05 lacak-sk