-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit which pfctl command the rule_get call does #13
Comments
Upon further testing, it seems that the rule number is in the command itself, but is not returned in the curl output.
vs
|
Interesting - i recall writing this statement feeling i was not getting the
source-of-truth pf rule numbers correctly - i suspect i'll adjust this to
return the real pf rule-number - will need to look at this closer when i
have a little more time over the weekend - N
On 13 Sep 2017, at 22:40, itsmeh <[email protected]> wrote:
I need to get the equivalent of the *pfctl -vvs rules* command from the
faux_api call, but the call does *pfctl -sr -vv* instead. Is there any way
I can amend this to use the option I need?
Need this because the *-vvs* gives a nice list with the rule number
included, while *-sr -vv* does not. Any help would be appreciated
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM2KmVK75MTT4fQat0pK2I7M82LNzhZks5sh81FgaJpZM4PWC4m>
.
|
I've taken a look at the code behind this and can confirm that fauxapi is correctly parsing the pf-source-of-truth rule number, it might be entirely obvious because the array index number is the rule number Right now, this means for you to obtain the rule number you will need to adjust your code to discover the array index number in your code. I'll improve this in the next release to include a I'll be adjusting the |
Following up on this New release (1.3) is due shortly and will add a Closing |
Hi there! First things first, awesome work on this one!
I would like to know if I can get the equivalent of the pfctl -vvs rules command from the faux_api call, but the call does pfctl -sr -vv instead. Is there any way I can amend this to use the option I need?
Need this because the -vvs gives a nice list with the rule number included, while -sr -vv does not. I need this so I am able to parse the rules according to its rule number in a single call. Any help would be appreciated
The text was updated successfully, but these errors were encountered: