Last active
July 22, 2022 02:24
-
-
Save kattatzu/82462de23bae8089cfc758143fab0402 to your computer and use it in GitHub Desktop.
Open Port on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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