Was able to connect to IP xxx over TCP but UDP probes failed, network may be misconfigured

Hi! I’m new to the Consul and I need some help.

I have a Consul Server that has these settings:

{
    "server": true,
    "ui": true,
    "data_dir": "/opt/consul",
    "datacenter": "us-east-1",
    "client_addr": "0.0.0.0",
    "bind_addr": "10.128.1.145",
    "advertise_addr": "10.128.1.145",
    "bootstrap_expect": 1
}

When I connect the client that is installed on a VM it works without problems, now when I try to connect a Docker container that is on another VM the Serf Health Status is intermittent, it stays for about 10 seconds ok and then it goes into failed mode, the configuration that I’m using for both clients is this:

{
    "server": false,
    "ui": false,
    "data_dir": "/opt/consul",
    "datacenter": "us-east-1",
    "client_addr": "0.0.0.0",
    "retry_join": ["provider=aws tag_key=consul-server tag_value=true region=us-east-1"]
}

Just the Docker container that can’t connect to the Server and the other client, I’m going up the container with the ports: 8600:8600/tcp 8500:8500/tcp 8301:8301/tcp 8302:8302/tcp 8300:8300/tcp 8600:8600/udp 8500:8500/udp 8301:8301/udp 8302:8302/udp 8300:8300/udp

To isolate any errors in AWS I opened the Security Group to All Traffic mode, as evidenced below:

Please, can someone help me with this?

I have the same problem! :confused:

1 Like

I found the solution, just upload the container on the same network as the host, the client configuration I used was this:

{
    "server": false,
    "ui": false,
    "data_dir": "/opt/consul",
    "datacenter": "us-east-1",
    "advertise_addr": "{{ GetInterfaceIP `ens5` }}",
    "retry_join": ["provider=aws tag_key=consul-server tag_value=true region=us-east-1"]
}