Follow us on...
Follow us on G+ Follow us on Twitter Follow us on Facebook Watch us on YouTube
Register
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Status
    Offline
    tobee_blackart's Avatar
    Baru Gabung
    Join Date
    Jan 2011
    Location
    English Villages
    Posts
    9
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0

    mohon di koreksi donk, squid.conf+storeurl

    kepada master2 mikrotik disini, saya ingin berkonsultasi nih, soalnya gk tau lagi mau tanya ke siapa Click here to enlarge
    kondisi saya adalah
    Ubuntu 11.04 32 bit pada mesin AMD 64 X2 250, 3GB RAM, 250HDD SATA
    sudah saya install squid+lusca FMI melalui berbagai tutorial yang ada di forum ini,
    saya ingin jadikan sebagai proxy server

    berikut squid.conf saya ;
     

    Code:
    #-----------------------------------------------------#
    #       LUSCA - High Performance Configuration        #
    #-----------------------------------------------------#
    #-----------------------------------------------------#
    
    http_port 3128 transparent
    cache_mem 1664 MB
    server_http11 on #gunakan ini untuk internal proxy
    icp_port 0   #gunakan ini jika bukan untuk internal proxy
    
    pid_filename /var/run/squid.pid
    coredump_dir /var/spool/squid/
    error_directory /usr/share/squid/errors/English
    icon_directory /usr/share/squid/icons
    mime_table /usr/share/squid/mime.conf
    
    maximum_object_size_in_memory 64 KB
    memory_replacement_policy heap GDSF
    cache_replacement_policy heap LFUDA
    maximum_object_size 512 MB
    cache_swap_low 97%
    cache_swap_high 99%
    
    cache_dir aufs /cache0 44400 48 256
    cache_dir aufs /cache1 44400 48 256
    cache_dir aufs /cache2 44400 48 256
    cache_dir aufs /cache3 44400 48 256
    
    access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_log /dev/null
    cache_store_log /dev/null
    
    redirect_rewrites_host_header off
    
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl SSL_ports port 443 563 # https, snews
    acl SSL_ports port 873 # rsync
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 563 # https, snews
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl Safe_ports port 631 # cups
    acl Safe_ports port 873 # rsync
    acl Safe_ports port 901 # SWAT
    
    acl CONNECT method CONNECT
    acl dynamic urlpath_regex cgi-bin \?
    
    acl all src 0.0.0.0/0
    acl network src 192.168.1.0/24  #sesuaikan dengan IP LAN juragan
    acl network src 192.168.7.252/30  #sesuaikan Dengan IP PROXY juragan
    acl network src 10.5.50.240/28 #Sesuaikan dengan IP HOTSPOT JURAGAN jika tidak ada di buang aja
    
    http_access allow manager
    http_access allow localhost
    http_access allow network
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny all
    http_reply_access allow all
    http_gzip on
    http_gzip_types text/plain,text/html,text/xml,text/css,application/xml,application/xhtml+xml,application/rss+xml,application/javascript,application/x-javascript
    
    snmp_port 3401
    acl snmppublic snmp_community public
    snmp_access allow snmppublic all
    
    #Dynamic Contain
    acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) 
    acl store_rewrite_list urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
    acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
    acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
    acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
    acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.com 
    acl store_rewrite_list_domain_CDN url_regex photos-[a-z].ak.fbcdn.net 
    acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* 
    acl store_rewrite_list_domain_CDN url_regex ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) 
    acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ 
    acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.co(m|\.id)  
    acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? \.doubleclick\.net.* yieldmanager cpxinteractive  quantserve\.com
    
    acl dontrewrite url_regex yimg.com  redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\? threadless.*\.jpg\?r=
    acl getmethod method GET
    
    storeurl_access deny dontrewrite
    storeurl_access deny !getmethod
    
    storeurl_access allow store_rewrite_list_domain_CDN
    storeurl_access allow store_rewrite_list
    storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
    storeurl_access deny all
    storeurl_rewrite_program /etc/squid/storeurl.pl
    storeurl_rewrite_children 1
    storeurl_rewrite_concurrency 99
    
    max_stale 2 years
    acl QUERY urlpath_regex -i \.(ini|ui|lst|inf|pak|ver|patch)$
    acl QUERY urlpath_regex -i (dat.asp|afs.dat|notice.swf|patchlist.txt|hackshield|captcha|reset.css|update.ver|notice.html|updates.txt|gamenotice)
    cache deny QUERY
    
    refresh_pattern -i  \.(sc-|dl-|ex-|mh-|mst|dll)$                0  20% 0
    refresh_pattern -i (main.exe|notice.html)$                      0  20% 0
    refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0  20% 0
    refresh_pattern .speedtest.* 0 60% 10 negative-ttl=0
    
    refresh_pattern (get_video|videoplayback|videodownload|\.flv).*(begin|start)\=[1-9][0-9]*       0 0% 0
    refresh_pattern imeem.*\.flv  0 0% 0  override-lastmod override-expire
    refresh_pattern ^ftp: 40320     20%     40320   override-expire reload-into-ims store-stale
    refresh_pattern ^gopher:        1440    0%      1440
    refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0  20% 0
    
    #speedtest
    #refresh_pattern .speedtest.* 0 60% 10 negative-ttl=0
    refresh_pattern speedtest.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png|swf|txt|js) 0 50% 180 store-stale negative-ttl=0
    
    
    #ads
    refresh_pattern ^.*safebrowsing.*google   131400 999999% 525600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
    refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 5259487 20% 5259487 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=1440
    
    #antivirus
    refresh_pattern avast.com.*\.vpx   40320 50% 525600 store-stale reload-into-ims
    refresh_pattern (avgate|avira).*\.(idx|gz)$  1440 90% 1440  ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate 
    refresh_pattern kaspersky.*\.avc$  131400 999999% 525600 ignore-reload store-stale
    refresh_pattern kaspersky  1440 50% 131400 ignore-no-cache store-stale
    refresh_pattern .symantecliveupdate.com.*\.zip  1440 90% 131400 ignore-must-revalidate store-stale
    refresh_pattern .update.nai.com/.*\.(gem|zip|mcs) 43800 999999% 43800   ignore-reload store-stale ignore-must-revalidate
    refresh_pattern .symantec.com.*\(exe|zip) 43800 999999% 43800   ignore-reload store-stale  ignore-must-revalidate
    refresh_pattern ^http://file.pb.gemscool.com.*\.zip 131400 999999% 131400 override-expire store-stale
    refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|mov|mkv|cab|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims  ignore-reload override-expire ignore-no-cache ignore-no-store  ignore-private  store-stale ignore-auth
    
    refresh_pattern .kaskus.us.*\.(jpg|gif|png) 1440 60% 131400 override-expire store-stale
    
    #fb
    refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(png|gif) 1440 60% 525600 override-expire store-stale
    refresh_pattern .fbcdn.net.*\.(jpg|gif|png)  1440 60% 131400 ignore-no-cache override-expire ignore-reload store-stale negative-ttl=0
    
    
    #images facebook
    refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    
    # games facebook
    refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern -i \.zynga.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
    refresh_pattern -i \.farmville.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
    refresh_pattern -i \.ninjasaga.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
    refresh_pattern -i \.mafiawars.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
    refresh_pattern -i \.crowdstar.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
    refresh_pattern -i \.popcap.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
    
    #banner IIX
    refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern ^http:\/\/ads(1|2|3).kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
    
    #IIX DOWNLOAD
    refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale ignore-auth
    
    # ANTI VIRUS
    refresh_pattern avast.com.*\.vpx 40320 50% 161280 store-stale reload-into-ims
    refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
    refresh_pattern kaspersky.*\.avc$ 5259487 999999% 5259487 ignore-reload store-stale
    refresh_pattern kaspersky 1440 50% 161280 ignore-no-cache store-stale
    refresh_pattern mbamupdates.com.*\.ref 1440 50% 161280 reload-into-ims store-stale
    
    #specific sites
    refresh_pattern \.rapidshare.*\/[0-9]*\/.*\/[^\/]* 131400 90% 525600 ignore-reload store-stale
    refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 131400 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
    refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 525600 99999999% 525600 override-expire ignore-reload ignore-no-cache ignore-must-revalidate ignore-private store-stale negative-ttl=0
    refresh_pattern \.(ico|video-stats)  525600 999999% 525600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
    refresh_pattern \.etology\?   525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern galleries\.video(\?|sz)   525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern brazzers\?   525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern \.adtology\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
    
    refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 131400 999999% 525600 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
    refresh_pattern ytimg\.com.*\.(jpg|png) 525600 999999% 525600 override-expire ignore-reload store-stale
    refresh_pattern images\.friendster\.com.*\.(png|gif)  131400 999999% 525600 override-expire ignore-reload store-stale
    refresh_pattern garena\.com  525600 999999% 525600 override-expire reload-into-ims store-stale
    refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)  525600 999999% 525600 override-expire ignore-reload store-stale
    refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\?  525600 999999% 525600 ignore-no-cache override-expire override-lastmod store-stale
    refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\.  131400 999999% 525600 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
    refresh_pattern ^http:\/\/www.onemanga.com.*\/   525600 999999% 525600 reload-into-ims override-expire store-stale
    refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)  131400 999999% 525600 reload-into-ims override-expire ignore-private store-stale
    refresh_pattern  \.macromedia.com.*\.(z|exe|cab)  131400 999999%  525600 ignore-reload override-expire  store-stale
    
    #general
    refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 131400 999999% 525600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale
    refresh_pattern \.(z(ip|[0-9]{2})|r(ar|[0-9]{2})|jar|bz2|gz|tar|rpm|vpu)  131400 999999% 525600 override-expire ignore-no-cache reload-into-ims
    refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape)   131400 999999% 525600 override-expire reload-into-ims ignore-reload
    refresh_pattern \.(exe|msi|dmg|bin|xpi|iso|swf|mar|psf|cab|mar)  131400 999999% 525600 override-expire reload-into-ims ignore-no-store ignore-no-cache ignore-must-revalidate
    refresh_pattern \.(mkv|mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2)  525600 9999999% 525600 ignore-must-revalidate ignore-private ignore-no-cache override-expire reload-into-ims
    refresh_pattern -i (cgi-bin) 0 0% 0
    refresh_pattern \.(php|jsp|cgi|asx)\? 0 0% 0
    refresh_pattern . 0 50% 525600 store-stale
    header_access X-Forwarded-For deny all
    
    fqdncache_size 4096
    ipcache_low 98
    ipcache_high 99
    quick_abort_min 0
    quick_abort_max 0
    quick_abort_pct 95
    shutdown_lifetime 10 seconds
    memory_pools off
    buffered_logs off
    log_icp_queries off
    logfile_rotate 1
    log_fqdn off
    forwarded_for off
    icp_hit_stale on
    query_icmp on
    reload_into_ims on
    emulate_httpd_log off
    negative_ttl 2 minutes
    pipeline_prefetch on
    vary_ignore_expire on
    half_closed_clients off
    high_page_fault_warning 2
    nonhierarchical_direct on
    prefer_direct off
    cache_mgr gressnet929@gmail.com
    cache_effective_user proxy
    cache_effective_group proxy
    visible_hostname SpeedProxy
    unique_hostname MyHigh-Proxy
    cachemgr_passwd none all
    client_db on
    max_filedescriptors 8192
    n_aiops_threads 24
    load_check_stopen on
    load_check_stcreate on
    download_fastest_client_speed on
    
    # TAG: ZPH
    zph_mode tos
    zph_local 0x30
    zph_parent 0
    zph_option 136
    
    acl blockweb dstdomain .windowsupdate.com
    #acl blockweb url_regex -i (isikan keyword)
    http_access deny blockweb


    dan storeurl.pl saya ;
     

    Code:
    #!/usr/bin/perl
    # $Rev$
    # by chudy_fernandez@yahoo.com
    # rev by ucok_karnadi@yahoo.com
    # rev date 02/04/2012
    # visit my facebook account http://www.facebook.com/stressss
    
    $|=1;
    while (<>) {
        @X = split;
    #       $X[1] =~ s/&sig=.*//;
            $x = $X[0] . " ";
            $_ = $X[1];
            $u = $X[1];
    
                            #photos-X.ak.fbcdn.net where X a-z
    if (m/^http:\/\/photos-[a-z]?(.ak.fbcdn.net.*)/) {
            print $x . "http://photos" . $1  . "\n";
    
    			# photo
    } elsif (m/^http:\/\/photos-ash[1-5]?(.fbcdn.net.*)/) {
            print $x . "http://ash.photos" . $1  . "\n";
    	
                           #photos.ak.fbcdn.net where X i(0-9)
                            #a5.sphotos.ak.fbcdn.ne
    } elsif (m/^http:\/\/[a-z][0-9]?.(sphotos.ak.fbcdn.net.*)/) {
            print $x . "http://cdn.photos" . $1  . "\n";
    
    			#BLOGSPOT
    } elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
            print $x . "http://blog-cdn." . $1  . "\n";
    
                             #AVAST
    } elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
              print $x . "http://avast-cdn." . $1  .  "\n";
    
                             #KAV
    } elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
              print $x . "http://kav-cdn." . $1  .  "\n";
    
                             #AVG
    } elsif (m/^http:\/\/update.avg.com/) {
              print $x . "http://avg-cdn." . $1  .  "\n";
    
                            #maps.google.com
    } elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
            print $x . "http://" . $1  . $2 . "\n";
    
                            #gstatic and/or wikimapia
    } elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
            print $x . "http://" . $1  . $2 . "\n";
    
                            #maps.google.com
    } elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
            print $x . "http://" . $1  . $2 . "\n";
            
    		#ini untuk cache partial
    } elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(id=[a-zA-Z0-9]*).*?\&(range=[0-9]*).*/) {
            print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . $3 . "\n";
    
    		# compatibility for old cached get_video?video_id
    } elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) {
            $z = $2; $z =~ s/video_id=/get_video?video_id=/;
            print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $z . "\n";
            
                            # youtube All itag (semua resolusi)
    } elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(itag=[0-9]*).*?\&(id=[a-zA-Z0-9]*).*/) {
            print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . "&" . $3 . "\n";
    
                            # youtube All itag (semua resolusi) posisi kebalikan
    } elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(id=[a-zA-Z0-9]*).*?\&(itag=[0-9]*).*/) {
            print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $3 . "&" . $2 . "\n";
    
    			#Google
    } elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
            print $x . "http://www.google-analytics.com/__utm.gif\n";
    
                            #Cache High Latency Ads
    } elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
            $y = $3;$z = $2;
            for ($y) {
            s/pixel;.*/pixel/;
            s/activity;.*/activity/;
            s/(imgad[^&]*).*/\1/;
            s/;ord=[?0-9]*//;
            s/;&timestamp=[0-9]*//;
            s/[&?]correlator=[0-9]*//;
            s/&cookie=[^&]*//;
            s/&ga_hid=[^&]*//;
            s/&ga_vid=[^&]*//;
            s/&ga_sid=[^&]*//;
            # s/&prev_slotnames=[^&]*//
            # s/&u_his=[^&]*//;
            s/&dt=[^&]*//;
            s/&dtd=[^&]*//;
            s/&lmt=[^&]*//;
            s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
            s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
            s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
            s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
            s/[;&?]ord=[?0-9]*//;
            s/[;&]mpvid=[^&;]*//;
            s/&xpc=[^&]*//;
            # yieldmanager
            s/\?clickTag=[^&]*//;
            s/&u=[^&]*//;
            s/&slotname=[^&]*//;
            s/&page_slots=[^&]*//;
            }
            print $x . "http://" . $1 . $2 . $y . "\n";
    
                            #cache high latency ads
    } elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
            print $x . "http://" . $1 . "/" . $2  . "\n";
    
    } elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
            print $x . "http://" . $1 . "\n";
    
                            #cdn, varialble 1st path
    } elsif (($u =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
            @y = ($1,$2,$4,$5);
            $y[0] =~ s/[a-z0-9]{2,5}/cdn./;
            print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";
    
                            #rapidshare
    } elsif (($u =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
            print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";
    
    } elsif (($u =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
            print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";
            
                            #domain/path/.*/path/filename
    } elsif (($u =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
            @y = ($1,$2,$4,$5,$6);
            $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
            print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\n";
    
                            #like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
    } elsif (($u =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
            print $x . "http://cdn." . $4 . $6 . "\n";
    
                            #for yimg.com video
    } elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
            print $x . "http://cdn.yimg.com//" . $3 . "\n";
            
                            #for yimg.com doubled
    } elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
            print $x . "http://cdn.yimg.com/"  . $3 . "\n";
    
                            #for yimg.com with &sig=
    } elsif (m/^http:\/\/([^\.]*)\.yimg\.com\/(.*)/) {
            @y = ($1,$2);
            $y[0] =~ s/[a-z]+([0-9]+)?/cdn/;
            $y[1] =~ s/&sig=.*//;
            print $x . "http://" . $y[0] . ".yimg.com/"  . $y[1] . "\n";
                            
                            #youjizz. We use only domain and filename
    } elsif (($u =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
            @y = ($1,$2,$4,$5);
            $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
            print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";
    
                            #general purpose for cdn servers. add above your specific servers.
    } elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
            print $x . "http://squid-cdn-url//" . $2  . "." . $3 . "\n";
    
                            # spicific extention
    # } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
            # @y = ($1,$2);
            # $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
            # print $x . "http://" . $y[0] . "." . $y[1] . "\n";
    
                            #generic http://variable.domain.com/path/filename."ex", "ext" or "exte"
                            #http://cdn1-28.projectplaylist.com
                            #http://s1sdlod041.bcst.cdn.s1s.yimg.com
    } elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
            @y = ($1,$2,$3,$4);
            $y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
            print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";
    
                            # all that ends with ;
    } elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
            print $x . "http://" . $1 . "/" . $2  . "\n";
    
    } else {
            print $x . $_ . "\n";
    }
    }


    setelah saya pakai (jalankan), kok jadi lemot banget ya .... dan anehnya lagi ada beberapa yang loading inetnya cepet!! ini yang salah konfigurasi squid.conf atau apanya ya ... Click here to enlarge

    berikut skinsyut proxy log;
     

    Click here to enlarge


    Click here to enlarge
    Last edited by tobee_blackart; 13-04-2012 at 15:57.

  2. #2
    Status
    Offline
    zdienos's Avatar
    Forum Guru
    Join Date
    Feb 2010
    Location
    ~/makasar
    Posts
    1,252
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    kalo gak pake proxy, apakah gak lemot ??
    sekalian :
    - paparin topologinya dulu
    - limiter nya mungkin ??


    CMIIW
    Last edited by zdienos; 13-04-2012 at 15:07.

  3. #3
    Status
    Offline
    dhopack's Avatar
    Forum Guru
    Join Date
    Dec 2010
    Posts
    1,919
    Reviews
    Read 0 Reviews
    Downloads
    2
    Uploads
    0
    Feedback Score
    0
    mau coba nambahi sedikit selain yang disarankan oleh om zdienos, cek juga lewat squidclient mgr:info untuk melihat performa dari squid,

  4. #4
    Status
    Offline
    ucok_karnadi's Avatar
    ..:: Masih Bodoh ::..
    Join Date
    Jan 2009
    Location
    PATI - JAWA TENGAH
    Posts
    1,178
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge hmmmm mau kasih nilai berapa yach............
    saya kasih nilai 100 dari 100 dengan tertinggi 100 dech Click here to enlarge
    maklum saya juga masih belum begitu ngerti Click here to enlarge
    ___________________________________________


  5. #5
    Status
    Offline
    tobee_blackart's Avatar
    Baru Gabung
    Join Date
    Jan 2011
    Location
    English Villages
    Posts
    9
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by zdienos Click here to enlarge
    kalo gak pake proxy, apakah gak lemot ??
    sekalian :
    - paparin topologinya dulu
    - limiter nya mungkin ??


    CMIIW
    kalo gak pake proxy, lebih cepet daripada pake proxy
    topologinya
    mikrotik sejajar dengan proxy om ....

    MODEM ----- mikrotik -----switch ----- klient
    -----------------|------------------------
    -------------proxy ubuntu ---------------

    kalo masalah limiter, saya rasa tidak, soalnya pas saya pakai di hotspot (tanpa limiter) dan saya gunakan di mobile yg saya pakai sendiri itu tetep lemot
    saya cek log nya banyak yang miss --> TCP_MISS gitu

    Click here to enlarge

    ---------- Post added at 14:53 ---------- Previous post was at 14:47 ----------

    Click here to enlarge Originally Posted by ucok_karnadi Click here to enlarge
    Click here to enlarge hmmmm mau kasih nilai berapa yach............
    saya kasih nilai 100 dari 100 dengan tertinggi 100 dech Click here to enlarge
    maklum saya juga masih belum begitu ngerti Click here to enlarge
    nilai apa om !?!?!

    btw itu storeurl dari anda itu ... hehe
    tolong dibantu ya .... Click here to enlarge

  6. #6
    Status
    Offline
    zdienos's Avatar
    Forum Guru
    Join Date
    Feb 2010
    Location
    ~/makasar
    Posts
    1,252
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by ucok_karnadi Click here to enlarge
    Click here to enlarge hmmmm mau kasih nilai berapa yach............
    saya kasih nilai 100 dari 100 dengan tertinggi 100 dech Click here to enlarge
    maklum saya juga masih belum begitu ngerti Click here to enlarge
    salut dah buat bang ucok...

    ibarat kata, "merendah di atas bukit..."

    ---------- Post added at 16:23 ---------- Previous post was at 16:20 ----------

    Click here to enlarge Originally Posted by tobee_blackart Click here to enlarge
    kalo gak pake proxy, lebih cepet daripada pake proxy
    topologinya
    mikrotik sejajar dengan proxy om ....

    MODEM ----- mikrotik -----switch ----- klient
    -----------------|------------------------
    -------------proxy ubuntu ---------------

    kalo masalah limiter, saya rasa tidak, soalnya pas saya pakai di hotspot (tanpa limiter) dan saya gunakan di mobile yg saya pakai sendiri itu tetep lemot
    saya cek log nya banyak yang miss --> TCP_MISS gitu
    atau mungkin cobalah dulu sampai beberapa hari...
    - cek juga free RAM nya, jangan2 dah habis dimakan sama squid dan perl
    - yang bawah mungkin bisa minta cek yang lain...

  7. #7
    Status
    Offline
    kweteng's Avatar
    VIP Member
    Join Date
    Nov 2009
    Location
    batu wae
    Posts
    796
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    cache_dir aufs /cache0 44400 48 256
    cache_dir aufs /cache1 44400 48 256
    cache_dir aufs /cache2 44400 48 256
    cache_dir aufs /cache3 44400 48 256
    mang disknya 4 biji ?

  8. #8
    Status
    Offline
    uburcumi's Avatar
    :: Gw Banget Cing ::
    Join Date
    Jun 2009
    Location
    www.mikrotikservice.net
    Posts
    2,253
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    2 (100%)
    d geber dl hasil squidclient mgr:info dan config mikrotiknya krna config mkrotik jika slah mka proxy bisa mmbuat koneksi http jd lemot.

  9. #9
    Status
    Offline
    isin surisin's Avatar
    Baru Gabung
    Join Date
    Feb 2011
    Posts
    11
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    ijin nyimak ah......Click here to enlarge

  10. #10
    Status
    Offline
    Anto.PJ's Avatar
    Forum Guru
    Join Date
    May 2011
    Location
    macz
    Posts
    1,697
    Reviews
    Read 0 Reviews
    Downloads
    7
    Uploads
    0
    Feedback Score
    0
    BW nya agan memang berapa??

    jumlah klien, saat pengujian lemot tidaknya berapa??
    siapa tahu aja ada yang lagi download gila2an,,

  11. #11
    'Ian Wae
    'Ian Wae's Avatar
    cache_dir aufs /cache0 44400 48 256
    cache_dir aufs /cache1 44400 48 256
    cache_dir aufs /cache2 44400 48 256
    cache_dir aufs /cache3 44400 48 256


    klo mau juga,,
    cache_dir aufs /cache0 44400 105 256
    cache_dir aufs /cache1 44400 105 256
    cache_dir aufs /cache2 44400 105 256
    cache_dir aufs /cache3 44400 105 256

  12. #12
    Status
    Offline
    tobee_blackart's Avatar
    Baru Gabung
    Join Date
    Jan 2011
    Location
    English Villages
    Posts
    9
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by kweteng Click here to enlarge
    mang disknya 4 biji ?
    bukan 4 biji om, tp 4 partisi ... itu hddnya kn 250gb jd aku partisi jd 4 buat cache nya...
    kan katanya mending kecil2 tp banyak daripada gedhe tapi cuman 1 ... CMIIW

    sebenernya hasil skrinsut itu masih dihari pertamax, jd abis install, setting dikit, trus tk cobain ...

    ---------- Post added at 00:37 ---------- Previous post was at 00:34 ----------

    Click here to enlarge Originally Posted by Anto.PJ Click here to enlarge
    BW nya agan memang berapa??

    jumlah klien, saat pengujian lemot tidaknya berapa??
    siapa tahu aja ada yang lagi download gila2an,,
    BW ane 2MB om, klient ada 16 biji, sebelum pakai proxy gak terlalu lemot,[minimal gk sampai gk keluar gambarnya]
    soalnya kalo pakai proxy, kadang buka pesbuk gitu gambarnya gk keluar, jd kayak teks doank gitu

    ---------- Post added at 00:42 ---------- Previous post was at 00:37 ----------

    Click here to enlarge Originally Posted by uburcumi Click here to enlarge
    d geber dl hasil squidclient mgr:info dan config mikrotiknya krna config mkrotik jika slah mka proxy bisa mmbuat koneksi http jd lemot.
     


    raden@queenpro:~$ squidclient mgr:info
    HTTP/1.0 200 OK
    Server: Lusca/LUSCA_FMI
    Date: Sat, 14 Apr 2012 17:39:23 GMT
    Content-Type: text/plain
    Expires: Sat, 14 Apr 2012 17:39:23 GMT
    X-Cache: MISS from SpeedProxy
    X-Cache-Lookup: MISS from SpeedProxy:3128
    Via: 1.0 MyHigh-Proxy:3128 (Lusca/LUSCA_FMI)
    Connection: close

    Squid Object Cache: Version LUSCA_FMI
    Start Time: Fri, 13 Apr 2012 08:15:12 GMT
    Current Time: Sat, 14 Apr 2012 17:39:23 GMT
    Connection information for squid:
    Number of clients accessing cache: 3
    Number of HTTP requests received: 38872
    Number of ICP messages received: 0
    Number of ICP messages sent: 0
    Number of queued ICP replies: 0
    Number of HTCP messages received: 0
    Number of HTCP messages sent: 0
    Request failure ratio: 0.00
    Average HTTP requests per minute since start: 19.4
    Average ICP messages per minute since start: 0.0
    Select loop called: 3597913 times, 33.423 ms avg
    Cache information for squid:
    Request Hit Ratios: 5min: 16.7%, 60min: 19.7%
    Byte Hit Ratios: 5min: 47.6%, 60min: 56.6%
    Request Memory Hit Ratios: 5min: 100.0%, 60min: 11.0%
    Request Disk Hit Ratios: 5min: 0.0%, 60min: 18.7%
    Storage Swap size: 404916 KB
    Storage Mem size: 121072 KB
    Mean Object Size: 22.09 KB
    Requests given to unlinkd: 0
    Median Service Times (seconds) 5 min 60 min:
    HTTP Requests (All): 0.52331 0.32154
    Cache Misses: 0.55240 0.33943
    Cache Hits: 0.00000 0.00179
    Near Hits: 0.00000 0.32154
    Not-Modified Replies: 0.00000 0.00000
    DNS Lookups: 0.00000 0.00000
    ICP Queries: 0.00000 0.00000
    Resource usage for squid:
    UP Time: 120251.347 seconds
    CPU Time: 263.804 seconds
    CPU Usage: 0.22%
    CPU Usage, 5 minute avg: 0.02%
    CPU Usage, 60 minute avg: 0.22%
    Process Data Segment Size via sbrk(): 154840 KB
    Maximum Resident Size: 646736 KB
    Page faults with physical i/o: 0
    Memory usage for squid via mallinfo():
    Total space in arena: 154840 KB
    Ordinary blocks: 152993 KB 11806 blks
    Small blocks: 0 KB 0 blks
    Holding blocks: 4840 KB 2 blks
    Free Small blocks: 0 KB
    Free Ordinary blocks: 1846 KB
    Total in use: 157833 KB 99%
    Total free: 1846 KB 1%
    Total size: 159680 KB
    Memory accounted for:
    Total accounted: 140672 KB
    memPoolAlloc calls: 9068032
    memPoolFree calls: 8567390
    File descriptor usage for squid:
    Maximum number of file descriptors: 1024
    Largest file desc currently in use: 27
    Number of file desc currently in use: 24
    Files queued for open: 0
    Available number of file descriptors: 1000
    Reserved number of file descriptors: 100
    Store Disk files open: 0
    IO loop method: epoll
    Internal Data Structures:
    18530 StoreEntries
    15093 StoreEntries with MemObjects
    15092 Hot Object Cache Items
    18334 on-disk objects
    raden@queenpro:~$



    untuk hasil config mikrotik, yg bagian mananya ya (firewall kah atau queuenya kah) soalnya aku export semua trus tak tempel dimari, gak bisa Click here to enlarge

    mohon dikoreksi ya om, maaf nich saya blum paham masalah proxy jd gk bisa mengerti maksut dari hasil ini apa, :'(
    ini juga baru pertamax nyoba!

    Click here to enlarge
    Last edited by tobee_blackart; 15-04-2012 at 02:14.

  13. #13
    Status
    Offline
    kweteng's Avatar
    VIP Member
    Join Date
    Nov 2009
    Location
    batu wae
    Posts
    796
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by tobee_blackart Click here to enlarge
    bukan 4 biji om, tp 4 partisi ... itu hddnya kn 250gb jd aku partisi jd 4 buat cache nya...
    kan katanya mending kecil2 tp banyak daripada gedhe tapi cuman 1 ... CMIIW
    oh kalau gitu ya kenapa gak di buat 20 partisi saja sekalian, trs test buka situs enak gak Click here to enlarge

  14. The Following User Says Thank You to kweteng For This Useful Post:


  15. #14
    Status
    Offline
    Stillhard's Avatar
    Newbie
    Join Date
    Sep 2007
    Posts
    47
    Reviews
    Read 0 Reviews
    Downloads
    4
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by kweteng Click here to enlarge
    oh kalau gitu ya kenapa gak di buat 20 partisi saja sekalian, trs test buka situs enak gak Click here to enlarge
    apakah dengan cara ini bisa membuat situs yang bergambar wanita berbusana jadi terlihat tanpa busana? Click here to enlarge

  16. #15
    Status
    Offline
    Anto.PJ's Avatar
    Forum Guru
    Join Date
    May 2011
    Location
    macz
    Posts
    1,697
    Reviews
    Read 0 Reviews
    Downloads
    7
    Uploads
    0
    Feedback Score
    0
    apa saat penginstalan g ada masalah??

    http_port 3128 transparent
    cache_mem 1664 MB
    server_http11 on #gunakan ini untuk internal proxy
    icp_port 0 #gunakan ini jika bukan untuk internal proxy

    pid_filename /var/run/squid.pid
    coredump_dir /var/spool/squid/
    error_directory /usr/share/squid/errors/English
    icon_directory /usr/share/squid/icons
    mime_table /usr/share/squid/mime.conf

    maximum_object_size_in_memory 64 KB
    memory_replacement_policy heap GDSF
    cache_replacement_policy heap LFUDA
    maximum_object_size 512 MB
    kayaknya ada beberapa opsi yang hilang deh..

    cache_mem 1 GB
    maximum_object_size_in_memory 1 MB
    minimum_object_size 0 bytes
    maximum_object_size 5 GB
    memory_replacement_policy heap GDSF
    cache_replacement_policy heap LFUDA
    cache_swap_low 98
    cache_swap_high 99
    Nilainya asal aja.. jangan di ikuti ya??
    piss.. ahahahahah
    Last edited by Anto.PJ; 19-04-2012 at 03:41.

 

 
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [ask] isi squid conf ane
    By sufandi in forum Linux Support
    Replies: 12
    Last Post: 21-01-2013, 12:00
  2. Tanya besaran cache di squid.conf squid proxy
    By bontot68 in forum Linux Support
    Replies: 14
    Last Post: 05-05-2012, 11:28
  3. Mohon koreksinya Para Suhu ... squid.conf
    By denrama in forum Linux Support
    Replies: 9
    Last Post: 02-03-2012, 14:00
  4. Tolong Koreksi My Squid.Conf dengen HDD 250GB DDR 1GB
    By smithmario in forum Linux Support
    Replies: 12
    Last Post: 05-04-2010, 23:36
  5. [HELP] Analisa squid.conf
    By sibesar in forum General Networking
    Replies: 0
    Last Post: 27-01-2009, 21:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •