mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
更新文案描述
This commit is contained in:
+2
-7
@@ -425,18 +425,13 @@ $ sudo systemctl status nftables.service
|
||||
$ sudo systemctl enable nftables.service
|
||||
```
|
||||
|
||||
修改 `nftables` 配置文件,执行以下命令。
|
||||
由于防火墙规则内容较多,请打开文件 [debian_ts_nftables.conf](./src/debian/debian_ts_nftables.conf) ,复制全文内容,完整替换 `nftables` 配置文件中的现有配置。
|
||||
|
||||
```bash
|
||||
## 备份 nftables 配置文件
|
||||
$ sudo mv /etc/nftables.conf /etc/nftables.conf.bak
|
||||
|
||||
## 创建新的 nftables 配置文件
|
||||
## 编辑 nftables 配置文件
|
||||
$ sudo editor /etc/nftables.conf
|
||||
```
|
||||
|
||||
由于防火墙配置文件很长,因此请查阅文件 [debian_ts_nftables.conf](./src/debian/debian_ts_nftables.conf) 进行复制。
|
||||
|
||||
配置完成后,需重启 `nftables.service` 服务。
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user