Oracle Cloud blocks the IRC ports twice: in the cloud network and in the instance's own firewall. Open both.
Cloud network
In the Oracle Cloud console, open your instance, go to its subnet and edit the subnet's security list. Add ingress rules for TCP ports 6667, 6697 and 6900:
- once with source CIDR
0.0.0.0/0 - once with source CIDR
::/0if your instance has IPv6
The default egress rule already allows all outgoing traffic.
Ubuntu images
Oracle's Ubuntu images ship iptables rules that reject everything not explicitly allowed. Edit /etc/iptables/rules.v4 and add this line above the first REJECT line:
-A INPUT -p tcp -m state --state NEW -m multiport --dports 6667,6697,6900 -j ACCEPT
Load it:
sudo iptables-restore < /etc/iptables/rules.v4
The file is loaded again at boot, so the rule stays. Do the same in /etc/iptables/rules.v6 for IPv6.
Oracle Linux images
sudo firewall-cmd --permanent --zone=public --add-port=6667/tcp --add-port=6697/tcp --add-port=6900/tcp
sudo firewall-cmd --reload
Recovered from the old wiki. See the archived page.