sudo ufw allow 22 comment 'Allow SSH access'
sudo ufw allow 1000:2000/tcp
sudo ufw allow from 1.1.1.1 to any port 80
sudo ufw allow out 4000/udp comment 'gateway'
sudo ufw status
sudo ufw status verbose
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme