본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

opnsense-admin

transcendenceia 제작

DevOps & Cloud
—아직 평가 없음
내 평가

요약

Manage OPNsense firewall, DNS, IDS/IPS, and network configuration via API and SSH.

설명

이 스킬이 하는 일

Administers OPNsense firewalls through its REST API and SSH. Covers firewall rules, NAT, Suricata IDS/IPS, Unbound DNS, configuration backups, and service management. Targets OPNsense 26.1 and later.

Wraps both the OPNsense REST API and SSH service control in one skill, removing the need to navigate the web UI or write raw curl commands for routine administration tasks.

사용 시점

  • Scheduling nightly configuration backups with 30-day retention
  • Blocking a suspicious IP range by adding a firewall alias and rule
  • Switching Suricata from IDS detection mode to IPS blocking mode
  • Restarting Unbound DNS after updating blocklist settings
  • Pulling live firewall and interface statistics during a network incident

예시 워크플로

입력

User asks: Create a backup of the current OPNsense configuration

에이전트
  1. 1

    Reads OPNSENSE_HOST, OPNSENSE_KEY, and OPNSENSE_SECRET from environment or credentials file

  2. 2

    Calls GET /api/core/backup/backup against the OPNsense API

  3. 3

    Saves the response to a timestamped file in the configured backup directory

  4. 4

    Verifies the file is non-empty and logs the backup path

출력

Configuration backup saved to ./backups/opnsense-config-2026-03-19.xml

요구 사항

  • OPNsense 26.1+ instance accessible over HTTPS
  • OPNSENSE_KEY API key generated under System → Access → Users → API in OPNsense
  • OPNSENSE_SECRET API secret paired with the API key
  • OPNSENSE_HOST environment variable set to the firewall IP or hostname

설치

clawhub install transcendenceia/opnsense-admin

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크