Monday, March 19, 2012

Proxy Server Setup


# rpm -qa|grep squid

# vi /etc/squid/squid.conf

Search:

/http_port [http_port 3128]

/Cache_mem [Cache_mem 7 MB]

/Cache_dir [Cache nfs /var/spool/squid 100 16 256]

/Cache_access_log [Cache_access_log /var/log/squid/cache.log]

/Client_network [Client_network 255.255.255.0]

/Cache_effictive [Cache_effictive_user squid]

/INSERT

[acl example.com ip_address/ http_access allow example.com/ acl example.com src 192.168.1.0/24/ acl deny example.com]

Foreward lookup zone:

proxy IN CNAME linux204 (hostname of proxy_server) or linux204 IN A 192.168.1.204

Reverse lookup zone:

204 IN PTR linux204.example.com.

# squid -z [v.c]

# service squid restart [v.c]

[*In web server RLF ip is ip of DNS]

No comments:

Post a Comment