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



  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

标签: debian, ubuntu, firewall, simple, setupthing

添加新评论