Ubuntu 8.04 comes with a new firewall management tool called “ufw” (Uncomplicated Firewall). The official description for ufw is
ufw – program for managing a netfilter firewall.
type ufw to see the commands.
Commands:
enable Enables the firewall
disable Disables the firewall
default ARG set default policy to ALLOW or DENY
logging ARG set logging to ON or OFF
allow|deny RULE allow or deny RULE
delete allow|deny RULE delete the allow/deny RULE
status show firewall status
version display version information Read more of this post