node-kernel-iptables

node-kernel-iptables is a command for coding agents from wangke19/gemini-ai-helpers. It costs 12 tokens per session (2,321 once invoked), scanned A, original, Apache-2.0.

Inspect IPv4 and IPv6 packet filter rules on Kubernetes node.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/node-kernel-iptables
Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for node-kernel-iptables

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/node-kernel-iptables.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/node-kernel-iptables)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/node-kernel-iptables"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/node-kernel-iptables.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.02321
Opus 5 $0.00006 $0.01161
Sonnet 5 $0.00002 $0.00464
Haiku 4.5 $0.00001 $0.00232

Measured today against content hash a54e4de75cb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

node-kernel-iptables scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/openshift/commands/node-kernel-iptables.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

openshift:node-kernel-iptables

Synopsis

/openshift:node-kernel-iptables <node> <image> --command <cmd> [--table <table>] [--filter <params>]

Description

The openshift:node-kernel-iptables command allows interaction with the kernel to list packet filter rules. Iptables and ip6tables are used to inspect the tables of IPv4 and IPv6 packet filter rules in the Linux kernel.

In OVN-Kubernetes environments, iptables rules are crucial for:

  • Network address translation (NAT) for services
  • Packet filtering and security policies
  • Connection tracking integration
  • SNAT/DNAT for egress and ingress traffic
  • Debugging packet flow issues

The command uses oc debug to create an ephemeral container with host network access, then executes iptables operations. The image must contain iptables or ip6tables CLI utilities.

Implementation

This command invokes the openshift-node-kernel skill which provides kernel-level packet filter inspection capabilities:

  1. Parameter Validation: Validates required node, image, and command parameters
  2. Utility Check: Verifies the debug image contains iptables or ip6tables utilities
  3. Command Execution: Uses oc debug to create ephemeral container and execute iptables commands
  4. Output Filtering: Removes common oc debug warnings to provide clean output

Skill Reference:

  • Implementation: extensions/openshift/skills/openshift-node-kernel/node-kernel-iptables.sh
  • Helper functions: extensions/openshift/skills/openshift-node-kernel/kernel-helper.sh
  • Documentation: extensions/openshift/skills/openshift-node-kernel/SKILL.md

Parameters

Required Parameters

  • node: Name of the Kubernetes node where iptables rules should be extracted.

    • Must be a valid node name in the cluster
    • Example: ovn-control-plane, ovn-worker, worker-0
  • image: Container image to use for creating a debug connection to the node.

    • Must contain iptables and/or ip6tables utilities
    • Common images:
      • registry.redhat.io/rhel9/support-tools
      • nicolaka/netshoot

Read the full file on GitHub · 233 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 233 lines · 12 tokens per session scan A a54e4de75cb8

Subscribe to this mod's changes

node-kernel-iptables is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 12 tokens to every session and 2,321 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.