Configuring squid in redhat linux 5.1 / Centos
Step 1:
Add [host ip ] [host name] into file
ex: 192.162.5.25 proxyser
file /etc/hosts
Step 2:
change file /etc/sysconfig/network
hostname = [enter your hostname]
gateway=[enter your gateway IP] [if available]
step 3 :
file /etc/squid/squid-conf
visible_hostname=amarprox
http_port= 8080
cache_dir ufs /var/spool/squid 1000 16 256
cache_access_log /var/log/squid.log
set write permission to directory /var/log
Place this access control before all other access control lists.
acl intranet src 192.162.5.0/24 {this will allow systems under this IP region would use this proxy server}
http_access allow intranet
Step 4:
file /etc/resolv.conf
add nameservers
ex:
203.145.1.8
203.145.152
Step 5
Configure client with this proxy system ip and access ur internet.
No comments:
Post a Comment
type your comments here