ebattulga
(Баттулга Эрдэнэтогоо)
October 22, 2019, 11:28am
1
I need to control some device internet on/off using Home assistant. How to make this type of switch. Switch is control specific device internet block and unblock. I’m using hass in docker and Tplink router with Openwrt. How to do that?
I would also be very interested
Petrica
(PetricaM)
October 23, 2019, 8:19pm
3
Hi,
You could try this. I wrote it for Asuswrt but should work on any Linux kernel based routers.
Most routers with custom firmware (Tomato, DD-WRT, OpenWRT, etc) are likely allowing IPTABLES changes. Devices (both wireless and wired) can be permitted, per MAC or per IP, to connect to LAN but prevented from accessing Internet by modifying FORWARD chain.
This can come handy for keeping kids off internet (at least before the age of 5; afterwards they will likely be smarter than you) or keeping on LAN access only rogue devices that are home calling, only allow a device to connect to internet i…
1 Like