I created linux server with Debian 3.0. Whole purpose of this server is to share internet with squid only http and ftp ports. I'm very new in iptalbles and I need a rules which will protect my server from outside on every ports which I do not need to share internet except port 22 ssh. Can anybody help me with iptalbes rules and write some rules with comment. Or if there is better solution to protect my server please let me know.
eth0 184.108.40.206 mask 255.255.255.252(external IP)
eth1 192.168.1.1 mask 255.255.0.0 (internal IP)