INSTALASI            SQUID 2.7            STABLE 9Barangsiapa berjalan untuk menuntut ilmu maka Allah akan memudahkanbagin...
YANG PERLU DISIAPKAN1.   CD Installer Ubuntu Server 12.04 LTS2.   CD / DVD ROM3.   Software Putty Installer4.   CPU yang a...
TOPOLOGI
INSTALASI UBUNTU SERVER1. Set first boot from CD/DVD di BIOS2. Masukkan CD/DVD Installer Ubuntu Server 12.04 LTS3. Ikuti p...
INSTALASI SQUID 2.7 - 011.   Colok kabel LAN dari Komputer Proxy ke MikroTik2.   Install Putty Installer3.   Login ke Komp...
INSTALASI SQUID 2.7 - 02./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/...
INSTALASI SQUID 2.7 - 03cp /etc/squid/squid.conf squid.conf.lamarm /etc/squid/squid.confpico /etc/squid/squid.confBerikut ...
INSTALASI SQUID 2.7 - 04#-----------------------------------------------------##      Squid 2.7 Stable9 Config            ...
INSTALASI SQUID 2.7 - 05cache_dir aufs /cache1 30000 70 256access_log /var/log/squid/access.logcache_log /var/log/squid/ca...
INSTALASI SQUID 2.7 - 06http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow...
INSTALASI SQUID 2.7 - 07refresh_pattern ^ftp: 40320   20%      40320 override-expire reload-into-ims store-stalerefresh_pa...
INSTALASI SQUID 2.7 - 08icp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline...
INSTALASI SQUID 2.7 - 09pico /etc/squid/storeurl.plcopy paste storeurl.pl berikut:#!/usr/bin/perl$|=1;while (<>) {    @X =...
INSTALASI SQUID 2.7 - 10chmod +x /etc/squid/storeurl.plchown proxy:proxy /etc/squid/storeurl.plchown proxy:proxy /cache1mk...
TEST SQUID PROXY1. Buka browser, cth. Mozilla Firefox2. Set manual proxy ke IP Proxy port 31283. Test buka website http://...
TEST SQUID PROXY1. Cached Youtube Video2. 1 File HIT Youtube Video Non Range
SELESAIThank you & Please SHARE
Upcoming SlideShare
Loading in...5
×

Instalasi Squid Proxy 2.7 stable9 support cache youtube

11,034

Published on

Published in: Technology
1 Comment
8 Likes
Statistics
Notes
No Downloads
Views
Total Views
11,034
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
1
Likes
8
Embeds 0
No embeds

No notes for slide
  • Minimum System RequirementsCPU : 300 MhzRAM : 128Hard Drive Space : Base System 500 MB, All Tasks Installed 1 GBhttps://help.ubuntu.com/12.04/serverguide/serverguide.pdf
  • #-----------------------------------------------------## Squid 2.7 Stable9 Config ##-----------------------------------------------------#http_port 3128 transparentcache_mem 8 MBserver_http11 onpid_filename /var/run/squid.pidcoredump_dir /var/spool/squid/error_directory /usr/share/squid/errors/Englishicon_directory /usr/share/squid/iconsmime_table /etc/squid/mime.confmaximum_object_size_in_memory 32 KBmemory_replacement_policy heap GDSFcache_replacement_policy heap LFUDAmaximum_object_size 2048 MBcache_swap_low 90%cache_swap_high 95%cache_diraufs /cache1 30000 70 256 access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_log /dev/nullcache_store_log /dev/nullaclshoutcastrep_header X-HTTP09-First-Line ^ICY.[0-9]upgrade_http0.9 deny shoutcastacl apache rep_header Server ^Apachebroken_vary_encoding allow apacheredirect_rewrites_host_header offacl manager proto cache_objectacllocalhostsrc 127.0.0.1/255.255.255.255aclSSL_ports port 443 563aclSafe_ports port 80 21 443 563 70 210 953 1025-65535aclSafe_ports port 280aclSafe_ports port 488aclSafe_ports port 591aclSafe_ports port 777acl CONNECT method CONNECTaclrangerequesturl_regex ^.*youtube.com/videoplayback.*range=.*$acl dynamic urlpath_regexcgi-bin \\?acl all src 0.0.0.0/0dns_nameservers 8.8.8.8http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow CONNECT !SSL_portshttp_access deny rangerequesthttp_access allow allhttp_reply_access allow allsnmp_port 3401aclsnmppublicsnmp_community publicsnmp_access allow snmppublic allaclstore_rewrite_listurlpath_regex \\/(get_video\\?|videodownload\\?|videoplayback.*id) storeurl_access allow store_rewrite_liststoreurl_access deny allstoreurl_rewrite_program /etc/squid/storeurl.plstoreurl_rewrite_children 5storeurl_rewrite_concurrency 10refresh_pattern (get_video\\?|videoplayback\\?|videodownload\\?) 5259487 99999999% 5259487 override-expire ignore-reload ignore-private negative-ttl=0refresh_patternimeem.*\\.flv 0 0% 0 override-lastmod override-expirerefresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stalerefresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|\\?) 0 0% 0refresh_pattern \\.(php|jsp|cgi|asx)\\? 0 0% 0refresh_pattern . 0 50% 525600 store-staleheader_access X-Forwarded-For deny allfqdncache_size 4096ipcache_low 98ipcache_high 99quick_abort_min 0quick_abort_max 0quick_abort_pct 75shutdown_lifetime 10 secondsmemory_pools offbuffered_logs offlog_icp_queries offlogfile_rotate 1log_fqdn offforwarded_for officp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline_prefetch onvary_ignore_expire onhalf_closed_clients offhigh_page_fault_warning 2nonhierarchical_direct onprefer_direct offcache_mgr muhammad.fadilah@gmail.comcache_effective_user proxycache_effective_group proxyvisible_hostname mf24051983Proxyunique_hostname mf24051983Proxycachemgr_passwd none allclient_db onmax_filedescriptors 65536zph_modetoszph_local 0x30zph_parent 0zph_option 136
  • #-----------------------------------------------------## Squid 2.7 Stable9 Config ##-----------------------------------------------------#http_port 3128 transparentcache_mem 8 MBserver_http11 onpid_filename /var/run/squid.pidcoredump_dir /var/spool/squid/error_directory /usr/share/squid/errors/Englishicon_directory /usr/share/squid/iconsmime_table /etc/squid/mime.confmaximum_object_size_in_memory 32 KBmemory_replacement_policy heap GDSFcache_replacement_policy heap LFUDAmaximum_object_size 2048 MBcache_swap_low 90%cache_swap_high 95%cache_diraufs /cache1 30000 70 256 access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_log /dev/nullcache_store_log /dev/nullaclshoutcastrep_header X-HTTP09-First-Line ^ICY.[0-9]upgrade_http0.9 deny shoutcastacl apache rep_header Server ^Apachebroken_vary_encoding allow apacheredirect_rewrites_host_header offacl manager proto cache_objectacllocalhostsrc 127.0.0.1/255.255.255.255aclSSL_ports port 443 563aclSafe_ports port 80 21 443 563 70 210 953 1025-65535aclSafe_ports port 280aclSafe_ports port 488aclSafe_ports port 591aclSafe_ports port 777acl CONNECT method CONNECTaclrangerequesturl_regex ^.*youtube.com/videoplayback.*range=.*$acl dynamic urlpath_regexcgi-bin \\?acl all src 0.0.0.0/0dns_nameservers 8.8.8.8http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow CONNECT !SSL_portshttp_access deny rangerequesthttp_access allow allhttp_reply_access allow allsnmp_port 3401aclsnmppublicsnmp_community publicsnmp_access allow snmppublic allaclstore_rewrite_listurlpath_regex \\/(get_video\\?|videodownload\\?|videoplayback.*id) storeurl_access allow store_rewrite_liststoreurl_access deny allstoreurl_rewrite_program /etc/squid/storeurl.plstoreurl_rewrite_children 5storeurl_rewrite_concurrency 10refresh_pattern (get_video\\?|videoplayback\\?|videodownload\\?) 5259487 99999999% 5259487 override-expire ignore-reload ignore-private negative-ttl=0refresh_patternimeem.*\\.flv 0 0% 0 override-lastmod override-expirerefresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stalerefresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|\\?) 0 0% 0refresh_pattern \\.(php|jsp|cgi|asx)\\? 0 0% 0refresh_pattern . 0 50% 525600 store-staleheader_access X-Forwarded-For deny allfqdncache_size 4096ipcache_low 98ipcache_high 99quick_abort_min 0quick_abort_max 0quick_abort_pct 75shutdown_lifetime 10 secondsmemory_pools offbuffered_logs offlog_icp_queries offlogfile_rotate 1log_fqdn offforwarded_for officp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline_prefetch onvary_ignore_expire onhalf_closed_clients offhigh_page_fault_warning 2nonhierarchical_direct onprefer_direct offcache_mgr muhammad.fadilah@gmail.comcache_effective_user proxycache_effective_group proxyvisible_hostname mf24051983Proxyunique_hostname mf24051983Proxycachemgr_passwd none allclient_db onmax_filedescriptors 65536zph_modetoszph_local 0x30zph_parent 0zph_option 136
  • #-----------------------------------------------------## Squid 2.7 Stable9 Config ##-----------------------------------------------------#http_port 3128 transparentcache_mem 8 MBserver_http11 onpid_filename /var/run/squid.pidcoredump_dir /var/spool/squid/error_directory /usr/share/squid/errors/Englishicon_directory /usr/share/squid/iconsmime_table /etc/squid/mime.confmaximum_object_size_in_memory 32 KBmemory_replacement_policy heap GDSFcache_replacement_policy heap LFUDAmaximum_object_size 2048 MBcache_swap_low 90%cache_swap_high 95%cache_diraufs /cache1 30000 70 256 access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_log /dev/nullcache_store_log /dev/nullaclshoutcastrep_header X-HTTP09-First-Line ^ICY.[0-9]upgrade_http0.9 deny shoutcastacl apache rep_header Server ^Apachebroken_vary_encoding allow apacheredirect_rewrites_host_header offacl manager proto cache_objectacllocalhostsrc 127.0.0.1/255.255.255.255aclSSL_ports port 443 563aclSafe_ports port 80 21 443 563 70 210 953 1025-65535aclSafe_ports port 280aclSafe_ports port 488aclSafe_ports port 591aclSafe_ports port 777acl CONNECT method CONNECTaclrangerequesturl_regex ^.*youtube.com/videoplayback.*range=.*$acl dynamic urlpath_regexcgi-bin \\?acl all src 0.0.0.0/0dns_nameservers 8.8.8.8http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow CONNECT !SSL_portshttp_access deny rangerequesthttp_access allow allhttp_reply_access allow allsnmp_port 3401aclsnmppublicsnmp_community publicsnmp_access allow snmppublic allaclstore_rewrite_listurlpath_regex \\/(get_video\\?|videodownload\\?|videoplayback.*id) storeurl_access allow store_rewrite_liststoreurl_access deny allstoreurl_rewrite_program /etc/squid/storeurl.plstoreurl_rewrite_children 5storeurl_rewrite_concurrency 10refresh_pattern (get_video\\?|videoplayback\\?|videodownload\\?) 5259487 99999999% 5259487 override-expire ignore-reload ignore-private negative-ttl=0refresh_patternimeem.*\\.flv 0 0% 0 override-lastmod override-expirerefresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stalerefresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|\\?) 0 0% 0refresh_pattern \\.(php|jsp|cgi|asx)\\? 0 0% 0refresh_pattern . 0 50% 525600 store-staleheader_access X-Forwarded-For deny allfqdncache_size 4096ipcache_low 98ipcache_high 99quick_abort_min 0quick_abort_max 0quick_abort_pct 75shutdown_lifetime 10 secondsmemory_pools offbuffered_logs offlog_icp_queries offlogfile_rotate 1log_fqdn offforwarded_for officp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline_prefetch onvary_ignore_expire onhalf_closed_clients offhigh_page_fault_warning 2nonhierarchical_direct onprefer_direct offcache_mgr muhammad.fadilah@gmail.comcache_effective_user proxycache_effective_group proxyvisible_hostname mf24051983Proxyunique_hostname mf24051983Proxycachemgr_passwd none allclient_db onmax_filedescriptors 65536zph_modetoszph_local 0x30zph_parent 0zph_option 136
  • #-----------------------------------------------------## Squid 2.7 Stable9 Config ##-----------------------------------------------------#http_port 3128 transparentcache_mem 8 MBserver_http11 onpid_filename /var/run/squid.pidcoredump_dir /var/spool/squid/error_directory /usr/share/squid/errors/Englishicon_directory /usr/share/squid/iconsmime_table /etc/squid/mime.confmaximum_object_size_in_memory 32 KBmemory_replacement_policy heap GDSFcache_replacement_policy heap LFUDAmaximum_object_size 2048 MBcache_swap_low 90%cache_swap_high 95%cache_diraufs /cache1 30000 70 256 access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_log /dev/nullcache_store_log /dev/nullaclshoutcastrep_header X-HTTP09-First-Line ^ICY.[0-9]upgrade_http0.9 deny shoutcastacl apache rep_header Server ^Apachebroken_vary_encoding allow apacheredirect_rewrites_host_header offacl manager proto cache_objectacllocalhostsrc 127.0.0.1/255.255.255.255aclSSL_ports port 443 563aclSafe_ports port 80 21 443 563 70 210 953 1025-65535aclSafe_ports port 280aclSafe_ports port 488aclSafe_ports port 591aclSafe_ports port 777acl CONNECT method CONNECTaclrangerequesturl_regex ^.*youtube.com/videoplayback.*range=.*$acl dynamic urlpath_regexcgi-bin \\?acl all src 0.0.0.0/0dns_nameservers 8.8.8.8http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow CONNECT !SSL_portshttp_access deny rangerequesthttp_access allow allhttp_reply_access allow allsnmp_port 3401aclsnmppublicsnmp_community publicsnmp_access allow snmppublic allaclstore_rewrite_listurlpath_regex \\/(get_video\\?|videodownload\\?|videoplayback.*id) storeurl_access allow store_rewrite_liststoreurl_access deny allstoreurl_rewrite_program /etc/squid/storeurl.plstoreurl_rewrite_children 5storeurl_rewrite_concurrency 10refresh_pattern (get_video\\?|videoplayback\\?|videodownload\\?) 5259487 99999999% 5259487 override-expire ignore-reload ignore-private negative-ttl=0refresh_patternimeem.*\\.flv 0 0% 0 override-lastmod override-expirerefresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stalerefresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|\\?) 0 0% 0refresh_pattern \\.(php|jsp|cgi|asx)\\? 0 0% 0refresh_pattern . 0 50% 525600 store-staleheader_access X-Forwarded-For deny allfqdncache_size 4096ipcache_low 98ipcache_high 99quick_abort_min 0quick_abort_max 0quick_abort_pct 75shutdown_lifetime 10 secondsmemory_pools offbuffered_logs offlog_icp_queries offlogfile_rotate 1log_fqdn offforwarded_for officp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline_prefetch onvary_ignore_expire onhalf_closed_clients offhigh_page_fault_warning 2nonhierarchical_direct onprefer_direct offcache_mgr muhammad.fadilah@gmail.comcache_effective_user proxycache_effective_group proxyvisible_hostname mf24051983Proxyunique_hostname mf24051983Proxycachemgr_passwd none allclient_db onmax_filedescriptors 65536zph_modetoszph_local 0x30zph_parent 0zph_option 136
  • #-----------------------------------------------------## Squid 2.7 Stable9 Config ##-----------------------------------------------------#http_port 3128 transparentcache_mem 8 MBserver_http11 onpid_filename /var/run/squid.pidcoredump_dir /var/spool/squid/error_directory /usr/share/squid/errors/Englishicon_directory /usr/share/squid/iconsmime_table /etc/squid/mime.confmaximum_object_size_in_memory 32 KBmemory_replacement_policy heap GDSFcache_replacement_policy heap LFUDAmaximum_object_size 2048 MBcache_swap_low 90%cache_swap_high 95%cache_diraufs /cache1 30000 70 256 access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_log /dev/nullcache_store_log /dev/nullaclshoutcastrep_header X-HTTP09-First-Line ^ICY.[0-9]upgrade_http0.9 deny shoutcastacl apache rep_header Server ^Apachebroken_vary_encoding allow apacheredirect_rewrites_host_header offacl manager proto cache_objectacllocalhostsrc 127.0.0.1/255.255.255.255aclSSL_ports port 443 563aclSafe_ports port 80 21 443 563 70 210 953 1025-65535aclSafe_ports port 280aclSafe_ports port 488aclSafe_ports port 591aclSafe_ports port 777acl CONNECT method CONNECTaclrangerequesturl_regex ^.*youtube.com/videoplayback.*range=.*$acl dynamic urlpath_regexcgi-bin \\?acl all src 0.0.0.0/0dns_nameservers 8.8.8.8http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow CONNECT !SSL_portshttp_access deny rangerequesthttp_access allow allhttp_reply_access allow allsnmp_port 3401aclsnmppublicsnmp_community publicsnmp_access allow snmppublic allaclstore_rewrite_listurlpath_regex \\/(get_video\\?|videodownload\\?|videoplayback.*id) storeurl_access allow store_rewrite_liststoreurl_access deny allstoreurl_rewrite_program /etc/squid/storeurl.plstoreurl_rewrite_children 5storeurl_rewrite_concurrency 10refresh_pattern (get_video\\?|videoplayback\\?|videodownload\\?) 5259487 99999999% 5259487 override-expire ignore-reload ignore-private negative-ttl=0refresh_patternimeem.*\\.flv 0 0% 0 override-lastmod override-expirerefresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stalerefresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|\\?) 0 0% 0refresh_pattern \\.(php|jsp|cgi|asx)\\? 0 0% 0refresh_pattern . 0 50% 525600 store-staleheader_access X-Forwarded-For deny allfqdncache_size 4096ipcache_low 98ipcache_high 99quick_abort_min 0quick_abort_max 0quick_abort_pct 75shutdown_lifetime 10 secondsmemory_pools offbuffered_logs offlog_icp_queries offlogfile_rotate 1log_fqdn offforwarded_for officp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline_prefetch onvary_ignore_expire onhalf_closed_clients offhigh_page_fault_warning 2nonhierarchical_direct onprefer_direct offcache_mgr muhammad.fadilah@gmail.comcache_effective_user proxycache_effective_group proxyvisible_hostname mf24051983Proxyunique_hostname mf24051983Proxycachemgr_passwd none allclient_db onmax_filedescriptors 65536zph_modetoszph_local 0x30zph_parent 0zph_option 136
  • #-----------------------------------------------------## Squid 2.7 Stable9 Config ##-----------------------------------------------------#http_port 3128 transparentcache_mem 8 MBserver_http11 onpid_filename /var/run/squid.pidcoredump_dir /var/spool/squid/error_directory /usr/share/squid/errors/Englishicon_directory /usr/share/squid/iconsmime_table /etc/squid/mime.confmaximum_object_size_in_memory 32 KBmemory_replacement_policy heap GDSFcache_replacement_policy heap LFUDAmaximum_object_size 2048 MBcache_swap_low 90%cache_swap_high 95%cache_diraufs /cache1 30000 70 256 access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_log /dev/nullcache_store_log /dev/nullaclshoutcastrep_header X-HTTP09-First-Line ^ICY.[0-9]upgrade_http0.9 deny shoutcastacl apache rep_header Server ^Apachebroken_vary_encoding allow apacheredirect_rewrites_host_header offacl manager proto cache_objectacllocalhostsrc 127.0.0.1/255.255.255.255aclSSL_ports port 443 563aclSafe_ports port 80 21 443 563 70 210 953 1025-65535aclSafe_ports port 280aclSafe_ports port 488aclSafe_ports port 591aclSafe_ports port 777acl CONNECT method CONNECTaclrangerequesturl_regex ^.*youtube.com/videoplayback.*range=.*$acl dynamic urlpath_regexcgi-bin \\?acl all src 0.0.0.0/0dns_nameservers 8.8.8.8http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow CONNECT !SSL_portshttp_access deny rangerequesthttp_access allow allhttp_reply_access allow allsnmp_port 3401aclsnmppublicsnmp_community publicsnmp_access allow snmppublic allaclstore_rewrite_listurlpath_regex \\/(get_video\\?|videodownload\\?|videoplayback.*id) storeurl_access allow store_rewrite_liststoreurl_access deny allstoreurl_rewrite_program /etc/squid/storeurl.plstoreurl_rewrite_children 5storeurl_rewrite_concurrency 10refresh_pattern (get_video\\?|videoplayback\\?|videodownload\\?) 5259487 99999999% 5259487 override-expire ignore-reload ignore-private negative-ttl=0refresh_patternimeem.*\\.flv 0 0% 0 override-lastmod override-expirerefresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stalerefresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|\\?) 0 0% 0refresh_pattern \\.(php|jsp|cgi|asx)\\? 0 0% 0refresh_pattern . 0 50% 525600 store-staleheader_access X-Forwarded-For deny allfqdncache_size 4096ipcache_low 98ipcache_high 99quick_abort_min 0quick_abort_max 0quick_abort_pct 75shutdown_lifetime 10 secondsmemory_pools offbuffered_logs offlog_icp_queries offlogfile_rotate 1log_fqdn offforwarded_for officp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline_prefetch onvary_ignore_expire onhalf_closed_clients offhigh_page_fault_warning 2nonhierarchical_direct onprefer_direct offcache_mgr muhammad.fadilah@gmail.comcache_effective_user proxycache_effective_group proxyvisible_hostname mf24051983Proxyunique_hostname mf24051983Proxycachemgr_passwd none allclient_db onmax_filedescriptors 65536zph_modetoszph_local 0x30zph_parent 0zph_option 136
  • Transcript of "Instalasi Squid Proxy 2.7 stable9 support cache youtube"

    1. 1. INSTALASI SQUID 2.7 STABLE 9Barangsiapa berjalan untuk menuntut ilmu maka Allah akan memudahkanbaginya jalan ke surga (HR. Muslim)Ditulis oleh : @Mhd_Fadilah | http://mf24051983.blogspot.com | http://www.farounet.com
    2. 2. YANG PERLU DISIAPKAN1. CD Installer Ubuntu Server 12.04 LTS2. CD / DVD ROM3. Software Putty Installer4. CPU yang akan diinstall Ubuntu Server dan Squid5. MikroTik yang sudah tersambung ke InternetCatatan :Download Ubuntu Server dihttp://www.ubuntu.com/download/serverDownload Putty Installer dihttp://the.earth.li/~sgtatham/putty/latest/x86/putty-0.62-installer.exe
    3. 3. TOPOLOGI
    4. 4. INSTALASI UBUNTU SERVER1. Set first boot from CD/DVD di BIOS2. Masukkan CD/DVD Installer Ubuntu Server 12.04 LTS3. Ikuti petunjuk instalasi sampai selesaiCatatan :- Kabel LAN tidak perlu dipasang/dicolok dulu ke MikroTik sewaktu instalasi ubuntu server.- Pastikan Anda menggunakan IP statis untuk Proxy.- Centang OpenSSH server sewaktu pilihan “choose software to install”.
    5. 5. INSTALASI SQUID 2.7 - 011. Colok kabel LAN dari Komputer Proxy ke MikroTik2. Install Putty Installer3. Login ke Komputer Proxy melalui putty4. Ikuti petunjuk berikut, (ketik atau copy paste command berikut melalui putty)sudo su >> isi password ubuntu andaapt-get updateapt-get install gcc -yapt-get install build-essential -yapt-get install sharutils -yapt-get install ccze -yapt-get install libzip-dev -yapt-get install automake1.9 -ywget http://sgk-2011.googlecode.com/files/squid-2.7.STABLE9PATCH.tar.gztar xvf squid-2.7.STABLE9PATCH.tar.gzcd squid-2.7.STABLE9
    6. 6. INSTALASI SQUID 2.7 - 02./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536make && make install
    7. 7. INSTALASI SQUID 2.7 - 03cp /etc/squid/squid.conf squid.conf.lamarm /etc/squid/squid.confpico /etc/squid/squid.confBerikut adalah squid.conf yang saya buat (siladisesuaikan/oprek). Copy paste squid.conf ini kedalam puttyCatatan:Yang perlu diedit dari squid.conf saya adalah :- cache_dir aufs /cache1 30000 70 256 >> sesuaikan dengan jumlah dan besaran cache yang Anda buat
    8. 8. INSTALASI SQUID 2.7 - 04#-----------------------------------------------------## Squid 2.7 Stable9 Config ##-----------------------------------------------------#http_port 3128 transparentcache_mem 8 MBserver_http11 onpid_filename /var/run/squid.pidcoredump_dir /var/spool/squid/error_directory /usr/share/squid/errors/Englishicon_directory /usr/share/squid/iconsmime_table /etc/squid/mime.confmaximum_object_size_in_memory 32 KBmemory_replacement_policy heap GDSFcache_replacement_policy heap LFUDAmaximum_object_size 2048 MBcache_swap_low 90%cache_swap_high 95%
    9. 9. INSTALASI SQUID 2.7 - 05cache_dir aufs /cache1 30000 70 256access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_log /dev/nullcache_store_log /dev/nullacl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]upgrade_http0.9 deny shoutcastacl apache rep_header Server ^Apachebroken_vary_encoding allow apacheredirect_rewrites_host_header offacl manager proto cache_objectacl localhost src 127.0.0.1/255.255.255.255acl SSL_ports port 443 563acl Safe_ports port 80 21 443 563 70 210 953 1025-65535acl Safe_ports port 280acl Safe_ports port 488acl Safe_ports port 591acl Safe_ports port 777acl CONNECT method CONNECTacl rangerequest url_regex ^.*youtube.com/videoplayback.*range=.*$acl dynamic urlpath_regex cgi-bin ?acl all src 0.0.0.0/0dns_nameservers 8.8.8.8
    10. 10. INSTALASI SQUID 2.7 - 06http_access allow managerhttp_access allow localhosthttp_access allow !Safe_portshttp_access allow CONNECT !SSL_portshttp_access deny rangerequesthttp_access allow allhttp_reply_access allow allsnmp_port 3401acl snmppublic snmp_community publicsnmp_access allow snmppublic allacl store_rewrite_list urlpath_regex /(get_video?|videodownload?|videoplayback.*id)storeurl_access allow store_rewrite_liststoreurl_access deny allstoreurl_rewrite_program /etc/squid/storeurl.plstoreurl_rewrite_children 5storeurl_rewrite_concurrency 10refresh_pattern (get_video?|videoplayback?|videodownload?) 5259487 99999999% 5259487 override-expire ignore-reloadignore-private negative-ttl=0refresh_pattern imeem.*.flv 0 0% 0 override-lastmod override-expire
    11. 11. INSTALASI SQUID 2.7 - 07refresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stalerefresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|?) 0 0% 0refresh_pattern .(php|jsp|cgi|asx)? 0 0% 0refresh_pattern . 0 50% 525600 store-staleheader_access X-Forwarded-For deny allfqdncache_size 4096ipcache_low 98ipcache_high 99quick_abort_min 0quick_abort_max 0quick_abort_pct 75shutdown_lifetime 10 secondsmemory_pools offbuffered_logs offlog_icp_queries offlogfile_rotate 1log_fqdn offforwarded_for off
    12. 12. INSTALASI SQUID 2.7 - 08icp_hit_stale onquery_icmp onreload_into_ims onemulate_httpd_log offnegative_ttl 2 minutespipeline_prefetch onvary_ignore_expire onhalf_closed_clients offhigh_page_fault_warning 2nonhierarchical_direct onprefer_direct offcache_mgr muhammad.fadilah@gmail.comcache_effective_user proxycache_effective_group proxyvisible_hostname mf24051983Proxyunique_hostname mf24051983Proxycachemgr_passwd none allclient_db onmax_filedescriptors 65536zph_mode toszph_local 0x30zph_parent 0
    13. 13. INSTALASI SQUID 2.7 - 09pico /etc/squid/storeurl.plcopy paste storeurl.pl berikut:#!/usr/bin/perl$|=1;while (<>) { @X = split; $x = $X[0] . " ";if ($X[1] =~ /(youtube|google).*videoplayback?/){ @itag = m/[&?](itag=[0-9]*)/; @id = m/[&?](id=[^&]*)/; @range = m/[&?](range=[^&s]*)/; print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@rangen"; } else { print $x . $X[1] . "n"; }}
    14. 14. INSTALASI SQUID 2.7 - 10chmod +x /etc/squid/storeurl.plchown proxy:proxy /etc/squid/storeurl.plchown proxy:proxy /cache1mkdir /var/log/squidchown proxy:proxy /var/log/squidsquid -zrebootLogin kembalisudo su >> isi password ubuntu andasquid start
    15. 15. TEST SQUID PROXY1. Buka browser, cth. Mozilla Firefox2. Set manual proxy ke IP Proxy port 31283. Test buka website http://www.lagado.com/proxy-test
    16. 16. TEST SQUID PROXY1. Cached Youtube Video2. 1 File HIT Youtube Video Non Range
    17. 17. SELESAIThank you & Please SHARE

    ×