Configuring for an upstream proxy server

clearosIf your school gets its internet from the government, you may find that you need to specify an upstream proxy server.  This article details this process.


Log on to the server

Start by logging on to the server.

  1. Type Alt + F6 to log on to the console.
  2. Login as root.

 

Edit the squid.conf file

Use Vi to edit squid.conf by following the steps below.

vi /etc/squid/squid.conf

To search for the cache_peer section type...

/cache_peer

In the cache_peer section, add the following:

cache_peer proxy.domain.com parent 8080 0 no-query default
never_direct allow all

Replace proxy.domain.com with the address of your upstream proxy, and replace 8080 if your proxy server uses a different port.

Save your changes.

 

Restart the Squid service

To restart the squid service type the following...

service squid stop
service squid start

 

Thanks for visiting.