Useful commands for linux UFW

Just a list of useful commands for UFW!

Enable the firewall

ufw enable

Allow TCP on port 22 from specified IP address

ufw allow from 192.168.1.1 proto tcp to any port 22

Allow a range of tcp ports

ufw allow 40110:40210/tcp

Check which ports are enabled with UFW

ufw status numbered

to remove a specific entry, after checking with the above status command

ufw delete 22
Print Friendly, PDF & Email

More Like This


Categories


Linux Security

Tags


  • Post a comment