client <== http proxy ==> squid server <===== via socks5 proxy===> internet
Is there any possibility to make squid server access internet through socks5 proxy?
In short, yes: Look up 4.10 of the squid FAQ's
Here's some more info (near the top, 4.9)
I've never tried this so i cant give you detailed instructions first-hand, unfortunately.