Question: ufw how to block ip?
Answer: Block an IP Address To block all network connections that originate from a specific IP address, 15.15. 15.51 for example, run this command: sudo ufw deny from 15.15.