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

32 lines
655 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "UFW"
type: entity
tags: [firewall, networking, security]
date: 2026-04-16
---
## Definition
UFWUncomplicated Firewall是 Ubuntu 默认的防火墙管理工具,提供简化的 iptables 命令接口。
## Role
- Ubuntu 系统防火墙管理
- 控制入站和出站网络流量
## Aliases
- Uncomplicated Firewall
## Key Properties
- 命令行工具
- 默认阻止所有入站连接
- 支持 IPv4 和 IPv6
## Usage
```bash
sudo ufw allow ssh # 允许 SSH
sudo ufw allow 22/tcp # 允许 SSH 端口
sudo ufw status # 查看状态
```
## Connections
- [[Ubuntu]] ← uses ← [[UFW]]
- [[OpenSSH]] ← protected_by ← [[UFW]]