OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: digiwolf on June 19, 2024, 04:52:38 PM

Title: Issue w Firewall Automation Filters to Enable/Disable via API
Post by: digiwolf on June 19, 2024, 04:52:38 PM
Hi All – I am aware that the API to access the Firewall rules is under development and that the alternative would be to create Automation Filters instead.

I re-created the existing LAN rules into Filters, disabled the 'old' LAN Rules under Rules > Lan, however they do not seem to work. I was meticulous enough to provide the right sequence to the filters to reflect the LAN Rules. My goal here is to activate/deactivate rules via Home Assistant with a toggle.

What do I miss here? Many thanks!
Title: Re: Issue w Firewall Automation Filters to Enable/Disable via API
Post by: backl1n on October 27, 2024, 11:13:29 PM
bonjour,
je suis coincé au même niveau que toi, j'ai publié un message concernant le même problème
la partie api pour le firewall a commencé à être développé depuis au moins le 2018, je ne comprends pas, car après toutes mes recherches api a l'air d'être suffisamment avancé pour lister les règles

Malheureusement, je ne sais ce que font les développeurs sur la partie doc api et développement api
Title: Re: Issue w Firewall Automation Filters to Enable/Disable via API
Post by: routenull0 on January 11, 2025, 08:20:52 PM
Quote from: digiwolf on June 19, 2024, 04:52:38 PMHi All – I am aware that the API to access the Firewall rules is under development and that the alternative would be to create Automation Filters instead.

I re-created the existing LAN rules into Filters, disabled the 'old' LAN Rules under Rules > Lan, however they do not seem to work. I was meticulous enough to provide the right sequence to the filters to reflect the LAN Rules. My goal here is to activate/deactivate rules via Home Assistant with a toggle.

What do I miss here? Many thanks!

Were you able to get this working?

Your end goal is exactly the same thing I want to achieve, so I am glad I found this post before I started down the API road.