I would like to use Home Assistant to change firewall rules in my router (OpenWRT)

I am using OpenWRT to manage my router - and one of my use cases is to be able to activate / deactivate the internet access to specific devices. I’d like to have a switch on a dashboard that could be controlled via rules / node red etc. Is anyone doing this today? What would a solution look like?

Matt

I’d use a shell_command that does ssh connection with authorized keys to your OpenWRT and runs a command that enables/disables whatever you want. If you look at “Update HA to sent the samsung remote control power key” from that post it might give you a possible way accomplish what you wish to do.

1 Like

I figured out how to do this with NodeRED - works great.

can you share your config? commands?