How to Install Squid 3 with Ubuntu

Today, I publish to how to install proxy server. Proxy server help to us for make fast network.

It’s use to Ubuntu Server and Squid version 3. You just follow below step.

1. Ubutu Server Install
-When installing server include SSH.

2. Proxy Install

sudo apt-get install squid3

Backup to Configration

sudo cp /etc/squid3/squid.conf /etc/squid3/squid.conf.back

sudo chmod a-w /etc/squid3/squid.conf.back

Default Configuration

acl manager proto cache_object
acl localhost src ::1
acl to_localhost dst ::1
# Define use infra network
acl intra src
# Define deny network
acl blackdomain dtsdomain "etc/squid3/blackdomain.txt"
# Add used port(Webmin)
acl SSL_ports port 443
acl SSL_ports port 10000 # Webmin
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 10000 # Webmin
# Add allow port (cachemanager local access)
http_access allow manager localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
# Deny policy
http_access deny blackdomain
# Allow policy
http_access allow intra

blackdomain.txt context

# Deny naver

ACL example site

3. Web Content Filtering (using Dansguardian)

sudo apt-get install dansguardian

Dansguardian configuration

sudo vi /etc/dansguardian/dansguardian.conf

NCONFIGURED – Delete this line, then service restart

Service restart

sudo /etc/init.d/dansguardian restart

4. Install Vaccine for virus detect in proxy

sudo apt-get install clamav-deamon clamavfreshclam

5. Install Webmin for management

             add to update path

sudo vi /etc/apt/source.list

deb sarge contrib
deb sarge contrib

Download Key file

sudo wget

             Apply Key file

sudo apt-key add jcameron-key.asc

Installer update

sudo apt-get update


sudo apt-get insall webmin

6. Open Webmin


Facebook Comments

Leave A Reply

Detection ADBlockPlease, Disable or add to white list on our site.