Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Opnsense

БесплатноНе проверен

Enables interaction with OPNsense firewalls through MCP tools for managing firewall rules, interfaces, DHCP leases, and system monitoring.

GitHubEmbed

Описание

Enables interaction with OPNsense firewalls through MCP tools for managing firewall rules, interfaces, DHCP leases, and system monitoring.

README

A Model Context Protocol (MCP) server for interacting with OPNsense firewalls. This server provides tools to manage firewall rules, view network interfaces, manage DHCP leases, and monitor system status.

Features

This MCP server exposes the following tools:

Firewall

  • list_firewall_rules: List firewall filter rules.
  • add_firewall_rule: Add a new firewall rule (pass/block/reject, tcp/udp/any).
  • toggle_firewall_rule: Enable or disable a firewall rule by UUID.
  • delete_firewall_rule: Delete a firewall rule by UUID.

Interfaces

  • list_interfaces: List network interfaces with status and statistics.
  • get_arp_table: Get the ARP table (IP-to-MAC mappings).

DHCP

  • list_dhcp_leases: List active and static DHCP leases.

System

  • get_system_info: Get system information (hostname, uptime, CPU, memory usage).
  • get_firmware_status: Check for available firmware and package updates.
  • get_system_log: Fetch recent system log entries.
  • reboot_system: Reboot the OPNsense firewall.

Configuration

The server requires the following environment variables to authenticate with your OPNsense API:

  • OPNSENSE_HOST: The base URL of your OPNsense firewall (e.g., https://192.168.1.1).
  • OPNSENSE_API_KEY: Your OPNsense API key.
  • OPNSENSE_API_SECRET: Your OPNsense API secret.
  • OPNSENSE_VERIFY_SSL (optional): Set to true to verify SSL certificates (defaults to false for self-signed certificates).

Usage

Using with MCP CLI

You can run this server using the MCP CLI:

# Set your environment variables
export OPNSENSE_HOST="https://192.168.1.1"
export OPNSENSE_API_KEY="your-api-key"
export OPNSENSE_API_SECRET="your-api-secret"

# Run the server
mcp run server.py

Installation from Source

  1. Clone the repository:
git clone https://github.com/yourusername/opnsense-mcp.git
cd opnsense-mcp
  1. Install dependencies:
pip install .
  1. Run the server:
opnsense-mcp

from github.com/aesaganda/opnsense-mcp

Установка Opnsense

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/aesaganda/opnsense-mcp

FAQ

Opnsense MCP бесплатный?

Да, Opnsense MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Opnsense?

Нет, Opnsense работает без API-ключей и переменных окружения.

Opnsense — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Opnsense в Claude Desktop, Claude Code или Cursor?

Открой Opnsense на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Opnsense with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development