I don't have an iptables example for you, but here is the project page: http://www.netfilter.org/
It has comprehensive documentation.
ftp server - usually runs on port 21.
ssh server - usually runs on port 22.
Instead of running an ftp server, consider learning about and running the sftp-subsystem. Also, don't start running any servers until you understand them and know how to secure them.