How to Set Squid Proxy to Public

By using Squid Proxy, users can create their own proxy server. Usually Squid Proxies are traded, you know, but there are also websites that collect lots of Squid Proxies that can be used for free.

For its use, maybe it doesn’t need to be explained again because of course with Squid Proxy it can be used to hide the current user’s IP. But this is not the same as a VPN.

I said that Squid Proxy is not the same as VPN for many reasons. Using a public Squid Proxy that is not your own is also not very safe because the owner of the Squid Proxy can certainly tap the connection which is an action illegal or similar data theft cookies and others.

But it will be safe if the user uses his own Squid Proxy, because the data in it cannot be seen by other people and only the user.

Also read: Simple Ways to Install Dropbear on Linux Ubuntu

The problem is usually when installing Squid Proxy it can only be used on the local server and can’t be used on other IPs unless done whitelist.

So this article will show you how to make a public Squid Proxy which can be used to open any site, be it HTTP or HTTPS and won’t have any problems. Access Denied or Connection Refused.

  1. Open a terminal via SSH and go straight to the Squid Proxy configuration file.

    Ubuntu

    nano /etc/squid/squid.conf

    Debian

    nano /etc/squid3/squid.conf
  2. Next enter this code at the top itself to allow the source of all incoming or outgoing connections.

    acl all src all
    acl Safe_ports port 1-65535
    acl SSL_ports port 1-65535
  3. Search posts http_access deny all and change it like this so that the connection doesn’t denied when accessing the website.

    http_access allow all
  4. Still not finished. Scroll all the way down and add all this code.

    forwarded_for off
    via off
    request_header_access All allow all 
    request_header_access Authorization allow all 
    request_header_access WWW-Authenticate allow all 
    request_header_access Proxy-Authorization allow all 
    request_header_access Proxy-Authenticate allow all 
    request_header_access Cache-Control allow all 
    request_header_access Content-Encoding allow all 
    request_header_access Content-Length allow all 
    request_header_access Content-Type allow all 
    request_header_access Date allow all 
    request_header_access Expires allow all 
    request_header_access Host allow all 
    request_header_access If-Modified-Since allow all 
    request_header_access Last-Modified allow all 
    request_header_access Location allow all 
    request_header_access Pragma allow all 
    request_header_access Accept allow all 
    request_header_access Accept-Charset allow all 
    request_header_access Accept-Encoding allow all 
    request_header_access Accept-Language allow all 
    request_header_access Content-Language allow all 
    request_header_access Mime-Version allow all 
    request_header_access Retry-After allow all 
    request_header_access Title allow all 
    request_header_access Connection allow all 
    request_header_access Proxy-Connection allow all 
    request_header_access User-Agent allow all 
    request_header_access Cookie allow all 
    request_header_access All deny all
  5. Now save the configuration and restart Squid Proxy with this command.

    Ubuntu

    service squid restart

    Debian

    service squid3 restart
  6. Try a test on the Proxy Check site to see if the proxy is really public. And if it appears like this, it means it worked.

If the user follows the method correctly, it will certainly succeed, while the user sometimes forgets to apply the Squid Proxy configuration by restarting and just trying it and of course it won’t work. So make sure after switching the Squid configuration earlier you should restart the Squid process or you can reboot the system immediately to be more sure.

Do users still don’t know how to install this Squid Proxy? That I have shared in the article Tutorial Install Squid Proxy on an Ubuntu VPS.

Making a proxy publicly is not recommended because there will be many people who use it for things that are prohibited by server providers such as Torrent. But this can still be minimized with the proxy authentication feature and I will share this at a later time.

Hopefully useful and good luck