Block IP address with ufw

Camilo Nova
CEOAn easy way to block an IP to access your server will be to use:
$ sudo ufw insert 1 deny from XXX.XXX.XXX.XXX to any
This way you can prevent unwanted access attempts from a certain IP.
Written by Camilo Nova

Software Engineer, Investor, CEO, and father of two. Camilo writes on the intersection of technology, design, and business.