debian/Ubuntu simple firewall setupthing

Tuesday, Mar 3, 2020 | 1 minute read | Updated at Tuesday, Mar 3, 2020

@

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

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.