Logo van Fwrule Analyzer

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.

Overzicht

Uitgeverautomateyournetwork
Repositorynetclaw
Skillnaamfwrule-analyzer
Sterren
680
Forks
189
Meegeleverde bestanden
Alleen instructies
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door automateyournetwork op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Fwrule Analyzer in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/fwrule-analyzer
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Fwrule Analyzer in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Fwrule Analyzer automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Fwrule Analyzer niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Fwrule Analyzer gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Fwrule Analyzer bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Fwrule Analyzer in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/fwrule-analyzer. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Fwrule Analyzer gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Fwrule Analyzer gebruiken?

Zoveel als je wilt. Je kunt Fwrule Analyzer gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Fwrule Analyzer gratis?

Ja. Deze skill is door automateyournetwork op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇