hemat pulsa di modem, dengan cara install squid proxy cache server di windows

Cara hemat pulsa di modem, dengan cara install squid proxy cache server di windows.

Download :
http://nchc.dl.sourceforge.net/project/squidwindowsmsi/squid-2.7.2_i386.msi

Run file tersebut , Install (sebagai administrator kalo perlu)

buka file di C:\squid\etc\squid.conf menggunakan text editor (paling tidak menggunakan notepad)

langsung menuju ke baris terakhirnya dan tambahkan baris-baris berikut ini untuk setting aggresive caching:


http_port 80 accel defaultsite=google.com
visible_hostname google.com

client_persistent_connections on
server_persistent_connections on


acl static_content urlpath_regex -i \.(jpg|gif|png|css|js|axd|aspx|html|htm|php)

http_access allow all

cache_effective_user squid
cache_effective_group squid
acl localnet src 192.168.200.0/32 #
http_access allow localnet


http_access allow all
cache_dir ufs c:/squid/var/cache 500 32 500
maximum_object_size 40096 KB

refresh_pattern .jpg 14400 50% 18000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth

refresh_pattern .gif 14400 50% 18000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth

refresh_pattern .png 14400 50% 18000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth


refresh_pattern .css 14400 50% 18000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth

refresh_pattern .js  14400 50% 18000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth

refresh_pattern .axd 14400 50% 18000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth

refresh_pattern .aspx 60   50% 120   override-expire override-lastmod ignore-no-cache
refresh_pattern .htm 60   50% 3600   override-expire override-lastmod ignore-no-cache
refresh_pattern .html 60   50% 3600   override-expire override-lastmod ignore-no-cache
refresh_pattern .php 60   50% 1800   override-expire override-lastmod ignore-no-cache

icp_port 0

Ok , sampai situ dulu sebenarnya sudah cukup. Namun , jika anda menggunakan modem yang ditancapkan ke sebuah router wifi untuk berbagi koneksi internet, tambahkan lagi dua baris berikut ini:


acl localnet src 192.168.200.0/32
http_access allow localnet


(ganti 192.168.200.0 dengan ip network wifi anda, biasanya default router adalah 192.168.1.0 atau 192.168.2.0)

save file tersebut dan tutup.

Kemudian buka start menu->run->ketik cmd dan tekan enter

ketikkan:
cd c:\squid\sbin
tekan enter

lalu bikin struktur folder cache nya dengan mengetikkan :
squid -z
dan tekan enter
lalu jalankan squid servernya dengan mengetikkan
squid
dan tekan enter

Catatan : Jika anda ingin menjalan kan squid di port selain port 80 tersebut di atas, maka sekarang buka browser anda , misalnya google chrome. Di google chrome, buka Setelan->Tampilkan Setelan Lanjutan->Jaringan->Ubah Setelan Proksi->LAN Setting

Di kotak Proxy server, centang semua
dan isikan isian dengan:
localhost
dan port nya diisi dengan angka portnya misalnya
3128

Selesai setting

Sekarang tutup tab setting dan mulailah browsing. Cache akan terasa saat kita sudah browsing halaman yang sama beberapa kali. Squid menghindarkan kita mendownload file yang sama lebih dari dua kali, dengan demikian ,diharapkan menghemat quota internet di modem anda.

Alternatif Tutorial install squid :


follow the steps .
  1. Download squid proxy from the page below
    http://squid.acmeconsulting.it/
    Or from a Digitalbight archived version.
    https://digitalbight.com/content/files/?download=squid.zip&type=zip Download
  2. Extract the downloaded file to desktop.
  3. Create a new folder in C drive called squid. “C:\squid”
  4. Copy then past all root file/folders inside the extracted folder to the new c drive folder.
  5. Open the “etc” folder and remove the “.default” extension leaving only the “.conf” after the name.
  6. Open a command prompt window.
  7. Type “cd D:\squid\sbin” to change directory to sbin within the squid root folder.
  8. Then type “squid –i” into the command window to install the software as a service - #note the service will not be operating until started by the services control window.
  9. Open “run” and type “services.msc” to start the services mmc snap-in or find the service within the start menu.
  10. If the folder called “var” is not included with the squid root folder and also another folder called “logs” continue to create them.
  11. Using the command prompt window type “ squid –z” still being inside the “c:\squid\sbin” from step 7 to create the cache directory.
  12. Check if the new folder was created in “var\cache”.
  13. Start the service with in the services snap-in manager by finding the services called squid -> right click -> click start.
  14. Setup the local server machine to newly created proxy by following. Internet Explorer -> options -> connections -> LAN settings.
  15. Within the menu select “Use proxy server” and type either “localhost” or the internal IP address of the server. And port “3128”.
  16. Test that all is functioning correctly by going to http://google.com
  17. If the proxy is presenting you an error message find the “squid.conf” file with in the etc folder.
  18. Using a text editor like notepad or notepad++ open the file and use the find function to find the string “http_access deny all” without the sharp symbol (#) in front of it.
  19. Replace deny with allow so the proxy will operate correctly.
  20. Retry accessing http://google.com
  21. Check “var\logs\access.log” file to see if google.com has been added to the log file.
To allow local network machines to access the proxy continue.
  1. Open “windows firewall with advanced security” found in the start menu
  2. Click on Inbound rules on the left menu.
  3. Then click on “New rule” on the right task menu.
  4. Select port for the firewall option.
  5. Select “tcp” for type and specific port with “3128”.
  6. Allow the connection then precede the wizard allowing all profiles.
  7. Name the new rule so others can easily identify the squid proxy.



ShowHideComments