Quick instructions for enabling firewall on Ubuntu using Uncomplicated Firewall (ufw). The resulting rules are quite obvious. Incoming traffic is denied, except for ssh, http and https (these refer to /etc/services) and outgoing is allowed.
These policies do not affect ICMP. Incoming ICMP remains allowed as per default ufw settings.
LinkedIn profile
@jpalomaki
me@stackoverflow
juhap@github
juhap@iki.fi