# Totally block ufw deny from 123.456.543 to any # Block from specific ports ufw deny from 123.456.543 to any port your_port