Skip to main content
Glama

block_multiple_domains

Block multiple domains simultaneously on OPNSense firewalls using a straightforward input of domain lists. Enhances network security by restricting unwanted access with minimal configuration.

Instructions

Block multiple domains at once

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNoOptional description for the blocks
domainsYesList of domains to block

Implementation Reference

  • The main handler function for blocking multiple domains. It loops through each domain, attempts to block it using the blockDomain method, and categorizes them into blocked and failed lists.
    async blockMultipleDomains(domains: string[], description?: string): Promise<{ blocked: string[], failed: string[] }> { const blocked: string[] = []; const failed: string[] = []; for (const domain of domains) { try { await this.blockDomain(domain, description); blocked.push(domain); } catch (error) { console.error(`Failed to block ${domain}:`, error); failed.push(domain); } } return { blocked, failed }; }

Latest Blog Posts

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