/unifi:firewall-auditfrom unifi
Audit 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.
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.
Examine each user-defined firewall policy of a UniFi site against the checks below, and report the findings. Each finding names the policy, the zone pair, the check, and the evidence. All tools in this skill are read-only.
get_firewall_overview shows the policies of each zone pair in the order of evaluation (index).origin tells who made a policy. USER_DEFINED policies are from the user. SYSTEM_DEFINED policies are the defaults of the console. DERIVED policies are the return traffic of an ALLOW policy with allowReturnTraffic. Audit only the USER_DEFINED policies, and use the other policies as context.matchOpposite matches all values except the given values.get_firewall_overview. If the tool asks for a site_id, call list_sites, and ask the user which site to audit.find_unused_objects.USER_DEFINED policy in order against each check in the table below.The audit is complete when each user-defined policy of each zone pair was examined against each check. Count the policies, and give the count in the report.
| Check | Finding | Severity |
|---|---|---|
| Shadowed | An earlier enabled policy in the same zone pair matches all the traffic of a later policy. The later policy never applies. If the two policies have different actions, the severity is high. | High or medium |
| Too broad | An ALLOW policy has no source filter and no destination filter, and matches all protocols. If the source zone is the internet (External), the severity is high. | High or medium |
| Open port from the internet | An ALLOW policy from the External zone to an internal zone allows a port. Name the port and the destination. | Medium |
| Duplicate | Two policies in the same zone pair have the same filters, the same protocol scope, and the same action. | Low |
| No logging | A BLOCK or REJECT policy has loggingEnabled false. Blocked traffic is then not visible in the logs. | Low |
| Disabled | A user-defined policy is disabled. It can be a remainder of an old change. | Low |
| Unused object | find_unused_objects shows a traffic matching list that no policy uses, or a custom zone without networks. | Low |
A schedule, a connection state filter, or an IPsec filter makes a policy match less traffic. Consider these filters before you report a policy as shadowed or too broad. If you are not sure that a policy is shadowed, report it as "possibly shadowed", and give the reason.
To fix a finding, use the firewall-change skill. Each fix changes the network, so the user must approve it first.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub henrik-dmg/ui-network-mcp --plugin unifi4 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-changeSafe 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./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.