sudo ufw allow 22/tcp sudo ufw allow 3919/tcp yes | sudo ufw enable code example Example: allow ip through ufw sudo ufw allow from 15.15.15.0/24 to any port 22