Created
March 16, 2017 02:34
-
-
Save MOOOWOOO/5ca436f63bfadd56d3c8b03f5149c655 to your computer and use it in GitHub Desktop.
打开linux防火墙
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装方便易用防火墙 | |
apt-get install ufw | |
# 复制以下命令 | |
ufw allow 22 | |
ufw allow 80 | |
ufw allow 443 | |
ufw default deny incoming | |
ufw default allow outgoing | |
ufw status verbose | |
ufw enable | |
开放 22 80 443 端口 | |
屏蔽其他端口, 免遭任何傻逼攻击 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment