Skip to content

Instantly share code, notes, and snippets.

@kattatzu
Last active July 22, 2022 02:24
Show Gist options
  • Save kattatzu/82462de23bae8089cfc758143fab0402 to your computer and use it in GitHub Desktop.
Save kattatzu/82462de23bae8089cfc758143fab0402 to your computer and use it in GitHub Desktop.
Open Port on Ubuntu
sudo ufw disable
sudo apt install firewalld -y
sudo systemctl enable firewalld
# sudo firewall-cmd --permanent --zone=public --add-port=80/tcp
# sudo firewall-cmd --permanent --zone=public --add-port=443/tcp
# sudo firewall-cmd --permanent --zone=public --add-port=5432/tcp
sudo firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment