Comments (8)
Hi Masifpak,
Your question is not entirely clear to me, I'll attempt to answer as best I can, perhaps you could ask again with more description on what you are having trouble with.
= the identifier of the API key, this is simply an reference value there is nothing secret about it
= the secret value associated with the keep this value private, also, in order to prevent poor choices there are (pedantic) rules around what values are valid here, have a read in the provided sample credentials file /etc/fauxapi/credentials.ini
NB: you MUST set your own and value before you'll be able to use the fauxapi.
Also, try adding __debug=true
to the end of your curl request to obtain extra debug information that should help you in determining where the problem is - your request URL would hence become:-
https://192.168.10.10/fauxapi/v1/?action=config_get&__debug=true
from pfsense_fauxapi.
Here is my credential.ini file. How can this help me in
curl -X GET --silent --insecure --header "fauxapi-auth: PFFA4797d073:20161119Z144328:833a45d8:9c4f96ab042f5140386178618be1ae40adc68dd9fd6b158fb82c99f3aaa2bb55" "https://192.168.10.10/fauxapi/v1/?action=config_get&_debug=true"
I have also tried &_debug=true
but nothing happen. Just execute the command without any output or error. Should it not working?
[PFFAexample01]
secret = abcdefghijklmnopqrstuvwxyz0123456789abcd
owner = Example01 Firstname Lastname
[PFFAexample02]
secret = ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCD
owner = Example02 Firstname Lastname
from pfsense_fauxapi.
I have also tried like this.
from pfsense_fauxapi.
In below, i am using random apikey and apisecret and facing the following problem
from pfsense_fauxapi.
What is the purpose of Owner. Can i use these same apikey and apisecret?
from pfsense_fauxapi.
Hi Masifpak,
Based on the credential.ini you posted above, could I point you to the following sentence from the documentation: -
The two sample FauxAPI keys (PFFAexample01 and PFFAexample02) and their associated secrets in the sample credentials.ini file are hard-coded to be inoperative, you must create entirely new values before your client scripts will be able to issue commands to FauxAPI.
Before anything else, you need to add your own credential. for example: -
[PFFAmasifpak1]
secret = abcdefghijklmnopqrstuvwxyz0123456789abcd
owner = Hello my name is masifpak
As far as I am aware, the owner field is purely for display purposes. (I think it is like a comment)
Hope that is of some use.
from pfsense_fauxapi.
Hi Masifpak,
I've updated the documentation and provided an easy command line example to automatically generate credentials that will be valid:-
apikey_value
$ echo PPFA`head /dev/urandom | base64 -w0 | tr -d /+= | head -c 20`
apisecret_value
$ echo `head /dev/urandom | base64 -w0 | tr -d /+= | head -c 60`
Hope that clears things up for you
from pfsense_fauxapi.
Hi,
I am facing some confusion regarding this play how to create API string i am trying to sync this firewall with 3rd party tool.
Here is my Credentials. ini file config.
;; PFFAexample01 is hardcoded to be inoperative
[PFFAfahad09800552]
secret = 8897562242abcdefghijklmnopqrtsuvwxyz09812345
permit = alias_, config_, gateway_, rule_, send_, system_, function_*
comment = PFFAfahad09800552 - hardcoded to be inoperative
How i can check this one working? What is the roll of Python in it? What next configuration i need to do after this? How this API string create in below format?
fauxapi-auth: PFFA4797d073:20161119Z144328:833a45d8:9c4f96ab042f5140386178618be1ae40adc68dd9fd6b158fb82c99f3aaa2bb55
Is this example Auth ??
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.