see the status of the firewall you can use:

#Adding this goves you more info
sudo ufw status verbose
#and to reset incase you need to start over:
sudo ufw reset
#and to enable and disable:
sudo ufw enable
sudo ufw disable

#finaly to enable logging and adjusting the log level:
sudo ufw logging on
sudo ufw logging medium # levels are low, medium, high, full
</code></pre></div><p>继续前进，Fail2Ban。</p> <h3 id="fail2ban"><a href="#fail2ban" class="header-anchor">#</a> Fail2Ban</h3> <p>主配置文件�