RouterOS · Schema
RouterOS Firewall Filter Rule
Schema for RouterOS firewall packet filter rule
NetworkingRouterNetwork ManagementFirewallMikroTik
Properties
| Name | Type | Description |
|---|---|---|
| .id | string | Internal RouterOS record identifier |
| chain | string | Firewall chain the rule belongs to |
| action | string | Action to take when rule matches |
| src-address | string | Source IP address or CIDR range to match |
| dst-address | string | Destination IP address or CIDR range to match |
| protocol | string | Network protocol to match |
| src-port | string | Source port or range |
| dst-port | string | Destination port or range |
| in-interface | string | Incoming interface to match |
| out-interface | string | Outgoing interface to match |
| src-address-list | string | Source must be in named address list |
| dst-address-list | string | Destination must be in named address list |
| connection-state | string | Connection tracking state to match |
| disabled | string | |
| comment | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/routeros/main/json-schema/routeros-firewall-filter-schema.json",
"title": "RouterOS Firewall Filter Rule",
"description": "Schema for RouterOS firewall packet filter rule",
"type": "object",
"properties": {
".id": {
"type": "string",
"description": "Internal RouterOS record identifier"
},
"chain": {
"type": "string",
"description": "Firewall chain the rule belongs to",
"enum": ["input", "forward", "output"],
"examples": ["forward"]
},
"action": {
"type": "string",
"description": "Action to take when rule matches",
"enum": ["accept", "drop", "reject", "log", "passthrough", "jump", "return", "tarpit", "fasttrack-connection", "add-src-to-address-list", "add-dst-to-address-list"],
"examples": ["accept"]
},
"src-address": {
"type": "string",
"description": "Source IP address or CIDR range to match"
},
"dst-address": {
"type": "string",
"description": "Destination IP address or CIDR range to match"
},
"protocol": {
"type": "string",
"description": "Network protocol to match",
"examples": ["tcp", "udp", "icmp", "gre"]
},
"src-port": {
"type": "string",
"description": "Source port or range"
},
"dst-port": {
"type": "string",
"description": "Destination port or range"
},
"in-interface": {
"type": "string",
"description": "Incoming interface to match"
},
"out-interface": {
"type": "string",
"description": "Outgoing interface to match"
},
"src-address-list": {
"type": "string",
"description": "Source must be in named address list"
},
"dst-address-list": {
"type": "string",
"description": "Destination must be in named address list"
},
"connection-state": {
"type": "string",
"description": "Connection tracking state to match",
"examples": ["established", "related", "new", "invalid"]
},
"disabled": {
"type": "string",
"enum": ["true", "false"]
},
"comment": {
"type": "string"
}
},
"required": ["chain", "action"]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/routeros-firewall-filter"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.