spee.ch/docs/setup/scripts/firewall.sh

13 lines
238 B
Bash
Raw Permalink Normal View History

2018-11-09 22:36:34 +01:00
#!/bin/bash
sudo ufw status
sudo ufw allow 80
sudo ufw allow 443
sudo ufw allow 22
sudo ufw allow 3333
sudo ufw allow 4444
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw show added
sudo ufw enable
sudo ufw status