Skip to content
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

equivalent of "-E" option to pfctl? #83

Open
bryanlarsen opened this issue Mar 2, 2024 · 2 comments
Open

equivalent of "-E" option to pfctl? #83

bryanlarsen opened this issue Mar 2, 2024 · 2 comments

Comments

@bryanlarsen
Copy link

I'm looking at converting a pfctl script using this crate, but I don't see an equivalent for the "-E" option to pfctl. It seems more polite / more compatible with other tools to use the -E/-X options rather than -e/-d.

@pronebird
Copy link
Contributor

pronebird commented Mar 2, 2024

It would be great to add but that would require us digging into ioctl calls. How do you use -E? Does it return a token over stdout that you can later release with -X to disable firewall given no one else wants it enabled?

@issackelly
Copy link

That's exactly how we (I work with OP) use -E

We are back to touching this part of our code so I was looking at this recently. If I get a patch together I'll put it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants