proxy Lusca di Ubuntu Server 12.04 LTS

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: proxy Lusca di Ubuntu Server 12.04 LTS

Post by q_p » 19 Feb 2013, 23:07

Hapus isi file /etc/apt/sources.list ganti dengan

Code: Select all

deb http://kambing.ui.ac.id/ubuntu/ precise-proposed main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise main restricted universe multiverse
BTW, untuk apa swap segede itu ? Meskipun kecil, kalau squid sudah merambah ke swap artinya squid anda sakit. Saran saya =
1. perbesar ram sampai batas maksimal dayadukung motherboard
2. Gunakan 1 dir cache setiap hdd dan itupun maks volume 15-20 GB.


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 00:09

masih sama mas pati, nga ngedetect repo ny..

apakah ada salah dari settingan mikrotik ya?

saya hanya mengikuti saran dari blog orang, yang katany swap area harus sebesar 2x memori..
kebetulan memori saya gunakan 4gb..


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 20 Feb 2013, 00:19

Coba anda ping repo tsb dari mikrotik dan dari ubuntu.


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 00:26

wah, ini saya baru ngubah settingan dari mikrotikny gan..

rupany saya salah set di mikrotikny neh, dia langsung narik dr proxy, pdhl proxy kan blom ada isi..

ini lg update, siap" ngetes lg ini.. wkwkwk


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 02:47

FATAL: Can't parse configuration token: '%'

Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 7568 KB
Page faults with physical i/o: 0
lusca[0x80b4a84]
lusca[0x80b543f]
lusca[0x80b54b3]
lusca[0x80b54d7]
lusca[0x804d6b0]
lusca[0x804e7ce]
lusca[0x805edc5]
lusca[0x8061ba7]
lusca[0x8062705]
lusca[0x804c857]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb75974d3]
lusca[0x804d1b9]
Aborted (core dumped)

penyakitny sama kayak yang laen..
munculny error ini mas pati..


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 20 Feb 2013, 05:22

Code: Select all

lusca -f /etc/lusca/squid.conf -z
path-nya anda sesuaikan :)


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 09:19

maksudny "path" apa mas?


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 20 Feb 2013, 09:47

Maksudnya sesuaikan dengan direktori tempat anda menyimpan file squid.conf
BTW, error tersebut di atas muncul dengan command apa ? Coba anda periksa lagi ejaannya seperti dalam contoh di atas.


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 10:13

untuk lokasi pathny udh bener mas, soalny saya cek pathny make "tab"
jadi kl emang pathny nga ada kan nga nampil..

http://www.latoel.co.vu/2012/08/install ... erver.html

itu squid.conf yang saya make, kayakny ada kesalahan koding di squid.conf ny

soalny pada saat saya hapus % pada bagian squid conf ini
emulate_httpd_log on
logformat squid %tl %6tr %>a %Ss/%03Hs %
log_fqdn off

saat compile "lusca -f /etc/lusca/squid.conf -z"
bisa dilaksanakan, tetapi saat cek error "lusca -dl"

[spoiler]2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.mp4$': ignore-no,cache
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.zynga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.farmville.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.ninjasaga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.mafiawars.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.crowdstar.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.popcap.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '(get_video\?|videoplayback\?|videodownload\?|\.flv?)': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.(ico|video-stats)': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '^.*safebrowsing.*google': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '^.*(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).*': ignore-must-revalidate
root@marvin:~# 2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.mp4$': ignore-no,cache
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.zynga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.farmville.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.ninjasaga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.mafiawars.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.crowdstar.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.popcap.com.*\/': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '(get_video\?|videoplayback\?|videodownload\?|\.flv?)': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '\.(ico|video-stats)': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '^.*safebrowsing.*google': ignore-must-revalidate
2013/02/20 10:06:28| parse_refreshpattern: Unknown option '^.*(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).*': ignore-must-revalidate
2013/02/20 10:06:28| Starting Squid Cache version LUSCA_HEAD-r14809 for x86_64-pc-linux-gnu...
2013/02/20 10:06:28| WARNING: store_rewriter #1 (FD 7) exited
2013/02/20 10:06:28| WARNING: store_rewriter #2 (FD 8) exited
2013/02/20 10:06:28| WARNING: store_rewriter #3 (FD 9) exited
2013/02/20 10:06:28| WARNING: store_rewriter #4 (FD 10) exited
2013/02/20 10:06:28| Too few store_rewriter processes are running
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.mp4$': ignore-no,cache
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.zynga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.farmville.com.*\/': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.ninjasaga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.mafiawars.com.*\/': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.crowdstar.com.*\/': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.popcap.com.*\/': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '(get_video\?|videoplayback\?|videodownload\?|\.flv?)': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '\.(ico|video-stats)': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '^.*safebrowsing.*google': ignore-must-revalidate
2013/02/20 10:06:31| parse_refreshpattern: Unknown option '^.*(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).*': ignore-must-revalidate
2013/02/20 10:06:31| Starting Squid Cache version LUSCA_HEAD-r14809 for x86_64-pc-linux-gnu...
2013/02/20 10:06:31| WARNING: store_rewriter #2 (FD 8) exited
2013/02/20 10:06:31| WARNING: store_rewriter #1 (FD 7) exited
2013/02/20 10:06:31| WARNING: store_rewriter #3 (FD 9) exited
2013/02/20 10:06:31| WARNING: store_rewriter #5 (FD 11) exited
2013/02/20 10:06:31| Too few store_rewriter processes are running
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.mp4$': ignore-no,cache
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.zynga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.farmville.com.*\/': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.ninjasaga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.mafiawars.com.*\/': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.crowdstar.com.*\/': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.popcap.com.*\/': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '(get_video\?|videoplayback\?|videodownload\?|\.flv?)': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '\.(ico|video-stats)': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '^.*safebrowsing.*google': ignore-must-revalidate
2013/02/20 10:06:34| parse_refreshpattern: Unknown option '^.*(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).*': ignore-must-revalidate
2013/02/20 10:06:34| Starting Squid Cache version LUSCA_HEAD-r14809 for x86_64-pc-linux-gnu...
2013/02/20 10:06:35| WARNING: store_rewriter #1 (FD 7) exited
2013/02/20 10:06:35| WARNING: store_rewriter #2 (FD 8) exited
2013/02/20 10:06:35| WARNING: store_rewriter #4 (FD 10) exited
2013/02/20 10:06:35| WARNING: store_rewriter #3 (FD 9) exited
2013/02/20 10:06:35| Too few store_rewriter processes are running
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.mp4$': ignore-no,cache
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.zynga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.farmville.com.*\/': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.ninjasaga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.mafiawars.com.*\/': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.crowdstar.com.*\/': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.popcap.com.*\/': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '(get_video\?|videoplayback\?|videodownload\?|\.flv?)': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '\.(ico|video-stats)': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '^.*safebrowsing.*google': ignore-must-revalidate
2013/02/20 10:06:38| parse_refreshpattern: Unknown option '^.*(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).*': ignore-must-revalidate
2013/02/20 10:06:38| Starting Squid Cache version LUSCA_HEAD-r14809 for x86_64-pc-linux-gnu...
2013/02/20 10:06:38| WARNING: store_rewriter #2 (FD 8) exited
2013/02/20 10:06:38| WARNING: store_rewriter #1 (FD 7) exited
2013/02/20 10:06:38| WARNING: store_rewriter #3 (FD 9) exited
2013/02/20 10:06:38| WARNING: store_rewriter #5 (FD 11) exited
2013/02/20 10:06:38| Too few store_rewriter processes are running
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.mp4$': ignore-no,cache
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.zynga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.farmville.com.*\/': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.ninjasaga.com.*\/': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.mafiawars.com.*\/': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.crowdstar.com.*\/': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.popcap.com.*\/': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '(get_video\?|videoplayback\?|videodownload\?|\.flv?)': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '\.(ico|video-stats)': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '^.*safebrowsing.*google': ignore-must-revalidate
2013/02/20 10:06:41| parse_refreshpattern: Unknown option '^.*(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).*': ignore-must-revalidate
2013/02/20 10:06:41| Starting Squid Cache version LUSCA_HEAD-r14809 for x86_64-pc-linux-gnu...
2013/02/20 10:06:41| WARNING: store_rewriter #1 (FD 7) exited
2013/02/20 10:06:41| WARNING: store_rewriter #2 (FD 8) exited
2013/02/20 10:06:41| WARNING: store_rewriter #4 (FD 10) exited
2013/02/20 10:06:41| WARNING: store_rewriter #3 (FD 9) exited
2013/02/20 10:06:41| Too few store_rewriter processes are running[/spoiler]


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 20 Feb 2013, 10:35

1. Perhatikan lagi ejaan pada bagian refresh_pattern yang mengandung

Code: Select all

ignore-no,cache
dan lakukan koreksi.
2. Perhatikan juga pada bagian yang mengandung

Code: Select all

ignore-must-revalidate
Untuk bisa menggunakan fitur ini, anda harus melakukan patching saat kompil. Jika tdk, anda harus menghapus semua "ignore-must-revalidate" di refresh_pattern.


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 10:41

untuk ignore-no,cache saya sudah perbaikin mas..

nah untuk yang "ignore-must-revalidate" maksudny harus melakukan patching saat compile gimana mas?

untuk yang ignore no relivated udh beres mas, sekarang tinggal error ini..

root@marvin:~# 2013/02/20 10:49:59| Starting Squid Cache version LUSCA_HEAD-r14809 for x86_64-pc-linux-gnu...
2013/02/20 10:50:00| WARNING: store_rewriter #2 (FD 8) exited
2013/02/20 10:50:00| WARNING: store_rewriter #3 (FD 9) exited
2013/02/20 10:50:00| WARNING: store_rewriter #1 (FD 7) exited
2013/02/20 10:50:00| WARNING: store_rewriter #5 (FD 11) exited
2013/02/20 10:50:00| Too few store_rewriter processes are running

ada kesalahan dimana lg ya mas?


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 20 Feb 2013, 11:16

nah untuk yang "ignore-must-revalidate" maksudny harus melakukan patching saat compile gimana mas?
Dalam kasus ini, patching atau menambal adalah langkah yang dilakukan sebelum kompil untuk melengkapi "file installer lusca" agar bisa menjalankan opsi/fitur "ignore-must-revalidate"
Chulk wrote:root@marvin:~# 2013/02/20 10:49:59| Starting Squid Cache version LUSCA_HEAD-r14809 for x86_64-pc-linux-gnu...
2013/02/20 10:50:00| WARNING: store_rewriter #2 (FD 8) exited
2013/02/20 10:50:00| WARNING: store_rewriter #3 (FD 9) exited
2013/02/20 10:50:00| WARNING: store_rewriter #1 (FD 7) exited
2013/02/20 10:50:00| WARNING: store_rewriter #5 (FD 11) exited
2013/02/20 10:50:00| Too few store_rewriter processes are running
ada kesalahan dimana lg ya mas?
Coba jalankan lusca tanpa storeurl.pl


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 11:23

cara jalanin lusca tanpa storeurl.pl gmn mas?
atw file storeurlny harus saya hapus dl?


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 20 Feb 2013, 11:48

Jangan dihapus. Pada squid.conf, cari baris

Code: Select all

storeurl_rewrite_program
storeurl_rewrite_children
storeurl_rewrite_concurrency
beri tanda # di depannya.


User avatar
Chulk
Posts: 15
Joined: 17 Feb 2013, 18:34
Location: Palembang

Post by Chulk » 20 Feb 2013, 12:10

mas pati ad waktu kosong? kalo ad, remote access aja mas..
menggunakan team viewer..
ad ym mas? jd enak chatny..

jadi bisa langsung ngasi solusi.. hehehe


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 20 Feb 2013, 12:26

Waahhhh ya nunggu ntar malam saja mas, kalau warnet sudah sepi. pm saja mas ...


User avatar
Alvio
Posts: 13
Joined: 31 Dec 2011, 08:16

Post by Alvio » 23 Feb 2013, 18:47

masih tetep mumet pake lusca di ubuntu 12.04.2
error terus............ tambah mumet...
balik lagi ke squid3 murni.
:(


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 26 Feb 2013, 23:08

root@server:~# lusca -d1
FATAL: Can't parse configuration token: '%'

Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 5792 KB
Page faults with physical i/o: 0
lusca[0x80b4a84]
lusca[0x80b543f]
lusca[0x80b54b3]
lusca[0x80b54d7]
lusca[0x804d6b0]
lusca[0x804e7ce]
lusca[0x805edc5]
lusca[0x8061ba7]
lusca[0x8062705]
lusca[0x804c857]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb75ea4d3]
lusca[0x804d1b9]
Aborted


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 27 Feb 2013, 01:23

root@server:~# lusca -f /etc/lusca/squid.conf .z
FATAL: Bungled squid.conf line 59: http_access allow all
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
root@server:~#


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 27 Feb 2013, 02:12

FATAL: Bungled (null) line 193: http_reply_access allow all
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 27 Feb 2013, 04:23

root@server:/etc/init.d# squid -f /etc/squid/squid.conf -z
2013/02/27 04:17:02| parseConfigFile: squid.conf:144 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:145 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:146 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:147 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:148 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:149 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:150 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:151 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:154 unrecognized: '(get_video\?|videoplayback\?|videodownload\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:155 unrecognized: '(get_video\?|videoplayback\?id|videoplayback.*id|videodownlo ad\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:156 unrecognized: '\.(ico|video-stats)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:157 unrecognized: '\.etology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:158 unrecognized: 'galleries\.video(\?|sz)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:159 unrecognized: 'brazzers\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:160 unrecognized: '\.adtology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:161 unrecognized: '^.*(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|ad vertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractiv e\.com|syndication\.com|media.fastclick.net).*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:162 unrecognized: '^.*safebrowsing.*google'
2013/02/27 04:17:02| parseConfigFile: squid.conf:163 unrecognized: '^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:164 unrecognized: 'ytimg\.com.*\.jpg'
2013/02/27 04:17:02| parseConfigFile: squid.conf:165 unrecognized: 'images\.friendster\.com.*\.(png|gif)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:166 unrecognized: 'garena\.com'
2013/02/27 04:17:02| parseConfigFile: squid.conf:167 unrecognized: 'photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:168 unrecognized: 'vid\.akm\.dailymotion\.com.*\.on2\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:169 unrecognized: 'mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:170 unrecognized: '^http:\/\/images|pics|thumbs[0-9]\.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:171 unrecognized: '^http:\/\/www.onemanga.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:172 unrecognized: '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])'
2013/02/27 04:17:02| parseConfigFile: squid.conf:175 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:176 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:177 unrecognized: 'static\.ak\.fbcdn\.net*\.(jpg|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:178 unrecognized: '^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:181 unrecognized: '^http:\/\/apps.facebook.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:182 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:183 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:184 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:185 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:186 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:187 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:190 unrecognized: '^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zi p|flv|wmv|3gp|mp(4|3)|exe|msi|zip)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:193 unrecognized: '\.rapidshare.*\/[0-9]*\/.*\/[^\/]*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:194 unrecognized: '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])'
2013/02/27 04:17:02| parseConfigFile: squid.conf:195 unrecognized: '(get_video\?|videoplayback\?|videodownload\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:196 unrecognized: '\.(ico|video-stats)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:197 unrecognized: '\.etology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:198 unrecognized: 'galleries\.video(\?|sz)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:199 unrecognized: 'brazzers\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:200 unrecognized: '\.adtology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:202 unrecognized: '^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:203 unrecognized: 'ytimg\.com.*\.(jpg|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:204 unrecognized: 'images\.friendster\.com.*\.(png|gif)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:205 unrecognized: 'garena\.com'
2013/02/27 04:17:02| parseConfigFile: squid.conf:206 unrecognized: 'photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:207 unrecognized: 'vid\.akm\.dailymotion\.com.*\.on2\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:208 unrecognized: '^http:\/\/images|pics|thumbs[0-9]\.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:209 unrecognized: '^http:\/\/www.onemanga.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:210 unrecognized: 'mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:211 unrecognized: '\.macromedia.com.*\.(z|exe|cab)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:214 unrecognized: '^.*safebrowsing.*google'
2013/02/27 04:17:02| parseConfigFile: squid.conf:215 unrecognized: '^.*(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|doublecl ick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:218 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:219 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:220 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:221 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:222 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:224 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:225 unrecognized: '^gopher:'
2013/02/27 04:17:02| parseConfigFile: squid.conf:226 unrecognized: '^ftp:'
2013/02/27 04:17:02| parseConfigFile: squid.conf:227 unrecognized: '.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:268 unrecognized: 'n_aiops_threads'
2013/02/27 04:17:02| parseConfigFile: squid.conf:269 unrecognized: 'load_check_stopen'
2013/02/27 04:17:02| parseConfigFile: squid.conf:270 unrecognized: 'load_check_stcreate'
2013/02/27 04:17:02| parseConfigFile: squid.conf:271 unrecognized: 'download_fastest_client_speed'
2013/02/27 04:17:02| ACL name 'all' not defined!
FATAL: Bungled (null) line 180: http_reply_access allow all
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 27 Feb 2013, 12:30

Pragola_Pati wrote:1. Perhatikan lagi ejaan pada bagian refresh_pattern yang mengandung

Code: Select all

ignore-no,cache
dan lakukan koreksi.
2. Perhatikan juga pada bagian yang mengandung

Code: Select all

ignore-must-revalidate
Untuk bisa menggunakan fitur ini, anda harus melakukan patching saat kompil. Jika tdk, anda harus menghapus semua "ignore-must-revalidate" di refresh_pattern.


caranya ini gi mana.?


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 27 Feb 2013, 18:53

root@server:~# tail -f /var/log/squid/access.log
1361956259.418 0 127.0.0.1 TCP_MISS/200 2774 GET cache_object://localhost/info - NONE/- text/plain
1361956778.650 0 127.0.0.1 TCP_MISS/200 2777 GET cache_object://localhost/info - NONE/- text/plain
1361957163.998 0 127.0.0.1 TCP_MISS/200 2775 GET cache_object://localhost/info - NONE/- text/plain


User avatar
dja
Posts: 61
Joined: 06 Nov 2012, 23:43

Post by dja » 28 Feb 2013, 19:39

Pragola_Pati wrote:
maksudny "ada yang dikeluarkan ada yang masuk"?
bukanny cache kalo diisi trus nga bakal dikeluarkan gan?
anda bisa pelajari "what for"-nya pada opsi2=
cache_swap_low ##
cache_swap_high ##
refresh_pattern
saya dl pernah clear cache proxy orang 2x, dengan hdd 80gb, kurang lebih setiap 1bln atw brp bln sekali perlu diclear, karena udah terasa berat yang browsing
Tujuan utama membuat proxy "untuk mempercepat browsing" tdk tercapai ya ?
berarti kl begitu sebenarnya pakai hdd 80gb saja dah cukup ya mas??tidak perlu hdd yg 500gb dikhususkan buat cache ;)


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 28 Feb 2013, 20:01

Betul mas, saya sendiri pakai 2 HHD u/ cache
1. 1 HDD SATA 80 GB untuk cache hanya 20 GB, sisanya tdk terpakai.
2. 1 HDD SATA 40 GB unutk cache hanya 20 GB, sisanya tdk terpakai.


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 28 Feb 2013, 21:30

1362054526.187 1318 192.168.11.1 TCP_MISS/404 7717 GET http://www.whatismyip.c
om/%22http:/code.jquery.com/ui/1.10.1/jquery-ui.js/%22 - DIRECT/108.162.204.94 t
ext/html
1362054526.305 376 192.168.11.1 TCP_MISS/200 869 GET http://as.casalemedia.co
m/s? - DIRECT/125.160.18.99 text/plain
1362054526.356 1 192.168.11.1 TCP_HIT/200 1508 GET http://s3.amazonaws.com/
speedchecker/netdna_frame.htm - NONE/- text/html
1362054526.447 0 192.168.11.1 TCP_HIT/200 752 GET http://api.find-ip.net/fl
ags/id.png - NONE/- image/png
1362054526.605 1 192.168.11.1 TCP_HIT/200 674 GET http://www.whatismyip.com
/wp-content/themes/WebHosting/skins/1-default/3col_fixed.png - NONE/- image/png
1362054526.615 1 192.168.11.1 TCP_HIT/200 8260 GET http://www.whatismyip.co
m/images/pcspeedup-640x81.gif - NONE/- image/gif
1362054526.619 1 192.168.11.1 TCP_HIT/200 5678 GET http://www.whatismyip.co
m/wp-content/uploads/ip-membership-button.png - NONE/- image/png
1362054526.627 1 192.168.11.1 TCP_HIT/200 632 GET http://www.whatismyip.com
/wp-content/themes/WebHosting/images/search.png - NONE/- image/png
1362054526.944 0 192.168.11.1 TCP_HIT/200 7782 GET http://pagead2.googlesyn
dication.com/pagead/osd.js - NONE/- text/javascript


ini apanya salah..

awalnya jalan lama ke lamaan berhenti


User avatar
sayed
Posts: 139
Joined: 21 Jul 2011, 16:19
Location: Lhokseumawe, Aceh
Contact:

Post by sayed » 02 Mar 2013, 18:54

itu kan udah hit mas
brti udah jalan tuh
coba matikan cache di firefox nya
atau liat di ubuntuserverguide.com disitu ada cara setting lusca di ubuntu 12.04
saya udah coba semua cache video berhasil


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 02 Mar 2013, 19:09

udah dapat mas masalahnya lagi downloadnya yang lambat mas..

makasih mas atas sarannya...


User avatar
sayed
Posts: 139
Joined: 21 Jul 2011, 16:19
Location: Lhokseumawe, Aceh
Contact:

Post by sayed » 02 Mar 2013, 20:37

oke dont mention it
kalo download yah sama aja mas kecepatannya
itu kan proxy cuma meringankan beban koneksi internet aja kok


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 03 Mar 2013, 00:13

makasih mas atas sarannya....


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 07 Mar 2013, 05:09

Tolongin dunk mas... :D

Proxyku erorrnya seperti ini...

root@joecyber:~# apt-get install squidclient
Reading package lists... Done
Building dependency tree
Reading state information... Done
squidclient is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@joecyber:~# squidclient mgr:info
client: ERROR: Cannot connect to 127.0.0.1:3128: Connection refused

root@joecyber:~# whereis squidclient
squidclient: /usr/bin/squidclient /usr/share/man/man1/squidclient.1.gz

Waktu setting squid lusca katanya ada yang double port 3128 tsb, tapi begitu saya cari disquid.conf tidak ada, kira2 dimana y masalahnya? dan dicari2 127.0.0.1:3128 difolder /usr/bin/squidclient juga ndak ada, dimana y mas letaknya?

mohon dunk para master ubuntu pencerahannya, da gelap nie.. bergadang 10 hari.. Hiiik... hiiik...

Berbagi itu ilmu itu baik, selain makin pintar juga menambah wawasan.

http://joecyberman1.blogspot.com


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 07 Mar 2013, 05:38

Mas2... Kenapa y asal buka youtube MEM_HIT?
youtubenya ndak terbuka lagi.. bantuin dunk mas please buanget...

202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://s.youtube.com/stream_204? HTTP/1.1" 204 472 TCP_MISS:DIRECT
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE


User avatar
kratos
Posts: 2
Joined: 07 Mar 2013, 16:44
Location: Medan
Contact:

Post by kratos » 07 Mar 2013, 16:51

Izin Nyobak Mas


User avatar
kratos
Posts: 2
Joined: 07 Mar 2013, 16:44
Location: Medan
Contact:

Post by kratos » 07 Mar 2013, 16:53

izin nyoba mas


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 07 Mar 2013, 17:37

@JoeCyber
Kayaknya youtube belum/tdk ter-cache
:)


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 09 Mar 2013, 10:41

Waduh.. Sia2 awak bergadang 3 hari 3 malem instal proxy, biar ngecache gimana y mas? apa harus saya ganti storeulrnya mas? padahal tutornya dari mas Pati semua lho...

Waktu dichek
root@joecyber:~# lusca -d1
2013/03/09 11:16:48| Loaded Icons.
2013/03/09 11:16:48| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 38.
2013/03/09 11:16:48| WCCP Disabled.
2013/03/09 11:16:48| Ready to serve requests.
2013/03/09 11:16:48| WARNING: store_rewriter #2 (FD 8) exited
2013/03/09 11:16:48| WARNING: store_rewriter #1 (FD 7) exited
2013/03/09 11:16:48| WARNING: store_rewriter #4 (FD 10) exited
2013/03/09 11:16:48| WARNING: store_rewriter #3 (FD 9) exited
2013/03/09 11:16:48| WARNING: store_rewriter #6 (FD 12) exited
2013/03/09 11:16:48| WARNING: store_rewriter #5 (FD 11) exited
2013/03/09 11:16:48| WARNING: store_rewriter #7 (FD 13) exited
2013/03/09 11:16:48| WARNING: store_rewriter #9 (FD 15) exited
2013/03/09 11:16:48| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 09 Mar 2013, 14:34

Tutor yang mana nih, saya tdk pernah bikin tutor proxy dan belum berani (level) ngasih tutor proxy ? :)

Kayaknya storeurl.pl anda bermasalah, u/ memastikannya coba anda disable (uncomment/kasih tanda pagar didepan) storeurl_rewrite_program /etc/squid/storeurl.pl


User avatar
dja
Posts: 61
Joined: 06 Nov 2012, 23:43

Post by dja » 09 Mar 2013, 20:39

JoeCyber wrote:Mas2... Kenapa y asal buka youtube MEM_HIT?
youtubenya ndak terbuka lagi.. bantuin dunk mas please buanget...

202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://s.youtube.com/stream_204? HTTP/1.1" 204 472 TCP_MISS:DIRECT
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
202.51.229.17 - - [07/Mar/2013:05:36:34 +0700] "GET http://r13---sn-npo7ene7.c.youtube.com/videoplayback? HTTP/1.1" 302 1178 TCP_MEM_HIT:NONE
baru 3hari 3 malam mas,, aku saja belajar bikin proxy begadang sampai shubuh selama 3bulan full,, :grin:


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 12 Mar 2013, 17:48

Mas tolongin donk...

Klo Errornya gini apa y kira2?

2013/03/12 17:34:06| /cache1/00: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.

Saling Memberi saling mengetahui

JoeCyber


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 12 Mar 2013, 18:07

JoeCyber wrote:2013/03/12 17:34:06| /cache1/00: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
dari pesan Error tsb, sebenarnya squid sudah menuntun kita sampai cara penyelesaiannya. Inti-nya Squid tdk menemukan direktori /cache/00 . kemungkinan direktori tsb terhapus. Hapus saja semuanya sekalian, lalu anda create lagi dengan 'squid -z'
JoeCyber wrote:Saling Memberi saling mengetahui
Ini maksudnya apa ? Selain pertanyaan kasus, apa yang sudah anda berikan di FUI ? Tidak usah pakai yang seperti itulah mas, kalau tdk cermat malah jadi 'fenomena boomerang' :)


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 12 Mar 2013, 19:03

202.51.229.17 - - [12/Mar/2013:18:57:47 +0700] "GET http://r2---sn-poqvn5u-jb3e.c.youtube.com/videoplayback? HTTP/1.1" 200 1782187 TCP_HIT:NONE
202.51.229.17 - - [12/Mar/2013:18:57:50 +0700] "GET http://r2---sn-poqvn5u-jb3e.c.youtube.com/videoplayback? HTTP/1.1" 200 1782200 TCP_HIT:NONE
202.51.229.17 - - [12/Mar/2013:18:57:52 +0700] "GET http://r2---sn-poqvn5u-jb3e.c.youtube.com/videoplayback? HTTP/1.1" 200 1782200 TCP_HIT:NONE

Akhirnya iso juga mas.. Xixixixixi.. Yeah berhasil
Muach.. muach buat mas pati.. hahahahaha
Tapi mas buka youtube terus ngeHIT g lanngsung full itu kenapa y?
kayaknya masih ada yg janggal ini. Hmmmmm...

saling berbagi ilmu agar semakin pintar

http://joecyberman1.blogspot.com


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 12 Mar 2013, 19:08

Tapi mas buka youtube terus ngeHIT g lanngsung full itu kenapa y?
kayaknya masih ada yg janggal ini. Hmmmmm...
Wajar itu mas, karena youtube melakukan split dan membaginya menjadi pecahan 17 MB kalau tdk salah.


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 12 Mar 2013, 19:28

202.51.229.17 - - [12/Mar/2013:18:57:47 +0700] "GET http://r2---sn-poqvn5u-jb3e.c.youtube.com/videoplayback? HTTP/1.1" 200 1782187 TCP_HIT:NONE
202.51.229.17 - - [12/Mar/2013:18:57:50 +0700] "GET http://r2---sn-poqvn5u-jb3e.c.youtube.com/videoplayback? HTTP/1.1" 200 1782200 TCP_HIT:NONE
202.51.229.17 - - [12/Mar/2013:18:57:52 +0700] "GET http://r2---sn-poqvn5u-jb3e.c.youtube.com/videoplayback? HTTP/1.1" 200 1782200 TCP_HIT:NONE

kira2 sudah bener nie mas HITnya?

saling berbagi ilmu agar semakin pintar

http://joecyberman1.blogspot.com


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 12 Mar 2013, 20:50

Iya, sudah bener itu. selamat ya :)


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 17 Mar 2013, 17:14

Makasih banyak y mas udah mereply dan mengajari saya... Tapi saya belum begitu puas dengan hasilnya... :) karena saya coba speedtest masih sama dengan jaringan saya...

jadi saya instal ulang lagi mas dengan konfigurasi yg berbeda..
Menggunakan lusca super proxy
tapi ada yang error mas... penampakannya dibawah ini

Code: Select all

root@joecyber:~# squid -f /etc/squid/squid.conf -z
FATAL: ERROR: Unknown policy heap

Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 7024 KB
Page faults with physical i/o: 0
Aborted (core dumped)
apa masalahnya tuh mas dari errornya? mohon bantuannya mas... :D
sekali lagi terimakasih banyak saya ucapkan.


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 17 Mar 2013, 17:24

JoeCyber wrote:root@joecyber:~# squid -f /etc/squid/squid.conf -z
FATAL: ERROR: Unknown policy heap
Yang berhubungan dengan policy heap dalam squid.conf adalah =

Code: Select all

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
Coba anda cek kofigurasi squid-nya dan jika tidak sama ganti dengan contoh yang saya berikan di atas. Lalu konfigur ulang dengan squid -f /etc/squid/squid.conf -z


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 17 Mar 2013, 18:04

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

Ini mas yg ada disquid saya... bener kayaknya mas.. hanya beda posisi saja.. saya copykan punya mas, dengan error seperti sebelumnya

Code: Select all

root@joecyber:~# squid -f /etc/squid/squid.conf -z
FATAL: ERROR: Unknown policy heap

Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 6992 KB
Page faults with physical i/o: 0
Aborted (core dumped)
Saya copykan juga squidnya biar lebih jelas mas...
[spoiler]http_port 3128 transparent
server_http11 on

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

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

minimum_object_size 0 KB
#maximum_object_size 512 MB
cache_swap_low 97
cache_swap_high 99

cache_dir aufs /cache1 16357 38 256
cache_dir aufs /cache2 16357 38 256

# cache_dir aufs /cache 12000 28 256

access_log daemon:/var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log none
store_dir_select_algorithm round-robin
logfile_daemon /usr/lib/squid/logfile-daemon
logfile_rotate 1

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.10.10.0/24 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
#acl localnet src 125.165.92.1 # RFC1918 possible internal network

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 CONNECT method CONNECT
acl purge method PURGE
acl snmppublic snmp_community public
include /usr/local/share/squid/supercache.conf

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access allow localnet
http_access allow all
http_access deny all

icp_access allow localnet
icp_access deny all
icp_port 0

buffered_logs on

acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

forwarded_for off
header_access From deny all
header_access Server deny all
header_access Link deny all
header_access Via deny all
header_access X-Forwarded-For deny all
httpd_suppress_version_string on

shutdown_lifetime 10 seconds

snmp_port 3401
snmp_access allow snmppublic all
dns_timeout 1 minutes

#dns_nameservers 8.8.8.8
#dns_testnames 127.0.0.1

#fqdncache_size 4096 # aslinya
fqdncache_size 16384
#ipcache_size 10240 # aslinya
ipcache_size 16384
ipcache_low 97
ipcache_high 99
log_fqdn off
memory_pools off

maximum_single_addr_tries 2
retry_on_error on

icp_hit_stale on

strip_query_terms on

query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 0 seconds
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off
cache_mgr webmaster@backlinux.com
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.backlinux.com
unique_hostname backlinux.com
cachemgr_passwd none all
client_db on
max_filedescriptors 8192

# TAG: ZPH
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136[/spoiler]
Mohon koreksiannya mas... please


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 17 Mar 2013, 18:07

apa ini yg salah mas?

/cache reiserfs notail,noatime


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 17 Mar 2013, 18:20

Harusnya tdk ada masalah mas, kecuali squid tsb adalah hasil kompil dan opsi policy heap tdk anda masukkan saat meng-konfigur.

BTW, boleh tahu isi file /usr/local/share/squid/supercache.conf ?


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 17 Mar 2013, 18:27

Ternyata hanya masalah penempatannya saja kok mas...

Setelah saya kutak katik akhirnya bisa juga

cache_dir aufs /cache1 16357 38 256
cache_dir aufs /cache2 16357 38 256

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 17 Mar 2013, 18:49

Tolong anda tengok trit ini mas, soal-nya youtube bikin ulah lagi =
http://ubuntu-indonesia.com/forums/ubbt ... Post129695

BTW, boleh tahu isi file /usr/local/share/squid/supercache.conf ?


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 17 Mar 2013, 19:52

[spoiler]acl store_rewrite_list urlpath_regex \/(get_video|video\?v|videoplayback\?id|videoplayback.*id)
acl store_rewrite_list urlpath_regex \/(get_video\?|videodownload\?|videoplayback.*id|watch\?)
acl store_rewrite_list urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z)\?
acl store_rewrite_list_domain url_regex ^http:\/\/(([a-z-]+[0-9-]+)|([0-9-]+[a-z-]+))\.[a-z0-9-]*\.[a-z]{2,4}
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 \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z)$
acl store_rewrite_list_domain_CDN url_regex (cbk|mt|khm|mlt|tbn)[0-9]?.google\.co(m|\.uk|\.id)
acl store_rewrite_list_domain_CDN url_regex photos-[a-z].ak.fbcdn.net
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/([a-z])[0-9]?(\.gstatic\.com|\.wikimapia\.org)
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 ^http:\/\/.*speedtest.*
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? \.doubleclick\.net.* yieldmanager cpxinteractive quantserve\.com
acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
acl speedtest_allow_dom dstdomain .speedtest.net

acl dontrewrite url_regex (get_video|video\?v=|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\? \.asp\? \.aspx\? 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 allow speedtest_allow_url
storeurl_access allow speedtest_allow_dom
storeurl_access deny all
storeurl_rewrite_program /usr/local/share/squid/supercache.pl
#storeurl_rewrite_children 1
storeurl_rewrite_children 4
#storeurl_rewrite_concurrency 99
storeurl_rewrite_concurrency 10

acl DENYCACHE urlpath_regex \.(ini|ui|lst|inf|pak|ver|patch|md5|cfg|lst|list|rsc|log|conf|dbd|db)$
acl DENYCACHE urlpath_regex (notice.html|afs.dat|dat.asp|patchinfo.xml|version.list|iepngfix.htc|updates.txt|patchlist.txt)
acl DENYCACHE urlpath_regex (pointblank.css|login_form.css|form.css)$
acl DENYCACHE urlpath_regex (Loader|gamenotice|sources|captcha|notice|reset)
cache deny DENYCACHE

refresh_pattern \.facebook\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 43800 99999% 43200 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern \.fbcdn\.net.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 43800 99999% 43800 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale negative-ttl=0
refresh_pattern ^.*safebrowsing.*google 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale

#ads
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).* 2629742 20% 2629742 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 (get_video\?|videoplayback\?|videodownload\?|watch\?\.flv?|.vid\?) 2629742 99999999% 2629742 override-expire ignore-reload ignore-must-revalidate ignore-no-cache ignore-no-store ignore-private store-stale negative-ttl=0
refresh_pattern (\.swf\?|\.avi\?|\.mov\?|\.wm(a|v)\?|\.3gp\?|\.mp(4|3)\?|\.rm\?|\.ram\?|\.m4v\?|\.on2\?) 43200 999999% 2629742 override-expire ignore-reload ignore-must-revalidate ignore-no-cache ignore-no-store ignore-private store-stale negative-ttl=0
refresh_pattern \.(ico|video-stats) 2629742 999999% 2629742 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 (photobucket|pbsrc|flickr|yimg|ytimg|twimg|gravatar)\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern ^http:\/\/images|image|img|pics|openx|thumbs[0-9]\. 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern (zynga|ninjasaga|mafiawars|cityville|farmville|crowdstar|spilcdn|agame|popcap)\.com/.* 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern \.(akamaihd|edgecastcdn|spilcdn|zgncdn|(tw|y|yt)img)\.com.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern \.gstatic\.com/images\? 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern (gstatic|diggstatic)\.com/.* 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt|tbn)[0-9]?)\.google\.co(m|\.uk|\.id) 43200 999999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate ignore-no-store negative-ttl=10080 store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 2629742 999999% 2629742 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern \.speedtest/.* 43200 99999% 432000 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern galleries\.video(\?|sz) 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-must-revalidate ignore-private store-stale
refresh_pattern \.wikimapia\.org\/? 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern \.(rackcdn|spilcdn|zgncdn)\.com.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 43200 9999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern code.googlec.com.*(svn|download) 0 50% 1440 reload-into-ims

#sensitive site
refresh_pattern -i \.(sc-|dl-|ex-|mh-|dll|da-|iop) 0 5% 60 reload-into-ims
refresh_pattern -i \.(mst|Xtp)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (main.exe|update.exe|grandchase.exe|FSLauncher.exe|FreeStyle_Setup.exe|grandchase.exe|filelist.zip|autoupgrade.exe)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (UpdaterModifier.exe|FreeStyle.exe|PBLauncher.exe|update.exe|NewLauncher.exe|NewAvalon.exe|hon.exe.zip|cabal.exe)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (PointBlank.exe.zip|HSUpdate.exe.zip|PBConfig.exe.zip) 0 50% 1440 reload-into-ims
refresh_pattern -i (wks_avira-win32-en-pecl.info.gz|wks_avira10-win32-en-pecl.info.gz)$ 0 50% 1440 reload-into-ims[/spoiler]
isi file /usr/local/share/squid/supercache.conf saya share dapet2 dari google mas... nie lagi oprek2 sana sini.. :)


User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Post by mallink » 17 Mar 2013, 20:02

sama aku aku juga lagi oprek2 malah error punya aku..


User avatar
JoeCyber
Posts: 13
Joined: 07 Mar 2013, 05:02
Location: Medan
Contact:

Post by JoeCyber » 17 Mar 2013, 20:10

Code: Select all

root@joecyber:~# squid -NDd1
WARNING: Cannot write log file: /usr/var/logs/cache.log
/usr/var/logs/cache.log: Permission denied
         messages will be sent to 'stderr'.
2013/03/17 20:07:36| Starting Squid Cache version LUSCA_HEAD-r14809 for i686-pc-linux-gnu...
2013/03/17 20:07:36| Starting Squid Cache version LUSCA_HEAD-r14809 for i686-pc-linux-gnu...
2013/03/17 20:07:36| Process ID 12181
2013/03/17 20:07:36| Process ID 12181
2013/03/17 20:07:36| With 1024 file descriptors available
2013/03/17 20:07:36| With 1024 file descriptors available
2013/03/17 20:07:36| Using epoll for the IO loop
2013/03/17 20:07:36| Using epoll for the IO loop
2013/03/17 20:07:36| Adding nameserver 202.51.229.17 from /etc/resolv.conf
2013/03/17 20:07:36| Adding nameserver 202.51.229.17 from /etc/resolv.conf
2013/03/17 20:07:36| DNS Socket created at 0.0.0.0, port 43047, FD 6
2013/03/17 20:07:36| logfileOpen: opening log /usr/var/logs/access.log
2013/03/17 20:07:36| logfileOpen: opening log /usr/var/logs/access.log
2013/03/17 20:07:36| Unlinkd pipe opened on FD 10
2013/03/17 20:07:36| Unlinkd pipe opened on FD 10
2013/03/17 20:07:36| Swap maxSize 102400 + 8192 KB, estimated 8507 objects
2013/03/17 20:07:36| Swap maxSize 102400 + 8192 KB, estimated 8507 objects
2013/03/17 20:07:36| Target number of buckets: 425
2013/03/17 20:07:36| Target number of buckets: 425
2013/03/17 20:07:36| Using 8192 Store buckets
2013/03/17 20:07:36| Using 8192 Store buckets
2013/03/17 20:07:36| Max Mem  size: 8192 KB
2013/03/17 20:07:36| Max Mem  size: 8192 KB
2013/03/17 20:07:36| Max Swap size: 102400 KB
2013/03/17 20:07:36| Max Swap size: 102400 KB
2013/03/17 20:07:36| logfileOpen: opening log /usr/var/logs/store.log
2013/03/17 20:07:36| logfileOpen: opening log /usr/var/logs/store.log
FATAL: Cannot open '/usr/var/logs/store.log' for writing.
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 13040 KB
Page faults with physical i/o: 0
Aborted (core dumped)
Mas ini error apa lagi y? da pusing saya.. hahahaha :)


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 18 Mar 2013, 00:28

Jadi isi file /usr/local/share/squid/supercache.conf adalah acl dan refresh_pattern
lha isi file /usr/local/share/squid/supercache.pl apa mas ?
Tolong di posting di sini juga ya mas :)

Untuk kasus anda yang ini =
JoeCyber wrote:WARNING: Cannot write log file: /usr/var/logs/cache.log
/usr/var/logs/cache.log: Permission denied
Itu karena Owner file tsb bukan squid. Caranya ubah ownership-nya

Code: Select all

# chown proxy:proxy /usr/var/logs/cache.log
PS=
Tolong mampir ke sini mas =
http://ubuntu-indonesia.com/forums/ubbt ... outube#top


User avatar
purna_ngw
Posts: 1
Joined: 11 Mar 2013, 14:58

Post by purna_ngw » 18 Mar 2013, 18:38

Bang Kok kadang aku Play Youtube Terjadi error kadang pas play video gtuuu beda kluarnya,,,,,ini yang perlu dirubah apanya ya???? Mohon pencerahannya.>!!!!


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 18 Mar 2013, 18:51

purna_ngw wrote:Bang Kok kadang aku Play Youtube Terjadi error kadang pas play video gtuuu beda kluarnya,,,,,ini yang perlu dirubah apanya ya???? Mohon pencerahannya.>!!!!
Mampir ke sini mas =
http://ubuntu-indonesia.com/forums/ubbt ... outube#top


User avatar
DedMax
Posts: 5
Joined: 27 Dec 2011, 14:12

Post by DedMax » 11 Jul 2013, 12:09

para master mau tanya klo game ayodance terblok dengan error sbb:
[spoiler]192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3008 GET http://122.102.49.132:81/HSUpdate/afs.dat - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html
192.168.100.15 TCP_DENIED/403 3006 GET http://122.102.49.132:81/HSUpdate/ahn.ui - NONE/- text/html[/spoiler]
berikut squid.conf yg saya gunakan:[spoiler]access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_effective_user proxy
cache_effective_group proxy

#=================================================================================================================================#
#=========================================================# REGEX URL #=========================================================#
#=================================================================================================================================#
coredump_dir /cache/
###############################################################################
#acl PHP77 url_regex forum.php forumdisplay.php showthread.php showthreads.php
#acl PHP77 url_regex download.php downloads.php classifieds.php classified.php
#acl PHP77 url_regex forum
#no_cache deny PHP77

#hierarchy_stoplist cgi-bin ? localhost
#acl QUERY22 urlpath_regex cgi-bin \? localhost
#no_cache deny QUERY22
################################################################################
#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 \.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

emulate_httpd_log off
server_http11 on
redirector_bypass on

acl video urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id)
acl speedtest urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|txt)\?
acl angka1 url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl angka2 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 gambar urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl rapidshare url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.*
acl photobucket url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl google url_regex ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.id)
acl indowebster url_regex ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|zip|flv|wm(a|v)|3gp|mp(4|3)|exe|msi|avi|(mp(e?g|a|e|1|2|3|4))|cab|exe)
acl getmethod method GET

storeurl_access allow video
storeurl_access allow speedtest
storeurl_access allow gambar
storeurl_access allow rapidshare
storeurl_access allow photobucket
storeurl_access allow indowebster
storeurl_access deny all

storeurl_rewrite_program /usr/local/squid/etc/storeurl.pl
storeurl_rewrite_children 1
storeurl_rewrite_concurrency 100
#storeurl_rewrite_children 15 #7
#storeurl_rewrite_concurrency 10 #60


#=======================================================================================================================================#
#=========================================================# REFRESH PATTERN #=========================================================#
#=======================================================================================================================================#
# VIDEO CACHE
refresh_pattern ^http://(.*?)/get_video\? 10080 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern ^http://(.*?)/videoplayback\? 10080 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id) 161280 50000% 525948 override-expire ignore-reload

# facebook
refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(jpg|png|gif) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ((tagged.com)|(96.17.109.27)).*\.(jpg|png|gif) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern edgecastcdn.\net.*\.swf? 129600 100% 129600 override-expire ignore-reload store-stale
refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png)($|&) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire store-stale
refresh_pattern .zynga.net.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .zynga.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .farmville.net.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .farmville.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .ninjasaga.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .apps.facebook.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .frontierville.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .tagged.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale

#ads
refresh_pattern ^.*(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).* 129600 20% 129600 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth store-stale negative-ttl=40320 max-stale=1440
#specific sites
refresh_pattern ^.*safebrowsing.*google 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth negative-ttl=10080 store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 129600 99100% 129600 override-expire ignore-reload store-stale
refresh_pattern \.(ico|video-stats) 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod negative-ttl=10080 store-stale

# pictures & images
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private store-stale
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico|swf)\? 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private store-stale

# website
#refresh_pattern -i \.(xml|html|htm|js|jsp|txt|css|php|asp)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(xml|js|jsp|txt|css)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(xml|js|jsp|txt|css)\? 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale

#sound, video multimedia
refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|wmv)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache store-stale
refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private store-stale

# files
refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth ignore-reload ignore-no-cache store-stale
refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth 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

#default option
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 1 0% 2
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320 store-stale[/spoiler]
mohon pencerahaannya. terimakasih.


User avatar
artbh
Posts: 1
Joined: 18 Oct 2012, 15:11
Location: tembilahan, riau, Indonesia
Contact:

Post by artbh » 13 Jul 2013, 00:00

kalau saya squid3 gak diinstall cuma luscanya aja..pernah diinstall kayaknya nabrak sama2 squid...dimana salahnya ya...tapi lusca nya jalan baik aja sekarang...


User avatar
scepnic
Posts: 3
Joined: 07 Jul 2013, 03:15
Location: surabaya, indonesia
Contact:

Post by scepnic » 13 Jul 2013, 00:14

coba remove dlu squid3 nya , pake ini aja

apt-get autoremove squid3


Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests