MCPcopy
hub / github.com/dreadl0ck/netcap / IPTablesBlockHandler

Struct IPTablesBlockHandler

injection/actions_iptables.go:53–53  ·  view source on GitHub ↗

IPTablesBlockHandler handles iptables block actions.

Source from the content-addressed store, hash-verified

51
52// IPTablesBlockHandler handles iptables block actions.
53type IPTablesBlockHandler struct{}
54
55// Execute blocks the source or destination IP via iptables.
56func (h *IPTablesBlockHandler) Execute(ctx *InjectionContext, config map[string]any) (*ActionResult, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected