Skip to content

Instantly share code, notes, and snippets.

@groundcat
Created May 27, 2021 04:04
Show Gist options
  • Select an option

  • Save groundcat/a98f1bdc34d943a91fd31d19d416bec6 to your computer and use it in GitHub Desktop.

Select an option

Save groundcat/a98f1bdc34d943a91fd31d19d416bec6 to your computer and use it in GitHub Desktop.
Optimize Oracle Cloud VPS

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 useless stuff (optional)

Oracle cloud includes a somewhat heavy monitoring daemon. We have better use for that memory since current versions of Synapse, the Matrix homeserver, can be memory hungry.

snap remove oracle-cloud-agent
apt purge snapd 
apt purge open-iscsi 
apt purge lxd 
apt purge lxcfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment