sudo ufw limit 22 sudo ufw from 192.168.XXX.XXX/24 to any port 3128 sudo ufw from 192.168.XXX.XXX/24 to any port 53/udp Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up