You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Ubuntu ufw Fails to Open Ports while firewalld is Installed and Running

Announcement
131
Views
0
Comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!