Follow us on...
Follow us on G+ Follow us on Twitter Follow us on Facebook Watch us on YouTube
Register
Results 1 to 9 of 9
  1. #1
    Status
    Offline
    ahendra's Avatar
    Baru Gabung
    Join Date
    Jun 2011
    Posts
    4
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0

    masalah pada pembuatan proxy

    ni saya newby abis gan, bener2 super newby ceritanya saya coba buat proxy, untuk langkah instalasi package2 sampe compile semua berjalan lancar, nah untuk langkah kedepannya tersendat ketika mau edit squid kan itu musti di stop dlu, tapi kenapa ya perintah sudo /etc/init.d/squid stop gak bisa. padahal saya dah kopas script di bawah ini:
    #! /bin/sh
    #
    # squid Startup script for the SQUID HTTP proxy-cache.
    #
    # Version: @(#)squid.rc 2.20 01-Oct-2001 miquels@cistron.nl
    #
    ### BEGIN INIT INFO
    # Provides: squid
    # Required-Start: $local_fs $network
    # Required-Stop: $local_fs $network
    # Should-Start: $named
    # Should-Stop: $named
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Squid HTTP Proxy
    ### END INIT INFO


    NAME=squid
    DAEMON=/usr/sbin/squid
    LIB=/usr/lib/squid
    PIDFILE=/var/run/$NAME.pid
    SQUID_ARGS="-D -YC"


    [ ! -f /etc/default/squid ] || . /etc/default/squid


    . /lib/lsb/init-functions


    PATH=/bin:/usr/bin:/sbin:/usr/sbin


    [ -x $DAEMON ] || exit 0


    grepconf () {
    w=" " # space tab
    sq=/etc/squid/squid.conf
    # sed is cool.
    res=`sed -ne '
    s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
    t end;
    d;
    :end q' < $sq`
    [ -n "$res" ] || res=$2
    echo "$res"
    }
    Click here to enlargeClick here to enlarge























    ,

  2. #2
    Status
    Offline
    tyang_dusun's Avatar
    Member Super Senior
    Join Date
    Jun 2008
    Location
    Klaten, Jawa Tengah, Indonesia, Indonesia
    Posts
    522
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    ini pake apa dul OS nya klo ubuntu

    copas aj ini ...

    Code:
    #! /bin/sh
    #
    # squid		Startup script for the SQUID HTTP proxy-cache.
    #
    # Version:	@(#)squid.rc  2.20  01-Oct-2001  miquels@cistron.nl
    #
    ### BEGIN INIT INFO
    # Provides:          squid
    # Required-Start:    $network $remote_fs $syslog
    # Required-Stop:     $network $remote_fs $syslog
    # Should-Start:      $named
    # Should-Stop:       $named
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Squid HTTP Proxy
    ### END INIT INFO
    
    NAME=squid
    DAEMON=/usr/sbin/squid
    LIB=/usr/lib/squid
    PIDFILE=/var/run/$NAME.pid
    SQUID_ARGS="-D -YC"
    
    [ ! -f /etc/default/squid ] || . /etc/default/squid
    
    . /lib/lsb/init-functions
    
    PATH=/bin:/usr/bin:/sbin:/usr/sbin
    
    [ -x $DAEMON ] || exit 0
    
    grepconf () {
    	w=" 	" # space tab
    	sq=/etc/squid/squid.conf
    	# sed is cool.
    	res=`sed -ne '
    		s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
    		t end;
    		d;
    		:end q' < $sq`
    	[ -n "$res" ] || res=$2
    	echo "$res"
    }
    
    grepconf2 () {
    	w=" 	" # space tab
    	sq=/etc/squid/$NAME.conf
    	# sed is cool.
    	res=`sed -ne '
    		s/^'$1'['"$w"']\+[^'"$w"']\+['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
    		t end;
    		d;
    		:end q' < $sq`
    	[ -n "$res" ] || res=$2
    	echo "$res"
    }
    
    #
    #	Try to increase the # of filedescriptors we can open.
    #
    maxfds () {
    	[ -n "$SQUID_MAXFD" ] || return
    	[ -f /proc/sys/fs/file-max ] || return 0
    	global_file_max=`cat /proc/sys/fs/file-max`
    	minimal_file_max=$(($SQUID_MAXFD + 4096))
    	if [ "$global_file_max" -lt $minimal_file_max ]
    	then
    		echo $minimal_file_max > /proc/sys/fs/file-max
    	fi
    	ulimit -n $SQUID_MAXFD
    }
    
    start () {
    	cdr=`grepconf2 cache_dir /var/spool/$NAME`
    	ctp=`grepconf cache_dir ufs`
    
    	case "$cdr" in
    		[0-9]*)
    			log_failure_msg "squid: squid.conf contains 2.2.5 syntax - not starting!"
    			log_end_msg 1
    			exit 1
    			;;
    	esac
    	
    	#
        # Create spool dirs if they don't exist.
        #
    	if [ -d "$cdr" -a ! -d "$cdr/00" ] || [ "$ctp" = "coss" -a ! -w "$cdr" ]
    	then
    		log_warning_msg "Creating squid cache structure"
    		$DAEMON $SQUID_ARGS -z
    	fi
    
    	if [ "$CHUID" = "" ]; then
    		CHUID=root
    	fi
    
    	maxfds
    	umask 027
    	start-stop-daemon --quiet --start \
    		--pidfile $PIDFILE \
    		--chuid $CHUID \
    		--exec $DAEMON -- $SQUID_ARGS < /dev/null
    	return $?
    }
    
    stop () {
    	PID=`cat $PIDFILE 2>/dev/null`
    	start-stop-daemon --stop --quiet --pidfile $PIDFILE --name squid
    	#
    	#	Now we have to wait until squid has _really_ stopped.
    	#
    	sleep 2
    	if test -n "$PID" && kill -0 $PID 2>/dev/null
    	then
    		log_action_begin_msg " Waiting"
    		cnt=0
    		while kill -0 $PID 2>/dev/null
    		do
    			cnt=`expr $cnt + 1`
    			if [ $cnt -gt 24 ]
    			then
    				log_action_end_msg 1
    				return 1
    			fi
    			sleep 5
    			log_action_cont_msg ""
    		done
    		log_action_end_msg 0
    		return 0
    	else
    		return 0
    	fi
    }
    
    case "$1" in
        start)
    	log_daemon_msg "Starting Squid HTTP proxy" "squid"
    	if start ; then
    		log_end_msg $?
    	else
    		log_end_msg $?
    	fi
    	;;
        stop)
    	log_daemon_msg "Stopping Squid HTTP proxy" "squid"
    	if stop ; then
    		log_end_msg $?
    	else
    		log_end_msg $?
    	fi
    	;;
        reload|force-reload)
    	log_action_msg "Reloading Squid configuration files"
    	$DAEMON -k reconfigure
    	log_action_end_msg 0
    	;;
        restart)
    	log_daemon_msg "Restarting Squid HTTP proxy" "squid"
    	stop
    	if start ; then
    		log_end_msg $?
    	else
    		log_end_msg $?
    	fi
    	;;
        status)
    	status_of_proc -p "$PIDFILE" "$DAEMON" squid && exit 0 || exit $?
    	;;
        *)
    	echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart|status}"
    	exit 3
    	;;
    esac
    
    exit 0

  3. #3
    Status
    Offline
    karaeng's Avatar
    VIP Member
    Join Date
    Jun 2010
    Posts
    958
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by ahendra Click here to enlarge
    ni saya newby abis gan, bener2 super newby ceritanya saya coba buat proxy, untuk langkah instalasi package2 sampe compile semua berjalan lancar, nah untuk langkah kedepannya tersendat ketika mau edit squid kan itu musti di stop dlu, tapi kenapa ya perintah sudo /etc/init.d/squid stop gak bisa. padahal saya dah kopas script di bawah ini:
    #! /bin/sh
    #
    # squid Startup script for the SQUID HTTP proxy-cache.
    #
    # Version: @(#)squid.rc 2.20 01-Oct-2001 miquels@cistron.nl
    #
    ### BEGIN INIT INFO
    # Provides: squid
    # Required-Start: $local_fs $network
    # Required-Stop: $local_fs $network
    # Should-Start: $named
    # Should-Stop: $named
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Squid HTTP Proxy
    ### END INIT INFO


    NAME=squid
    DAEMON=/usr/sbin/squid
    LIB=/usr/lib/squid
    PIDFILE=/var/run/$NAME.pid
    SQUID_ARGS="-D -YC"


    [ ! -f /etc/default/squid ] || . /etc/default/squid


    . /lib/lsb/init-functions


    PATH=/bin:/usr/bin:/sbin:/usr/sbin


    [ -x $DAEMON ] || exit 0


    grepconf () {
    w=" " # space tab
    sq=/etc/squid/squid.conf
    # sed is cool.
    res=`sed -ne '
    s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
    t end;
    d;
    :end q' < $sq`
    [ -n "$res" ] || res=$2
    echo "$res"
    }
    Click here to enlargeClick here to enlarge























    ,
    klo menggunakan ubuntu :
    chmod +x /etc/init.d/squid

  4. #4
    Status
    Offline
    ahendra's Avatar
    Baru Gabung
    Join Date
    Jun 2011
    Posts
    4
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0

    Dah bisa Stop Squid

    squid dah bisa di stop gan pake script yang agan post dan saya mulau edit squid dengan kopas dari tutor yang isinya seperti ini di bawah ini tapi pas squid dah di restart gak jalan squid nya, untuk NAT dari dah saya buatkan dan sebelumnya lancar2 aj ni skrip yang di kopas:
    Untuk IP yang mengarah ke klient=192.168.7.0/24
    IP proxy=192.168.2.2 dan IP dan IP gatway proxy ke mikrotik 192.168.2.1 maka saya kpas seperti di bawah ini gan:
    ##start of config
    http_port 3128 transparent
    server_http11 on
    icp_port 0

    # File Squid
    pid_filename /var/run/squid.pid
    coredump_dir /var/spool/squid/
    error_directory /usr/share/squid/errors/en/
    icon_directory /usr/share/squid/icons
    mime_table /usr/share/squid/mime.conf
    visible_hostname beben-dayak

    # Log Squid
    access_log /var/log/squid/access.log
    cache_log /dev/null
    cache_store_log /dev/null

    # Beberapa log yg tidak signifikan karena opsi2-nya jarang digunakan.
    log_fqdn off
    log_icp_queries off
    buffered_logs off
    emulate_httpd_log off

    ftp_list_width 32
    ftp_passive on
    ftp_sanitycheck on

    acl localnet src 192.168.7.0/24
    acl localnet src src 192.168.2.0/24
    uri_whitespace strip

    #DNS NAMESERVER
    dns_nameservers 192.168.2.1

    cache_mem 8 MB
    maximum_object_size_in_memory 100 bytes
    memory_replacement_policy heap GDSF
    cache_replacement_policy heap LFUDA

    cache_dir aufs /cache 30000 70 256

    minimum_object_size 0 bytes
    maximum_object_size 512 MB
    offline_mode off
    cache_swap_low 98
    cache_swap_high 99

    # Setup some default acls
    acl all src 0.0.0.0/0
    acl localhost src 127.0.0.1/32
    acl safeports port 21 70 80 81 210 280 443 488 563 591 631 777 901 3128 1025-65535
    acl sslports port 443 563 81
    acl manager proto cache_object
    acl purge method PURGE
    acl connect method CONNECT
    acl dynamic urlpath_regex cgi-bin \?
    http_access allow manager localhost
    http_access deny manager
    http_access allow purge localhost
    http_access deny purge
    http_access deny !safeports
    http_access deny CONNECT !sslports
    # Always allow localhost connections
    http_access allow localhost

    # Allow local network(s) on interface(s)
    http_access allow localnet

    # Default block all to be sure
    http_access deny all
    header_access X-Forwarded-For deny all
    #follow_x_forwarded_for allow localnet
    #follow_x_forwarded_for allow localhost
    #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

    tcp_outgoing_tos 0x30 localnet
    zph_mode tos
    zph_local 0x30
    zph_parent 0
    zph_option 136

    # DELAY POLL

    #acl admin src 192.168.7.2-192.168.7.254
    #acl management src 192.168.1.2-192.168.1.254

    #acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.dat$ \.mpe$ \.mid$ \.flv$ \.3gp$
    #acl download url_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$
    #acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.mp2$ \.mpa$ \.wax$
    #acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$
    #acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$
    #acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$ \.mkv$

    #delay_pools 2

    #delay_class 1 1
    #delay_parameters 1 -1/-1
    #delay_access 1 allow admin
    #delay_access 1 allow admin management
    #delay_access 1 deny all

    #delay_class 2 1
    #delay_parameters 2 40000/5000000
    #delay_access 2 allow download
    #delay_access 2 deny all

    # Caching Youtube
    acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
    acl videocache_allow_url url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
    acl videocache_allow_url url_regex -i \.youporn\.com\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
    acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
    acl videocache_allow_url url_regex -i \.break\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i redtube\.com\/(.*)\.flv
    acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
    acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
    acl dontrewrite url_regex redbot\.org \.php
    acl getmethod method GET

    storeurl_access deny dontrewrite
    storeurl_access deny !getmethod
    storeurl_access deny videocache_deny_dom
    storeurl_access allow videocache_allow_url
    storeurl_access allow videocache_allow_dom
    storeurl_access deny all

    storeurl_rewrite_program /etc/squid/storeurl.pl
    storeurl_rewrite_children 7
    storeurl_rewrite_concurrency 10

    # 1 year = 525600 mins, 1 month = 43200 mins, 1 day = 1440

    refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv ?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
    refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|v ideodownload\?|\.flv?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
    refresh_pattern \.(ico|video-stats) 43200 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 \.etology\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern galleries\.video(\?|sz) 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern brazzers\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern \.adtology\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.co ntextweb\.com|bstats\.adbrite\.com|a1\.interclick\ .com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtend media\.com|\.googlesyndication\.com|advertising\.c om|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\. com|doubleclick\.net|adserving\.cpxinteractive\.co m|syndication\.com|media.fastclick.net).* 43200 20% 43200 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=10
    refresh_pattern ^.*safebrowsing.*google 43200 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
    refresh_pattern ^)[0-9]?)\.google\.co(m|\.uk) 43200 999999% 43200 override-expire ignore-reload ignore-private store-stale negative-ttl=10080
    refresh_pattern ytimg\.com.*\.jpg 43200 999999% 43200 override-expire ignore-reload store-stale
    refresh_pattern images\.friendster\.com.*\.(png|gif) 43200 999999% 43200 override-expire ignore-reload store-stale
    refresh_pattern garena\.com 43200 999999% 43200 override-expire reload-into-ims store-stale
    refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 override-expire ignore-reload store-stale
    refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 43200 999999% 43200 ignore-no-cache override-expire override-lastmod store-stale
    refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 reload-into-ims override-expire ignore-private store-stale
    refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
    refresh_pattern ^http:\/\/www.onemanga.com.*\/ 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
    refresh_pattern ^[a-zA-Z0-9]) 43200 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

    # 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

    refresh_pattern windowsupdate.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
    refresh_pattern update.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
    refresh_pattern download.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale

    #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

    #All File
    #refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
    #refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj| lha|lzh|zip|tar) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
    #refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
    #refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|o g(x|v|a|g)|rm|r(a|p)m|snd|vob) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
    #refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z |t)|xl(s?x)|do(c?x)|flv|x-flv) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale

    #refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
    #refresh_pattern ^gopher: 1440 0% 1440
    #refresh_pattern ^ftp: 10080 95% 43200 override-lastmod reload-into-ims store-stale
    #refresh_pattern . 00 95% 43200 override-lastmod reload-into-ims store-stale

    emulate_httpd_log off
    hosts_file /etc/hosts

    ### Objek-objek statis waktu peyimpanannya diperlama
    refresh_pattern -i \.(class|css|js|tif)(\?.*)?$ 1440 95% 100000080 reload-into-ims override-lastmod
    refresh_pattern -i \.(jpe|jpg|jpeg|png|bmp|gif)(\?.*)?$ 0 95% 1000000080 reload-into-ims override-lastmod
    refresh_pattern -i \.(tiff|mov|avi|qt|mpeg|3gp)(\?.*)?$ 0 95% 201600000 reload-into-ims override-lastmod
    refresh_pattern -i \.(mpg|mpe|wav|au|mid|flv)(\?.*)?$ 0 95% 2016000 reload-into-ims override-lastmod
    refresh_pattern -i \.(zip|gz|arj|lha|lzh)(\?.*)?$ 0 95% 2016000 reload-into-ims override-lastmod
    refresh_pattern -i \.(rar|tgz|tar|exe|bin)(\?.*)?$ 0 95% 2016000 reload-into-ims override-lastmod
    refresh_pattern -i \.(cab|psf|part|0*|swf|gz|grf|gpf)(\?.*)?$ 0 95% 2000160 reload-into-ims override-lastmod
    refresh_pattern -i \.(pdf|rtf|doc|swf|txt|inf)(\?.*)?$ 1 95% 2016000 reload-into-ims override-lastmod
    refresh_pattern -i \.(inc|cab|ad|hqx|dll)(\?.*)?$ 10080 95% 4320000 reload-into-ims override-lastmod
    refresh_pattern -i \.(asp|acgi|pl|shtml|php3|php)(\?.*)?$ 2 20% 432000 reload-into-ims override-lastmod
    refresh_pattern -i \.(ini)(\?.*)?$ 2 5% 10800 reload-into-ims override-lastmod
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 40% 40320




    # SNMP
    snmp_port 3401
    acl snmppublic snmp_community public
    snmp_access allow snmppublic localhost
    snmp_access deny all

    # TAG: Extra Tuning Configuration
    header_access Accept-Encoding deny all
    client_persistent_connections off
    server_persistent_connections on
    half_closed_clients off
    strip_query_terms off
    quick_abort_min 0 KB
    quick_abort_max 0 KB
    quick_abort_pct 100
    vary_ignore_expire on
    reload_into_ims on
    pipeline_prefetch on
    range_offset_limit 512 KB
    read_timeout 30 minutes
    client_lifetime 6 hours
    negative_ttl 30 seconds
    positive_dns_ttl 6 hours
    negative_dns_ttl 60 seconds
    pconn_timeout 15 seconds
    request_timeout 1 minute
    store_avg_object_size 13 KB
    log_icp_queries off
    ipcache_size 1024
    ipcache_low 98
    ipcache_high 99
    log_fqdn off
    fqdncache_size 1026
    memory_pools off
    forwarded_for on
    logfile_rotate 3
    store_dir_select_algorithm round-robin
    cache_effective_user proxy
    cache_effective_group proxy
    max_filedescriptors 8056

    ##end of config

  5. #5
    Status
    Offline
    ahendra's Avatar
    Baru Gabung
    Join Date
    Jun 2011
    Posts
    4
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0

    Terimakasih atas jawabannya kini proxy saya dah jalan,,,

    Saya mau tanya lagi gan masih tentang proxy, awalanya proxy saya menggunakan squid lusca FMI, secara keseluruhan koneksi OK, mulai dari cache youtube, cache game online dan lainnya sesuai settingan, di warnet saya di share 12 kompi dengan paket speedy 2mb, untuk settingan mikrotik saya pastikan sudah ter shape semua jalur nya, mulai game online, download, upload, dan poker..ketika user berkisar sekitar kurang lebih 8 user, koneksi masih ok stabil, tapi ketika client pull, koneksi menjadi lemot, pas keadaan itu saya disable NAT yang ke proxy koneksi kembali normal, untuk proxy saya menggunakan ubuntu server 10.10, hdd 250, RAM 2gb, CPU dual core, saya sempat mencoba ganti squidnya pake 2.7 stable9, tapi hasilya tetep sama, yang saya ingin tanyakan dari bagian mana saya harus setting untuk masalah ini??apakah dari squid config, apa dari partisi hdd nya???sebelumnya saya mengucapkan terima kasih atas segala jawabannya,,,,

  6. #6
    Status
    Offline
    poppin's Avatar
    Baru Gabung
    Join Date
    Oct 2009
    Posts
    3
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by ahendra Click here to enlarge
    Saya mau tanya lagi gan masih tentang proxy, awalanya proxy saya menggunakan squid lusca FMI, secara keseluruhan koneksi OK, mulai dari cache youtube, cache game online dan lainnya sesuai settingan, di warnet saya di share 12 kompi dengan paket speedy 2mb, untuk settingan mikrotik saya pastikan sudah ter shape semua jalur nya, mulai game online, download, upload, dan poker..ketika user berkisar sekitar kurang lebih 8 user, koneksi masih ok stabil, tapi ketika client pull, koneksi menjadi lemot, pas keadaan itu saya disable NAT yang ke proxy koneksi kembali normal, untuk proxy saya menggunakan ubuntu server 10.10, hdd 250, RAM 2gb, CPU dual core, saya sempat mencoba ganti squidnya pake 2.7 stable9, tapi hasilya tetep sama, yang saya ingin tanyakan dari bagian mana saya harus setting untuk masalah ini??apakah dari squid config, apa dari partisi hdd nya???sebelumnya saya mengucapkan terima kasih atas segala jawabannya,,,,
    kok sama kayak saya, klu proxy nya jadi lambat kenapa ya? tapi klu nat nya di disable jalan lancar, yang salah nya dari mana? mohon penjelasan nya para suhu? makasih sebelum nya

  7. #7
    Status
    Offline
    tolabul's Avatar
    Newbie
    Join Date
    Apr 2010
    Location
    blitar
    Posts
    59
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    ane juga punya masalah yg sama dan blum nemu solusi...... bantu sundul Click here to enlarge

  8. #8
    Status
    Offline
    faqiir's Avatar
    Member
    Join Date
    Feb 2009
    Posts
    156
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    server ga mampu, terutama hddnya

  9. #9
    Status
    Offline
    c0nf's Avatar
    Contributor
    Join Date
    Jul 2007
    Location
    Bandung, Indonesia
    Posts
    1,816
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by ahendra Click here to enlarge
    Saya mau tanya lagi gan masih tentang proxy, awalanya proxy saya menggunakan squid lusca FMI, secara keseluruhan koneksi OK, mulai dari cache youtube, cache game online dan lainnya sesuai settingan, di warnet saya di share 12 kompi dengan paket speedy 2mb, untuk settingan mikrotik saya pastikan sudah ter shape semua jalur nya, mulai game online, download, upload, dan poker..ketika user berkisar sekitar kurang lebih 8 user, koneksi masih ok stabil, tapi ketika client pull, koneksi menjadi lemot, pas keadaan itu saya disable NAT yang ke proxy koneksi kembali normal, untuk proxy saya menggunakan ubuntu server 10.10, hdd 250, RAM 2gb, CPU dual core, saya sempat mencoba ganti squidnya pake 2.7 stable9, tapi hasilya tetep sama, yang saya ingin tanyakan dari bagian mana saya harus setting untuk masalah ini??apakah dari squid config, apa dari partisi hdd nya???sebelumnya saya mengucapkan terima kasih atas segala jawabannya,,,,
    pada waktu nat dinonaktifkan, koneksi menjadi lancar. hal itu sebenarnya disebabkan komputer client melakukan resend request untuk website yang diinginkan. saran saya sekilas, squid.conf nya menggunakan dulu yang standar, jangan yang terlalu fmi. dilihat dulu hasilnya, baru nanti ditambahkan atau di tuning satu2. kalau langsung dipake semua setingannya, pasti bingung cari titik permasalahannya di mana.
    Invisible...

 

 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Masalah Pada Mikrotik 2.8.11
    By elraja in forum Testing Area
    Replies: 3
    Last Post: 05-01-2011, 14:01
  2. Replies: 0
    Last Post: 10-11-2010, 14:29
  3. [ASK] Masalah Pada DHCP Server
    By kenn5 in forum Beginner Basics
    Replies: 0
    Last Post: 21-07-2010, 07:05
  4. Masalah Log pada mikrotik 3.20
    By Devilion in forum General Networking
    Replies: 1
    Last Post: 23-04-2009, 11:12

Posting Permissions

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