Py-pf

Latest version: v0.2.3

Safety actively analyzes 624698 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.1.1

-----------------------------
- Updated to OpenBSD 5.4

0.1.0

----------------------------
- Updated to OpenBSD 5.3

0.0.9

-----------------------------
- Updated to OpenBSD 5.2
- Printing a `PFIface` object now returns a string similar to the output of the
command `pfctl -sI -vv`
- Fixed a bug in `PFRule` that prevented `rdr-to` rules from being correctly
converted to strings
- Fixed a couple of bugs in the string representation of `PFState` objects
- Added filtering capabilities to `PacketFilter.get_ruleset()`: now it's
possible to retrieve only rules with specific attribute values (e.g.
`filter.get_ruleset(ifname="em0")`)
- Added the `set_optimization()` and `get_optimization()` methods to
`PacketFilter` (thanks Colin!)
- Fixed a bug in `PFAddr._from_str()` which didn't allow interface groups as
addresses (thanks Colin!)
- Added the `pf.lib` module containing some higher-level classes that make
loading PF rules much easier

0.0.8

-----------------------------
- Updated to OpenBSD 5.1
- Module renamed to pf for better compliance with PEP8
- Fixed a ZeroDivisionError in PFStatus._to_string() when runtime == 0
- Added support for ALTQ statistics; three new classes have been created
(CBQStats, HFSCStats and PriQStats), corresponding to the schedulers
supported by OpenBSD.
- Fixed a few calls to ctonm() in PFRule.py that didn't pass the af argument
- Added probability and options to the string representation of PFRule
objects
- Fixed a regexp error in PFRule.py that prevented the correct parsing of
some port operands
- Fixed bug in PFUtils.rate2str which prevented correct handling of floating
point numbers
- Test suite completely re-written and run with `python setup.py test`

0.0.7

-----------------------------
- Updated to OpenBSD 5.0; the C structures have undergone some minor changes.
- Added support for `divert-*` options in PF rules.
- Added a new `PacketFilter.get_ifaces()` method to retrieve the list of
interfaces and interface drivers known to pf(4).
- Created a new `PFIface` class representing a network interface and returned
by the `PacketFilter.get_ifaces()` method; this class also allows the
retrieval of per-interface statistics.
- Renamed the `PacketFilter.set_ifflag()` method to `PacketFilter.set_ifflags()`
for consistency with `PacketFilter.get_ifflags()`.

0.0.6

-----------------------------
- Added support for packet queueing with ALTQ; three new classes have been
created (`PFAltqCBQ`, `PFAltqHFSC` and `PFAltqPriQ`), corresponding to the
schedulers supported by OpenBSD.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.