Files
nexus/wiki/entities/UFW.md
2026-04-16 21:08:55 +08:00

655 B
Raw Blame History

title, type, tags, date
title type tags date
UFW entity
firewall
networking
security
2026-04-16

Definition

UFWUncomplicated Firewall是 Ubuntu 默认的防火墙管理工具,提供简化的 iptables 命令接口。

Role

  • Ubuntu 系统防火墙管理
  • 控制入站和出站网络流量

Aliases

  • Uncomplicated Firewall

Key Properties

  • 命令行工具
  • 默认阻止所有入站连接
  • 支持 IPv4 和 IPv6

Usage

sudo ufw allow ssh    # 允许 SSH
sudo ufw allow 22/tcp # 允许 SSH 端口
sudo ufw status       # 查看状态

Connections