1. Download Squidnya
[You must be registered and logged in to see this link.]2. Kemudia extract squid nya dan letak kan di folder C:/
3. setelah itu masuk ke c:\squid\etc dan rename file dengan menghilangkan default nya
- Code:
-
cachemgr.conf.default
mime.conf.default
squid.conf.default
squid_radius_auth.conf.default
4. configure the DNS nameserver. On squid.conf
- Code:
-
# TAG: dns_nameservers
# Use this if you want to specify
# a list of DNS name servers (IP addresses)
# to use instead of those given in your
# /etc/resolv.conf file.
#
# Example: dns_nameservers 10.0.0.1 192.172.0.4
#
#Default:
# none
dns_nameservers 192.168.0.1
untuk mencari nameserver ... pake CMD dan ketik ipconfig ...IP number on Default Gateway
5. Setup ACL
- Code:
-
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from
# where browsing should be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
acl our_networks src 192.168.0.0/16
http_access allow our_networks
6. Setup the hostname
- Code:
-
# TAG: visible_hostname
# If you want to present a special hostname ...
# then define this. Otherwise, the return ...
# will be used. If you have multiple caches ...
# get errors about IP-forwarding you must ...
# names with this setting.
#
#Default:
# none
visible_hostname localhost
di sini kamu bisa menentukan hostname server seperti “localhost” or “server.youdomain.com”
7. Setup cache directory
jalankan CMD
- Code:
-
c:\squid\sbin\squid -D -z
8. Setting Squid as Service
tetep di CMD
- Code:
-
c:\squid\sbin\squid -i
qta bisa start/stop/restart service di Control Panel > Administrative Tools > Services
9. Setup your browser to use proxy server
- Code:
-
Tools > Internet Options. Select Connection tab and click on LAN Settings
check Use a proxy server for your LAN dan masukkan server IP dan port 3128 (default port squid)
10. Setup the Delay Pool.
untuk bandwidth shaping
- Code:
-
#
#Default:
# delay_pools 0
delay_pools 1
delay_class 1 1
Then create delay_access:
# delay_access 2 allow lotsa_little_clients
# delay_access 2 deny all
#
#Default:
# none
delay_access 1 allow our_networks
delay_access 1 deny all
- Code:
-
#
#delay_parameters 2 32000/32000 8000/8000 600/8000
#
# There must be one delay_parameters line for each delay pool.
#
#Default:
# none
delay_parameters 1 30000/30000
kemudian restart Squid or PC kamu ... & rasakan bedanya