Comments (7)
I've taken a look at this and got "something" that probably works at the sacrifice of some stability which itself can be addressed with further effort.
I've taken moment to pause though as I'm not sure I'm comfortable with opening up the universe of possible includes like this - part of the reason the function_call
is so rigid about what can be included is that I did not want to enable functionality that led to unexpected outcomes ... and it is already in uncharted territory in that regard..
If anyone can describe more reasons why this is an important must-have extension of capability then I'll make it happen.
Will keep this ticket open for the time being.
from pfsense_fauxapi.
@ndejong I'm just using the built-in xmlrpc API now which supports this idea along with anything else so I'm good for now.
from pfsense_fauxapi.
That's interesting - could you describe this a little bit more - would it perhaps make sense for FauxAPI to have an xmlrpc endpoint perhaps?
Reference
https://github.com/users/ndejong/projects/2#card-18935721
from pfsense_fauxapi.
Basically pfSense has an xmlrpc API that somewhat eliminates the need to use this project. In my use case, I was developing a piece of software to integrate with pfSense and wanted to make the 'barrier to entry' as low as possible. Requiring users to install/setup the fauxapi in conjunction with the limitation(s) originally mentioned on this ticket were factors in directly using the built-in xmlrpc api (I was unaware of the extent of features it offered...which is basically anything you need/want and more).
None of this is meant to demean this project FYI. Just stuff I discovered along the way.
- https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/xmlrpc.php
- https://github.com/travisghansen/kubernetes-pfsense-controller
from pfsense_fauxapi.
Ahh - that's awesome, certainly do like your kubernetes-pfsense-controller too - dare I say it, did you consider using OPNsense rather than pfSense for this though? I've been doing a lot more with OPNsense of late (https://github.com/verbnetworks) and find the OPNsense code much cleaner etc.
from pfsense_fauxapi.
@ndejong I've used pfsense for a long time and didn't follow the IMO petty banter between the 2 projects (from both sides from what I can tell).
Perhaps in the future I'll take a look but I've been running the installations I have in production for many years and didn't want to mess with those installs.
Having said that, I have nothing against the newer project and my controller could pretty easily be adapted to opnsense if the API supports all needed functions.
I have plans to tie into fail2ban (with kubernetes logs) but instead of making iptables call it would make rules in pfsense. Kinda lofty goal but doable :)
from pfsense_fauxapi.
Hi,
A possible use case that I've encountered for this: I'm trying to automate some SquidGuard functions, and SquidGuard requires the Apply button in General Settings to be pressed after making changes.
This runs the sg_reconfigure()
function from /usr/local/pkg/squidguard.inc
in the background. If FauxAPI were to support included files from /usr/local/pkg
directory then one could use function_call
to execute sg_reconfigure()
via FauxAPI.
Other than that, I don't see how one could do this via FauxAPI.
from pfsense_fauxapi.
Related Issues (20)
- Can't delete last element of the static map (DHCP Server) HOT 1
- Package Manager "error" after installation HOT 1
- Wake On LAN via fauxapi
- Allow UNIX timestamp auth HOT 1
- Kill states after enabling of rule HOT 1
- pfSense 2.4.4-p3 - URL table alias updating broken (simple fix) HOT 2
- Not executing commands until web browser refresh HOT 8
- Example to add new users and move to member groups HOT 1
- make firewall rule with python fauxapi HOT 2
- pfsense 2.5.x official repo? HOT 3
- Set timeout HOT 3
- fetch : bad request HOT 1
- Instruction Update HOT 2
- config_set does update but new Virtual IP is not added HOT 1
- apikey_value generation HOT 7
- Hash is marked as invalid unless lowercase
- Need to use GUI to save freeradius ?
- List of supported items for config_item_set
- Authentication failed, even though credentials were added HOT 1
- function_call: service_control_stop($name, $extras) not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pfsense_fauxapi.