Ubuntu UFW 防火牆設置

Ubuntu默認沒有打開ufwmysql

若是是遠程設置ufw的話,須要注意先容許ssh的端口(默認22)sql

ufw須要用root權限執行ssh

ufw allow 22spa

ufw enable
it

Command may disrupt existing ssh connections. Proceed with operation (y|n)? yio

ufw status權限

打開後默認端口所有禁止,須要容許一些必要的服務端口(http mysql)端口

ufw allow 80di

ufw allow 3306服務端

相關文章
相關標籤/搜索