https://github.com/ricardofalasca/packet-filter-host-blocker
A small Python script used to help network administrators to generate PF (Packet Filter) rules to block a bunch of hosts
https://github.com/ricardofalasca/packet-filter-host-blocker
firewall freebsd macos netbsd openbsd packet-filter pf python redis whois
Last synced: 19 days ago
JSON representation
A small Python script used to help network administrators to generate PF (Packet Filter) rules to block a bunch of hosts
- Host: GitHub
- URL: https://github.com/ricardofalasca/packet-filter-host-blocker
- Owner: ricardofalasca
- License: mit
- Created: 2019-02-21T03:25:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T14:40:20.000Z (about 2 years ago)
- Last Synced: 2025-04-12T06:52:27.617Z (19 days ago)
- Topics: firewall, freebsd, macos, netbsd, openbsd, packet-filter, pf, python, redis, whois
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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)