slv-nftables

slv-nftables is a skill for Claude Code, Codex from ValidatorsDAO/slv. It costs 128 tokens per session (2,124 once invoked), scanned B, original, Apache-2.0.

An automated firewall setup for nftables, the Linux system used to control network traffic. It builds rules from each host's inventory, checks them, applies them safely, and enables them after reboot.

In plain words
What is it for?
Use it to deploy firewall rules on SLV-managed Hermes, Pythnet RPC, Solana RPC, and validator hosts, including management addresses and allowed public ports.
Why use it?
It removes hand-written, host-specific firewall configuration and reduces the risk of applying invalid rules or locking yourself out.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to deploy firewall rules on SLV-managed Hermes, Pythnet RPC, Solana RPC, and validator hosts, including management addresses and allowed public ports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/validatorsdao/slv/slv-nftables
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.

Any agent
npx skills add ValidatorsDAO/slv --skill slv-nftables
Clone the repo
git clone --depth 1 https://github.com/ValidatorsDAO/slv

Made for: Claude Code, Codex.

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 slv-nftables

README.md
[![agentmods](https://agentmods.dev/badge/skills/validatorsdao/slv/slv-nftables/github.svg)](https://agentmods.dev/skills/validatorsdao/slv/slv-nftables)
Your own site
<a href="https://agentmods.dev/skills/validatorsdao/slv/slv-nftables"><img src="https://agentmods.dev/badge/skills/validatorsdao/slv/slv-nftables/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for slv-nftables

Your own site · 80×15
<a href="https://agentmods.dev/skills/validatorsdao/slv/slv-nftables"><img src="https://agentmods.dev/badge/skills/validatorsdao/slv/slv-nftables.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 79
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 80
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 89
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 90
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 83
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 86
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original 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.1 $0.00128 $0.02124
Opus 5.5 $0.00051 $0.00850
Sonnet 5.5 $0.00026 $0.00425
Haiku 4.5 $0.00013 $0.00212

Measured 3mo ago against content hash ae969f9e257e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

slv-nftables scanned grade B with 1 finding 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 3mo ago.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo nft add element inet filter allowAll_v4 { 198.51.100.42 }
oss-skills/slv-nftables/SKILL.md · 194 lines

How it starts

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

SLV nftables Skill

Inventory-driven nftables ruleset deployer. One playbook (cmn/deploy_nftables.yml) serves every slv role — Hermes, Pythnet RPC, Solana RPC, validators — by reading the firewall description from the same inventory that already configures the service itself.

What it does

  1. Renders /etc/nftables.conf + fragments under /etc/nftables.d/ and /etc/nftables.sets.d/ from Jinja2 templates.
  2. Validates the rendered config (nft -c) before applying. If validation fails, the previous config is restored and the playbook aborts — you cannot lock yourself out via a bad template.
  3. Applies atomically (nft -f).
  4. Seeds allowlist sets with IPs from inventory, preserving any elements added at runtime with nft add element … so re-running the playbook never wipes manual additions.
  5. Exports the live ruleset back into /etc/nftables.conf and enables nftables.service so the same ruleset is restored on reboot.

Ruleset shape

chain input  (default: drop)
  ├─ accept loopback
  ├─ accept established/related
  ├─ accept icmp / icmpv6
  ├─ banAll_v4 drop                       (highest priority)
  ├─ mgmt_ips_v4 accept                   (full access)
  ├─ allowAll_v4 accept                   (runtime additions, full access)
  ├─ mgmt_ips_v4 → tcp dport ssh_port accept   (belt-and-suspenders)
  ├─ public_tcp_ports / public_udp_ports accept
  └─ restricted_ports[]: allow_<port>_v4 accept else drop

Inventory variables

Variable Required Default Description
mgmt_ips_v4 yes — List of IPv4/CIDR with full access. Empty list aborts the playbook.
mgmt_ips_v6 no [] Same for IPv6
ban_ips_v4 no [] Hard-deny list (evaluated first)
ssh_port no 22 SSH port to keep open from mgmt
public_tcp_ports no [] TCP ports/ranges accepted from any source
public_udp_ports no [] UDP ports/ranges accepted from any source
restricted_ports no [] Per-port allowlist (see below)
disable_ufw no true Stop/disable ufw to avoid conflict
preserve_existing no true Preserve runtime nft add element additions

Read the full file on GitHub · 194 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 194 lines · 128 tokens per session scan B ae969f9e257e

Subscribe to this mod's changes

slv-nftables is a skill published in the GitHub repository ValidatorsDAO/slv (95 stars, last pushed 11d ago), licensed Apache-2.0. It adds 128 tokens to every session and 2,124 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

slv-nftables compared with skills from other repositories

slv-nftables next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
slv-nftablesValidatorsDAO/slvSkill9511d agoApache-2.0B128Claude Code, Codex
alchemy-agentic-gatewaymoonpay/skillsSkill1121mo agoMITA101Claude Code
alchemy-apimoonpay/skillsSkill1121mo agoMITA100Claude Code
stellar-forgerylsherdamz-rgb/stellar-forgeSkill179d agoMITA82Claude Code
stellar-mcprylsherdamz-rgb/stellar-forgeSkill179d agoMITA61Claude Code
rpcedgerpc-edge/rpcedge-toolkitSkill11mo agoMITA76Claude Code
solana-devStarchild-ai-agent/official-skillsSkill344d agononeA57Claude Code