I want to set up ufw on my server, but something wrong here. Even when I trying to block 22 port ssh still working and nothing changing. I have ufw enabled, but nothing works.
Itβs listed as the βprofileβ in the screenshots youβre listing, but thatβs the ruleset youβre altering.
I used nft or iptables, and my interaction with ufw has been sparse, and mostly through the UI, because the rulesets the GUI generates are incomprehensible. There should be a command in ufw to report which profile is active.
Iβm going to guess this is a dead-end, since youβve been using the CLI and I have to believe it uses the active profile by default, unless you tell it otherwise. However, in the GUI, if you edit rules in a profile it doesnβt automatically apply to your current ruleset. And if you alter your current ruleset, it doesnβt automatically persist it. So, even if you change a rule on the Home profile, and the Home profile is active, it doesnβt automatically get applied to the running ruleset; you have to take another action to apply it.
Mind you, thatβs all through the UI; Iβve never used the ufw command line, so this is (again) probably a red herring. I find ufw to be obtuse at best, because of the Byzantine rulesets it generates.