This is what I use to setup up a server, hope it helps someone.
Setup IPTables
Your server will initially have all ports blocked so you need to edit /etc/iptables and add
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT