Crate pf_rs

source ·
Expand description

Pf-RS

Provides a userspace interface to the /sev/pf FreeBSD port of the OpenBSD’s PF

Supports:

  • Add, Test, Delete multiple IP/IPv6/DNS
  • Add, Test, Delete from file (directly)
  • Kill state by source IP or by source and destination IP

This crate supports only FreeBSD 13.

This is experimantal crate!

The crate version is decoded:

  • major version - is a FreeBSD major version
  • minor version - is a FreebSd minor version
  • build - is a patch of the crate

Files:

  • pf.rs contains library code
  • pf_tokenizer.rs a ip/domain list parser and tokenizer
  • common.rs shared code
  • portable - all portable and shared code is there

Modules§

Macros§