Fwrule Analyzerのロゴ

Fwrule Analyzer

コミュニティ
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.

概要

公開者automateyournetwork
リポジトリnetclaw
スキル名fwrule-analyzer
スター
680
フォーク
189
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    automateyournetworkがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Fwrule Analyzer」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/fwrule-analyzer
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFwrule Analyzerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にFwrule Analyzerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Fwrule Analyzerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

よくある質問

AIスキル「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.

TypingMindでFwrule Analyzerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Fwrule Analyzerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFwrule Analyzerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/fwrule-analyzerを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Fwrule Analyzerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Fwrule Analyzerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFwrule Analyzerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Fwrule Analyzer」は無料ですか?

はい。automateyournetworkがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇