firewall

firewall is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 44 tokens per session (2,197 once invoked), scanned A, original, MIT.

A guide to managing network firewalls on Linux servers using UFW, iptables, nftables, and fail2ban. A firewall controls which network connections are allowed or blocked.

In plain words
What is it for?
Use it to design firewall policies, open only required services, restrict access by network, configure advanced routing rules, or audit server protection.
Why use it?
It helps reduce unwanted access by defining safe inbound and outbound rules and limiting repeated login attempts.

Skill for Claude CodeCodex

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

Good fit Use it to design firewall policies, open only required services, restrict access by network, configure advanced routing rules, or audit server protection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luuow/meridian-mcp/firewall
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 LuuOW/meridian-mcp --skill firewall
Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp

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 firewall

README.md
[![agentmods](https://agentmods.dev/badge/skills/luuow/meridian-mcp/firewall/github.svg)](https://agentmods.dev/skills/luuow/meridian-mcp/firewall)
Your own site
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/firewall"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/firewall/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 firewall

Your own site · 80×15
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/firewall"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/firewall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00044 $0.02197
Opus 5 $0.00022 $0.01099
Sonnet 5 $0.00009 $0.00439
Haiku 4.5 $0.00004 $0.00220

Measured 8d ago against content hash 0ba5a03d4b0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

firewall scanned grade A 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# 1. Verify from OUTSIDE (different machine or curl.sh)
skills/firewall/SKILL.md · 258 lines

How it starts

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

firewall

Firewall configuration and policy management for Linux production servers. Covers UFW for most deployments, iptables and nftables for advanced routing scenarios, and fail2ban for adaptive IP banning. Orbits the network planet.

UFW — Default Policy Design

Start from deny-all inbound, allow-all outbound. Add only what is explicitly required.

# Initial setup — run in order
ufw default deny incoming
ufw default allow outgoing

# Essential services
ufw allow OpenSSH              # 22/tcp — must do this BEFORE ufw enable
ufw allow 80/tcp               # HTTP
ufw allow 443/tcp              # HTTPS

# Activate
ufw enable
ufw status verbose
# Source-restricted rules (principle of least privilege)
ufw allow from 203.0.113.0/24 to any port 5432   # Postgres: specific subnet only
ufw allow from 10.8.0.0/24   to any port 22      # SSH: VPN subnet only
ufw deny  from 198.51.100.0/24                   # block entire range

# Rate-limit brute force on SSH (6 attempts / 30s → block)
ufw limit OpenSSH

# Named application profiles
ufw app list
ufw allow 'Nginx Full'         # opens both 80 and 443

# Modify and delete
ufw status numbered
ufw delete 5                   # remove by number
ufw insert 1 allow from 1.2.3.4   # insert at position 1 (highest priority)
ufw reload

iptables — Hardened Base Ruleset

#!/bin/bash
# /opt/scripts/apply-iptables.sh — idempotent base ruleset

IPT="iptables"

# Flush everything
$IPT -F
$IPT -X
$IPT -t nat -F
$IPT -t mangle -F

# Default policies — drop everything, build up from nothing
$IPT -P INPUT   DROP
$IPT -P FORWARD DROP
$IPT -P OUTPUT  ACCEPT

# Allow loopback
$IPT -A INPUT -i lo -j ACCEPT

# Allow established/related connections
$IPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow SSH, HTTP, HTTPS
$IPT -A INPUT -p tcp --dport 22  -j ACCEPT
$IPT -A INPUT -p tcp --dport 80  -j ACCEPT
$IPT -A INPUT -p tcp --dport 443 -j ACCEPT

# ICMP — allow ping but not flooding
$IPT -A INPUT -p icmp --icmp-type echo-request -m limit --limit 10/s -j ACCEPT
$IPT -A INPUT -p icmp -j DROP

# Log and drop everything else
$IPT -A INPUT  -j LOG  --log-prefix "INPUT-DROP: "  --log-level 4
$IPT -A INPUT  -j DROP
$IPT -A FORWARD -j LOG --log-prefix "FORWARD-DROP: " --log-level 4
$IPT -A FORWARD -j DROP

# Persist
iptables-save > /etc/iptables/rules.v4

Read the full file on GitHub · 258 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. 8d ago First seen · 258 lines · 44 tokens per session scan A 0ba5a03d4b0f

Subscribe to this mod's changes

firewall is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed 4d ago), licensed MIT. It adds 44 tokens to every session and 2,197 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

figma-create-design-system-rules

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server…

warpdotdev/warp · 71 tokens

figma-generate-design

Use this skill alongside figma-use when the task involves translating an application page, view, or multi-section layout into Figma. Triggers: 'write to Figma', 'create in Figma from code', 'push page to Figma', 'take this app/page and build it in Figma', 'create a screen', 'build a landing page in Figma', 'update the…

warpdotdev/warp · 160 tokens

figma-generate-library

Build or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables/tokens, build component libraries, set up theming (light/dark modes), document foundations, or reconcile gaps between code and Figma. This skill teaches WHAT to build and in WHAT ORDER — it…

warpdotdev/warp · 95 tokens

figma-code-connect-components

Connects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map this component", "link component to code", "create code connect mapping", or wants to establish mappings between Figma designs and code implementations. For…

warpdotdev/warp · 81 tokens

figma-implement-design

Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via…

warpdotdev/warp · 81 tokens

edit-figma-design

Create or update Figma designs directly from a written product or UI description using the Figma MCP authoring tools. Use when the user wants a mockup, wireframe, screen, component, flow, or concept designed in Figma from text, or wants to iterate on an existing Figma file from textual feedback. Despite the name, this…

warpdotdev/warp · 134 tokens