admin avatar

debian/Ubuntu simple firewall setupthing

🕞 by admin

Super simple firewall configuration for debian/Ubuntu system

Windows has been running naked for years

But Linux systems are more complex, especially servers that are exposed to the public network, so a simple configuration of the firewall is necessary

The firewall described here is ufw and is theoretically applicable to all debian/Ubuntu distribution based systems

ufw seting ufw seting

Install firewall management software ufw

Apt to get the install ufw

Here's a simple ufw firewall configuration command

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
   apt-get install ufw 
   #install ufw for ubuntn/debian
   ufw allow ssh
   #allow ssh port 22
   ufw allow 80
   ufw allow 192.168.0.8
   ufw allow 192.168.0.8/tcp
   #ufw enable 
   setup ufw boot 
   ufw status
   #ufw run check
   ufw delete allow 80
   #disable 80 
   ufw reload
   #ufw rules reload

💘 相关文章

写一条评论