block chat

i m setting up squid proxy to block gtalk & msn, etc...
i found through internet to block port 5223 & 5222 for gtalk
i tried to block by acl block_port 5223 5222 but it didnt block

plz guide me to block these chat
thansks

what firewall are you using? iptables...?