Created
March 29, 2024 22:06
-
-
Save eneajaho/52b16ca77648c31e856a6bde881e212e to your computer and use it in GitHub Desktop.
Open ports 80 and 443 (http and https) ubuntu server
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 iptables-legacy -I INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT | |
sudo iptables-legacy -I INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT | |
sudo iptables-legacy-save | sudo tee /etc/iptables/rules.v4 | |
more info here | |
https://dev.to/armiedema/opening-up-port-80-and-443-for-oracle-cloud-servers-j35 | |
https://stackoverflow.com/a/66148257/7220620 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment