Fwrule Analyzer logo

Fwrule Analyzer

Community
automateyournetwork
fwrule-analyzer

Multi-vendor firewall rule analysis — overlap detection, shadowing, conflict identification, duplication checking across PAN-OS, ASA, FTD, IOS/IOS-XE, IOS-XR, Check Point, SRX, Junos, Nokia SR OS, and Fortinet FortiOS/FortiGate. Use when validating firewall rule changes, auditing rulesets for conflicts, or normalizing vendor configs to a common schema.

Overview

Publisherautomateyournetwork
Repositorynetclaw
Skill namefwrule-analyzer
Stars
680
Forks
189
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by automateyournetwork on GitHub. Read the source before you install it.

Installation

Install the Fwrule Analyzer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/fwrule-analyzer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/automateyournetwork/netclaw.git /tmp/netclaw
mkdir -p .claude/skills
cp -r /tmp/netclaw/workspace/skills/fwrule-analyzer .claude/skills/fwrule-analyzer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fwrule Analyzer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fwrule Analyzer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fwrule Analyzer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Firewall Rule Analyzer

MCP Server

  • Repository: AutomateIP/fwrule-mcp
  • Transport: stdio (Python via uv run fwrule-mcp)
  • Install: git clone + uv sync (or pip install -e .)
  • Requires: No environment variables — standalone analysis engine
  • Dependencies: fastmcp>=2.0, pydantic>=2.0, Python 3.11+

Available Tools (3)

ToolWhat It Does
analyze_firewall_rule_overlapCompare a candidate rule against an existing ruleset using 6-dimensional set intersection (zones, addresses, ports, protocols, actions, applications). Detects overlaps, shadowing, conflicts, and duplicates. Supports two input modes: vendor-native config via built-in parsers, or pre-normalized JSON.
parse_policyConvert vendor-native firewall configurations into a standardized JSON schema. Enables inspection of parser output — rule counts, object resolution, address expansion — before running overlap analysis.
list_supported_vendorsEnumerate all supported firewall vendors, their aliases, configuration formats, and explain how to use normalized JSON input to bypass vendor-specific parsers.

Supported Vendors (10)

VendorConfig FormatVersionsIdentifiers
Palo Alto PAN-OSXML export9.x–11.xpanos, paloalto, panorama
Cisco ASAshow running-config9.x+asa, cisco-asa
Cisco FTDFMC JSON6.x–7.xftd, firepower, fmc
Cisco IOS/IOS-XEshow running-config12.x–17.xios, iosxe, cisco-ios
Cisco IOS-XRshow running-config6.x+iosxr, ios-xr, xr
Check PointJSON rulebaseR80.x–R82.xcheckpoint, cp, check-point
Juniper SRXdisplay set19.x+juniper, srx
Juniper Junosdisplay set18.x+junos, mx, ptx, qfx
Nokia SR OSMD-CLI format20.x+sros, nokia, sr-os
Fortinet FortiOSFull backup config5.x–7.xfortios, fortigate, fortinet, forti, fgt, fmg

⚠️ FortiOS parser contributed by SIA/NetClaw (Airowire Networks). PR open at AutomateIP/fwrule-mcp#1. Install from the fork until merged upstream: pip install git+https://github.com/akshaysiddaram/fwrule-mcp.git

Key Concepts

ConceptWhat It Means
OverlapCandidate rule matches traffic already handled by existing rules
ShadowingCandidate rule is fully covered by a higher-priority existing rule — it will never match
ConflictRules match the same traffic but have different actions (allow vs deny)
DuplicationCandidate rule is functionally identical to an existing rule
6-Dimensional AnalysisComparison across source/dest zones, source/dest addresses, services/ports, protocols, actions, and applications
Normalized JSONVendor-agnostic rule schema with standardized fields (id, position, enabled, action, zones, addresses, services, applications)

Two Input Modes

Mode 1: Vendor-Native Config

Pass raw vendor configuration text and let the built-in parsers normalize it:

  • vendor: Vendor identifier (e.g., panos, asa, ftd, ios, checkpoint, srx, junos, nokia, fortios)
  • ruleset_payload: Complete firewall config in vendor format
  • candidate_rule_payload: Single rule in vendor format
  • os_version: Optional version hint for parser selection
  • context_objects: Supplemental object definitions as JSON

Mode 2: Pre-Normalized JSON

Bypass parsers when structured data is already available:

  • existing_rules: JSON array of normalized rule objects
  • candidate_rule: Single normalized JSON rule object

Workflow: Pre-Change Rule Validation

When adding a new firewall rule to a policy:

  1. Parse existing policy: parse_policy with vendor config — normalize to JSON, verify rule count and object resolution
  2. Analyze candidate: analyze_firewall_rule_overlap — check the proposed rule against the existing ruleset
  3. Review findings: Examine overlap type (shadow, conflict, duplicate, partial overlap), severity, and affected dimensions
  4. Decision: Approve, modify, or reject the candidate rule based on findings
  5. Report: Formatted analysis with vendor, policy, candidate rule, and overlap results

Workflow: Cross-Vendor Policy Audit

When auditing firewall rules across multiple platforms:

  1. Enumerate vendors: list_supported_vendors — confirm supported platforms
  2. Parse each policy: parse_policy for each vendor config — normalize all rules
  3. Cross-analyze: For each rule in vendor A, use analyze_firewall_rule_overlap against vendor B's normalized rules
  4. Identify: Cross-platform conflicts, redundant rules, shadowed entries
  5. Report: Multi-vendor rule consistency analysis

Workflow: Ruleset Hygiene Audit

When cleaning up an existing firewall policy:

  1. Parse policy: parse_policy — normalize the full ruleset
  2. For each rule: analyze_firewall_rule_overlap — check the rule against all others in the same policy
  3. Flag: Shadowed rules (dead rules that never match), duplicates, and internal conflicts
  4. Report: Cleanup recommendations with rule positions and overlap details

Integration with Other Skills

SkillHow They Work Together
fmc-firewall-opsFMC policy search + fwrule overlap analysis on retrieved rules
paloalto-panoramaPanorama policy export + fwrule cross-policy analysis
pyats-securityDevice ACL retrieval via pyATS + fwrule overlap detection
pyats-asa-firewallASA config retrieval + fwrule ASA parser for rule normalization
fortimanager-opsFortiManager policy export + fwrule FortiOS parser for cross-VDOM analysis
servicenow-change-workflowServiceNow CR gating + fwrule validation before rule deployment
github-opsCommit firewall rule change analysis results to Git
gait-session-trackingAudit trail for all firewall rule analysis operations

Important Rules

  • Read-only analysis — all 3 tools are pure analysis; no firewall modifications
  • No credentials required — works entirely on config text/JSON input, no API connections to firewalls
  • Vendor parsers are best-effort — use Mode 2 (normalized JSON) when parsers produce unexpected results
  • Record in GAIT — log all firewall rule analysis for compliance audit trail

Frequently asked questions

What does the Fwrule Analyzer AI skill do?

Multi-vendor firewall rule analysis — overlap detection, shadowing, conflict identification, duplication checking across PAN-OS, ASA, FTD, IOS/IOS-XE, IOS-XR, Check Point, SRX, Junos, Nokia SR OS, and Fortinet FortiOS/FortiGate. Use when validating firewall rule changes, auditing rulesets for conflicts, or normalizing vendor configs to a common schema.

Why use Fwrule Analyzer on TypingMind?

Because you install it once and use it with any model. Fwrule Analyzer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fwrule Analyzer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/fwrule-analyzer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Fwrule Analyzer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fwrule Analyzer?

As many as you like. As long as a model supports skills, you can use Fwrule Analyzer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fwrule Analyzer AI skill free?

Yes. It is published on GitHub by automateyournetwork under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇