lluke
Occasional Visitor
Hi All,
I’m trying to setup my network to isolate IoT devices from internal LAN (wired and regular WiFi), my personal devices (iOS and MacOS) are accessing the IoT ones through a single LAN device hosting Homebridge.
Now the possible scenarios for the IoT devices are the following
I’ve configured the Guest Wifi with “Access intranet” set to Disable, this allow to achieve the segregation I need.
Now I’m trying to enable the communication with the Homebridge box with the following script (tried both with nat and firewall start):
Unfortunately the communication it is not working and I’ve already evaluated Yazfi but it isn’t a viable solution for the high amount of devices for which I’ve to set up a registered IP (DHCP) and that I’d like to manage from a UI and not a script.
Do you have suggestion on how to achieve the scenario mentioned above?
I’m trying to setup my network to isolate IoT devices from internal LAN (wired and regular WiFi), my personal devices (iOS and MacOS) are accessing the IoT ones through a single LAN device hosting Homebridge.
Now the possible scenarios for the IoT devices are the following
- IoT device requires internet to properly work and to get managed
- IoT device requires internet only for OTA updates but can be managed locally
- IoT device can be updated and managed locally (single direction calls, from box to device)
- IoT device can be updated and managed locally (bidirectional calls, from box to device and viceversa)
- Guest WiFi network #2 for IoT devices
- Homebridge box connected to LAN through Ethernet
- Personal devices connected to LAN through regular WiFi and Ethernet
I’ve configured the Guest Wifi with “Access intranet” set to Disable, this allow to achieve the segregation I need.
Now I’m trying to enable the communication with the Homebridge box with the following script (tried both with nat and firewall start):
Bash:
#!/bin/sh
## allow homebridge to talk to IoT devices on firewalled guest network
MAC="XXXXXXXXXXXX" # HB box ether mac address
EBT=$(ebtables -L --Lx --Lmac2) # existing ebtables FORWARD chain rules
if echo "$EBT" | grep -iq "$MAC"
then
# do nothing because custom rules already in place
logger "nat" "Custom ebtables rules for HB already in place"
else
# add custom rules
ebtables -I FORWARD -i wl0.2 -d $MAC -j ACCEPT
ebtables -I FORWARD -o wl0.2 -s $MAC -j ACCEPT
logger "nat" "Custom ebtables rules for HB added"
fi
Unfortunately the communication it is not working and I’ve already evaluated Yazfi but it isn’t a viable solution for the high amount of devices for which I’ve to set up a registered IP (DHCP) and that I’d like to manage from a UI and not a script.
Do you have suggestion on how to achieve the scenario mentioned above?