From d02334ffc17868b5b8cf747cc13c27dcbe128b95 Mon Sep 17 00:00:00 2001 From: Tobias Kronthaler Date: Sun, 2 Jun 2019 15:06:09 +0200 Subject: [PATCH] Update section of applying rule changes Add `ufw reload` hint and fix formatting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8c5225..7e52ffe 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Modify the UFW configuration file `/etc/ufw/after.rules` and add the following r COMMIT # END UFW AND DOCKER -Using command `sudo systemctl restart ufw** to restart UFW after changing the file. Now the public network can't access any published docker ports, the container and the private network can visit each other normally, and the containers can also access the external network from inside. **There may be some unknown reasons cause the UFW rules will not take effect after restart UFW, please reboot servers. ** +Using command `sudo systemctl restart ufw` or `sudo ufw reload` to restart UFW after changing the file. Now the public network can't access any published docker ports, the container and the private network can visit each other normally, and the containers can also access the external network from inside. **There may be some unknown reasons cause the UFW rules will not take effect after restart UFW, please reboot servers.** If you want to allow public networks to access the services provided by the Docker container, for example, the service port of a container is `80`. Run the following command to allow the public networks to access this service: