I am denying one of the devices in my network internet access using firewall rules.
Now I'd like to be able to temporarily disable this rule using home assistant. I wasn't able to find an API so I guess this is something that is only possible using a workaround?
If somebody could point me into the right direction I'd be really happy!
firewall.reject_toniebox is the firewall rule that rejects new connections.
ubus call hostapd.wlan1 del_client "{'addr': '34:14:B5:C1:4C:7D', 'reason':5, 'deauth':true, 'ban_time':30000}
This kills all active connections by kicking the device off the network (wlan1 in my case) and banning it for 30sec so that by the time it reconnects all existing connections are closed.
Thanks for pointing me in the right direction @vgaetera !