Example error: Solution: similar with error: cannot stat ‘/etc/selinux/targeted/contexts/files/file_contexts’: No such file or directory We have two solutions here: CentOS: fix error: cannot stat ‘/etc/selinux/targeted/contexts/files/file_contexts’:…
Step 1: backup before.rules cp /etc/ufw/before.rules /etc/ufw/before.rules_backup Step 2: edit file /etc/ufw/before.rules Change: change ACCEPT to DROP, we have: You can do this step by…