I don't understand if you blocked all (ports) except the known one than how the torrent is working ? If the user need to browse web or check mails than just define for example 80,443,995,25. Secondly you can define the acl (url_regex) in the proxy...
Check this link also...
http://efwsupport.com/index.php?topic=845.new