i realized that squid has adzap as a redirector program and then realized that adzap wasnt working. So i found that it needed to be made executable so after chmodding it +x, it worked and now it seems to have stoped giving me connection refused errors.
Could it be that this was the cause of the problem?