Celeb Glow
general | April 03, 2026

what happens if ufw firewall is inactive?

I want to know more of what ufw is. I'll ask some questions and you can let me know if i'm right or not.

1) ufw helps us to block connections or allow connections from specific ip address or whatever. I'm curious what happens if ufw is not enabled which means it's INACTIVE. does it mean it allows anything at all? whatever we want?

2) let's say I enabled ufw, add one rule. if the answer to previous question was (IT ALLOWS ANYTHING If it's inactive) , then if I only have one rule and ufw is active, it means anything else(any kind of my service that listens on some port) is blocked by default and I have to enable it to allow it.

Thank you.

1 Answer

Yes to your first answer, it inactive so all traffic goes through. Then See this excerpt:

By default, UFW is set to deny all incoming connections and allow all outgoing connections. This means anyone trying to reach your cloud server would not be able to connect, while any application within the server would be able to reach the outside world.

So to answer your question: "That rule will be obeyed or honoured". Let's say the rule is set to allow a particular connection, then based on the default ufw rule to deny incoming connections, only that connection will go through... This ufw default settings is most useful for limiting access on a "need to" basis.

Source:

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy