Specify the hostname or IP address of the server you wish to proxy connections to. cache_peer 192.168.0.157 parent 80 0 proxy-only name=ubuntu-lmrĬache_peer 192.168.0.150 parent 80 0 proxy-only name=desktop1Ĭache_peer 192.168.0.153 parent 2368 0 proxy-only name=ghostĬache_peer 192.168.0.152 parent 8080 0 proxy-only name=linux-devĬache_peer hostname type proxy_port icp_port options These are the machines and ports that you want to forward requests to. The next step is configuring the servers inside your network. The defaultsite parameter supplies a site if the host value is not provided.įor more information on configuring the listening port, refer the squid documentation on http_port. As of version 3.2 this always defaulted to true. The accel parameter is used to indicate it is a reverse proxy. The first thing you need to do is set the listening port http_port 80 accel defaultsite=The http_port option takes the port number to listen to as the first parameter. Step 1: Define the listening port as a reverse proxy Note, this configuration was for 3.1 of squid, some of the configuration options have since been deprecated or are no longer necessary to configure. This configuration can be modified to turn Squid into a reverse proxy.
#Squidman proxy install
It will also install the configuration in /etc/squid3/nf. This will install the service squid3 that can be stopped and started with sudo service squid3 start and sudo service squid3 stop respectively. Installationįor starters you can install squid with sudo apt-get install squid3. This is how I went about configuring that setup.
I happeneded to be running Squid version 3.1 on Ubuntu as a reverse proxy. The reverse proxy will forward requests to other servers and ports. The answer is what is known as a reverse proxy. Say you want to run multiple hosts off a single IP address.