Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


1664 posts

Uber Geek
+1 received by user: 188

Subscriber

Topic # 229229 13-Feb-2018 21:05
Send private message

Hi to all the Unifi/firewall experts,

 

I have an Xiaomi robot vacuum which I would like to keep on my IOT VLAN, which is locked down with no internet access. I have a little python script which allows me to monitor the state of the vacuum and send commands, by connecting to the vacuum using this library - https://github.com/rytilahti/python-miio. The problem is that the vacuum continuously tries to access the Xiaomi servers and whilst it is doing this, blocks any other connection attempts from my python script.

 

When on the IOT VLAN these attempts to connect-back-home obviously fail, and it takes 6 mins (almost to the second) to timeout. Then I have about 60s where I can connect via my python script, before it tries again, and blocks everything for another 6 mins.

 

The maintainer of the python-miio library suggested I configure my firewall to send "ICMP unreachables" and "TCP resets" to try and force the robot to timeout quicker but I am stumped as to how this can be done on the USG - if even at all?

 

Does anyone have any bright ideas about how I might go about solving this problem?

 

Cheers,

 

Ben


Create new topic


1664 posts

Uber Geek
+1 received by user: 188

Subscriber

  Reply # 1956663 13-Feb-2018 22:24
Send private message

So I changed my "drop-iot-to-all" rule to "reject-iot-to-all". After doing some reading I have learnt the difference between *drop* and *reject*. So now anything on my IOT VLAN gets a quick response when accessing external hosts. I will keep an eye on the vacuum and see if it is able to respond more quickly when attempting to phone-home.


Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.