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

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 skills/validatorsdao/slv/slv-nftables
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00128 $0.02124
Opus 5 $0.00064 $0.01062
Sonnet 5 $0.00026 $0.00425
Haiku 4.5 $0.00013 $0.00212

Measured 4d ago against content hash ae969f9e257e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (89 stars, last pushed 2d ago), licensed Apache-2.0. It adds 128 tokens to every session and 2,124 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories

stellar-forge

Eval-driven coding harness for building production Stellar dApps. Routes tasks to 6 specialist agents, verifies output with structured evals, steers on failure, e2e-tests with Stellar Agentic Kit hooks, and knowledge-graphs every project. Use when building any Stellar app — tokens, DeFi, NFTs, payment APIs, or full…

rylsherdamz-rgb/stellar-forge · 82 tokens

stellar-mcp

MCP (Model Context Protocol) tools for Stellar development. Gives Claude direct access to the Stellar blockchain, filesystem, GitHub, and Playwright through configured MCP servers. Use when querying chain data, deploying contracts, managing repos, or running e2e tests from within the agent.

rylsherdamz-rgb/stellar-forge · 61 tokens

alchemy-agentic-gateway

Use when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features. Also use when the user mentions "SIWE", "SIWS", "x402", "MPP", "mppx", or "agentic gateway" — this skill covers wallet-based auth flows for Alchemy's x402 and MPP…

moonpay/skills · 101 tokens

alchemy-api

Integrates Alchemy blockchain APIs using an API key. Requires $ALCHEMYAPIKEY to be set; if unavailable, use the alchemy-agentic-gateway skill instead. Use when user asks about EVM JSON-RPC calls, token balances, NFT ownership or metadata, transfer history, token prices, portfolio data, transaction simulation…

moonpay/skills · 100 tokens

rpcedge

Use rpc edge Solana trading infrastructure via MCP tools - doctor, RPC health, priority fees, epoch/leaders, latency compare, Yellowstone first-seen sample, endpoint map, and signed-transaction relay. Prefer when the user needs low-latency Solana RPC/gRPC/sender setup, fee pricing, or agent-ready infra with keys in…

rpc-edge/rpcedge-toolkit · 76 tokens

Solana Agent Builder

Build AI-powered agents for Solana blockchain — trading bots, DeFi strategies, token analysis, and on-chain automation with TypeScript.

demo112/yunqu-ai-skills · 32 tokens