pfctl-rs icon indicating copy to clipboard operation
pfctl-rs copied to clipboard

Library and CLI for interfacing with the PF firewall on macOS

Results 12 pfctl-rs issues
Sort by recently updated
recently updated
newest added

The CI for this crate has not been running for a looong time. We have not used Travis for years. - - - This change is [](https://reviewable.io/reviews/mullvad/pfctl-rs/89)

Changed `error-chain` to `thiserror`, and updated dependencies. Maybe you would also want to remove `error-chain` from examples and tests. Closes #66 - - - This change is [](https://reviewable.io/reviews/mullvad/pfctl-rs/88)

This PR updates pfvar.h and Rust bindings Closes https://github.com/mullvad/pfctl-rs/issues/86 - - - This change is [](https://reviewable.io/reviews/mullvad/pfctl-rs/87)

Hi, I found a lot of errors like this when trying to compile tests: ``` error[E0793]: reference to packed field is unaligned --> src/ffi/pfvar.rs:2348:18 | 2348 | unsafe { &(*(::std::ptr::null::())).pfss_flags...

Rewrite the errors to not use the deprecated and defunct `error-chain` library.

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...

All copyright notices point to Amagicom, I am not sure but we may want to update that to Mullvad VPN AB. /cc @faern

On one particular macOS 10.12.6 machine it's not possible to clear states. The `pfsync_state.anchor == anchor_rule.nr` never matches.

Replaces the ioctl-sys with the ioctl macros from nix crate. The nix crate allows this library to be built on other platforms like FreeBSD. Passes all tests until the states...

The way we currently probe the system for PF states is racy and prone to failing. We first check the number of states -> allocate a container -> ask the...