.....which i tried from the acl list in squid but nothings working.....
I've not had much experience with a proxy server, but is there any specific reason you're not using the box as a router instead?
If you use iptables and Masquerade the packets you should be fine.
That's the way use our Linux box here.
Regards
Rishi