Skip to content

Instantly share code, notes, and snippets.

@boris
Created August 5, 2012 04:34
Show Gist options
  • Save boris/3261699 to your computer and use it in GitHub Desktop.
Save boris/3261699 to your computer and use it in GitHub Desktop.
ubuntu firewall example rules
sudo ufw enable
sudo ufw allow httpd
sudo ufw allow ftp
sudo ufw allow proto tcp from 1172.16.0.0 to port 25
sudo ufw allow proto tcp from 200.83.5.145 to port 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment