Giter Site home page Giter Site logo

Comments (5)

ndejong avatar ndejong commented on August 18, 2024

Yes - I'd recommend you take a look into functions rule_get and then use a config_patch to achieve this - once you get something going it would be nice to add this as an example, rule management requests are fairly common here - N

from pfsense_fauxapi.

ndejong avatar ndejong commented on August 18, 2024

Perhaps also take a look at the Python example code here to give you some ideas:-
https://github.com/ndejong/pfsense_fauxapi/tree/master/extras/examples

from pfsense_fauxapi.

JetLaggedJackal avatar JetLaggedJackal commented on August 18, 2024

I believe this python script is what you are looking for https://github.com/EpaL/kindercontrol.

from pfsense_fauxapi.

lblabr avatar lblabr commented on August 18, 2024

great, i may have a look

from pfsense_fauxapi.

ndejong avatar ndejong commented on August 18, 2024

@lblabr would be good to hear back if you managed to address your requirement.

I'd suggest also taking a look at the new Python based interface which also happens to provide a command-line interface as well

Regardless, you'll want to use the FauxAPI rule_get and config_patch functions to achieve what you are looking for.

from pfsense_fauxapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.