to allow traffic from 192.168.1.10 and 203.0.113.5, you would run:
sudo ufw allow from 192.168.1.10
sudo ufw allow from 203.0.113.5
Allow IP Address for Specific Port (Optional):
sudo ufw allow from 192.168.1.10 to any port 80
Reload UFW (Optional):
sudo ufw reload
Verify the Rules:
sudo ufw status