Skip to content

Instantly share code, notes, and snippets.

@eneajaho
Created March 29, 2024 22:06
Show Gist options
  • Save eneajaho/52b16ca77648c31e856a6bde881e212e to your computer and use it in GitHub Desktop.
Save eneajaho/52b16ca77648c31e856a6bde881e212e to your computer and use it in GitHub Desktop.
Open ports 80 and 443 (http and https) ubuntu server
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