Squid stop/waiting

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
warnetcepat
Posts: 2
Joined: 24 Sep 2012, 10:57
Location: Depok
Contact:

Squid stop/waiting

Postby warnetcepat » 06 Dec 2012, 10:39

Hallo para suhu ubuntu server, mohon bantuannya,
saya sudah selesai instal ubuntu server 10.10 termasuk aplikasinya untuk digunakan sebagai proxy external mikrotik. sering kali saya instal berhasil, tapi kemarin saya coba instal ulang, laporan squid nya stop/waiting. di buat start bisa, tapi jika dijalankan di mikrotik, dia langsung stop lagi. itu kenapa ya?

berikut adalah squid.conf yang saya pakai:

http_port 3128 transparent
server_http11 on
icp_port 0

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 proxy

access_log /cache1/access.log
cache_log /dev/null
cache_store_log /dev/null

log_fqdn off
log_icp_queries off
buffered_logs off
emulate_httpd_log off

acl localnet src 192.168.1.0/24
acl localnet src 192.168.20.0/24
acl localnet src 192.168.2.0/24
acl localnet src 192.168.3.0/24

uri_whitespace strip

dns_nameservers 192.168.3.1

cache_mem 32 MB
maximum_object_size_in_memory 128 KB
memory_replacement_policy heap GDSF

cache_replacement_policy heap LFUDA
cache_dir aufs /cache1 38000 44 256
cache_dir aufs /cache2 38000 44 256
cache_dir aufs /cache3 38000 44 256
cache_dir aufs /cache4 38000 44 256
cache_dir aufs /cache5 38000 44 256

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

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
http_access allow localhost
http_access allow localnet
http_access deny all

snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all

acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(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.co(m|\.id) streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com

acl dontrewrite url_regex yimg.com redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\?
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 7
storeurl_rewrite_concurrency 60
storeurl_bypass on

hierarchy_stoplist (ini|ui|lst|inf||mh-|sc-)$ (afs.dat|update.txt|vdf.info.gz|captcha|reset.css|gamenotice|ickernew.css)
acl QUERY urlpath_regex -i \.(ini|ui|lst|inf|mh-|sc-)$
acl QUERY urlpath_regex -i (afs.dat|captcha|reset.css|update.txt|gamenotice|vdf.info.gz)
cache deny QUERY

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: 10080 95% 43200 override-lastmod reload-into-ims store-stale
refresh_pattern ^gopher: 1440 0% 1440

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
refresh_pattern .fbcdn.net.*\.(jpg|gif|png) 5259487 999999% 5259487 ignore-no-cache override-expire ignore-reload store-stale negative-ttl=0
refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(png|gif) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale

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 \.rapidshare.*\/[0-9]*\/.*\/[^\/]* 161280 90% 161280 ignore-reload store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 5259487 99999999% 5259487 override-expire ignore-reload store-stale ignore-private negative-ttl=0
refresh_pattern \.(ico|video-stats) 5259487 999999% 5259487 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\? 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*safebrowsing.*google 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 5259487 999999% 5259487 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.(jpg|png) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern garena\.com 5259487 999999% 5259487 override-expire reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 5259487 999999% 5259487 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern ^http:\/\/images|openx|pics|thumbs[0-9]\. 5259487 999999% 5259487 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 5259487 999999% 5259487 reload-into-ims override-expire store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487 reload-into-ims override-expire ignore-private store-stale

refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487 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) 5259487 100% 5259487 override-expire reload-into-ims
refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape) 5259487 100% 5259487 override-expire reload-into-ims ignore-reload
refresh_pattern \.(exe|msi|dmg|bin|xpi|iso|swf|mar|psf|cab) 5259487 999999%% 5259487 override-expire reload-into-ims ignore-no-cache ignore-must-revalidate
refresh_pattern \.(mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 5259487 100% 5259487 override-expire reload-into-ims
refresh_pattern -i (cgi-bin) 0 0% 0
refresh_pattern \.(php|jsp|cgi|asx)\? 0 0% 0
refresh_pattern . 180 95% 43200 override-lastmod reload-into-ims store-stale

header_access X-Forwarded-For deny all
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
shutdown_lifetime 10 seconds
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
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
memory_pools off
forwarded_for off
logfile_rotate 1
cache_effective_user proxy
cache_effective_group proxy
client_db on
max_filedescriptors 4096
n_aiops_threads 12
load_check_stopen on
load_check_stcreate on
download_fastest_client_speed on
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136




==== Mohon bantuannya, terima kasih sebelumnya ....

Selalu Berbagi Bersama di... FUI
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Squid stop/waiting

Postby q_p » 06 Dec 2012, 22:55

laporan squid nya stop/waiting. di buat start bisa, tapi jika dijalankan di mikrotik, dia langsung stop lagi. itu kenapa ya?
Maksud-nya gimana mas 'dijalankan di mikrotik' ? Coba anda psoting output 'ps aux | grep squid' sebelum dan sesudah dijalankan di mikrotik.
User avatar
warnetcepat
Posts: 2
Joined: 24 Sep 2012, 10:57
Location: Depok
Contact:

Re: Squid stop/waiting

Postby warnetcepat » 11 Dec 2012, 23:58

ya pak,
biasanya untuk mengecek status squid, kita ketik "service squid status". dan anehnya tiba2 tampilannya "squid stop/waiting" jika dibuat start, dia kembali lagi stop. otomatis tidak bisa online. itu apanya ya.


makasih sebelumnya..

==============Selalu berbagi di FUI ......
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Squid stop/waiting

Postby q_p » 12 Dec 2012, 01:39

Saya kok masih belum bisa memahami kasus anda ya, karena infonya kurang lengkap. Misalnya anda menggunakan squid-lusca, ada kemungkinan permasalahan-nya di file /etc/init.d/squid masih menggunakan squid bawaannya ubuntu dengan proses 'apt-get install squid' sebagai syarat install-nya squid lusca. Coba anda ganti dengan init.script-nya lusca, ubah ownership-nya dan lakukan update rc.d. Selanjutnya u/ menjalankan lusca jangan menggunakan 'service' tetapi gunakan /etc/init.d/squid saja. Tapi ini tebakan saya, anda menggunakan lusca :)
BTW, kenapa tidak dijadikan satu saja di Ubuntu ? keuntungannya :
1. Full Open Source karena bisa menggantikan semua fungsi mikrotik.
2. Kontrol lebih mudah, karena semua terpusat di Ubuntu Server.
3. Bisa untuk File/Folder Sharing, sehingga data client ngumpul di Ubuntu Server.
4. Bisa u/ Printer Sharing, sehingga kita tdk repot nge-print-kan dari kompi operator.
5. Yang anda butuhkan cuma 3 HDD yang volume kecil-2 saja. Misalnya 20 GB HDD-IDE u/ system, 40/80 GB HDD-SATA u/ cache_squid dan 80/160 GB HDD-SATA u/ file-folder sharing.
6. Dalam squid.conf digunakan 5 buah dir_cahche. Hasilnya akan bagus jika ke-5 dir_cache tersebut di taruh di 5 buah HDD juga. JIka tidak hasilnya akan 'jauh' lebih bagus jika anda menggunakan 1 HDD u/ 1 dir_cache saja, meskipun volumenya jauh lebih kecil.
7. dst.
8. CMIIW

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 7 guests