I've been using ubuntu server for a while, however I have never really invested time into iptables. I was wondering if there was a recommended way to setup iptables on a basic server intall. An iptables boilerplate essentially.
Also, an explanation of all of the most commonly used ubuntu server ports would be very helpful.