How To Open Port For Public Access in OCI
I’ve been using Oracle Cloud Infrastructure for a number of years. It is a very convenient free service, allowing me to host a number of my fun stuffs in OCI.
Often, you do not just host these tools to be closed. We often have to expose it for external access, therefore, we’ll need to mess around with some security features in OCI.
Configure Security Policy
- Go to Networking->Virtual Cloud Network->Select your VCN
- Click on Security
- Click on the Security List that you’d like to configure
- Click on Security Rules then click Add Ingress Rule
- Configure as follow (Adjust as per your need)

Configure iptables (even if it’s disabled)
- ssh to your virtual machine
- issue the following command to allow incoming traffic on port 5555
- iptables -I INPUT 6 -m state –state NEW -p tcp –dport 5555 -j ACCEPT
- issue the following command to save it
- netfilter-persistent save