зеркало из https://github.com/github/docs.git
Коммит
6caf586de9
|
@ -70,7 +70,7 @@ The UFW firewall also opens several other ports that are required for {% data va
|
|||
```
|
||||
3. To back up your custom firewall rules, use the `cp`command to move the rules to a new file.
|
||||
```shell
|
||||
$ sudo cp -r /lib/ufw ~/ufw.backup
|
||||
$ sudo cp -r /etc/ufw ~/ufw.backup
|
||||
```
|
||||
|
||||
After you upgrade {% data variables.product.product_location %}, you must reapply your custom firewall rules. We recommend that you create a script to reapply your firewall custom rules.
|
||||
|
@ -88,7 +88,7 @@ If something goes wrong after you change the firewall rules, you can reset the r
|
|||
{% data reusables.enterprise_installation.ssh-into-instance %}
|
||||
2. To restore the previous backup rules, copy them back to the firewall with the `cp` command.
|
||||
```shell
|
||||
$ sudo cp -f ~/ufw.backup/*rules /lib/ufw
|
||||
$ sudo cp -f ~/ufw.backup/*rules /etc/ufw
|
||||
```
|
||||
3. Restart the firewall with the `systemctl` command.
|
||||
```shell
|
||||
|
|
Загрузка…
Ссылка в новой задаче