OCI: Ubuntu ufw Fails to Open Ports while firewalld is Installed and Running
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Ubuntu OS
Symptoms:
On an Ubuntu 22.04 images, firewalld was installed and started while ufw was configured as well.
As a result connections are closed when either firewalld or ufw is started or stopped and no further connections are possible.
Cause:
Firewalld and ufw have conflicting rules and starting/stopping both causes mixing up firewall rules
Solution:
- Disable/Remove one of the firewalls.
- Example how to disable firewalld
$ systemctl stop firewalld $ systemctl disable firewalld
- And then restart ufw to restore the rules
$ systemctl stop ufw $ systemctl start ufw
Tagged:
0