Skip to main content
Glama

OPNSense MCP Server

create_firewall_rule

Configure firewall rules on OPNSense by specifying action, interface, direction, protocol, and source/destination addresses to manage network traffic effectively.

Instructions

Create a new firewall rule

Input Schema

NameRequiredDescriptionDefault
actionYesRule action (pass/block/reject)
descriptionNoRule description
destinationYesDestination address/network or "any"
destinationPortNoDestination port (for TCP/UDP)
directionYesTraffic direction
enabledNoEnable rule
interfaceYesInterface name
protocolYesProtocol (any/tcp/udp/icmp)
sourceYesSource address/network or "any"
sourcePortNoSource port (for TCP/UDP)

Input Schema (JSON Schema)

{ "properties": { "action": { "description": "Rule action (pass/block/reject)", "enum": [ "pass", "block", "reject" ], "type": "string" }, "description": { "description": "Rule description", "type": "string" }, "destination": { "description": "Destination address/network or \"any\"", "type": "string" }, "destinationPort": { "description": "Destination port (for TCP/UDP)", "type": "string" }, "direction": { "description": "Traffic direction", "enum": [ "in", "out" ], "type": "string" }, "enabled": { "default": true, "description": "Enable rule", "type": "boolean" }, "interface": { "description": "Interface name", "type": "string" }, "protocol": { "description": "Protocol (any/tcp/udp/icmp)", "type": "string" }, "source": { "description": "Source address/network or \"any\"", "type": "string" }, "sourcePort": { "description": "Source port (for TCP/UDP)", "type": "string" } }, "required": [ "action", "interface", "direction", "protocol", "source", "destination" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vespo92/OPNSenseMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server