Hi there,
I'm having a related issue. I am also running Consul in Docker on EC2 and am using the default network which requires NAT. I'm starting all nodes with -advertise <public_address> so that they can find eachother, as well as -join <master_public_address>.
On the master, I get logs like this:
2016/05/04 18:57:39 [WARN] memberlist: Got ping for unexpected node 'consul-test-2' from=172.17.0.1:53090
...where 172.17.0.1 is on the private network. Is this address encoded in the ping packet?
On the master, tcpdump -i eth0 "udp port 8301" shows me that all incoming packets are indeed on the "public network".
For one of the other nodes, I seem to be getting a mix of public and private:
2016/05/04 18:57:40 [WARN] memberlist: Got ping for unexpected node 'consul-test-1' from=172.17.0.1:53090 2016/05/04 18:57:41 [WARN] memberlist: Got ping for unexpected node 'consul-test-1' from=10.x.x.x.:8301
2016/05/04 18:57:41 [WARN] memberlist: Got ping for unexpected node consul-test-1 from=172.17.0.1:50148
Any help would be appreciated!
Thanks,
- Oren