Image

Knowledge base → Configuring a Squid proxy server in gateway mode (without caching)

[Virtual servers]
Date of publication: 23.01.2024

In order to use a proxy server as a separate access channel, in order to use it comfortably, you need to turn off caching, as it interferes with receiving currently relevant information on web resources. To avoid refreshing the cache clearing page every time using the Ctrl + F5 keys, it is better to disable caching completely.

1. Add the following parameters to the Squid configuration file

...
#cache_dir ufs /var/spool/squid 100 16 256

cache deny all
cache_dir null /tmp
...

2. Unblocking additional ports

Some services may not work through a proxy server, for example speedtest.net, to do this, disable port blocking, find and comment out the following lines in the configuration file.

...
#http_access deny !Safe_ports
#http_access deny CONNECT !SSL_ports
...

Let's restart the squid service to apply the settings:

service squid restart

Done, now our proxy server will work like regular Internet access.





No Comments Yet