API: Manage rules?

Comments

30 comments

  • Avatar
    Firewalla

    Forwarded to our developers, should be an easy addition.

    2
    Comment actions Permalink
  • Avatar
    JeeHaa

    You mean the pause/resume part, or complete api based Rule management? :)
    Either way: sounds great!

    Is it possible to get some feedback if/when this has been decided on?

    1
    Comment actions Permalink
  • Avatar
    Firewalla

    Let me check and get back to you. It may be in 2.3.0 or 2.4.0

    1
    Comment actions Permalink
  • Avatar
    JeeHaa

    We are talking about a Rules api, correct?

    That would be awesome and open up a lot of new automation/integration possibilities!

    1
    Comment actions Permalink
  • Avatar
    Firewalla

    Should be; with every release we add a few more API's for sure.

    1
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    I wanted to add to this conversation in case it is still possible or if its been released and I somehow missed it. This is my #1 request for the MSP. I agree with the initial request that the most critical part would be to pause/resume existing rules via the API.

    My use case is that I've got a handful of rules used in combination to control traffic on the network for my kids. What I really want to be able to do is pause/resume several rules at a time via a script so that I can automate the management of those rules and, thus, the traffic.

    3
    Comment actions Permalink
  • Avatar
    Krash

    Any timelines around this?

    1
    Comment actions Permalink
  • Avatar
    Firewalla

    let me give this a kick and see if they can make this 2.4.0 release item.

    4
    Comment actions Permalink
  • Avatar
    Nix

    +1 on this ask from me. I’d like to integrate Firewalla rule controls to Home Assistant to help me easily enable, disable, and create more flexible timers on some rules for my kid’s devices. I don’t want to use HA to create new rules, just display the status and enable/disable existing rules. This would help my partner who does not understand networking/firewalls/etc. I’m willing to buy a license for API usage if I can use it for this. Thanks!

    3
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    Just saw 2.4.0 hit early access…Any chance this made the cut?

    1
    Comment actions Permalink
  • Avatar
    Joseph Gangemi

    Doesn't look like it is in 2.4.0... +1 from me. This would be the only reason to pay for MSP.

    1
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    I actually have been paying and hoping this would come. I will continue to if I'm honest especially w/ the new pricing. But I really would love to see this come sooner than later. Feels overdue at this point to me.

    1
    Comment actions Permalink
  • Avatar
    Joseph Gangemi

    Would @firewalla share the list used for video and gaming traffic. We can then dynamically alter the target list to in effect make a rule permit instead of block.

    1
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    Interesting idea! Doubt they would share it (and I wouldn't blame them for not) but this would technically work! That said seems better to just make the dang API public lol

    2
    Comment actions Permalink
  • Avatar
    Nix

    Hi @Firewalla team, I noticed a couple weeks ago that there was an update to the API examples that includes pausing a rule (using what appears to be a new /rule/ path):

    GitHub - firewalla/msp-api-examples: Sample code on using Firewalla MSP API

    The linked doc page gives me an Access Denied error:

    https://docs.firewalla.net/api-reference/rule/#pause-a-rule

    Is this something that's coming soon?  I'm excited to try it out!

    1
    Comment actions Permalink
  • Avatar
    JeeHaa

    Nice find! I also hope to see a rule api soon, with at least pause and resume so I can finally start using this from home automation.

     

    1
    Comment actions Permalink
  • Avatar
    Firewalla

    The API's are coming in a week or two. I know they are getting tested, and likely be included with 2.5.0 release (second wave). 

    2
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    That is AWESOME news @Firewalla! Looking forward to it!!

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    Please watch out for our emails https://firewalla.com/weekly, once we have both, we will be calling for early access :)

    0
    Comment actions Permalink
  • Avatar
    Jjdun30

    Fingers crossed it includes creating new rules. I have automation creating target lists with known-bad IPs but have to manually login and create the rules to block the target lists. I'm setup for MSP early access so cant wait!

    0
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    Any chance this might come soon? Feels like its been right around the corner forever! :)

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    Once 2.5.0 is out, likely 2.5.1 will be in early access soon. :)

    0
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    Party time! 🥳

    0
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    OMG it's here! Thank you! 🔥❤️🔥❤️🔥❤️🔥❤️

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    @colin, are you on 2.6.0 early access? API working?

    1
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    @Firewalla yes I’m on EA and have 2.6.0. I’m still playing with it because I’m assuming user error but so far my calls appear successful, but the rule doesn’t respond as expected.

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    @colin, I created a case for you. You can send your code over and have our support take a look . 

    0
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    @Firewalla you rock thank you!

    0
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    FYI for those following along…The firewalla team has confirmed there is a bug when using the new API with rules that are app-specific (in my case, blocking or unblocking YouTube on certain devices or the whole network.) I’m going to play with some workarounds and will report back.

    0
    Comment actions Permalink
  • Avatar
    Colin Scattergood

    Following up...domain-specific rules work just fine for this, so workarounds can definitely exist for the app-specific rule problem. Just lose a little convenience. But overall very glad to have the API working at all! Rules just got way more useful for me!

    0
    Comment actions Permalink

Please sign in to leave a comment.