I am used to firewall on windows. everything is allowed and new apps have to ask for permission.
when I look at current connections in settings' firewall tab, only a few have program names associated with them. so I must allow connection by default.
how do I set my ufw like windows?
I am sure I need a few things like 1. allow things to be fine by default. 2. block malicious stuff like samba advertising you on public networks. 3. does programs open their own ports cause i heard ubuntu does not open ports by default.
if you read up to this point, you realize i know nothing about ufw, so please help.
EDIT: i use jammy. i use it as everyday desktop. I am okay with most apps running but I want to be able to block apps I know I dont trust connecting to internet and auto-block malicious stuff.
sudo ufw enable
and have the peace of mind. If ufw blocks something search how to open the port that needs to be opened, based on which service is blocked.