ufw

Manage Uncomplicated Firewall rules and status via sudo shell commands.

6|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/L3DigitalNet/Claude-Code-Plugins --skill ufw-l3digitalnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ufw
Source: https://github.com/L3DigitalNet/Claude-Code-Plugins/tree/main/plugins/linux-sysadmin/skills/ufw
Command: npx skills add https://github.com/L3DigitalNet/Claude-Code-Plugins --skill ufw-l3digitalnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the management of the Uncomplicated Firewall (ufw), enabling users to easily control network traffic, secure their systems, and troubleshoot connectivity issues without deep iptables knowledge.

Core Features & Use Cases

  • Firewall Status & Rules: Check current firewall status and view active rules.
  • Rule Management: Allow or deny traffic on specific ports, by service name, or from specific IP addresses.
  • Troubleshooting: Identify common issues like being locked out after enabling or understanding Docker's interaction with ufw.
  • Use Case: Secure your web server by allowing only SSH and HTTP/HTTPS traffic, then verify the rules are active and blocking all other incoming connections.

Quick Start

Use the ufw skill to allow incoming SSH connections and then enable the firewall.

Frequently Asked Questions about ufw

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure ufw to allow SSH and HTTP traffic on a Linux server?

To configure ufw for SSH and HTTP, use commands to allow traffic on specific ports or by service name, then enable the firewall. This manages network access without requiring deep iptables knowledge.

Why does ufw not block Docker containers, and how do they interact?

Docker interacts with ufw by bypassing standard firewall rules through its own iptables manipulation. Troubleshooting this specific network access issue requires understanding how Docker alters traffic routing.

What is the best way to check active firewall rules and status using ufw?

The best way to check active firewall rules and status is by running a status command. This reveals current traffic configurations and verifies which ports or IP-based access controls are actively blocking connections.

Can I restrict port access to specific IP addresses with ufw?

Yes, you can restrict port access to specific IP addresses with ufw. Rule management capabilities allow you to explicitly allow or deny incoming traffic from designated sources to secure your Linux system.

Why am I locked out of my server after enabling the Linux firewall?

Being locked out after enabling the Linux firewall happens when default rules block incoming SSH connections. You must configure rules to allow SSH traffic before enabling ufw to maintain remote access.

Do I need sudo privileges to manage network security rules with ufw?

Yes, you need sudo privileges to manage network security rules with ufw. Executing shell commands for system-level changes, such as enabling the firewall or modifying port configurations, requires administrative rights.