iptables OCI ubuntu 22.04 oracle cloud

por | 13 marzo, 2023

source: https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/apache-on-ubuntu/01oci-ubuntu-apache-summary.htm

The Ubuntu firewall is disabled by default. However, you still need to update your iptables configuration to allow HTTP/HTTPS traffic. Update iptables with the following commands.Copy

sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT

sudo netfilter-persistent save