Friday, November 16, 2012

Proxy server




Proxy server
Proxy server is used to share the internet connection with many clients
Proxy server can be configured as :
A simple proxy server which used to share the internet connection
A caching web server which is used  to store web pages locally to improve performance
A firewall which is used to control to access the internet
Squid proxy is the widely used open source product.
Server Configuration
Service profile
Service:  squid
Package:squid
Port no:3128 (default)
Configuration file: //etc/squid/squid.conf
Script file: /etc/ init.d/squid
Daemons: squid
Objective :To share internet connection


[root@proxy~]#yum install squid* -y
Edit the main configuration
[root@proxy~]#vi /etc/squid/squid.conf
##to configure simple proxy##
http_port 3128     #line no.73   3128 is default port we can use any port number other than that
visible_hostname     Rajashekar    #line no 2831
##to configure caching proxy##
cache_dir ufs/var/spool/squid 100 16 256

##to configure firewall proxy##
##Find the line beginning with acl localhost and At the end of the section, add:
#create rule for particular network
acl rajunetwork src 192.168.0.0/24
##Authorizing access to group
#Locate the line http_access allow and add below (before the line http_access deny all)
http_access allow rajunetwork
##Allow the use non-standard ports
By default, Squid allows HTTP traffic only on specific ports (e.g. 80). This can cause problems on websites using other ports.
##To avoid this deadlock, find the line http_access deny! Safe_ports and the edit it to:
 # http_access deny! Safe_ports
:wq!
[root@proxy~]#chkconfig squid on
[root@proxy~]#service squid restart

Client configuration
For proxy browser is a client whether it may be on server or client
For Firefox
Open firefox
Tools->options->advanced tab->network->connection->settings->Manual proxy configuration->
Http proxy   server ip   port 3128

Stay Connected With Free Updates!

Subscribe via Email

Follow me!

Leave Your Comment Below If You Like This Post

0 comments: