Categories
How to create a rule to close all ufw ports?
Only the main ports for LAMP, sftp, samba are open on ufw. How can I close all other ports? With the help of the rule, or what is better?
Answer the question
In order to leave comments, you need to log in
Quite simply. First you need to disable ufw: Next, we define the default policy as "everything that is not allowed is prohibited": Then we open the ports that are needed: Turn ufw back on: Everything.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question