pfhb

Python package to dig hosts and generate PF (Packet Filter) rules


Keywords
firewall, freebsd, macos, netbsd, openbsd, packet-filter, pf, python, redis, whois
License
MIT
Install
pip install pfhb==0.9.5

Documentation

packet-filter-host-blocker

A small Python package (class and cli) that digs into domains to find its related IPs and (if enabled) IP classes from the same ASN Origin due to generate PF (Packet Filter) tables and rules to block access into those services.

Requirements

  • user privileges to install pfhb, read pf.conf, write in /etc/pfhb and to run pfctl
  • packet filter enabled (OpenBSD, FreeBSD, NetBSD or macOS)