• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install and set squid proxy server

{{postValue.id}}

To install and configure set squid proxy server

In this article we will discuss how to install and configure squid proxy server on Ubuntu or Debian. Squid is an open source featured web proxy cache server. It was released under GPL 3. It mainly supports HTTP and FTP protocols.

To install and configure Squid Server

Execute the following command in the terminal

[root@linuxhelp:~]# apt-get install squid
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-opensymbol libabw-0.1-1v5 libboost-date-time1.58.0 libcdr-0.1-1v5
.
.
.
0 upgraded, 5 newly installed, 0 to remove and 165 not upgraded.
Need to get 2,137 kB of archives.
After this operation, 9,267 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
.
.
.
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ...


Default configuration file for squid is located under ‘ /etc/squid3/squid.conf‘ or ‘ /etc/squid/squid.conf‘ .

Using VI editor

[root@linuxhelp:~]# vi /etc/squid3/squid.conf

http_port : This is the default port for the HTTP proxy server

http_access deny all - deny all access to the HTTP proxy server

visible_hostname - to set the specific hostname to a squid server

a

To restart the Squid proxy server

[root@linuxhelp:~]# service squid3 restart

OR

[root@linuxhelp:~]# service squid restart

To test the proxy server

Open Firefox and go to Edit &ndash > Preferences &ndash > Advanced &ndash > Network &ndash > Settings and select “ Manual proxy configuration” and enter the proxy server ip and port number in the required field.

2

After the required proxy details are entered you can browse using the Squid proxy server.

3

The default log file for Squid server is in ‘ /var/log/squid3/access.log’ or ‘ /var/log/squid/access.log‘ 4

To change the default storage path of log file

Change the path by editing the ‘ squid.conf‘ file.

access_log daemon:/var/log/squid3/access.log squid

Tags:
benjamin
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is the Default port number for squid proxy server?

A

the default port number for squid procy server is 3128.

Q

How to find the access log for particular IP?

A

You can make us eof the following command
tailf /var/log/squid/access.log | grep 192.168.5.30

Q

How to manually configure proxy settings in firefox browser?

A

Use the following options
Edit –> Preferences –> Advanced –> Network –> Settings to manually configure Proxy in firefox

Q

What are all the protocols does squid support ?

A

The Squid supports the following protocols
HTTP
FTP

Q

How can i specify a hostname ?

A

You can specify Under "visible_hostname" in squid.conf file

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.