Hi, I have several sonoff devices with the original firmoriginal which connects to the ewelink cloud to control them via cloud. This equipment also has local control.
I have tried to configure a rule in my firewall so that a sonoff equipment can not communicate with the internet but if you have local network and I can manage it from HA without any problem (with local control).
To avoid having to configure a rule in my firewall to remove the internet connection of each device I was wondering if anyone knows of a general rule that prevents my devices from sending data to ewelink servers.
I mean blocking a range of IPs from ewelink servers or blocking with my DNS some url from ewelink servers.
I have tried blocking domains like itead.cn but I have not managed to stop my devices from communicating with the ewelink cloud. Does anyone know the IP or URL of these servers?
the ewelink application no longer works from my local network. But if I go on 4G the sonoff relays are still controllable, so they still send data to the ewelink servers. I can’t figure out what to block so that the relays don’t contact the ewelink servers.
I have tried to put in my network some DNS that do not exist 10.12.12.12 and 10.13.13.13 and all the devices in my network have stopped surfing web pages.
But the sonoff relays still connect to the ewelink cloud and are perfectly controllable from their cloud.
So I understand that they do not connect to the cloud by url but by IP.
I put the ips 10.12.12.12 and 10.13.13.13 as DNS but do not exist in my network. I only did it so that the computers on my network do not know how to resolve url to not have dns. to see if not having dns computers stopped connecting to the cloud ewelink.
I have controlled my house with several ewelink relays and I would like to block the access to the ewelink servers of these equipments so that nobody from outside my house can give them orders. That is, they would only be controllable in local network with the ewelink app in local mode or with HA.
I think I have it, make DNS query to:
eu-disp.coolkit.cc
eu-dispd.coolkit.cc
eu-dispa.coolkit.cc
and if those DNS queries fail it uses a list of IPs it has set by code:
3.122.175.228
52.57.6.180
3.126.179.44
18.197.22.118
18.195.70.186
52.59.160.228
I will do some tests for several days and I will confirm!