# Oracle Cloud Free Tier ## Configure Oracle Cloud Security lists View resources -> Instances -> Select instance -> Virtual Cloud Network -> Public Subnet -> Security Lists -> Default -> Ingress Open incoming for CIDR 0.0.0.0/0: * 22/tcp for SSH (should be open already) * 80/tcp for HTTP * 443/tcp for HTTPS ## Remove Ubuntu iptables The Oracle Cloud Ubuntu images come with somewhat restrictive iptables rules by default. Docker manages the instance firewall and we have the Oracle Cloud firewall in front, so let's remove the current firewall to avoid trouble: ``` apt purge netfilter-persistent iptables-persistent ``` ## Remove Oracle Cloud Agent and Snap Oracle cloud includes a somewhat heavy monitoring daemon. ``` snap remove oracle-cloud-agent apt purge snapd ``` ## Install useful softwares (optional) ``` apt update apt upgrade apt install bash-completion htop vim ``` ## Install ufw ``` apt install ufw ``` Set the default policies: ``` ufw default deny incoming ufw default allow outgoing ``` Allow SSH connections: ``` ufw allow ssh ``` Enabling ufw: ``` ufw enable ``` ## Enable zram ``` apt install zram-tools ``` Configure the amount of RAM that should be used by zram: ``` vim /etc/default/zramswap ``` Change the value of `PERCENTAGE`.