I followed this tutorial here http://articles.slicehost.com/2008/1/30/centos-setup-page-1 to set up my iptables. However, I found I couldn't access FTP server anymore. I then came across this article http://www.cyberciti.biz/faq/iptables-open-ftp-port-21/, but I am still unable to access FTP server after adding the rules from the second tutorial article. I am wondering how to set the iptables to allow FTP connection. I'm using CentOS 5.
I have not read your links, but i am sure you can use connection tracking to get your connection to work You need to allow connections to port 21, the load the module nf_conntrack_ftp the have a rule allowing established and related connections in.