OPNsense Firewall API

Firewall filter and aliases.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Cybersecurity Management BC-620

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /firewall/alias/get List firewall aliases · Get firewall aliases configuration #
Ask an LLM
“What aliases are configured on my firewall?”
“Can I see all the address and port aliases I've defined?”
Tell an agent
List my firewall aliases.
Show every alias configured on the firewall.
POST /firewall/alias/reconfigure Apply firewall alias changes · Reconfigure firewall aliases #
Ask an LLM
“How do I reload the firewall aliases after I edit them?”
“Does saving aliases apply them right away?”
Tell an agent
Reconfigure the firewall aliases.
Apply my current alias configuration.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/opnsense:opnsense-firewall-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

opnsense-firewall-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OPNsense Core REST Firewall API
  description: 'REST API for OPNsense, an open source FreeBSD-based firewall and routing platform.

    The API follows a uniform URL pattern:

    `/api////[//...]`

    and uses HTTP Basic Authentication where the API key is supplied as the

    username and the API secret as the password.


    Only GET and POST verbs are used: GET retrieves data, POST creates,

    updates, or executes actions.'
  version: 1.0.0
  contact:
    name: OPNsense
    url: https://opnsense.org
  license:
    name: BSD 2-Clause
    url: https://opensource.org/licenses/BSD-2-Clause
servers:
- url: https://{host}/api
  description: OPNsense host API base path
  variables:
    host:
      default: opnsense.local
      description: Hostname or IP of the OPNsense firewall
security:
- basicAuth: []
tags:
- name: Firewall
  description: Firewall filter and aliases.
paths:
  /firewall/alias/get:
    get:
      tags:
      - Firewall
      summary: Get firewall aliases configuration
      description: Returns the configured firewall aliases.
      operationId: getFirewallAliases
      responses:
        '200':
          description: Alias configuration.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
  /firewall/alias/reconfigure:
    post:
      tags:
      - Firewall
      summary: Reconfigure firewall aliases
      description: Applies the current alias configuration.
      operationId: reconfigureFirewallAliases
      responses:
        '200':
          description: Reconfigure result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    StatusResponse:
      type: object
      properties:
        status:
          type: string
          examples:
          - ok
          - failed
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
        message:
          type: string
  responses:
    Unauthorized:
      description: Authentication failed or missing.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: 'HTTP Basic Authentication with the API key as username and the

        API secret as password.

        '
externalDocs:
  description: OPNsense API Documentation
  url: https://docs.opnsense.org/development/api.html