Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories


Installing and configuring Squid proxy server

Ástþór IPÁstþór IP

Squid is a caching proxy supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator.

1. Install the Squid package

apt-get install squid

2. Allow your ip network to use the proxy server (pico /etc/squid/squid.conf). Append lines similar to these to your config

file:

acl mynetwork src 192.168.1.0/255.255.255.0
http_access allow mynetwork

Replace 192.168.1.0/255.255.255.0 with the network that should be able to use the proxy.

3. Don’t forward client ip information (optional)

forwarded_for off

4. Restart the daemon

/etc/init.d/squid restart

5. Configure your web browser or application your would like to use the proxy server to connect to serverip at port 3128.

Comments 3
  • Branislav Viest
    Posted on

    Branislav Viest Branislav Viest

    Author

    Perfect, thank you. This was what i Need – simple and easy configuration for simple reverse proxy 🙂


  • D3nnnis
    Posted on

    D3nnnis D3nnnis

    Author

    Great step by step tutorial. This will definitely help me and ofcourse save a lot of time 🙂 I added this to my bookmarks 😉


  • luca
    Posted on

    luca luca

    Author

    I just installed squid. From repository now the version is squid3, so to start/restart the daemon the correct instruction is:
    sudo service squid3 start (or restart)