Giter Site home page Giter Site logo

Comments (2)

ndejong avatar ndejong commented on August 18, 2024

Hi @Methraton -

There are two issues here, the first one is easy, you can issue a send_event with POST data filter reload to cause the same reload action you are doing in the GUI
https://github.com/ndejong/pfsense_fauxapi#user-content-send_event

The second issue is not so clear from the description provided, however the error you are getting is the built in mechanism that prevents a bad config from being saved in the first place, so something is somehow not right - based on what you have described it sounds-like you might be trying to patch something that should just be saved with config_set
https://github.com/ndejong/pfsense_fauxapi#user-content-config_set

let us know how it goes

from pfsense_fauxapi.

tman785 avatar tman785 commented on August 18, 2024

I actually have a similar problem as your second issue. I'm using config_patch to simply disable a rule, and I get a similar error

my json file looks like this:
{
"filter": {
"rule":{
"id": "",
"tracker": "1xxxxx",
"type": "block",
"interface": "lan",
"ipprotocol": "inet",
"disabled":"",
"tag": "",
"tagged": "",
"max": "",
"max-src-nodes": "",
"max-src-conn": "",
"max-src-states": "",
"statetimeout": "",
"statetype": "keep state",
"os": "",
"protocol": "icmp",
"icmptype": "any",
"source": {
"address": "192.xxxxxx"
},
"destination": {
"address": "4.2.2.2"
},
"descr": "",
"created": {
"time": "1579288662",
"username": "xxxxxxx)"
},
"updated": {
"time": "1579289266",
"username": "xxxxxx"
}
}
}
}

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.