/unifi:firewall-changefrom unifi
Safe change of the UniFi firewall, to create, change, delete, or reorder a firewall policy, with a plan and the approval of the user before each write. Use when the user asks to block or allow traffic on a UniFi network, or to fix a finding of a firewall audit.
Ships in unifi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Change the firewall in four phases: intent, plan, apply, and check. Write nothing before the user approves the plan.
Caution: A wrong policy can block the access to the console, and also the access of this server. Before you block traffic to the Gateway zone, or between the zone of the user and other zones, make sure that the user keeps a way to reach the console, for example the UniFi app through unifi.ui.com.
Make sure that the write tools are available, for example create_firewall_policy. If they are not available, tell the user to turn on the plugin option "Allow changes", and to use an API key with write access. Then stop.
Intent. Write the change as these parts: the action (ALLOW, BLOCK, or REJECT), the source zone and source filter, the destination zone and destination filter, the protocols and ports, the schedule, and the position in the order. Ask the user about each part that is not clear. The direction of the traffic is frequently not clear: "block the cameras from the internet" can mean either direction.
Current state. Call get_firewall_overview, and get_firewall_policy_ordering for the zone pair. Get the IDs for the filters from list_networks, list_traffic_matching_lists, list_vpn_servers, list_dpi_applications, or list_dpi_categories.
Conflicts. In the zone pair, find:
Plan. Show the plan to the user:
Get the approval of the user for the plan. Any change to the plan needs a new approval.
Apply. Make the writes of the plan, in the order of the plan:
create_firewall_policy puts a new policy before the system-defined policies of the zone pair.get_firewall_policy_ordering again, then call reorder_firewall_policies with all policy IDs of the zone pair in the new order.update_firewall_policy replaces each given field completely. The console does not let you change a system-defined policy, except logging_enabled and report_flow_enabled.delete_firewall_policy, call get_firewall_policy, and make sure that the policy is the policy of the plan.If a write fails, stop, and show the error to the user. Make no other writes that the plan did not include.
Check. Call get_firewall_overview again. Make sure that each policy of the plan is in the correct zone pair, at the correct position, with the correct enabled state.
The change is complete when the check of step 7 agrees with the plan.
delete_firewall_policy for a new policy, or update_firewall_policy with the old values for a changed policy. A deleted policy cannot be restored, only created again.What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/client-troubleshootingTroubleshooting of one client on a UniFi network, such as a laptop, phone, or TV that is slow, drops its connection, or has no connection. Use when the user asks why a device on the UniFi network is slow, offline, or unstable./firewall-auditAudit of the firewall policies of a UniFi site, for shadowed, too broad, duplicate, and unused policies and objects. Use when the user asks to review, audit, check, or clean up the UniFi firewall, or asks if the firewall is secure./health-checkHealth check of a UniFi network, with a ranked list of its problems. Use when the user asks how the network is, asks for a status report, or asks what needs attention on a UniFi site.Other plugins' skills for the same job
npx claudepluginhub henrik-dmg/ui-network-mcp --plugin unifi