MCP Catalogs
首页

pfsense-mcp-server

by gensecaihq·69·综合分 47

pfSense MCP 服务器让安全管理员通过自然语言命令管理防火墙,提供327种工具和9层安全保障。

securityops-infradeveloper-tools
10
Forks
4
活跃 Issue
2 个月前
最近提交
2 天前
收录于

概述

这个 MCP 服务器将 Claude Desktop 等 AI 助手通过 REST/XML-RPC/SSH 连接到 pfSense 防火墙。它提供全面的防火墙管理功能,同时实施强大的安全措施,包括自动备份、破坏性操作的明确确认和输入清理。服务器支持多种 pfSense 版本和认证方法,适合各种企业环境。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:安全管理员通过自然语言查询管理防火墙规则
:在 pfSense 实例上自动化合规检查和诊断
:让非技术人员能够安全执行基本的防火墙操作
:此服务器实施哪些安全措施?
:支持哪些 pfSense 版本?

什么时候选它

管理 pfSense 防火墙的团队,希望通过自然语言界面降低配置复杂性,同时内置安全防护。

什么时候不要选它

您使用的是非 pfSense 防火墙,因为这个 MCP 服务器专门为 pfSense 集成而设计。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • create_firewall_rule

    Creates a new firewall rule with specified action, interface, protocol, and source/destination

  • get_firewall_rules

    Retrieves current firewall rules with filtering options

  • create_port_forward

    Creates a new NAT port forward rule to redirect external traffic to internal hosts

  • start_openvpn_server

    Starts an OpenVPN server with specified configuration

  • create_static_route

    Adds a static route to the routing table

  • get_system_status

    Retrieves comprehensive system status including uptime, interfaces, and services

  • create_dns_override

    Creates a DNS override entry for specific hosts or domains

  • run_system_health_check

    Performs a comprehensive health check of the pfSense system

  • add_dhcp_static_mapping

    Adds a static DHCP mapping for a specific MAC address

  • generate_self_signed_cert

    Generates a self-signed SSL certificate for internal services

  • block_ip

    Blocks a specific IP address at the firewall level

  • run_pci_compliance_check

    Performs a PCI compliance check on firewall configuration

可对比工具

opnsense-mcp-serverfirewall-mcpnetwork-automation-api

安装

安装

**先决条件:** Python 3.10+,安装了 [REST API v2 包](https://github.com/pfrest/pfSense-pkg-RESTAPI) 的 pfSense

git clone https://github.com/gensecaihq/pfsense-mcp-server.git
cd pfsense-mcp-server
pip install -r requirements.txt
cp .env.example .env
# 编辑 .env: 设置 PFSENSE_URL、AUTH_METHOD 和凭证

**连接到 Claude Desktop** — 添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "pfsense": {
      "command": "python3",
      "args": ["-m", "src.main"],
      "cwd": "/path/to/pfsense-mcp-server",
      "env": {
        "PFSENSE_URL": "https://192.168.1.1",
        "AUTH_METHOD": "basic",
        "PFSENSE_USERNAME": "admin",
        "PFSENSE_PASSWORD": "your-password",
        "PFSENSE_VERSION": "CE_2_8_0",
        "VERIFY_SSL": "false"
      }
    }
  }
}

FAQ

此服务器实施哪些安全措施?
服务器包含9层安全防护:输入清理、破坏性操作的明确确认、更改前的自动配置备份、防止AI失控的速率限制,以及敏感参数脱密的审计日志。
支持哪些 pfSense 版本?
验证版本包括带有 REST API v2.7.3 的 pfSense CE 2.8.1 和 pfSense Plus 25.11。还支持带有 REST API v2.6.0+ 的 pfSense CE 2.8.0 和 pfSense Plus 24.11。

pfsense-mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。