gatekeeper_iptables library

Gatekeeper - with iptables driver

Classes

Gatekeeper
The Gatekeeper class manages TCP port access by interfacing with the GatekeeperDriver. It provides functionality to list, block, and unblock TCP ports with optional permission checks and sudo privileges.
GatekeeperDriver
The GatekeeperDriver class is an abstract class that defines the contract for interacting with the system to manage TCP port access, resolve binary paths, and run commands.
GatekeeperIpTables
The GatekeeperIpTables class is a concrete implementation of GatekeeperDriver that uses iptables or a similar utility to manage TCP ports on a system.