From 5a7f15fcfdcdcf4245b4a2f2d52096c5edb443ce Mon Sep 17 00:00:00 2001 From: Tai Date: Sun, 3 Jan 2021 16:50:08 -0800 Subject: [PATCH] Update README.md --- initial ubuntu setup/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initial ubuntu setup/README.md b/initial ubuntu setup/README.md index 9bde3c7..cfe8f00 100644 --- a/initial ubuntu setup/README.md +++ b/initial ubuntu setup/README.md @@ -37,8 +37,8 @@ Logout or close the ssh connection. Then ssh back in as your new username instea ``` sudo apt install ufw sudo ufw allow OpenSSH -sudo ufw allow 443/tco -sudo ufw allow 80/tcp +sudo ufw allow 443/tco comment "caddy" +sudo ufw allow 80/tcp comment "caddy" sudo ufw enable ``` This is a basic firewall on ubuntu. If you install this remember to unblock the specific ports you need open for some of your applications. In the example below we allow our own SSH connection, and open TCP ports 80 & 443 in order for Caddy v2 to work.