Você está na página 1de 56

BY PANDITA MANOJ

Introduction of Squid Proxy Server


1.

Proxy servers are software applications that run on your firewall machine in order to provide indirect Internet access to your network. Squid is a caching proxy server which improves the bandwidth and the response time by caching the recently requested web pages. In Linux, Squid is the package used as proxy server.

2.

3.

Advantages of squid Proxy Server


1.

The client applications speak directly to the proxy server and the proxy server in turn speaks directly to the Internet hosts on behalf of the client. We can able to allow or restrict the web addresses to be used by the clients. Good sites can be made allowed and bad sites can be restricted. This is the reason for configuring proxy server.

2.

3.

4.

Goals of squid Proxy Server In Comapny


1. Two important goals of

many small businesses are to: 1. Reduce Internet bandwidth charges 2. Limit access to the Web to only authorized users. 2. The Squid web caching proxy server can achieve both these goals fairly easily.

Configuration Information of Squid Prxoy


PACKAGE REQUIRED: #squid DAEMON: /usr/sbin/squid SCRIPT: /etc/init.d/squid PORT: 3128 ( squid ), (configurable) CONFIGURATION: /etc/squid/squid.conf SERVICE: service squid restart
REDHAT CISCO

NETMAX Technologies

MICROSOFT

EMBEDDED

Check squid package is installed or not.

Open the squid configuration file.

SQUID PROXY SEREVR

The configuration file has been opened.

SQUID PROXY SERVER

Go to line no 73, we can set default port number for squid.

SQUID PROXY SERVER

Go to line no:2410

SQUID PROXY SERVER

Writing the rule to allow the host1.

Here the ip-address for host 1 is mentioned.

SQUID PROXY SERVER

Allow the host1 to access the internet through proxy

SQUID PROXY SERVER

Start the daemon service for squid.

SQUID PROXY SERVER


Goto edit,preference to set proxy.

Click connection settings

SQUID PROXY SERVER

Set the proxy server ip and port number.

SQUID PROXY SERVER

Open the configuration file.

SQUID PROXY SERVER

Open the configuration file.

Allow the network starting from 172.24.0.1 to 172.24.0.10

SQUID PROXY SERVER

Allow the host2 to access through proxy.

SQUID PROXY SERVER

Restart the daemon service ..

SQUID PROXY SERVER

We can either allow or deny proxy from mon,tue,wed,thur,fri from 08:30-05:30.

SQUID PROXY SERVER

The host1 can access internet connection from 08:30 to 05:30

SQUID PROXY SERVER

Restart the daemon service.

SQUID PROXY SERVER

Open the configuration file.

SQUID PROXY SERVER

Restricting the bad search like .mp3,jpg.

SQUID PROXY SERVER

Host1bad is deny for host1.so he cannot access .mp3 search.

SQUID PROXY SERVER

Restart the daemon service.

SQUID PROXY SERVER

Host1 searching the .mp3

SQUID PROXY SERVER

Open the configuration file.

SQUID PROXY SERVER

Restricting the domain like google.com, orkut.com

SQUID PROXY SERVER

Denied the domain.

SQUID PROXY SERVER

Restart daemon service.

SQUID PROXY SERVER

We can restrict the domain using file also.

SQUID PROXY SERVER

List the domain to restrict .

Save and quit the file.

SQUID PROXY SERVER

Give the location of file in the dstdomain.

SQUID PROXY SERVER

Deny the bad sites.

Save and quit the file.

SQUID PROXY SERVER

Restart the daemon service.

SQUID PROXY SERVER

Setting password for the proxy.

SQUID PROXY SERVER

Using htpasswd command set the passwd Set the username store in the name /etc/squid/squidpasswd file

SQUID PROXY SERVER

Open the configuration file.

SQUID PROXY SERVER

Goto line number 1565.

SQUID PROXY SERVER

Copy and paste the line.

SQUID PROXY SERVER

Edit that line to Give will be /usr/lib/squid/ncsa_auth, authenticationthe location of the passwd file. takes place here.

SQUID PROXY SERVER

Setting the proxy auth required to enable the password

SQUID PROXY SERVER

Allow the host1 to access the password.

SQUID PROXY SERVER

Restart the daemon service.

SQUID PROXY SERVER


When the host1 access the internet. Authentication takes place.

It ask username and password

SQUID PROXY SERVER

Restrict the upload upto maximum 50 KB.

SQUID PROXY SERVER

SQUID PROXY SERVER

Restart the daemon service.

Você também pode gostar