Skip to content

Commit d3d909b

Browse files
authored
Merge branch 'main' into repo-sync
2 parents ee40863 + 01ab05c commit d3d909b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/admin/configuration/configuring-network-settings/configuring-built-in-firewall-rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The UFW firewall also opens several other ports that are required for {% data va
7070
```
7171
3. To back up your custom firewall rules, use the `cp`command to move the rules to a new file.
7272
```shell
73-
$ sudo cp -r /lib/ufw ~/ufw.backup
73+
$ sudo cp -r /etc/ufw ~/ufw.backup
7474
```
7575

7676
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
8888
{% data reusables.enterprise_installation.ssh-into-instance %}
8989
2. To restore the previous backup rules, copy them back to the firewall with the `cp` command.
9090
```shell
91-
$ sudo cp -f ~/ufw.backup/*rules /lib/ufw
91+
$ sudo cp -f ~/ufw.backup/*rules /etc/ufw
9292
```
9393
3. Restart the firewall with the `systemctl` command.
9494
```shell

0 commit comments

Comments
 (0)