---
title: "启用系统防火墙"
description: "在宝塔面板系统防火墙模块通过一键开关启用或关闭 Linux 系统防火墙（firewalld 或 iptables），快速生效服务器边界访问控制能力，作为后续放行端口、配置规则的前置步骤。"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.bt.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 启用系统防火墙

## 启用防火墙

本文将介绍如何启用防火墙。

## 操作步骤

点击防火墙开关按钮，即可启用或关闭防火墙。

![启用防火墙](/img/user-guide/security/enable-firewall.png)

Source: https://docs.bt.cn/user-guide/security/firewall/start/index.mdx
