this post was submitted on 03 Oct 2023
3 points (100.0% liked)

pfsense

287 readers
1 users here now

founded 2 years ago
MODERATORS
 

I'm trying to get my new Dreamtech L10s Ultra (robot vacuum) to be discovered by Home Assistant, but they're on different subnets and I found an explanation that there are sometimes problems discovering devices across subnets. This seems odd to me because the Xiaomi Miot Auto integration in Home Assistant saw my L10s and even knew it’s IP address - but perhaps that’s TCP and the problem is that UDP can’t cross subnets?

The article says there are 2 ways to possibly overcome the cross-subnet issue: put the devices on the same subnet (currently not an option for me), and “configure IP masquearding on the outgoing routing interface for the subnet where the MI device resides.” With GPT’s help, I tried to add IP Masquerading (which I guess is just NAT), but it’s not working. I’m pretty confident I did it wrong.

My networking knowledge is very basic. Can anyone help me configure my pfSense so that my L10s on one subnet can be discovered by Home Assistant (technically, by the Xiaomi Miot Auto integration in Home Assistant) on the other subnet?

top 5 comments
sorted by: hot top controversial new old
[–] jmanes 2 points 1 year ago (1 children)

No need for masquerading... that seems way too involved. Install Avahi or the UDP broadcast relay plugins then configure those.

As for firewall rules you'll need to allow mDNS UDP packets (port 5353 and destination address 224.0.0.251/32)

[–] [email protected] 1 points 1 year ago

Didn't know these existed. Thanks. I'll try them.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Thanks for the Avahi suggestion, @[email protected] and @[email protected]. 1 click to install, 1 click to enable, 1 click to turn on cross-subnet discovery, and everything works!

[–] andynbaker 2 points 1 year ago (1 children)

Are you using the avahi plugin to repeat DNS messages across subnets?

[–] [email protected] 1 points 1 year ago

I'm not. Yet. Thanks for the suggestion.