How To Set Up a Firewall with UFW on Ubuntu

preview_player
Показать описание
UFW, or Uncomplicated Firewall, is a simplified firewall management interface that hides the complexity of lower-level packet filtering technologies such as iptables and nftables. If you’re looking to get started securing your network, and you’re not sure which tool to use, UFW may be the right choice for you.

This tutorial will show you how to set up a firewall with UFW on Ubuntu

Commands Used
sudo nano /etc/default/ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 22
sudo ufw enable
sudo ufw allow 6000:6007/tcp
sudo ufw allow 6000:6007/udp
sudo ufw allow from IP
sudo ufw allow from IP to any port 22
ip addr
sudo ufw deny http
sudo ufw deny from IP
sudo ufw status numbered
sudo ufw delete 3
sudo ufw status verbose
sudo ufw disable
sudo ufw reset

Useful Links
Рекомендации по теме