I want to set up a public HTTP proxy using Squid. I installed it successfully on Ubuntu 14.04 and just added two lines in /etc/squid3/squid.conf
:
http_access allow all
http_port 3120 transparent
However trying to curl MY_SERVER_IP_HERE:3120 ya.ru
, I get curl: (52) Empty reply from server
. If don't set transparent
directive in /etc/squid3/squid.conf
, I get The requested URL could not be retrieved
error in my browser. What am I doing wrong?
Best Answer
You are hitting your proxy via curl not telling curl to use the proxy.. Try this
You can make it perminate for the session by