Command Firewall On Ubuntu

ufw enable – turn on the firewall
ufw disable – turn off the firewall
ufw default allow – allow all connections by default
ufw default deny – drop all connections by default
ufw status – current status and rules
ufw allow port – allow traffic on port
ufw deny port – block port
ufw deny from ip – block ip adress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.