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
latoel
Posts: 7
Joined: 22 Apr 2012, 23:57
Location: Probolinggo
Contact:

proxy Lusca di Ubuntu Server 12.04 LTS

Post by latoel » 29 Apr 2012, 22:27

buat temen2...Ada yang pernah install proxy Lusca di Ubuntu Server 12.04 LTS neh.
neh masih download... mo coba install..


User avatar
sipelaut
Posts: 1965
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Post by sipelaut » 30 Apr 2012, 21:24

untuk urusan proxy (squid) keknya gak jauh beda dengan instalasi dari ubuntu sebelumnya
untuk tutornya anda bisa melihatnya di forum bagian server


User avatar
latoel
Posts: 7
Joined: 22 Apr 2012, 23:57
Location: Probolinggo
Contact:

Post by latoel » 01 May 2012, 01:41

Matur nuwun.. gan


User avatar
yonyonas
Posts: 18
Joined: 13 May 2012, 15:52
Contact:

Post by yonyonas » 30 May 2012, 08:11

Saya selalu gagal dalam install squid lusca di ubuntu server 12.04 padahal jika saya terapkan pada ubuntu server 10.04 selalu sukses apa karena di ubuntu server 12.04 sudah pakai squid 3 jadi tidak bisa kita install lusca??? mohon pencerahan dari para master sekalian.... trims


User avatar
latoel
Posts: 7
Joined: 22 Apr 2012, 23:57
Location: Probolinggo
Contact:

Post by latoel » 04 Jun 2012, 23:00

Bener tuh.. saya pe sekarang belum berhasil pake lusca di Ubuntu server 12.04


User avatar
okrens
Posts: 16
Joined: 19 Feb 2012, 09:40

Post by okrens » 14 Jun 2012, 08:59

bener bos kalo linux versi terbaru belum selamanya support ama squid yang lama


User avatar
brotherdotcom
Posts: 1
Joined: 12 Apr 2012, 21:05

Post by brotherdotcom » 18 Jun 2012, 01:15

saya bisa om...


User avatar
antoniusgenta
Posts: 103
Joined: 29 Dec 2011, 14:40
Location: jakarta

Post by antoniusgenta » 19 Jun 2012, 21:48

brotherdotcom wrote:saya bisa om...
Silakan di share mas kl memang sudah bisa utk teman2 yg lainnya..

Regards
Genta


User avatar
yonyonas
Posts: 18
Joined: 13 May 2012, 15:52
Contact:

Post by yonyonas » 20 Jun 2012, 17:44

Tolong di share dong gan biar yang lain dan terutama pemula seperti saya juga bisa


User avatar
riswan
Posts: 1
Joined: 03 May 2012, 16:05
Location: samarinda, indonesia
Contact:

Post by riswan » 21 Jun 2012, 13:40

Untuk Proxy Server menggunakan lusca pada Ubuntu 12.04.

Install Ubuntu 12.04 seperti biasa pada tutorial proxy server.

akan lebih baik jika menggunakan hdd terpisah untuk partisi sistem linux [untuk /] , dan partisi untuk cache [direktori /cache]

misal :

partisi / pada hdd 80gb, fs ext4,

partisi /cache pada hdd 80gb , fs reiserfs, dst.dst..

untuk kejelasan tutorial membuat proxy server pada ubuntu silahkan treadh pada forum ini.

setelah itu, pada ubuntu server yang telah terinstall... lakukan perintah ini, [asumsi server telah konek internet]

$ sudo apt-get install lusca [tunggu proses instalasi hingga selesai]

maka aplikasi lusca telah terinstal, direktori default sama denga direkroti squid standar , cuman di sini, aplikasi nya adalah lusca, misal /etc/lusca, /varlog/lusca, /usb/linb/lusca .. dst..dst..

lalu copas file squid.conf dan storeurl.pl pada link ini

hxxp://aacable.wordpress.com/2012/01/11/howto-cache-youtube-with-squid-lusca-and-bypass-cached-videos-from-mikrotik-queue/
[hxxp rubah menjadi http pada web browser]

sesuaikan nilai cache sesuai hdd, acl network pada jaringan lokal anda, dan pengarahan direktori pada lusca, ikuti langkah2 pada tutorial tersebut ttg perubahan permission ...

selanjutnya, monggo di coba hasilnya,

keep'n ngoprek..! :D

ciwank.web.id


User avatar
ilham2930
Posts: 1123
Joined: 02 Jan 2010, 19:30
Location: /indonesia/tangerang/bonank_city
Contact:

Post by ilham2930 » 21 Jun 2012, 14:28

hiks..baru tau klo lusca ada paket debiannya, selama ini compil langsung dari source sih..
nice info masbro.. keep posting :D


User avatar
sipelaut
Posts: 1965
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Post by sipelaut » 23 Jun 2012, 13:53

ilham2930 wrote:hiks..baru tau klo lusca ada paket debiannya, selama ini compil langsung dari source sih..
nice info masbro.. keep posting :D

hekekek....
sama masbro...
ane sampek ngulang 3x baca tutor dari brooo @riswan
ternyata emang $ sudo apt-get install lusca
heee.......
nais ser 'n kip posting broo...


User avatar
CDX
Posts: 1616
Joined: 03 Jan 2010, 13:00
Location: Prapatan belok kiri

Post by CDX » 23 Jun 2012, 23:46

nyimak ah... mo coba pake lusca....:D


User avatar
semut
Posts: 455
Joined: 05 Jul 2010, 19:15
Location: kendal,Indonesia
Contact:

Post by semut » 24 Jun 2012, 08:32

riswan wrote:
akan lebih baik jika menggunakan hdd terpisah untuk partisi sistem linux [untuk /] , dan partisi untuk cache [direktori /cache]
maaf bang,
knapa pake hardisk terpisah lbh baik ?

mksh sebelumnya...


User avatar
Zest
Posts: 12
Joined: 13 Mar 2012, 17:24
Location: Madiun - Jatim - Indonesia
Contact:

Post by Zest » 25 Jun 2012, 12:32

Ijin nyimak....
biar cepet pinter kayak para master...


User avatar
yonyonas
Posts: 18
Joined: 13 May 2012, 15:52
Contact:

Post by yonyonas » 27 Jun 2012, 07:56

Mantap terimaksih atas informasinya


User avatar
ajrix
Posts: 1
Joined: 27 Jun 2012, 09:03
Location: jogja,indonesia

Post by ajrix » 27 Jun 2012, 09:05

kenapa setelah memasukkan config ada pesan eror seperti ini
root@proxyadi:~# /usr/local/squid/sbin/squid -z
FATAL: Bungled squid.conf line 166: storeurl_access deny videocache_deny_dom
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.


User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Post by thrvers » 27 Jun 2012, 09:46

'
squid.conf line 166

cek lagi squid.conf - itu sudah dikasih tahu baris yg bikin FATAL ;-)


User avatar
sumpit
Posts: 1
Joined: 03 Jul 2012, 01:09
Location: medan
Contact:

Post by sumpit » 03 Jul 2012, 01:10

saya punya HDD 500GB
Ram 2GB
Proc P4

gimana partisi yang baik untuk HDD 50Gb

mohon bantuan nya...

Terima kasih
Last edited by sumpit on 27 Feb 2016, 20:08, edited 1 time in total.
Reason: nambah spec kompie


User avatar
zian
Posts: 2
Joined: 06 May 2012, 22:21
Location: Karawang, Indonesia
Contact:

Post by zian » 04 Jul 2012, 20:28

nice info...
ternyata bisa juga lusca pake $ sudo apt-get install lusca
makasih mas bro.. mo ngoprek dulu neh.. hehehe


User avatar
ping
Posts: 2
Joined: 20 Apr 2012, 09:36
Contact:

Post by ping » 05 Jul 2012, 00:12

master mau nanya neh knapa ya youtube ke cache cuman setengah aja,trus selanjutnya buffering ngga langsung full, apakah ada yg salah dengan squid.conf dan storeurl nya


User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Post by yudiarbi » 05 Jul 2012, 00:14

pake lusca ya?


User avatar
ping
Posts: 2
Joined: 20 Apr 2012, 09:36
Contact:

Post by ping » 05 Jul 2012, 00:18

iya mas


User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Post by yudiarbi » 05 Jul 2012, 20:22

konfignya digelar bos


User avatar
antoniusgenta
Posts: 103
Joined: 29 Dec 2011, 14:40
Location: jakarta

Post by antoniusgenta » 06 Jul 2012, 15:55

ping wrote:master mau nanya neh knapa ya youtube ke cache cuman setengah aja,trus selanjutnya buffering ngga langsung full, apakah ada yg salah dengan squid.conf dan storeurl nya
baca disini

http://wiki.squid-cache.org/ConfigExamp ... t/YouTube/


User avatar
edholondo
Posts: 1
Joined: 03 Jul 2012, 21:35
Location: Pontianak
Contact:

Post by edholondo » 13 Jul 2012, 19:35

Mantap abis bro :grin:


User avatar
latoel
Posts: 7
Joined: 22 Apr 2012, 23:57
Location: Probolinggo
Contact:

Post by latoel » 24 Aug 2012, 23:58

Berikut saya sudah pernah mencoba install proxy Lusca di Ubuntu Server 12.04 LTS dan berhasil..
Silakan di share bisa utk teman2 yg lainnya.. dan agar lebih disempurnakan

http://latoel-edu.blogspot.com/2012/08/ ... erver.html


User avatar
ayam_jago
Posts: 51
Joined: 25 Feb 2010, 18:24
Location: Lampung, Indonesia
Contact:

Post by ayam_jago » 09 Sep 2012, 22:11

berhasil dibagian mana masbro?? ane dah cobain gagal melulu :D

Code: Select all

* Starting Lusca/Squid HTTP Proxy lusca                                        FATAL: Can't parse configuration token: '%'

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


User avatar
DioBSD
Posts: 5
Joined: 07 Dec 2011, 00:27
Location: Pringsewu, Lampung
Contact:

Post by DioBSD » 20 Sep 2012, 20:37

punya ku LANCARRRR DJAYA :p


User avatar
sonor
Posts: 38
Joined: 20 Jun 2011, 16:22

Post by sonor » 23 Sep 2012, 13:59

nyimak


User avatar
abiytia
Posts: 6
Joined: 14 May 2011, 15:26
Location: Medan, Indonesia
Contact:

Post by abiytia » 02 Oct 2012, 02:53

Saya dah coba semua berdasar tutorial yang agan berikan, sudah saya sesuaikan dengan jaringan saya, pengarahan direktori jg sdh dibuat.

Semua berjalan lancar tak ada yang error dari configurasi tapi browsing kok ndak bs ya mas.

saya hanya menginstall lusca saja tanpa squid. jd perintah yg dijalankan cuma apt-get install lusca.

apa kira2 masalahnya gan. tolong pencerahannya. ini config yang saya copas dan sesuaikan.

# SQUID 2.7/ LUSCA TEST CONFIG FILE
# Email: aacable@hotmail.com
# Web  : http://aacable.wordpress.com

# PORT and Transparent Option
http_port 3128 transparent
server_http11 on
icp_port 0

# Cache Directory , modify it according to your system.
# but first create directory in root by mkdir /cache1
# and then issue this command  chown proxy:proxy /cache1
# [for ubuntu user is proxy, in Fedora user is SQUID]
# I have set 500 MB for caching reserved just for caching ,
# adjust it according to your need.
# My recommendation is to have one cache_dir per drive. zzz

#store_dir_select_algorithm round-robin
cache_dir aufs /cache 61440 16 256
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA

# If you want to enable DATE time n SQUID Logs,use following
emulate_httpd_log on
logformat squid %tl %6tr %>a %Ss/%03Hs %) {
@X = split;
#       $X[1] =~ s/&sig=.*//;
$x = $X[0] . " ";
$_ = $X[1];
$u = $X[1];

if ($X[1] =~ /(youtube|google).*videoplayback\?/){
@itag = m/[&?](itag=[0-9]*)/;
@id = m/[&?](id=[^\&]*)/;
@range = m/[&?](range=[^\&\s]*)/;
@begin = m/[&?](begin=[^\&\s]*)/;
@redirect = m/[&?](redirect_counter=[^\&]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTER ... redirect\n";

#speedtest
}elsif (m/^http:\/\/(.*)\/speedtest\/(.*\.(jpg|txt))\?(.*)/) {
print $x . "http://www.speedtest.net.SQUIDINTERNAL/speedtest/" . $2 . "\n";

#mediafire
}elsif (m/^http:\/\/199\.91\.15\d\.\d*\/\w{12}\/(\w*)\/(.*)/) {
print $x . "http://www.mediafire.com.SQUIDINTERNAL/" . $1 ."/" . $2 . "\n";

#fileserve
}elsif (m/^http:\/\/fs\w*\.fileserve\.com\/file\/(\w*)\/[\w-]*\.\/(.*)/) {
print $x . "http://www.fileserve.com.SQUIDINTERNAL/" . $1 . "./" . $2 . "\n";

#filesonic
}elsif (m/^http:\/\/s[0-9]*\.filesonic\.com\/download\/([0-9]*)\/(.*)/) {
print $x . "http://www.filesonic.com.SQUIDINTERNAL/" . $1 . "\n";

#4shared
}elsif (m/^http:\/\/[a-zA-Z]{2}\d*\.4shared\.com(:8080|)\/download\/(.*)\/(.*\..*)\?.*/) {
print $x . "http://www.4shared.com.SQUIDINTERNAL/download/$2\/$3\n";

#4shared preview
}elsif (m/^http:\/\/[a-zA-Z]{2}\d*\.4shared\.com(:8080|)\/img\/(\d*)\/\w*\/dlink__2Fdownload_2F(\w*)_3Ftsid_3D[\w-]*\/preview\.mp3\?sId=\w*/) {
print $x . "http://www.4shared.com.SQUIDINTERNAL/$2\n";

#photos-X.ak.fbcdn.net where X a-z
}elsif (m/^http:\/\/photos-[a-z](\.ak\.fbcdn\.net)(\/.*\/)(.*\.jpg)/) {
print $x . "http://photos" . $1 . "/" . $2 . $3  . "\n";

#YX.sphotos.ak.fbcdn.net where X 1-9, Y a-z
} elsif (m/^http:\/\/[a-z][0-9]\.sphotos\.ak\.fbcdn\.net\/(.*)\/(.*)/) {
print $x . "http://photos.ak.fbcdn.net/" . $1  ."/". $2 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
print $x . "http://" . $1  . $2 . "\n";

# compatibility for old cached get_video?video_id
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) {
$z = $2; $z =~ s/video_id=/get_video?video_id=/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $z . "\n";

} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
print $x . "http://www.google-analytics.com/__utm.gif\n";

#Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
$y = $3;$z = $2;
for ($y) {
s/pixel;.*/pixel/;
s/activity;.*/activity/;
s/(imgad[^&]*).*/\1/;
s/;ord=[?0-9]*//;
s/;&timestamp=[0-9]*//;
s/[&?]correlator=[0-9]*//;
s/&cookie=[^&]*//;
s/&ga_hid=[^&]*//;
s/&ga_vid=[^&]*//;
s/&ga_sid=[^&]*//;
# s/&prev_slotnames=[^&]*//
# s/&u_his=[^&]*//;
s/&dt=[^&]*//;
s/&dtd=[^&]*//;
s/&lmt=[^&]*//;
s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/[;&?]ord=[?0-9]*//;
s/[;&]mpvid=[^&;]*//;
s/&xpc=[^&]*//;
# yieldmanager
s/\?clickTag=[^&]*//;
s/&u=[^&]*//;
s/&slotname=[^&]*//;
s/&page_slots=[^&]*//;
}
print $x . "http://" . $1 . $2 . $y . "\n";

#cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
print $x . "http://" . $1 . "/" . $2  . "\n";

# spicific servers starts here....
} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
print $x . "http://" . $1 . "\n";

#cdn, varialble 1st path
} elsif (($u =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/[a-z0-9]{2,5}/cdn./;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#rapidshare
} elsif (($u =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($u =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

#like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($u =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
print $x . "http://cdn." . $4 . $6 . "\n";
#...spicific servers end here.

#photos-X.ak.fbcdn.net where X a-z
} elsif (m/^http:\/\/photos-[a-z].ak.fbcdn.net\/(.*)/) {
print $x . "http://photos.ak.fbcdn.net/" . $1  . "\n";

#for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
print $x . "http://cdn.yimg.com//" . $3 . "\n";

#for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
print $x . "http://cdn.yimg.com/"  . $3 . "\n";

#for yimg.com with &sig=
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*)/) {
@y = ($1,$2);
$y[0] =~ s/[a-z]+[0-9]+/cdn/;
$y[1] =~ s/&sig=.*//;
print $x . "http://" . $y[0] . ".yimg.com/"  . $y[1] . "\n";

#youjizz. We use only domain and filename
} elsif (($u =~ /media[0-9]{2,5}\.youjizz/) && (m/^http:\/\/(.*)(\.[^\.\-]*?\..*?)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})((\?|\%).*)?$/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|(.*cdn.*)|(.*cache.*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
print $x . "http://squid-cdn-url//" . $2  . "." . $3 . "\n";

#generic http://variable.domain.com/path/filename. "ext" or "exte" with or withour "? or %"
} elsif (m/^http:\/\/(.*)(\.[^\.\-]*?\..*?)\/(.*)\.([^\/\?\&]{2,4})((\?|\%).*)?$/) {
@y = ($1,$2,$3,$4);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|(.*cdn.*)|(.*cache.*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

# generic http://variable.domain.com/...
} elsif (m/^http:\/\/(([A-Za-z]+[0-9-]+)*?|.*cdn.*|.*cache.*)\.(.*?)\.(.*?)\/(.*)$/) {
print $x . "http://cdn." . $3 . "." . $4 . "/" . $5 .  "\n";

# spicific extention that ends with ?
} elsif (m/^http:\/\/(.*?)\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|rar|cab|amf|swf)(.*)/) {
print $x . "http://" . $1 . "/" . $2  . "." . $3 . "\n";

# all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
print $x . "http://" . $1 . "/" . $2  . "\n";

} else {
print $x . $_ . "sucks\n";
}
}


User avatar
scumbag
Posts: 10
Joined: 25 Sep 2012, 14:58

Post by scumbag » 04 Oct 2012, 10:27

wih, pembahasan keren nih

terima kasih untuk atas saya


User avatar
kernelpanic
Posts: 15
Joined: 18 Sep 2011, 21:14
Location: behind the shell

Post by kernelpanic » 20 Oct 2012, 21:18

Errornya di browser apa gan ?
sudah bener belum transparent proxynya dengan topologi agan ?


User avatar
priadiwae
Posts: 4
Joined: 24 Jul 2011, 23:49
Contact:

Post by priadiwae » 15 Nov 2012, 03:45

punya saya seperti ini :D

Code: Select all

root@cumi:~# sudo chown -R cumi.cumi /etc/squid/storeurl.pl
root@cumi:~# lusca -f /etc/lusca/squid.conf .z
FATAL: Can't parse configuration token: '%'

Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.000 user + 0.004 sys
Maximum Resident Size: 7152 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)[0xb755c4d3]
lusca[0x804d1b9]
Aborted (core dumped)


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

Post by q_p » 15 Nov 2012, 13:52

Mungkin ini ;

Code: Select all

root@cumi:~# lusca -f /etc/lusca/squid.conf .z
karekter (.) ganti dengan (-). CMIIW


User avatar
priadiwae
Posts: 4
Joined: 24 Jul 2011, 23:49
Contact:

Post by priadiwae » 18 Nov 2012, 21:06

waduh.. udah balik lagi ke ubuntu 11.10 saya om..
maap telat replynya :hajarpc:


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

Post by q_p » 18 Nov 2012, 21:29

@priadiwae
Kenapa tidak yang lts mas ? misalnya 10.04 lts, 11.04 lts dan 12.04 lts.


User avatar
priadiwae
Posts: 4
Joined: 24 Jul 2011, 23:49
Contact:

Post by priadiwae » 21 Nov 2012, 07:16

gpp om kebetulan aja kemaren itu cd yg buat install squid adanya 11.10 yg ready pakai..
sblmnya mo nyoba pakai 12.04.1 LTS tapi gagal build squid.conf :D stuck juga kemaren ngoprek 12.4.1 LTS


User avatar
scumbag
Posts: 10
Joined: 25 Sep 2012, 14:58

Post by scumbag » 21 Nov 2012, 10:02

oh, mungkin ini masalah dari partial youtube,
mohon di update lagi konfigurasi nya


User avatar
mierhink
Posts: 32
Joined: 27 Mar 2012, 07:37
Location: Jayapura - Indonesia
Contact:

Post by mierhink » 23 Nov 2012, 19:54

om ane jg dpt dpt masalah yg sama


-----------------------------------------
root@squid-ftp:~# lusca -d1
2012/11/23 21:49:53| parseConfigFile: squid.conf:1 unrecognized: ' #######################################################'
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: 7264 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)[0xb753a4d3]
lusca[0x804d1b9]
Aborted (core dumped)
------------------------------


------------------------------
root@squid-ftp:~# /etc/init.d/lusca restart
* Restarting Lusca/Squid HTTP Proxy lusca * Creating Lusca/Squid HTTP Proxy cache structure
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: 5856 KB
Page faults with physical i/o: 0
/usr/sbin/lusca[0x80b4a84]
/usr/sbin/lusca[0x80b543f]
/usr/sbin/lusca[0x80b54b3]
/usr/sbin/lusca[0x80b54d7]
/usr/sbin/lusca[0x804d6b0]
/usr/sbin/lusca[0x804e7ce]
/usr/sbin/lusca[0x805edc5]
/usr/sbin/lusca[0x8061ba7]
/usr/sbin/lusca[0x8062705]
/usr/sbin/lusca[0x804c857]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb751a4d3]
/usr/sbin/lusca[0x804d1b9]
Aborted (core dumped)
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: 5856 KB
Page faults with physical i/o: 0
/usr/sbin/lusca[0x80b4a84]
/usr/sbin/lusca[0x80b543f]
/usr/sbin/lusca[0x80b54b3]
/usr/sbin/lusca[0x80b54d7]
/usr/sbin/lusca[0x804d6b0]
/usr/sbin/lusca[0x804e7ce]
/usr/sbin/lusca[0x805edc5]
/usr/sbin/lusca[0x8061ba7]
/usr/sbin/lusca[0x8062705]
/usr/sbin/lusca[0x804c857]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb750d4d3]
/usr/sbin/lusca[0x804d1b9]
Aborted (core dumped)
[fail]
root@squid-ftp:~#
------------------------------

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

mohon pencerahannya..??
udh bingung bnget dahh


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

Post by q_p » 23 Nov 2012, 20:11

@mierhink

Code: Select all

2012/11/23 21:49:53| parseConfigFile: squid.conf:1 unrecognized: ' #######################################################'
Dari pesan error yang anda sertakan, coba dibuka file squid.conf. Cari dan hapus bagian ini :
' #######################################################'
atau anda hilangkan saja tanda (')
CMIIW


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

Post by dja » 26 Nov 2012, 15:58

para master tolong dibantu dong..!! lusca ku kok kudu ketik /usr/local/squid/sbin/squid diputty tiap direbooot..biar otomatis start bagaiman ???


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

Post by q_p » 26 Nov 2012, 16:23

Pakai versi berapa mas squid-nya. Untuk bisa ikut start-up saat boot/reboot diperlukan file init, tepatnya /etc/init.d/squid. Coba anda check di pada directori tsb, ada atau tidak?


User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Post by Nexus » 26 Nov 2012, 16:40

...


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

Post by dja » 26 Nov 2012, 16:53

pakai ini mas LUSCA_HEAD-r14809


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

Post by q_p » 26 Nov 2012, 17:18

Masalahnya ada di upstart-job mas. Copy-kan 'squid init script' di /etc/inid.d/ ,lalu jalankan perintah 'update-rc.d squid defaults'
CMIIW.


User avatar
yonyonas
Posts: 18
Joined: 13 May 2012, 15:52
Contact:

Post by yonyonas » 29 Nov 2012, 12:16

mantap bos saya coba praktekkan...trims for infonya


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

Post by dja » 12 Dec 2012, 15:14

beberapa hari cari file yg namanya squid init script dari var,usr,etc(tiap2 folder yg ada di root kok nggk ketemu jg ya mas??


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

Post by dja » 12 Dec 2012, 19:46

terimakasih banyak bantuan nya mas,,, langsung tak praktekan


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

Post by Chulk » 17 Feb 2013, 23:36

mw nanya ne mas, setelah saya baca tutorial dari bang latoel..

Pembagian Partisi

1 Primary 30.0 GB F ext4 /
2 Primary 500,2 MB B F ext4 /boot
3 logical 5 GB F ext4 /usr
4 logical 20GB F ext4 /var
5 logical 5 GB F ext4 /tmp
6 logical 5 GB F ext4 /usr/local
7 logical 5 GB F ext4 /opt
8 logical 5 GB F ext4 /svr
9 logical 25GB f btrfs /cache1
10 logical 25GB f btrfs /cache2
11 logical 25GB f btrfs /cache3
12 logical 25GB f btrfs /cache4
13 logical 25GB f btrfs /cache5
14 logical 10 GB F ext4 /home
15 logical 36 GB F ext4 /sharing
3 Primary 8192 MB F swap swap

apakah bisa /cache yang sebanyak 5 partisi di ubah menjadi 1 partisi saja?

kalau bisa, bagaimana pembagian partisiny? beserta "cache_dir aufs" nya?

apakah "cache_dir aufs /cache 125000 254 256" << dapat saya jalankan? (/cache nya saya buat menjadi 125GB)

terima kasih


User avatar
masdana
Posts: 718
Joined: 08 Jun 2010, 13:09
Location: East Borneo
Contact:

Post by masdana » 18 Feb 2013, 14:00

ikutan nyimak jg ah sy rencana juga mau bikin proxy dengan lusca walau ilmu sy belum nyampe hehe :D


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

Post by q_p » 18 Feb 2013, 16:31

[spoiler]
Chulk wrote:mw nanya ne mas, setelah saya baca tutorial dari bang latoel..

Pembagian Partisi

1 Primary 30.0 GB F ext4 /
2 Primary 500,2 MB B F ext4 /boot
3 logical 5 GB F ext4 /usr
4 logical 20GB F ext4 /var
5 logical 5 GB F ext4 /tmp
6 logical 5 GB F ext4 /usr/local
7 logical 5 GB F ext4 /opt
8 logical 5 GB F ext4 /svr
9 logical 25GB f btrfs /cache1
10 logical 25GB f btrfs /cache2
11 logical 25GB f btrfs /cache3
12 logical 25GB f btrfs /cache4
13 logical 25GB f btrfs /cache5
14 logical 10 GB F ext4 /home
15 logical 36 GB F ext4 /sharing
3 Primary 8192 MB F swap swap

apakah bisa /cache yang sebanyak 5 partisi di ubah menjadi 1 partisi saja?

kalau bisa, bagaimana pembagian partisiny? beserta "cache_dir aufs" nya?

apakah "cache_dir aufs /cache 125000 254 256" << dapat saya jalankan? (/cache nya saya buat menjadi 125GB)

terima kasih
[/spoiler]
Itu semua dalam satu HDD kan ? Untuk hasil terbaik, prinsipnya sediakan minimal 2 HDD dengan volume kecil. Misalnya u/ system pakai HDD IDE 10-20 GB dan u/ cache sediakan HDD SATA 40-80 GB (dan hanya maks 15-20 GB saja u/ cache)


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

Post by Chulk » 19 Feb 2013, 17:01

kebetulan untuk HDDny disiapin cm 1 mas dari pihak warnet yang mesen proxy ny..

hddny 250GB, kebetulan saya liat trit puny mas latoel..
kalo bisa maksud saya volume cacheny di jadiin 1 aja..

jadi nga banyak kayak yang di post sama mas latoel (pembagian partisi mas latoel dibagi 5 cache, masing" 25gb).

apakah memungkinkan dengan cara saya saya?


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

Post by q_p » 19 Feb 2013, 17:19

Dijadikan 1 dengan volume 125 Gb (5 dir x 25 Gb) ? Bisa saja, tapi squid jadi gemuk dan kedodoran dalam merespon request client.
OOT: proyek nih ? bagi2 donk proyeknya, jangan problem-nya :)


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

Post by Chulk » 19 Feb 2013, 17:41

OOT : woah, proyekny di palembang mas, mw?

bukan 5 cache x 25gb mas, maksudny 1 cache aja x 125gb..
bukanny repot kalau 5x25gb?
hapus cache ny gimana itu? maaf mase nubie hehehe..


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

Post by q_p » 19 Feb 2013, 18:23

bukan 5 cache x 25gb mas, maksudny 1 cache aja x 125gb
iya, itu sama saja dengan yang maksud di atas =
Dijadikan 1 dengan volume 125 Gb (5 dir x 25 Gb)
hapus cache ny gimana itu? maaf mase nubie hehehe..
Squid yang baik tdk akan penuh cache-nya. Bekerja seperti usus kita, ada yang masuk ya ada yang dikeluarkan. Wahhh mas ini ngakunya nyubi tapi sudah terima proyek, gak ke bayang kalau sudah master :)


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

Post by Chulk » 19 Feb 2013, 20:33

maksudny "ada yang dikeluarkan ada yang masuk"?

bukanny cache kalo diisi trus nga bakal dikeluarkan gan?
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..

yang agan maksud cache yang baik itu yang gimana mas?
wkwkwk, kl soal proyek, di kota ini banyak net mas, jadi banyak yang nyariin.. =)


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

Post by q_p » 19 Feb 2013, 22:36

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 ?


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

Post by Chulk » 19 Feb 2013, 22:45

iya mas, untuk proxy sendiri kan fungsiny untuk membuat lokal website yang kita tuju dengan cache..
tapi kendala yang selalu saya hadapin adalah cache menjadi penuh saat sudah 1bln atw lebih yang mengakibatkan lambatny browsing, sehingga perlu di clear cache..
berberapa kali seh saya hanya mengikuti tutorial dari orang, tanpa saya coba mengerti isi dari coding ubuntuny sendiri..hehehe
makany sekarang baru mw coba pahami isi dari ubuntu itu sendiri..wkwk

ini tadi saya baru saja instal ubuntu 12.04 lts dengan hdd sebesar 250gb, dengan pembagian partisi sbb :
256mb untuk /boot noatime
20gb untuk / noatime
8gb untuk swap area
dan sisa dari pembagian diatas ..gb untuk btfrs noatime dan relatime

nah saat melakukan apt-get update
terjadi lagi masalah yang sama dengan saat saya apt-get update di ubuntu 10.10

yaitu tidak menemukan lokasi repository, saya udh memcoba kambing.ui.ac.id , repo.ukdw.ac.id , dll
tetapi tetap nihil
padahal dari ubuntu sendiri melakukan ping ke google, yahoo, mikrotik dan modem semuany reply..

ada saran mas?


Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests