Skip to content

Commit

Permalink
Merge pull request github#8275 from github/repo-sync
Browse files Browse the repository at this point in the history
repo sync
  • Loading branch information
Octomerger authored Jul 15, 2021
2 parents ee40863 + df2b00e commit 6caf586
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 6caf586

Please sign in to comment.